@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
/* 
font-family: "Playfair Display", serif;
font-family: "Cormorant Garamond", serif;
font-family: "Libre Baskerville", serif;
font-family: "Montserrat", sans-serif;
*/
:root {
    /* COLORES PRINCIPALES */
    --bg-crema: #FDFBF7;        /* Blanco roto/crema ultra sutil para el fondo de la web */
    --color-blanco: #FFFFFF;    /* Blanco puro para las tarjetas, dando efecto de limpieza */
    --color-negro: #000;
    --color-negro-oscuro: #2C2520;
    
    /* ACENTOS Y TEXTOS */
    --primary-naranja: #D48053; /* Terracota/Naranja tostado muy elegante (tu nuevo acento) */
    --primary-verde: #2C2520;   /* Marrón carbón súper oscuro. Reemplaza al verde para dar un toque más premium a los títulos */
    --text-secondary: #6B635A;  /* Gris topo cálido para que las descripciones se lean suave y no cansen la vista */
    
    /* DETALLES */
    --color-dorado: #D4A373;    /* Un beige/tostado tipo masa de tarta para detalles sutiles */
    --color-marron: #2C2520;    /* Mismo que el principal oscuro para mantener consistencia */
    --whatsapp-green: #25D366; /* Verde oficial de WhatsApp para el botón de contacto */
    --color-gris: #c6abab;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-crema);
    color: var(--text-secondary);
}

header {
    background: var(--color-negro);
    color: white;
    text-align: center;
    padding: 2rem 0rem;
    box-shadow: 0 4px 7px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10rem;
    position: relative;
}
h2{
    font-family: "Cormorant Garamond", serif;
}
/* --- NAVEGACIÓN DE CATEGORÍAS --- */
.nav-categorias {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem; 
    padding: 1rem 1rem; 
    background-color: var(--bg-crema);
    position: sticky; 
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
}

.nav-btn {
    background-color: transparent; 
    color: var(--text-secondary); 
    padding: 0.5rem 0; 
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-family: "Cormorant Garamond", serif;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative; 
    transition: color 0.3s ease;
    box-shadow: none;
}

.nav-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-negro); 
    transform: scaleX(0); 
    transform-origin: bottom right; 
    transition: transform 0.3s ease-out; 
}

/* --- ESTADO HOVER Y ACTIVO --- */
.nav-btn:hover, 
.nav-btn.activo {
    color: var(--color-negro); 
    background-color: transparent;
    transform: none; 
    box-shadow: none;
}

/* Animación de la línea al pasar el mouse o estar activo */
.nav-btn:hover::after, 
.nav-btn.activo::after {
    transform: scaleX(1); /* La línea crece a tamaño completo */
    transform-origin: bottom left; /* Hace que la línea crezca de izquierda a derecha */
}
.logo {
    width: 15%; 
    position: absolute;
    
    left: 3rem;
    transform: translateY(-50%);
}
.header-null{
    width: 50%;
    height: 0px;
    background-color: #c6abab;
}
.header-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--bg-crema);
}
.titulo-container{
    width: 100%;
    display: flex;
    justify-content: right;
    align-items: center;
    padding-right: 8rem;
}
.subtitulo-container{
    width: 100%;
    display: flex;
    justify-content: right;
    align-items: center;
    padding-right: 8rem;
}
.subtitulo-container p{
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    padding: 0;
    margin: 0;
    letter-spacing: 0.1px;
    color: var(--bg-crema);
    font-family: "Montserrat", sans-serif;
}
h1 {
    margin: 0;
    text-transform: uppercase; 
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); 
    padding: 0;
    font-size: 2.5rem;
    font-weight: 500; 
    font-style: normal;
    /* font-family: "Playfair Display", serif; */
    font-family: "Cormorant Garamond", serif;
}
.divider {
  height: 3.5rem;
  width: 2px;
  background-color: var(--color-marron);
  opacity: 0.8; 
}
header p {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    padding: 0;
    margin: 0;
    color: var(--color-blanco);
    font-family: "Montserrat", sans-serif;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
}
.catalogo-contenido{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.seccion-productos{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.grid {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.grid-2 {
    width: 85%; 
    max-width: 800px; 
    margin: 0 auto; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; 
}
.card {
    background: transparent; 
    border-radius: 0;         
    box-shadow: none;         
    border: none;             
    overflow: visible;         
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease; 
    width: 100%; 
    box-sizing: border-box;
    padding-bottom: 2rem; 
    animation: revelarTarjeta 0.6s ease-out forwards;
}
/*  EFECTO APARICIÓN AL SCROLLEAR*/

/* Animación base de aparición */
@keyframes revelarTarjeta {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* LA MAGIA DEL SCROLL: 
   Esta regla verifica si el navegador soporta animaciones basadas en scroll sin usar JS.
   Si lo soporta, cancela la animación de tiempo y la vincula a la rueda del mouse.
*/
@supports (animation-timeline: view()) {
    .card {
        animation: revelarTarjeta linear both;
        animation-timeline: view();
        /* Empieza cuando la tarjeta asoma un 10% y termina cuando está al 25% de la pantalla */
        animation-range: entry 10% cover 25%; 
    }
}
.card-image {
    width: 100%;
    height: 400px; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; 
    border-bottom: none; 
    margin-bottom: 1rem; 
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 0 0.5rem; 
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center; 
    gap: 0.5rem; 
    width: 100%;
    box-sizing: border-box;
}
.card-content p {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

.card-title {
    margin: 0;
    font-size: 1.3rem; 
    color: var(--primary-verde); 
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: "Cormorant Garamond", serif;
}

.descripcion {
    color: var(--text-secondary); 
    margin: 0 0 1.5rem 0; 
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; 
    color: var(--color-negro);
    border: 2px solid var(--color-negro); 
    text-decoration: none;
    width: 50%;
    padding: 0.6rem 1.2rem; 
    border-radius: 0px; 
    font-weight: 700;
    font-size: 1rem;
    margin-top: auto; 
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.btn-whatsapp:hover {
    /* Efecto "Fill": Se llena de verde el fondo al pasar el mouse */
    background-color: var(--color-negro);
    color: var(--color-blanco);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); /* Sombra suave solo en hover */
    transform: translateY(-2px); /* Mismo movimiento sutil que nav-btn */
}


/* --- ANIMACIÓN HTMX PARA EL CAMBIO DE CATEGORÍA --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* EXTRAS */

.extras-container {
    margin-top: 3rem;
    width: 80%;
}

.separador { 
    border: 0; 
    height: 2px; 
    background: rgba(56, 84, 59, 0.15); /* Un verde transparente muy sutil */
    margin: 4rem auto; 
    border-radius: 2px;
    width: 80%; /* Para que no ocupe todo el ancho y quede más elegante */
}

.seccion-extra { 
    margin-bottom: 4rem; 
    text-align: center; 
}

/* --- Galería de porciones --- */
.galeria { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.galeria img { 
    width: 250px; 
    height: 250px; 
    object-fit: cover; 
    border-radius: 16px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    border: 4px solid white;
    transition: transform 0.3s ease;
}

/* Efecto zoom al pasar el mouse por las fotos */
.galeria img:hover {
    transform: scale(1.05);
}

/* --- Contenedor del Video --- */
.video-container { 
    width: 50%; 
    margin: 0 auto; 
    background: white; 
    padding: 1.5rem; 
    border-radius: 20px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
    border: 1px solid rgba(56, 84, 59, 0.1);
}

.video-container video { 
    width: 50%; 
    border-radius: 12px; 
    background: #000; /* Fondo negro mientras carga el video */
}

.video-container p { 
    margin: 1rem 0 0 0; 
    color: var(--text-secondary); 
    font-weight: 500;
    font-size: 1.1rem;
    font-family: "Montserrat", sans-serif;
}

/* --- Testimonios --- */
.grid-testimonios { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1.5rem; 
}

.testimonio { 
    background: white; 
    padding: 2rem 1.5rem; 
    border-radius: 16px; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.05); 
    text-align: left; 
    border-top: 5px solid var(--color-marron); /* Rayita naranja arriba */
    display: flex;
    flex-direction: column;
}

.estrellas { 
    margin: 0 0 1rem 0; 
    letter-spacing: 2px; 
    font-size: 1.2rem;
}

.texto-resena { 
    font-style: italic; 
    color: #444; 
    margin-bottom: 1.5rem; 
    line-height: 1.6;
    flex-grow: 1;
}

.cliente { 
    font-weight: 800; 
    color: var(--primary-verde); 
    margin: 0; 
    text-align: right; 
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* FOOTER */

.pre-footer{
    width: 100%;
    height: 1.5rem;
    display: flex;
    justify-content: right;
    align-items: center;
    border-top: 1px solid rgba(56, 84, 59, 0.1);
    padding: 0.5rem 0;
}
.container-redes {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
}
.pre-footer a {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pre-footer-img {
    width: 24px;
    height: 24px; 
    max-width: 24px;
    object-fit: contain; 
    display: block; 
}

.site-footer {
    text-align: center;
    padding: 3rem 1rem 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(56, 84, 59, 0.1); 
}

.site-footer p {
    margin: 0.3rem 0;
}

.developer-credit {
    font-weight: 700;
    color: var(--primary-verde);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

/* Un pequeño efecto para que brille cuando le pasan el mouse por arriba */
.developer-credit:hover {
    opacity: 1;
}
@media screen and (max-width: 768px) {
    .nav-categorias {
        gap: 1.5rem; 
    }
    .nav-btn {
        font-size: 1rem;
    }
    header{
        flex-direction: column;
        padding: 1.5rem 0rem;
        height: auto;
    }
    .header-null {
        display: none;
    }
    .header-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .titulo-container {
        justify-content: center;
        padding: 0;
    }
    .subtitulo-container {
        justify-content: center;
        padding: 0;
    }
    .logo{
        position: static;
        transform: none;
        margin-bottom: 1rem;
        width: 14rem; 
    }
    .header-content h1 {
        font-size: 2rem;
    }
    header p {
        color: var(--bg-crema);
        font-size: 1.2rem;
    }
    .card-image {
        height: 300px;
    }
}