/* ==========================================================================
   RESET Y VARIABLES
   ========================================================================== */
:root {
    --color-primary: rgb(61, 62, 45); /* Verde militar rectificado */
    --color-dark: #1a1a1a;    /* Negro/gris muy oscuro */
    --color-light: #f8f8f8;   /* Blanco roto/neutro */
    --color-white: #ffffff;
    --color-cream: rgb(251, 233, 215); /* Crema solicitado para textos */
    --color-gray: #e0e0e0;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Aplicar la fuente elegante del logo a los elementos principales */
h1, h2, h3, h4, .nav-links a, .brand-logo a, .rice-item {
    font-family: 'Playfair Display', serif;
}

body {
    font-family: 'Lora', serif;
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background-color: var(--color-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-container {
    position: absolute;
    right: 3rem; /* Alineado con el padding de header-container */
    display: flex;
    align-items: center;
}

.share-toggle {
    position: absolute;
    left: 3rem;
    background: none;
    border: none;
    color: var(--color-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed);
}

.share-toggle:hover {
    opacity: 0.8;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--color-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed);
}

.menu-toggle:hover {
    opacity: 0.8;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background-color: var(--color-primary);
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 10px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    min-width: 130px;
    overflow: hidden;
    
    /* Estado Oculto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 100;
}

.dropdown-menu--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    text-decoration: none;
    color: var(--color-cream);
    font-family: 'Playfair Display', serif;
    padding: 0.70rem 1rem;
    font-size: 0.70rem;
    border-bottom: 1px solid rgba(251, 233, 215, 0.05);
    transition: background-color var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(251, 233, 215, 0.05);
}

.brand-logo {
    text-align: center;
}

.brand-logo a {
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-cream);
    letter-spacing: 4px;
    margin-left: 10px; /* Compensa la ilusión óptica del letter-spacing */
    transition: opacity var(--transition-speed);
}

.brand-logo a:hover {
    color: var(--color-cream);
    opacity: 0.8;
}

/* ==========================================================================
   INICIO: HERO BANNER
   ========================================================================== */
.hero-banner {
    width: 100%;
    height: 55vh;
    /* Imagen dummy retirada a petición */
    /* background-image: url('...'); */
    background-color: var(--color-gray);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   INICIO: LOGOTIPO INTERMEDIO
   ========================================================================== */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3.5rem 2rem;
    background-color: var(--color-cream);
}

.logo-section__img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   INICIO: FRANJA ARROCES
   ========================================================================== */
.rice-strip {
    display: flex;
    background-color: var(--color-cream);
    color: var(--color-primary);
    height: 80px;

}

.rice-strip__title {
    flex: 0 0 250px;
    background-color: var(--color-primary);
    color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.rice-strip__title h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.rice-strip__carousel-container {
    flex: 1;
    overflow-x: auto;
    /* Ocultar scrollbars nativas */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.rice-strip__carousel-container::-webkit-scrollbar { 
    display: none; 
}

.rice-list {
    display: flex;
    height: 100%;
    list-style: none;
}

.rice-item {
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: rgba(61, 62, 45, 0.75); /* Letras verdes inactivo, mayor contraste */
    transition: all var(--transition-speed);
    border-right: 1px solid rgba(61, 62, 45, 0.1);
}

.rice-item:hover {
    color: var(--color-primary);
    background-color: rgba(61, 62, 45, 0.05); /* Hover verde muy sutil */
}

.rice-item--active {
    color: var(--color-primary);
    font-weight: 600;
    background-color: rgba(61, 62, 45, 0.15); /* Fondo indicador activo */
}

/* ==========================================================================
   INICIO: DETALLE DEL ARROZ
   ========================================================================== */
.rice-detail {
    display: flex;
    min-height: 80vh;
    background-color: var(--color-primary);
}

.rice-detail__image-container {
    flex: 0 0 75%;
    position: relative;
    overflow: hidden;
}

.rice-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Animación manejada vía clase JS al cambiar */
    transition: opacity 0.4s ease;
}

.rice-detail__content {
    /* flex: 0 0 25%; (Oculto tamaño original por fotos pendientes) */
    flex: 1;
    padding: 6rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centrado especial por no haber foto */
    text-align: center; /* Centrado especial por no haber foto */    
    background-color: var(--color-primary);
}

.rice-detail__content h3 {
    font-size: 2.4rem;
    color: var(--color-cream);
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.rice-detail__desc {
    font-size: 1.05rem;
    color: var(--color-cream);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.rice-detail__content h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-cream);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.rice-detail__ingredients {
    font-size: 0.95rem;
    color: var(--color-cream);
    font-style: italic;
    line-height: 1.6;
}

/* Animación de fundido para imágenes */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* ==========================================================================
   PÁGINA SOBRE NOSOTROS
   ========================================================================== */
.about-page {
    /* Altura total menos aprox lo que mide el header */
    min-height: calc(100vh - 85px); 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cream);
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.about-container h1 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 1.8rem;
    text-align: justify;
    line-height: 1.8;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .rice-detail {
        flex-direction: column;
    }
    
    .rice-detail__image-container {
        flex: none;
        height: 50vh;
    }

    .rice-detail__content {
        flex: none;
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .share-toggle {
        left: 1.5rem;
    }

    .menu-container {
        right: 1.5rem;
    }
    
    .brand-logo a {
        font-size: 1.5rem;
        margin-left: 5px;
    }

    .hero-banner {
        height: 40vh;
    }

    .rice-strip {
        flex-direction: column;
        height: auto;
    }
    
    .rice-strip__title {
        flex: none;
        padding: 1rem;
        height: 50px;
    }

    .rice-item {
        padding: 0 1.5rem;
        height: 60px; /* Altura táctil cómoda en móvil */
    }

    .rice-detail__content h3 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-cream);
    padding: 2rem 0;
    text-align: center;
    border-top: 20px solid var(--color-cream);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-container p {
    font-size: 0.70rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.60rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.footer-links a:hover {
    opacity: 0.7;
}
