:root {
    --chocolate: #3E2723;
    --cream: #FDFBF7;
    --accent: #D7CCC8;
    --gold: #C5A065; 
    --transition: all 0.4s ease;
    --container-width: 1100px;
    --padding-x: 20px;
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--cream);
    color: var(--chocolate);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

/* Tipografía */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilidades de alineación */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    width: 100%;
}
.text-center { text-align: center; }
.full-width { width: 100%; }

/* --- HEADER Y NAV --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

.logo img { height: 50px; width: auto; display: block; }

.nav-menu { display: flex; gap: 30px; }
.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover { color: var(--gold); }

/* Botón Móvil (Oculto en PC) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--chocolate);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 140px; /* Para compensar el header fijo */
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text { max-width: 50%; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 400px;
}

/* Icono de fondo en el Hero */
.hero-background-icon {
    position: absolute;
    right: -5%; /* Un poco salido de la pantalla queda más moderno */
    top: 50%;
    transform: translateY(-50%) rotate(-15deg); /* Rotado para toque artístico */
    font-size: 500px; /* Tamaño gigante */
    color: var(--chocolate);
    opacity: 0.05; /* Súper sutil, casi como una marca de agua */
    z-index: -1;
    pointer-events: none; /* Para que no interfiera si alguien quiere hacer click cerca */
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .hero-background-icon {
        font-size: 300px;
        right: -10%;
        top: 20%;
        opacity: 0.03; /* Más tenue en celular para que no ensucie el texto centrado */
    }
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--chocolate); color: white; }
.btn-primary:hover { background: #2a1b18; transform: translateY(-2px); }

.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--chocolate); }

/* --- PRODUCTOS (GRID DE ICONOS) --- */
.products { padding: 100px 0; background: #fff; }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }

.grid-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 20px;
}

.shape {
    width: 100px; height: 100px;
    background: var(--cream);
    border: 1px solid var(--accent);
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--chocolate);
    margin-bottom: 20px;
    transition: var(--transition);
}

.icon-card:hover .shape {
    transform: rotate(10deg) scale(1.1);
    background: var(--chocolate);
    color: white;
}
.icon-card h3 { font-size: 1.4rem; margin-bottom: 5px; }

/* --- CTA --- */
.cta {
    background: var(--chocolate);
    color: var(--cream);
    text-align: center;
    padding: 100px 0;
}
.cta-container h2 { margin-bottom: 15px; }
.cta-container p { margin-bottom: 30px; opacity: 0.9; }

/* --- GALERÍA (MASONRY SIMPLIFICADO) --- */
.gallery { padding: 100px 0; }
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    grid-auto-flow: dense; /* Ayuda a llenar huecos */
}

.gallery-item {
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    height: 250px;
    border-radius: 4px;
    transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(0.98); opacity: 0.9; }

/* Clases especiales para variar tamaño */
.item-tall { grid-row: span 2; height: 515px; } 
.item-wide { grid-column: span 2; }

/* --- CONTACTO --- */
.contact { padding: 100px 0; background: #fff; }
.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-list { margin-top: 30px; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--cream);
    padding: 40px;
    border: 1px solid var(--accent);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--chocolate);
}

/* Footer */
footer {
    background: #251614;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* --- MEDIA QUERIES (RESPONSIVIDAD REAL) --- */
@media (max-width: 968px) {
    /* Galería se hace más simple en tablet */
    .item-tall { grid-row: span 1; height: 250px; }
    .item-wide { grid-column: span 1; }
}

@media (max-width: 768px) {
    /* NAV MÓVIL */
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        
        /* Oculto por defecto */
        display: none; 
    }
    
    .nav-menu.active { display: flex; } /* Clase para JS */

    /* HERO MÓVIL */
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { margin: 0 auto 30px auto; }
    .hero-blob { width: 300px; height: 300px; right: 50%; transform: translateX(50%); top: 10%; opacity: 0.2; }

    /* CONTACTO MÓVIL */
    .grid-split { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrapper { padding: 25px; }
}

.link-linea {
    text-decoration: none; /* Quita el subrayado aburrido por defecto */
    border-bottom: 2px solid var(--chocolate); /* Grosor y color de la línea */
    padding-bottom: 4px; /* Espacio entre el texto y la línea */
    transition: var(--transition); /* Animación suave */
    color: var(--chocolate);
    font-weight: 600; /* Un poco más negrita para que destaque */
}

/* Efecto al pasar el mouse */
.link-linea:hover {
    color: var(--gold); /* Cambia el color del texto */
    border-bottom-color: var(--gold); /* Cambia el color de la línea */
    padding-bottom: 6px; /* La línea baja un poquito más */
}

/* --- MEDIA QUERIES --- */

@media (max-width: 768px) {
    /* ... otros estilos que ya tengas ... */

    /* Forzamos el 2x2 en el celular */
    .grid-icons {
        display: grid;
        /* repeat(2, 1fr) crea exactamente dos columnas iguales */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; /* Reducimos un poco el espacio para que entren bien */
    }

    .icon-card {
        padding: 10px; /* Menos padding para ahorrar espacio */
    }

    .shape {
        width: 80px;  /* Iconos un poco más pequeños en móvil */
        height: 80px;
        font-size: 2rem;
    }

    .icon-card h3 {
        font-size: 1.1rem; /* Texto un poco más chico para que no se corte */
    }
}