/* --- VARIABLES DE COLOR (ACTUALIZADAS) --- */
:root {
    --blanco-fondo: #3b6b4c;       /* Fondo general de secciones (Verde Hoja) */
    --blanco-puro: #ffffff;        /* Blanco real */
    --texto-oscuro: #1b261f;       /* Negro/Verde oscuro para alta legibilidad */
    --texto-claro-fijo: #ffffff;   /* Blanco puro para textos sobre fondos oscuros */
    --texto-suave: #4a554d;        
    --verde-hoja: #3b6b4c;         /* Tu verde insignia */
    --dorado-premium: #c5a059;     /* Fondo de recuadro de Tarjetas, Redes y Marcos */
    --dorado-brillante: #e5c17d;   
    --lineas-suaves: #e0e6e2;      
}

/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-image: 
        linear-gradient(rgba(252, 253, 252, 0.25), rgba(252, 253, 252, 0.25)), 
        url('https://images.squarespace-cdn.com/content/v1/59bc6b2d29f1875d21620187/1660058805603-SMBX53GMP37O3C5WAO3K/Dise%C3%B1o+sin+t%C3%ADtulo.png?format=1500w');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--texto-oscuro);
    overflow-x: hidden;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: var(--verde-hoja); 
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--blanco-puro); 
}

.logo span {
    color: var(--dorado-brillante); 
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8); 
    margin: 0 20px;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dorado-brillante);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: var(--dorado-brillante); 
}

.nav-icons .cart-icon {
    text-decoration: none;
    color: var(--blanco-puro);
    display: flex;
    align-items: center;
}

/* --- COMPONENTE: TÍTULOS DE SECCIÓN --- */
.seccion-titulo {
    text-align: center;
    margin-bottom: 60px;
}

.seccion-titulo span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dorado-brillante);
    font-weight: 600;
}

.seccion-titulo h2 {
    font-size: 36px;
    color: var(--texto-claro-fijo);
    margin-top: 5px;
    font-weight: 700;
}

/* --- BOTÓN PRINCIPAL REUTILIZABLE --- */
.btn-principal {
    display: inline-block;
    text-decoration: none;
    background-color: var(--verde-hoja);
    color: white;
    padding: 15px 35px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-principal:hover {
    background-color: var(--dorado-premium);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* --- SECCIÓN HERO (BIENVENIDA) --- */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 8%;
    min-height: 80vh;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--texto-oscuro);
}

.hero-text p {
    font-size: 16px;
    color: var(--texto-suave);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    animation: flotar 6s ease-in-out infinite;
}

@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- SECCIÓN SERVICIOS --- */
.servicios-section {
    padding: 100px 8%;
    background-color: var(--verde-hoja);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.servicio-card {
    padding: 30px;
    background-color: var(--dorado-premium); 
    border: 1px solid rgb(227, 184, 13);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(227, 184, 13);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio-img-contenedor {
    width: 100%;
    height: 220px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.05);
}

.servicio-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.servicio-card:hover .servicio-foto {
    transform: scale(1.08);
}

.servicio-card h3 {
    font-size: 20px;
    color: var(--texto-oscuro); 
    margin-bottom: 15px;
    font-weight: 600;
}

.servicio-card p {
    font-size: 15px;
    color: var(--texto-oscuro); 
    line-height: 1.6;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- 🌟 NUEVA SECCIÓN: COLECCIÓN DE FOTOS (FONDO BLANCO PURO) --- */
.galeria-section {
    padding: 100px 8%;
    background-color: transparent; /* Fondo blanco puro */
}

/* Modificamos los títulos de esta sección para que se lean sobre blanco */
.galeria-section .seccion-titulo h2 {
    color: var(--texto-oscuro);
}
.galeria-section .seccion-titulo span {
    color: var(--dorado-premium);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* El recuadro/marco dorado */
.foto-marco {
    background-color: var(--dorado-premium); /* Fondo dorado */
    padding: 8px; /* Crea la pequeña margen alrededor de la foto */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}


.foto-contenedor-cuadrado {
    width: 100%;
    aspect-ratio: 1 / 1; /* 🌟 Fuerza a que el contenedor sea un cuadrado perfecto */
    overflow: hidden;
    border-radius: 4px;
}

.foto-item {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que llene el cuadrado sin deformarse */
    display: block;
    transition: transform 0.4s ease;
}

/* Animación elegante al pasar el mouse por encima */
.foto-marco:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.foto-marco:hover .foto-item {
    transform: scale(1.06);
}

/* --- SECCIÓN TIENDA --- */
.tienda-section {
    padding: 100px 8%;
    background-color: var(--verde-hoja);
    
}

.tienda-section .seccion-titulo h2 {
    color: var(--texto-oscuro); 
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.producto-card {
    background-color: var(--dorado-premium); 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgb(227, 184, 13);
    border: 1px solid rgb(227, 184, 13);
    transition: transform 0.3s ease;
}

.producto-img-contenedor {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.producto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.producto-info {
    padding: 20px;
    text-align: center;
}

.producto-info h3 {
    font-size: 17px;
    color: var(--blonco-puro); 
    font-weight: 600;
    margin-bottom: 8px;
}

.producto-info .precio {
    font-size: 16px;
    color: #000000; 
    font-weight: 700;
}

.producto-card:hover .producto-img {
    transform: scale(1.06);
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* --- SECCIÓN CONTACTO --- */
.contacto-section {
    padding: 100px 8%;
    background-color: var(--verde-hoja); 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-section .seccion-titulo h2,
.contacto-info h3,
.contacto-info p,
.info-item,
.info-item p {
    color: var(--texto-oscuro) !important;
}

.contacto-section .seccion-titulo span {
    color: #1b261f; 
}

.info-item span {
    color: #1b261f; 
    font-size: 22px;
}

.contacto-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
}

.contacto-info {
    flex: 1;
}

.contacto-info h3 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 25px;
}

.contacto-info p {
    line-height: 1.7;
    margin-bottom: 45px;
    font-size: 15.5px;
}

.info-detalles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- REDES SOCIALES --- */
.contacto-redes {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.btn-red {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 30px;
    background-color: var(--dorado-premium); 
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-red span {
    font-size: 28px;
    color: var(--texto-oscuro); 
    transition: color 0.3s ease;
}

.red-texto h4 {
    font-size: 17px;
    color: var(--texto-oscuro); 
    font-weight: 600;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.red-texto p {
    font-size: 13.5px;
    color: rgba(27, 38, 31, 0.85); 
}

.btn-red:hover {
    transform: translateY(-5px);
    background-color: var(--dorado-brillante); 
}

.btn-red.whatsapp:hover { box-shadow: 0 15px 30px rgba(37, 211, 102, 0.25); }
.btn-red.instagram:hover { box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2); }
.btn-red.messenger:hover { box-shadow: 0 15px 30px rgba(0, 132, 255, 0.25); }

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 40px;
    background-color: var(--texto-oscuro);
    color: #ffffff;
    font-size: 14px;
    width: 100%;
}

/* --- DISEÑO RESPONSIVO --- */
@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .nav-links { display: none; } 
    
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 5%; 
        gap: 20px; 
        min-height: auto;
    }
    .hero-text h1 { font-size: 34px; }
    .hero-image img { max-width: 70%; }

    .servicios-grid, .productos-grid, .galeria-grid { 
        grid-template-columns: 1fr !important; 
        gap: 25px !important; 
    }
    
    .contacto-contenedor { flex-direction: column; gap: 40px; }
    .contacto-info, .contacto-redes { width: 100%; text-align: center; }
    .info-item { justify-content: center; }
}