/* =========================================
   ESTILO PREMIUM WELLNESS - VIRGINIA
   (Versión: Imágenes Completas Adaptables)
   ========================================= */

:root {
/* ... (tus colores siguen igual) ... */
    --bg-color: #FAFAF9;       
    --card-bg: #FFFFFF;
    --text-main: #4A4A4A;      
    --text-title: #2C2C2C;     
    --accent-green: #6B7F68;   
    --accent-gold: #BFA06D;    
    --accent-light: #E8E6E1;   

    /* FUENTES OPTIMIZADAS */
    /* font-display: swap evita que el texto sea invisible mientras carga la fuente */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* ESPACIADO Y BORDES */
    --radius: 4px;             
    --container-width: 1100px;
    
    /* EFECTOS */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.9;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* --- UTILIDADES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: white;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items:end
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-title);
    font-weight: 500;
    /* AGREGADO: Quitamos el aire extra para que centre perfecto */
    line-height: 1; 
    display: flex;
    align-items: center;
}

/* 2. Ajustamos el Botón/Enlace */
.nav-cta {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    position: relative;
    
    /* CAMBIO CLAVE: */
    line-height: 1;      /* Quitamos altura de línea extra */
    padding-bottom: 0;   /* Quitamos el relleno que desalineaba el texto */
    display: flex;       /* Asegura comportamiento de caja flexible */
    align-items: bottom !important;
}

/* 3. Ajustamos la Línea Dorada (Subrayado) */
.nav-cta::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    /* CAMBIO CLAVE: Bajamos la línea usando coordenadas negativas */
    /* Antes era bottom: 0 (pegado al texto), ahora baja 6px */
    bottom: -6px; 
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}
.nav-cta:hover { color: var(--accent-gold); }
.nav-cta:hover::after { width: 100%; }

/* --- HERO SECTION --- */
/* --- HERO SECTION CON IMAGEN DE FONDO --- */
.hero-section {
    position: relative;
    /* CAMBIA ESTA URL POR LA RUTA DE TU IMAGEN DE FONDO REAL */
    background-image: url('hero.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: scroll !important;
    color: #fff; /* Texto blanco para contraste */
    padding: 12rem  1rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

/* Capa oscura sobre la imagen para que se lea el texto */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Para que el texto esté sobre la capa oscura */
    max-width: 800px;
    margin: 0 auto;
}

/* Ajustes de color para el texto en el Hero (ahora sobre fondo oscuro) */
.hero-section .hero-tag { color: var(--accent-gold); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-section .hero-title { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-section .hero-subtitle { color: rgba(255,255,255,0.9); font-weight: 400; }

/* --- ESTILOS DEL BUSCADOR --- */
.search-container {
    background: rgba(255, 255, 255, 0.15); /* Fondo semitransparente tipo cristal */
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    margin-top: 2rem;
    width: 100%;
}

.search-input, .search-select {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.5);
    background-color: rgba(255,255,255,0.95);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.search-input { flex: 1; min-width: 200px; }
.search-select { flex: 0 0 auto; cursor: pointer; }

.search-input:focus, .search-select:focus {
    box-shadow: 0 0 0 3px rgba(191, 160, 109, 0.4); /* Brillo dorado */
    background-color: #fff;
}

/* Responsivo para el buscador */
@media (max-width: 600px) {
    .search-container { flex-direction: column; padding: 1rem; }
    .search-input, .search-select { width: 100%; }
}

.hero-tag {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 0.5em;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-title);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-main);
    opacity: 0.85;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* BOTÓN --- */
.btn-reserva {
    display: inline-block;
    background-color: var(--text-title);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-reserva:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 160, 109, 0.3);
}

/* --- BLOG GRID (MODIFICADO PARA IMÁGENES COMPLETAS) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
    padding-bottom: 6rem;
    align-items: start; /* Alinea las tarjetas al inicio para que no se estiren raro */
}

.article-card {
    background: transparent;
    cursor: pointer;
}

/* CAMBIO PRINCIPAL AQUÍ: */
.card-img-container {
    width: 100%;
    /* Quitamos el aspect-ratio fijo para que la caja se adapte a la foto */
    height: auto; 
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background-color: transparent; /* Fondo transparente por si acaso */
}

.card-img {
    width: 100%;
    height: auto; /* La altura es automática según la imagen real */
    display: block;
    object-fit: contain; /* Asegura que se vea todo sin cortar */
    transition: transform 0.7s ease;
}

.article-card:hover .card-img {
    transform: scale(1.03); /* Zoom un poco más suave */
}

.card-content {
    padding: 0 0.5rem;
}

.card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-title);
    line-height: 1.25;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.read-more {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-title);
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 2px;
    transition: var(--transition);
}

.article-card:hover .read-more {
    border-color: var(--accent-gold);
}

/* --- ARTÍCULO INTERNO --- */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin: 2rem 0;
}

.post-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-title);
    margin: 1rem 0;
    line-height: 1.15;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-gold);
    margin: 2rem auto;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 4rem;
    box-shadow: var(--shadow-soft);
}

.post-content {
    font-size: 1.1rem;
    line-height: 2;
}

.intro {
    font-size: 1.25rem;
    color: var(--text-title);
    font-family: var(--font-serif);
    margin-bottom: 3rem;
    border-left: 2px solid var(--accent-gold);
    padding-left: 1.5rem;
}

/* Sección de Ingredientes */
.ingredients-section {
    margin: 5rem 0;
}

.ingredients-section h3 {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-title);
    margin-bottom: 3rem;
    font-weight: 400;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.food-item {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--accent-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.food-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.food-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-title);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.food-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* TIP BOX */
.tip-box {
    background-color: #F4F6F4;
    padding: 1.5rem;
    margin: 4rem 0;
    border-radius: var(--radius);
    text-align: left;
    position: relative;
}

.tip-header {
    font-family: var(--font-serif);
    color: var(--accent-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid var(--accent-light);
    margin-top: 2rem  ;
padding: 4rem 1rem; /* Agregué un poco de padding lateral por seguridad en móviles */
    background-color: #fff;

    /* MAGIA FLEXBOX PARA CENTRADO "MEDIO MEDIO" */
    display: flex;
    flex-direction: column; /* Apila los elementos uno debajo del otro */
    align-items: center;    /* Centra horizontalmente los bloques (divs, p, etc.) */
    justify-content: center; /* Centra verticalmente el contenido */
    text-align: center;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .food-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 4rem 1rem; }
    /* Quitamos la restricción de altura en móvil también para que no recorte */
    .card-img-container { height: auto; aspect-ratio: auto; } 
    .container { padding: 0 1.5rem; }
    .intro { margin-left: 0; border-left: none; padding-left: 0; font-style: italic; }

    /* Estilos compartidos (esto ya lo tienes, déjalo así o adáptalo) */
.search-input, .search-select {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.5);
    background-color: rgba(255,255,255,0.95); /* Aquí forzamos el color de fondo */
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

/* --- CORRECCIÓN PARA EL SELECT EN MÓVILES (INSTAGRAM/IOS) --- */
.search-select {
    /* 1. Esto elimina el estilo gris nativo de iPhone/Android */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* 2. Como borramos la flecha nativa, agregamos una nuestra */
    /* Esta es una flechita gris oscura simple y elegante */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    
    /* Damos espacio a la derecha para que el texto no tape la flecha */
    padding-right: 3rem; 
    
    /* Forzamos color blanco si el navegador se pone rebelde */
    background-color: #ffffff; 
    
    /* Aseguramos que el cursor muestre que es clicable */
    cursor: pointer;
}
}