/* Asegúrate de tener los archivos .woff2, .woff o .ttf en tu carpeta de proyecto */
@font-face {
    font-family: 'Rasputin';
    src: url('Recursos/Fuentes/rasputin.otf') format('woff2'),
         url('Recursos/Fuentes/rasputin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TT Chocolates';
    src: url('Recursos/Fuentes/ttchocolates.otf') format('woff2'),
         url('Recursos/Fuentes/ttchocolates.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-green: #40795e;
    --bg-white: #ffffff;
    --font-rasputin: 'Rasputin', Georgia, serif;
    --font-ttchocolates: 'TT Chocolates', sans-serif;
}

/* Reset básico (Corregido de '-' a '*') */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ajuste del botón de idioma */
.lang-badge {
    font-family: var(--font-rasputin); 
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-green);
    background-color: transparent;
    border: 1.5px solid var(--primary-green);
    border-radius: 6px;
    padding: 4px 12px;
    letter-spacing: 0.5px;
    display: inline-block;
    cursor: pointer; /* Indica que es cliqueable */
    transition: all 0.2s ease;
}

.lang-badge:hover {
    background-color: var(--primary-green);
    color: var(--bg-white);
}

body {
    font-family: var(--font-ttchocolates);
    background-color: var(--bg-white);
    color: #333;
}
/* ==========================================================================
   2. ESTILOS DEL HEADER
   ========================================================================== */

.main-header {
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1.5px solid var(--primary-green); /* Línea verde inferior */
    padding: 15px 40px 10px 40px;
    
    /* CAMBIO 3: Sombra sutil debajo de la línea verde del header */
    box-shadow: 0 4px 12px rgba(64, 121, 94, 0.12);
    position: relative; /* Asegura que la sombra quede por encima del contenido que sigue */
    z-index: 100;
}

/* --- Cabecera Superior --- */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
}

/* Botón de Selección de Idioma (EN) */
.lang-selector {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.lang-badge {
    /* CAMBIO 2: Ahora usa la fuente Rasputin */
    font-family: var(--font-rasputin); 
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-green);
    border: 1.5px solid var(--primary-green);
    border-radius: 6px;
    padding: 4px 12px;
    letter-spacing: 0.5px;
    display: inline-block;
    cursor: default;
}

/* Logo Centrado */
.logo-container {
    flex: 1;
    text-align: center;
}

.site-logo {
    max-height: 95px;
    width: auto;
    display: inline-block;
}

.header-spacer {
    flex: 1;
}

/* --- Navegación Inferior --- */
.main-nav {
    max-width: 800px;
    margin: 15px auto 5px auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    font-family: var(--font-rasputin);
    color: var(--primary-green);
    
    /* CAMBIO 1: Tamaño de texto reducido (de 1.15rem a 0.95rem) */
    font-size: 0.95rem; 
    
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.75;
}

/* ==========================================================================
   3. BANNER PRINCIPAL (HERO)
   ========================================================================== */

.hero-banner {
    width: 100%;
    height: 520px;
    background-image: url('Recursos/Banner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Centra verticalmente el contenido */
    padding-left: 7%;    /* Posicionamiento horizontal similar a la imagen de referencia */
    position: relative;
}

.hero-content {
    max-width: 560px;
    color: #ffffff;
    font-family: var(--font-rasputin);
}

.hero-text-block span {
    display: block; /* Hace que cada frase ocupe su propia línea */
    line-height: 1.35;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); /* Sombra sutil para mejorar legibilidad sobre la foto */
}

/* Tamaños de letra exactos solicitados */
.hero-text-block .line-1 {
    font-size: 20pt;
    font-weight: normal;
}

.hero-text-block .line-2,
.hero-text-block .line-3 {
    font-size: 15pt;
    font-weight: normal;
}

/* Negrita para la palabra deseada */
.hero-text-block strong {
    font-weight: 700;
}

/* Línea blanca fina inferior */
.hero-line {
    width: 100%;
    height: 1.5px;
    background-color: #ffffff;
    margin-top: 10px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Permite que el desplazamieto entre secciones del menú sea fluido */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   4. SECCIÓN ABOUT US
   ========================================================================== */

.about-section {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 70px 5% 50px 5%;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 45px;
}

/* --- Columna Izquierda: Textos --- */
.about-text {
    flex: 1;
}

.about-title {
    font-family: var(--font-rasputin);
    font-size: 30pt;
    color: var(--primary-green);
    font-weight: normal;
    margin-bottom: 6px;
}

/* Línea verde delgada debajo del título */
.about-title-line {
    width: 190px;
    height: 1.5px;
    background-color: var(--primary-green);
    margin-bottom: 30px;
}

.about-paragraph {
    font-family: var(--font-ttchocolates);
    font-size: 14pt;
    color: #333333;
    line-height: 1.45;
    margin-bottom: 25px;
    font-weight: 300;
}

.about-paragraph:last-child {
    margin-bottom: 0;
}

/* --- Columna Derecha: Imagen --- */
.about-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.about-image {
    width: 100%;
    max-width: 540px;
    height: auto;
    border-radius: 16px; /* Border radius sutil */
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* --- Botón Centrado Inferior --- */
.about-btn-wrapper {
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.btn-discover {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--bg-white);
    font-family: var(--font-rasputin);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 35px;
    border-radius: 8px; /* Border radius sutil */
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-discover:hover {
    background-color: #32604a; /* Tono verde ligeramente más oscuro al pasar el cursor */
    transform: translateY(-2px);
}

/* ==========================================================================
   5. SECCIÓN SUSTAINABILITY
   ========================================================================== */

.sustainability-section {
    width: 100%;
    padding: 60px 0;
    overflow: hidden; /* Evita desbordamientos indeseados */
}

.sustainability-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* --- Columna Izquierda: Imagen pegada al borde --- */
.sustainability-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 0; /* Pega la imagen completamente al borde izquierdo de la pantalla */
}

.sustainability-image {
    width: 100%;
    max-width: 650px; /* Ajusta según el tamaño exacto de tu diseño de corte */
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Columna Derecha: Contenido --- */
.sustainability-content {
    flex: 1;
    padding-right: 8%; /* Margen lateral derecho para mantener proporción */
    max-width: 600px;
}

.sustainability-title {
    font-family: var(--font-rasputin);
    font-size: 30pt;
    color: var(--primary-green);
    font-weight: normal;
    margin-bottom: 6px;
}

/* Línea verde delgada debajo del título */
.sustainability-title-line {
    width: 270px;
    height: 1.5px;
    background-color: var(--primary-green);
    margin-bottom: 30px;
}

.sustainability-paragraph {
    font-family: var(--font-ttchocolates);
    font-size: 14pt;
    color: #333333;
    line-height: 1.45;
    font-weight: 300;
}

/* ==========================================================================
   6. FOOTER / PIE DE PÁGINA
   ========================================================================== */

.main-footer {
    width: 100%;
    background-color: #2e6b4e; /* Verde exacto solicitado para el footer */
    padding: 35px 5% 35px 5%;   /* Altura moderada y compacta */
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Imagotipo a la izquierda */
.footer-logo-container {
    flex-shrink: 0;
}

.footer-logo {
    max-height: 65px; /* Ajusta según la proporción de tu imagen */
    width: auto;
    display: block;
}

/* Bloque derecho (Navegación + Instagram + Línea) */
.footer-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 45px;
    align-items: center;
}

.footer-nav a {
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-rasputin);
    font-size: 1.05rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
}

/* Ícono de Instagram */
.footer-social {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Línea blanca delgada inferior */
.footer-line {
    width: 100%;
    height: 1.5px;
    background-color: #ffffff;
    opacity: 0.95;
}

/* ==========================================================================
   7. PÁGINA DE PRODUCTOS (products.html)
   ========================================================================== */

.products-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 5% 80px 5%;
}

/* --- Barra Superior: Menú Hamburguesa + Pestañas --- */
.products-top-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

/* Ícono de 3 líneas horizontales */
.products-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 24px;
    cursor: pointer;
}

.products-menu-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #8bb19e; /* Verde suave según la referencia */
    border-radius: 2px;
}

/* Selector Horizontal de Pestañas */
.product-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1.5px solid var(--primary-green);
    border-radius: 10px;
    padding: 6px 20px 6px 12px;
    cursor: pointer;
    font-family: var(--font-rasputin);
    color: var(--primary-green);
    font-size: 1rem;
    transition: all 0.25s ease;
    outline: none;
}

.product-tab-btn:hover,
.product-tab-btn.active {
    background-color: #f2f7f4;
    box-shadow: 0 3px 8px rgba(64, 121, 94, 0.15);
    transform: translateY(-1px);
}

/* Miniatura pequeña dentro de cada pestaña */
.tab-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

/* --- Área de Despliegue de Producto --- */
.product-display-area {
    width: 100%;
    position: relative;
    min-height: 400px;
}

.product-card {
    display: none; /* Ocultas por defecto */
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    animation: fadeIn 0.35s ease-in-out;
}

.product-card.active {
    display: flex; /* Visible únicamente cuando tiene la clase active */
}

/* Columna Izquierda: Imagen Grande */
.product-image-col {
    flex: 1;
    max-width: 480px;
}

.product-main-img {
    width: 100%;
    height: auto;
    border-radius: 18px; /* Border radius sutil */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: block;
    object-fit: cover;
}

/* Columna Derecha: Título + Descripción */
.product-info-col {
    flex: 1;
    max-width: 580px;
}

.product-title {
    font-family: var(--font-rasputin);
    font-size: 30pt;
    color: var(--primary-green);
    font-weight: normal;
    margin-bottom: 6px;
}

.product-title-line {
    width: 270px;
    height: 1.5px;
    background-color: var(--primary-green);
    margin-bottom: 25px;
}

.product-description {
    font-family: var(--font-ttchocolates);
    font-size: 14pt;
    color: #333333;
    line-height: 1.45;
    font-weight: 300;
}

/* Transición suave al cambiar de producto */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   8. PÁGINA DE CONTACTO (contactus.html)
   ========================================================================== */

.contact-section {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 5% 90px 5%;
}

.contact-header {
    text-align: left;
    margin-bottom: 40px;
}

.contact-title {
    font-family: var(--font-rasputin);
    font-size: 24pt;
    color: var(--primary-green);
    font-weight: normal;
    margin-bottom: 6px;
}

.contact-title-line {
    width: 180px;
    height: 1.5px;
    background-color: var(--primary-green);
    margin-bottom: 20px;
}

.contact-subtitle {
    font-family: var(--font-ttchocolates);
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.5;
    font-weight: 300;
}

/* Formulario */
.contact-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-family: var(--font-ttchocolates);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-ttchocolates);
    font-size: 1rem;
    color: #333333;
    background-color: #ffffff;
    border: 1.5px solid #d2e0d8;
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaaaaa;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(64, 121, 94, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Botón de Enviar */
.form-btn-container {
    text-align: center;
    margin-top: 35px;
}

.btn-submit {
    background-color: var(--primary-green);
    color: var(--bg-white);
    font-family: var(--font-rasputin);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 45px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    background-color: #32604a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 121, 94, 0.2);
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}