/**
 * Estilos Principales - Samay Ecuador
 * Header, Footer, Navegación, Botón Flotante y Estructura Global
 */

@import url('variables.css');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--color-arena);
    color: var(--color-texto);
    padding-top: var(--header-height);
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   OCULTAR BARRA DE GOOGLE TRANSLATE
   ========================================= */
.goog-te-banner-frame.skiptranslate { display: none !important; } 
body { top: 0px !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }
#google_translate_element { display: none; }

/* =========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================= */
.btn-flotante-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

.btn-flotante-wa:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.15);
    color: white !important;
}

@media (max-width: 768px) {
    .btn-flotante-wa { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 32px;}
}

/* =========================================
   HEADER FIJO
   ========================================= */
.header-fixed {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    z-index: 10000;
    height: var(--header-height); 
    display: flex; align-items: center;
    transform: translateY(-100%);
    animation: slideDownHeader 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideDownHeader { to { transform: translateY(0); } }

.header-container {
    width: 95%; max-width: 1350px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.logo img { height: 75px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); transition: transform 0.3s ease; display: block; }
.logo:hover img { transform: scale(1.05); }

/* --- NAVEGACIÓN PC --- */
.nav-menu { display: flex; align-items: center; }
.nav-menu ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
.nav-menu a {
    text-decoration: none; color: var(--color-primario); font-weight: 600; font-size: 14px; 
    display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; transition: all 0.3s ease;
}
.nav-menu > ul > li > a i.main-icon { color: var(--color-acento); font-size: 16px; transition: 0.3s; }
.nav-menu > ul > li > a i.extremo-icon { color: var(--color-atardecer); font-size: 16px; transition: 0.3s; }

.nav-menu a:hover { background-color: var(--color-hover); color: var(--color-acento); }
.nav-menu .dropdown-extremo > a:hover { background-color: #fff5f2; color: var(--color-atardecer); }
.nav-menu a:hover i.main-icon, .nav-menu a:hover i.extremo-icon { transform: translateY(-2px); }

/* --- MENÚ DESPLEGABLE (PC) --- */
.dropdown { position: relative; }
.fa-chevron-down { font-size: 10px; margin-left: 5px; transition: transform 0.3s; color: #888;}

@media (min-width: 1051px) {
    .dropdown:hover .fa-chevron-down { transform: rotate(180deg); color: var(--color-acento);}
    .dropdown-extremo:hover .fa-chevron-down { color: var(--color-atardecer);}
    .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}

.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: #ffffff; min-width: 260px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-radius: 12px; padding: 10px 0; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; 
}

.dropdown-menu li { width: 100%; list-style: none;}
.dropdown-menu a { padding: 12px 25px; border-radius: 0; font-weight: 500; color: #555; display: flex; align-items: center; gap: 12px; transition: 0.2s; }
.dropdown-menu a i { color: var(--color-acento); font-size: 16px; width: 25px; text-align: center; }
.dropdown-extremo .dropdown-menu a i { color: var(--color-atardecer); }
.dropdown-menu a:hover { background: #F8F9FA; color: var(--color-primario); transform: translateX(5px); }
.dropdown-divider { border-top: 1px solid #eee; margin: 5px 0; }

/* Botones y Acciones Header */
.header-right { display: flex; align-items: center; gap: 15px; }

.lang-menu { position: relative; }
.lang-btn { 
    background: transparent; border: 1px solid #ddd; padding: 8px 12px; 
    border-radius: 8px; font-family: var(--font-main); font-weight: 600; 
    font-size: 13px; color: var(--color-primario); cursor: pointer; 
    display: flex; align-items: center; gap: 6px; transition: 0.3s; 
}
.lang-btn i.fa-globe { color: var(--color-acento); font-size: 15px; }
.lang-btn:hover { border-color: var(--color-acento); background: var(--color-hover); }

.lang-content { 
    position: absolute; top: 120%; right: 0; background: white; min-width: 140px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 10px; opacity: 0; visibility: hidden; 
    transform: translateY(10px); transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid #f0f0f0;
}
.lang-menu:hover .lang-content { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-content a { 
    padding: 12px 15px; text-decoration: none; color: #555; font-size: 0.85rem; 
    font-weight: 600; transition: 0.2s; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.lang-content a:hover { background: #f8f9fa; color: var(--color-primario); padding-left: 20px;}

.btn-reservar {
    background: linear-gradient(135deg, var(--color-acento), #0077B6); color: #FFFFFF !important;
    padding: 12px 25px; border-radius: 50px; font-weight: 600; font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4); transition: all 0.3s ease; text-decoration: none;
}
.btn-reservar:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6); }

.mobile-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--color-primario); cursor: pointer; padding: 0;}
.mobile-btn-wrapper { display: none; }

/* Responsive Header */
@media (max-width: 1050px) {
    .mobile-toggle { display: block; }
    .header-action { display: none; }
    .header-right { gap: 10px; } 

    .nav-menu {
        position: fixed; top: 0; right: 0; width: 300px; height: 100vh;
        background-color: #fff; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        flex-direction: column; justify-content: flex-start; align-items: flex-start;
        padding-top: 90px; 
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 10001; overflow-y: auto; overflow-x: hidden;
    }

    .nav-menu.active { transform: translateX(0); }
    
    .nav-menu ul { flex-direction: column; width: 100%; gap: 0; }
    .nav-menu > ul > li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-menu a { padding: 18px 25px; font-size: 15px; border-radius: 0; width: 100%; box-sizing: border-box; justify-content: space-between; }
    .nav-menu a:hover { background-color: transparent; color: var(--color-primario); transform: none; }

    .dropdown-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; background: #fdfdfd; padding: 0; border-radius: 0; }
    .dropdown.active .dropdown-menu { display: block; animation: fadeInMenu 0.3s ease; } 
    @keyframes fadeInMenu { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    
    .dropdown.active .fa-chevron-down { transform: rotate(180deg); color: var(--color-acento); }

    .dropdown-menu a { padding: 15px 20px 15px 45px; font-size: 14px; border-bottom: 1px solid #f5f5f5; justify-content: flex-start; }
    .dropdown-menu a:hover { transform: none; background: #f0f4f8; } 

    .mobile-btn-wrapper { display: block; width: 100%; padding: 25px; box-sizing: border-box; }
    .mobile-btn-wrapper .btn-reservar { justify-content: center; width: 100%; font-size: 15px; padding: 15px; }

    .menu-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
        z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease;
    }
    .menu-overlay.active { opacity: 1; visibility: visible; }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: linear-gradient(135deg, var(--color-oscuro) 0%, #1a3039 100%);
    color: #d8e3e0;
    padding: 80px 0 20px 0;
    font-family: var(--font-main);
    border-top: 4px solid var(--color-atardecer);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.footer-grid {
    width: 90%; max-width: 1250px; margin: 0 auto;
    display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1.5fr; gap: 50px;
    margin-bottom: 60px; position: relative; z-index: 2;
}

.footer-brand { display: flex; flex-direction: column; }
.footer-brand img {
    height: 85px; width: auto; margin-bottom: 25px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); transition: transform 0.3s ease; align-self: flex-start;
}
.footer-brand img:hover { transform: scale(1.05); }
.footer-brand p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 25px; color: #c4d4d1; }

.trust-badges { display: flex; gap: 15px; flex-wrap: wrap; }
.trust-badges span {
    background: rgba(0, 0, 0, 0.15); padding: 8px 15px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 700; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; gap: 8px;
}
.trust-badges i { color: var(--color-turquesa); }

.footer-title {
    color: #FFFFFF; font-size: 1.15rem; font-weight: 800;
    margin-bottom: 30px; letter-spacing: 1px;
    position: relative; padding-bottom: 10px; text-transform: uppercase;
}
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; background-color: var(--color-atardecer); border-radius: 2px;
}

.footer-links ul, .footer-contact ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: #c4d4d1; text-decoration: none; font-size: 0.95rem;
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
}
.footer-links a i { font-size: 0.7rem; opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; color: var(--color-atardecer);}
.footer-links a:hover { color: #FFF; transform: translateX(5px); }
.footer-links a:hover i { opacity: 1; transform: translateX(0); }

.footer-contact li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; color: #c4d4d1; }
.footer-contact li a { color: #c4d4d1; text-decoration: none; transition: color 0.3s ease; }
.footer-contact li a:hover { color: var(--color-turquesa); }
.footer-contact i { color: var(--color-turquesa); font-size: 1.2rem; margin-top: 2px; }

.footer-newsletter p { font-size: 0.9rem; margin-bottom: 20px; color: #c4d4d1; line-height: 1.6;}
.newsletter-form { display: flex; gap: 8px; margin-bottom: 25px; }
.newsletter-form input {
    width: 100%; padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; color: #FFF; font-family: var(--font-main); outline: none; transition: 0.3s ease;
}
.newsletter-form input:focus { border-color: var(--color-turquesa); background: rgba(255, 255, 255, 0.1); }
.newsletter-form button {
    background-color: var(--color-atardecer); color: #FFF;
    border: none; padding: 0 22px; border-radius: 10px;
    cursor: pointer; transition: all 0.3s ease; font-size: 1.1rem;
}
.newsletter-form button:hover { background-color: #d65f41; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(231, 111, 81, 0.3); }

.social-icons { display: flex; gap: 12px; }
.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; 
    color: #FFF; font-size: 1.1rem; text-decoration: none; transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--color-turquesa); border-color: var(--color-turquesa);
    transform: translateY(-5px); box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

.footer-bottom {
    width: 90%; max-width: 1250px; margin: 0 auto;
    padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; position: relative; z-index: 2;
}

.copyright, .credits { color: #8ba8a3; }
.copyright a { color: inherit !important; text-decoration: none !important; pointer-events: none; }
.equinoweb-brand { color: #fff; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.equinoweb-brand i { color: var(--color-turquesa); }

@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .site-footer { padding: 50px 0 20px 0; } 
    .footer-grid { grid-template-columns: 1fr; gap: 45px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand img { align-self: center; height: 75px; margin-bottom: 15px; }
    .trust-badges { justify-content: center; width: 100%; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* =========================================
   LOADER
   ========================================= */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #FFFFFF;
    display: flex; justify-content: center; align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.loader-logo { width: 150px; height: auto; animation: latido 1.5s infinite alternate; }
.circular-spinner {
    width: 45px; height: 45px; border: 4px solid #E8F7FA;
    border-top: 4px solid var(--color-acento); border-radius: 50%;
    animation: girar 1s linear infinite;
}
@keyframes girar { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes latido { 0% { transform: scale(0.95); opacity: 0.8; } 100% { transform: scale(1.05); opacity: 1; } }
