@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Pacifico&display=swap');

/* =========================================================
        PALETA DE COLORES - PIQUES AMAZONICOS
   ========================================================= */

:root {
    --texto: rgb(91, 56, 41);
    --fondo: rgb(255, 250, 242);
    --textohis: rgba(95, 58, 37, 0.728);
    --rosa: #D9A99A;
    --textohis2: rgb(95, 58, 37);
}

/* =========================================================
                        RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--fondo);
}

/* =========================================================
                        HEADER
   ========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 250, 243, 0.95); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 1px solid #e0d5c1;
    padding-bottom: 10px;
}

/*----------------------    LOGO    ------------------------*/

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 100px;
    height: auto;
    padding-left: 40px;
    margin-top: -10px;
    padding-top: 5px;
}

.logo-text {
    margin-top: -10px;
}

.logo-text h1,
.logo-text .logo-titulo {
    padding-left: 10px;
    font-size: 28px;
    font-family: 'Pacifico', cursive;
    color: #104f04c6;
    font-weight: bold;
}

.logo-text span {
    padding-left: 50px;
    font-family: 'Montserrat', sans-serif;
    color: #21ac0b;
    letter-spacing: 2px;
    font-weight: 600;
}

/*----------------------    NAV    ------------------------*/

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    margin-top: 1px;
}

/* Ícono de 3 barras sin marco que se transforma en X */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--texto);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none; 
    align-items: center;
    gap: 30px; 
}

.nav-links img {
    width: 14px;
    height: auto;
    margin-right: -8px;
    margin-left: -8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto);
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #42bc1d; 
}

.nav-links a.active {
    color: #41b70a; 
    border-bottom: 2px solid #0a6411; 
    padding-bottom: 3px; 
}

.nav-links .btn-reserva {
    background-color: #ff3d08; 
    color: rgb(255, 254, 254); 
    padding: 10px 20px;
    border-radius: 6px; 
    border: 3px solid #5b1804; 
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.5s ease, transform 0.2s ease;
}

.nav-links .btn-redes {
    background-color: #42cf40; 
    color: var(--texto); 
    padding: 10px 20px;
    border-radius: 25px; 
    border: 2px solid #1e9013; 
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.5s ease, transform 0.2s ease;
}

.nav-links .btn-redes:hover {
    background-color: #329d1a; 
    transform: scale(1.05);
    transition: background-color 0.8s;
    color: var(--texto);
}

.nav-links .btn-reserva:hover {
    background-color: #991a0b; 
    color: rgb(255, 255, 255);
    transform: scale(1.05);
}

/* =========================================================
                        MAIN
   ========================================================= */

/*----------------------    BANNER    ------------------------*/
.banner {
    background-image: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('/assets/banner/banner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh; 
    min-height: 400px;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding-right: 8%;
    z-index: -1;
}

.banner-contenido {
    text-align: right;
    color: white;
    max-width: 500px; 
    position: relative;
    z-index: 1;
}

.titulo-banner {
    font-family: 'Pacifico', cursive; 
    font-size: 60px;
    margin-bottom: 10px;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
    z-index: 1;
}

.subtitulo-1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.subtitulo-2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-style: italic; 
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.btn-menu {
    display: inline-block; 
    background-color: #b03a2e; 
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 6px;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1;
}

.btn-menu:hover {
    background-color: #8c2d23;
    transform: scale(1.05);
}

/*----------------------    HISTORIA    ------------------------*/
.historia{
    text-align: center;
}

.titulo-historia{
    padding-top: 40px;
    padding-bottom: 15px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--textohis);
}

.historia-sub1{
    margin-bottom: 20px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 50px;
    color: var(--textohis2);
}

.historia-sub2{
    font-size: 15px;
    margin-bottom: 50px;
    color: var(--textohis);
}

.historia-blocks{
    display: flex;
    justify-content: center;
}
.historia-block{
    border: 2px var(--textohis) solid;
    margin: 20px;
    border-radius: 15px;
    width: 350px;
    height: 300px;
    box-shadow: 0 8px 30px rgba(90, 64, 56, 0.10);
    transition: 0.3s ease;
    padding: 30px 18px;
}

.historia-icon{
    border: 2px var(--textohis) solid;
    padding-top: -5px;
    padding-bottom: 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: #f1dfd9c9;
    color: #874C3D;
    font-size: 30px;
}

.historia-block p{
    width: 100%;
    text-align: center;
    max-width: 100%;
    padding: 0;
    margin: 12px 0 0 0;
    line-height: 1.5;
    color: var(--textohis);
}

.historia-block h3{
    padding-top: 15px;
    font-size: 20px;
    text-align: center;
    color: var(--textohis2);
}
.historia-block:hover {
    transform: translateY(-8px);
    border-color: var(--rosa);
    box-shadow: 0 8px 30px rgb(82, 45, 4);
}

/*----------------------    FAVORITOS    ------------------------*/
.favoritos-contenido{
    text-align: center;
}

.titulo-favoritos{
    padding-top: 40px;
    padding-bottom: 15px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--textohis);
}

.fondo-favoritos{
    background-color: rgb(255, 239, 221);
    padding-bottom: 80px;
}

.sub1-favoritos{
    margin-bottom: 20px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 50px;
    color: var(--textohis2);
}
.favoritos-blocks{
    display: flex;
    justify-content: center;
}

.favoritos-block{
    border-radius: 17px;
    margin: 10px;
    transition: 0.3s ease;
    width: min-content;
    background-color: white;
    box-shadow: 0 1px 7px rgb(249, 234, 208);
}

.favoritos-block:hover{
    transform: translateY(-8px);
    border-color: var(--rosa);
    box-shadow: 0 8px 30px rgb(82, 45, 4);
}

.favoritos-block h3{
    padding-left: 28px;
    padding-top: 10px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 27px;
    color: var(--textohis2);
    padding-bottom: 10px;
}

.favoritos-block p{
    padding-left: 28px;
    padding-right: 45px;
    color: var(--textohis);
}

.favoritos-img img{
    width: 400px;
    height: 300px;
    border-radius: 15px 15px 0 0;
}

.favoritos-precio{
    display: flex;
    height: 80px;
}

.precio{
    padding-left: 28px;
    padding-top: 22px;
    color: var(--textohis2);
}

.precio h2{
    font-size: 17px;
}

.pedido{
    margin-top: 24px;
    margin-left: 40px;
}

.pedido a{
    background-color: #1e9e0a;
    padding: 5px;
    padding-left: 25px;
    padding-right: 25px;
    border: 2px rgb(6, 102, 6) solid;
    border-radius: 20px;
    text-decoration: none;
    color: white;
}

.pedido a:hover{
    background-color: #1e9013;
    transition: 0.2s ease;
    padding: 7px;
    padding-left: 27px;
    padding-right: 27px;
    box-shadow: 0 1px 7px rgb(69, 161, 23);
}

.btn-pedi a{
    background-color: #5b1804;
    color: white;
    padding: 15px 50px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
}

.btn-pedi a:hover{
    box-shadow: 0 1px 7px rgb(161, 90, 23);
    transition: 0.2s ease;
    transform: scale(1.05);
}

.btn-pedi{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;

}

/*----------------------    CONTACTANOS    ------------------------*/
.titulo-contactanos h2{
    text-align: center;
    color: var(--textohis2);
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 50px;
    padding-top: 40px;
}

/* =========================================================
                        FOOTER (ESCRITORIO)
   ========================================================= */
.footer {
    background-color: #16690f; /* Tu verde original */
    background-image: linear-gradient(rgba(22, 105, 15, 0.95), rgba(10, 75, 5, 0.98)), url('../assets/banner/hojas-selva.png'); /* Opcional: Patrón de hojas */
    background-size: cover;
    background-position: center;
    color: #fffaf3; /* Tu color crema */
    padding: 60px 0 20px;
    border-top: 4px solid #0a4b05;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr; /* Distribución desproporcionada para que la marca tenga más espacio */
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #e0d5c1; /* Color crema suave */
    margin-bottom: 24px;
    font-weight: 600;
}

/* --- Columna Marca --- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 65px;
    height: auto;
}

.footer-logo-text h2 {
    font-family: 'Pacifico', cursive;
    font-size: 20px;
    color: #e0d5c1;
    line-height: 1;
}

.footer-logo-text span {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    color: #e0d5c1;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.footer-tagline {
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-desc {
    font-size: 12px;
    line-height: 1.6;
    color: #e0d5c1;
}

/* --- Columna Enlaces --- */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fffaf3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff3d08; /* Tu acento rojo/naranja */
}

/* --- Columna Horarios & WA --- */
.schedule {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
    color: #e0d5c1;
}

.schedule strong {
    font-size: 16px;
    color: #ffffff;
}

.btn-footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #21ac0b; /* Tu verde vivo */
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #1a8809;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-footer-wa:hover {
    background-color: #1a8809;
    transform: translateY(-2px);
}

.wa-icon {
    width: 16px;
    height: 16px;
}

/* --- Columna Contacto & Redes --- */
.address, .email {
    font-size: 14px;
    margin-bottom: 14px;
    color: #e0d5c1;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    background-color: #fffaf3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
    border: 1px solid #e0d5c1;
}

.social-icon img {
    width: 16px;
    height: auto;
    /* Al usar íconos de color en un fondo blanco, no necesitan filter */
}

.social-icon:hover {
    background-color: #e0d5c1;
    transform: scale(1.08);
}

/* --- Créditos Finales --- */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 40px 0;
    border-top: 1px solid rgba(224, 213, 193, 0.15);
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: #e0d5c1;
    letter-spacing: 0.5px;
}

/* =========================================================
                    MEDIA QUERIES (RESPONSIVE)
   ========================================================= */

/* TABLETS Y PANTALLAS MEDIANAS */
@media (max-width: 992px) {
    .header {
        padding: 10px 20px;
    }
    .logo img {
        padding-left: 0;
    }
    .nav-links {
        gap: 15px;
    }
    .logo-text span {
        padding-left: 10px;
    }
    .historia-blocks,
    .favoritos-blocks {
        flex-wrap: wrap;
    }
}

/* TELÉFONOS MÓVILES (Diseño limpio y sin superposiciones) */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 12px 22px;
    }
    
    .logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .logo img {
        width: 45px; 
        margin: 0;
        padding: 0;
    }
    
    .logo-text {
        margin-top: -5px;
        text-align: left;
    }
    
    .logo-text h1,
    .logo-text .logo-titulo {
        font-size: 24px;
        padding-left: 0;
        line-height: 1.1;
    }
    
    .logo-text span {
        font-size: 11px;
        padding-left: 20px;
        display: block;
    }

    /* Muestra las 3 líneas animadas en celulares */
    .menu-toggle {
        display: flex;
    }

    /* Menú cerrado con animación suave de bajada */
    .navbar {
        display: block;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        margin-top: 0;
        border-top: 1px solid transparent;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
    }

    /* Menú desplegado cuando JS agrega .active */
    .navbar.active {
        max-height: 360px;
        opacity: 1;
        padding: 16px 0 10px 0;
        margin-top: 12px;
        border-top: 1px solid #e0d5c1;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    /* Los 4 enlaces de texto ocupan su propia fila centrada */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    /* Facebook, Instagram y WhatsApp quedan juntos en una sola fila inferior */
    .nav-links li:nth-child(n+5) {
        width: auto;
        margin-top: 8px;
    }

    .nav-links a:not(.btn-reserva):not(.btn-redes) {
        display: inline-block;
        font-size: 13px;
        padding: 6px 14px;
    }

    /* Botones de redes circulares */
    .nav-links .btn-redes {
        width: 40px;
        height: 40px;
        min-width: unset;
        padding: 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 3px;
    }

    .nav-links img {
        width: 15px;
        margin: 0;
    }

    /* Botón de WhatsApp compacto al lado de las redes */
    .nav-links .btn-reserva {
        width: auto;
        height: 40px;
        min-width: unset;
        padding: 0 18px;
        font-size: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 3px;
    }

    .banner {
        height: 50vh;
        min-height: 320px;
        justify-content: center;
        padding: 0 15px;
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('/assets/banner/banner1.png');
    }
    
    .banner-contenido {
        text-align: center;
    }
    
    .titulo-banner {
        font-size: 48px;
    }
    
    .subtitulo-1, .subtitulo-2 {
        font-size: 20px;
    }

    /* --- ADAPTACIÓN MÓVIL DE HISTORIA / NOSOTROS --- */
    .historia {
        padding: 0 20px 40px 20px;
    }

    .titulo-historia {
        padding-top: 30px;
        font-size: 13px;
    }

    .historia-sub1 {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .historia-sub2 {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    /* Oculta el salto de línea <br> en celular para que el párrafo fluya parejo */
    .historia-sub2 br {
        display: none;
    }

    .historia-blocks {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .historia-block {
        width: 100%;
        max-width: 340px;
        height: auto;
        min-height: 250px;
        margin: 0;
        padding: 25px 18px;
    }

    .historia-block h3{
        margin-top: -20px;
    }

    /* --- ADAPTACIÓN MÓVIL DE FAVORITOS --- */
    .favoritos {
        padding: 0 20px 40px 20px;
    }

    .fondo-favoritos {
        padding-bottom: 50px;
    }

    .titulo-favoritos {
        padding-top: 30px;
        font-size: 13px;
    }

    .sub1-favoritos {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 25px;
    }

    .favoritos-blocks {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .favoritos-block {
        width: 100%;
        max-width: 340px;
        margin: 0;
        overflow: hidden;
    }

    .favoritos-img img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

    .favoritos-block h3 {
        padding: 14px 18px 8px 18px;
        font-size: 24px;
    }

    .favoritos-block p {
        padding: 0 18px;
        font-size: 14px;
        line-height: 1.45;
    }

    .favoritos-precio {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 18px;
    }

    .precio {
        padding: 0;
    }

    .precio h2 {
        font-size: 17px;
    }

    .pedido {
        margin: 0;
    }

    .pedido a {
        display: inline-block;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: bold;
    }

    .pedido a:hover {
        padding: 8px 16px;
    }

    .btn-pedi {
        margin-top: 35px;
    }

    /* --- ADAPTACIÓN MÓVIL DEL FOOTER --- */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Una sola columna vertical */
        gap: 35px;
        padding: 0 24px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col h3 {
        margin-bottom: 16px;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 30px;
        padding: 20px 24px 0;
    }
}