/* ==========================================================================
   Variables de Paleta de Colores e Identidad de Marca
   ========================================================================== */
:root {
    --primary-orange: #e89619;    /* El naranja ocre/tostado exacto de tu empaque */
    --coffee-dark: #3a2211;       /* Café profundo premium (reemplaza al negro genérico) */
    --text-light-muted: #5e3b1f;  /* Tono medio para subtítulos legibles */
    --transition-fast: 0.3s ease;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    /* JUEGA CON ESTA VARIABLE PARA AGRANDAR O ACHICAR EL LOGO DEL HERO */
    --hero-logo-size: 250px;
}

/* ==========================================================================
   Estilos Generales y Reseteo
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-orange);
    color: var(--coffee-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.align-center {
    align-items: center;
}

/* ==========================================================================
   Componentes Reutilizables / Botones
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

/* El botón CTA se adapta al contraste del empaque */
.btn-cta {
    background-color: var(--primary-orange);
    color: var(--coffee-dark);
    font-weight: 700;
}
.btn-cta:hover {
    background-color: #d18210;
    transform: translateY(-2px);
}

/* Botón "Explora nuestra cultura" adaptado */
.btn-primary {
    background-color: #1F1610;
    color: #ffb201;
    border: 2px solid #1F1610;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: transparent;
    color: #1F1610;
}

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-orange);
    margin-bottom: 12px;
}

.section-tag.light {
    color: var(--gold);
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--coffee-dark);
    margin-bottom: 24px;
}

.text-white {
    color: #ffffff !important;
}

.center-title {
    text-align: center;
    margin-bottom: 56px;
}

/* ==========================================================================
   1. Header & Navegación
   ========================================================================== */
.site-header {
    background-color: #0b1a30; /* El azul marino oscuro idéntico al de la franja del empaque */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #ffffff; /* Letras blancas sobre la franja oscura */
    
    /* CAMBIA ESTA PROPIEDAD (Estaba en 0.9rem, puedes subirla a 1.05rem o 1.1rem) */
    font-size: 1.05rem; 
    
    /* Opcional: añade un poco más de grosor para mejorar la lectura */
    font-weight: 600; 
    
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--primary-orange); /* Destello naranja ocre al pasar el cursor */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-orange);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-cta {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #FAF6F0;
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--primary-orange); /* Fondo ocre del empaque */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

/* Eliminamos el degradado azul opaco */
.hero-overlay {
    display: none; 
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-logo-center {
    /* Cambiamos la altura previa (110px) a un tamaño más imponente */
    height: var(--hero-logo-size); 
    width: auto;
    
    /* Espaciado inferior para que respire con respecto al título principal */
    margin-bottom: 32px; 
    
    /* Sombra paralela sutil para integrarlo de forma tridimensional sobre el fondo */
    filter: drop-shadow(0px 6px 15px rgba(0, 0, 0, 0.15));
    
    /* Mantiene los bordes nítidos e impecables en cualquier pantalla */
    image-rendering: -webkit-optimize-contrast; 
    object-fit: contain;
    
    /* Transición suave por si deseas meterle efectos interactivos después */
    transition: transform 0.3s ease; 
}

/* Efecto opcional para aumentar el atractivo visual al pasar el cursor */
.hero-logo-center:hover {
    transform: scale(1.2);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--coffee-dark); /* Texto principal en café oscuro sobrio */
}

.highlight-text {
    color: var(--coffee-dark); /* Mantiene la homogeneidad */
}

/* Ajuste crucial: cambiamos el subtítulo blanco por el tono café del empaque */
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 36px;
    font-weight: 500;
    color: var(--text-light-muted); /* Mayor contraste y legibilidad */
}

/* ==========================================================================
   3. Nuestra Historia
   ========================================================================== */
.history-section {
    background-color: var(--cream-light);
}

.history-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Ajustes de alineación y encaje perfectos */
.history-visual {
    display: flex;
    justify-content: flex-end; /* Alinea el bloque a la derecha de su columna */
    align-items: center;
}

.image-wrapper {
    position: relative;
    max-width: 580px; /* Evita que se estire demasiado */
    width: 100%;
    padding: 12px; /* Espacio interno para que la imagen no toque los bordes crema */
    background-color: #FAF6F0; /* Color crema suave de fondo para el recuadro */
    border-radius: 8px; /* Bordes redondeados del recuadro principal */
    box-sizing: border-box;
    box-shadow: 10px 10px 0px 0px rgba(197, 168, 128, 0.4); /* Sombra plana y dura de color dorado */
}

/* Desactivamos el pseudoelemento antiguo para que no duplique el marco */
.image-wrapper::before {
    display: none; 
}

.rounded-img {
    width: 100%; /* Fuerza a que la imagen se adapte al contenedor con su padding */
    height: auto;
    border-radius: 6px; /* Redondeado sutil para la imagen interna */
    display: block;
}

/* ==========================================================================
   4. Sección El Café
   ========================================================================== */
.coffee-section {
    background-color: var(--coffee-dark); /* Fondo café oscuro */
}

.product-showcase {
    display: flex;
    justify-content: center;
}

.product-image {
    max-height: 480px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
    transition: var(--transition-fast);
}

.product-image:hover {
    transform: translateY(-8px);
}

.product-subtitle {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.product-desc {
    font-size: 1.05rem;
    color: rgba(255, 253, 249, 0.8);
    margin-bottom: 32px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-column: column;
    gap: 24px;
    flex-direction: column;
}

.features-list li {
    display: flex;
    gap: 16px;
}

.feat-icon {
    font-size: 1.8rem;
    color: var(--primary-orange);
    line-height: 1;
}

.features-list strong {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #ffffff;
}

.features-list p {
    color: rgba(255, 253, 249, 0.7);
    margin-top: 4px;
}

/* ==========================================================================
   5. El Proceso
   ========================================================================== */
.process-section {
    background-color: var(--cream-bg);
}

.card-process {
    background-color: var(--cream-light);
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid rgba(197, 168, 128, 0.2);
    position: relative;
    transition: var(--transition-fast);
}

.card-process:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(31,22,16,0.05);
    border-color: var(--gold);
}

.process-number {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(197, 168, 128, 0.2);
}

.process-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-process h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--coffee-dark);
}

.card-process p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. Preparación
   ========================================================================== */
.prep-section {
    background-color: var(--cream-light);
}

.subtitle-prep {
    max-width: 600px;
    margin: 12px auto 0;
    color: var(--text-muted);
}

.prep-card {
    background-color: var(--cream-bg);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.prep-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.prep-icon {
    font-size: 1.8rem;
}

.prep-card h3 {
    font-size: 1.35rem;
    color: var(--coffee-dark);
}

.prep-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prep-specs li {
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(197, 168, 128, 0.3);
    padding-bottom: 8px;
}

.prep-specs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.prep-specs strong {
    color: var(--coffee-dark);
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--coffee-dark); /* Fondo café oscuro/negro */
    color: rgba(255, 253, 249, 0.8);
    padding: 80px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 12px;
}

.footer-contact-list a:hover {
    color: var(--primary-orange);
}

.footer-mini-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-links a {
    background-color: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gold);
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.social-links a:hover {
    background-color: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-slogan {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 253, 249, 0.6);
}

.footer-bottom {
    text-align: center;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(197, 168, 128, 0.2);
    margin-bottom: 24px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 253, 249, 0.5);
}

/* ==========================================================================
   Responsive (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col.text-right {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--coffee-dark);
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
        clip-path: circle(0px at top right);
        transition: clip-path 0.5s ease-out;
        pointer-events: none;
        display: flex;
        align-items: center;
    }

    .nav-menu.active {
        clip-path: circle(1200px at top right);
        pointer-events: all;
    }

    .header-actions {
        display: none;
    }

    .mobile-cta {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .hero-logo-center {
        height: 130px;
        margin-bottom: 20px;
    }
}