/*
 * ╔══════════════════════════════════════════════════════════════════════════╗
 * ║                      🌊 Sea & Flavor - Estilos Principales 🦀                      ║
 * ╠══════════════════════════════════════════════════════════════════════════╣
 * ║ Este documento CSS organiza todos los estilos para la landing page.        ║
 * ║ Seccionado para facilitar la navegacion y mantenimiento.                   ║
 * ╠══════════════════════════════════════════════════════════════════════════╣
 * ║                            ÍNDICE DE SECCIONES                             ║
 * ╠══════════════════════════════════════════════════════════════════════════╣
 * ║ 1. CONFIGURACIÓN DE VARIABLES (THEME)        : Línea   1                  ║
 * ║ 2. ESTILOS GLOBALES Y UTILIDADES             : Línea  16                  ║
 * ║ 3. COMPONENTES: LOGO Y NAVEGACIÓN            : Línea  74                  ║
 * 4. HEADER FIXED (ESTÁTICO Y DINÁMICO)        : Línea 104                  ║
 * 5. SECCIÓN 1: HERO (BIENVENIDA)              : Línea 134                  ║
 * 6. SECCIÓN 2: MENÚ (PDF VIEWER)              : Línea 186                  ║
 * 7. SECCIÓN 3: EXPERIENCIAS (TESTIMONIALES)   : Línea 250                  ║
 * 8. SECCIÓN 4: GALERÍA (ESTILO BENTO)         : Línea 301                  ║
 * 9. LIGHTBOX (VISOR DE IMÁGENES)              : Línea 374                  ║
 * 10. SECCIÓN 5: RESERVAS                      : Línea 418                  ║
 * 11. SECCIÓN 6: UBICACIÓN Y MAPA              : Línea 462                  ║
 * 12. RECURSOS ADICIONALES Y CORRECCIONES PDF  : Línea 498                  ║
 * 13. ANIMACIONES DE ENTRADA (REVEAL)          : Línea 510                  ║
 * 14. BOTÓN FLOTANTE DE WHATSAPP               : Línea 536                  ║
 * 15. FOOTER (PIE DE PÁGINA)                   : Línea 603                  ║
 * 16. MEDIA QUERIES (ADAPTACIÓN MÓVIL)         : Línea 617                  ║
 * ╚══════════════════════════════════════════════════════════════════════════╝
 */

/* ==========================================================================
   CONFIGURACIÓN DE VARIABLES (THEME)
   ========================================================================== */
:root {
  --bs-primary-border-subtle: #B8952E;
  --bs-primary-text-title: #0077B6;
  --bs-primary-text:#2B2D42 ;
  --bs-active: #1ea5bd;
  --bs-background-primary: #F8F9FA;
  --bs-primary-dark: #003049;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

/* ==========================================================================
   ESTILOS GLOBALES Y UTILIDADES
   ========================================================================== */
* {
    font-family: var(--font-body);
    font-style: normal;
    
}

.text-primary {
    color: var(--bs-active) !important;
}

.text-title {
    color: var(--bs-primary-text-title) !important;
}

.text-title-sm {
    color: var(--bs-primary-text-title);
}

.text-active {
    color: var(--bs-active) !important;
}

.text-active-alt {
    color: var(--bs-active);
    letter-spacing: 2px;
}

.border-active-bottom {
    width: 60px;
    height: 3px;
    background-color: var(--bs-active);
}

.border-start-active {
    border-left: 4px solid var(--bs-active) !important;
}

.border-map {
    border: 8px solid white;
}

.fs-display-1 {
    font-size: 3rem;
}

.text-primary-dim {
    color: var(--bs-primary-text-title);
    opacity: 0.5;
}

h1, h2, h3, h4, h5, h6{
    color: var(--bs-primary-text-title) !important;
}
p{
    color: var(--bs-primary-text) !important;
}
/* ==========================================================================
   COMPONENTES: LOGO Y NAVEGACIÓN
   ========================================================================== */
.logo {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.logo-transition {
    transition: height 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.navbar-div ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar-div a {
    text-decoration: none;
    color: var(--bs-primary-text-title);
    transition: all 0.3s ease-in-out;
}

.navbar-div a:hover {
    color: var(--bs-active) !important;
    text-shadow: 0 0 6px var(--bs-active);
}

/* ==========================================================================
   HEADER FIXED (ESTÁTICO Y DINÁMICO)
   ========================================================================== */
body {
    padding-top: 140px; /* Evita que el hero quede bajo el header fijo */
}

#main-header, .header-inner {
    transition: padding 0.4s ease-in-out, background-color 0.4s ease;
    will-change: padding;
}

#main-header .logo {
    max-width: 200px; 
}

/* Clase activada mediante JavaScript al hacer scroll */
.header-scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: rgba(248, 249, 250, 0.95) !important;
}

.header-scrolled .logo {
    max-height: 80px;
}

.header-scrolled .nav-link {
    font-size: 0.8rem !important; 
}

/* ==========================================================================
   SECCIÓN 1: HERO (BIENVENIDA)
   ========================================================================== */
.hero-section {
    background-image: url('/assets/img/img-sections/hero/hero-1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section .overlay {
    background-color: rgba(248, 249, 250, 0.85); 
}

.title-hero {
    font-family: var(--font-display);
    color: var(--bs-primary-text);
}

.text-hero {
    font-family: var(--font-body);
    color: var(--bs-primary-text);
    line-height: 1.6;
}

.hero-img {
    max-height: 500px;
    object-fit: cover;
    border: 3px solid var(--bs-background-primary);
}

.btn-hero-reserva {
    background-color: var(--bs-primary-text-title);
    color: white;
    border-radius: 30px;
    padding: 10px 30px;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(11, 193, 206, 0.5) !important;
}

.btn-hero-reserva:hover {
    background-color: var(--bs-active);
    color: var(--bs-primary-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   SECCIÓN 2: MENÚ (PDF VIEWER)
   ========================================================================== */
.pdf-viewer-container {
    border: none !important;
    box-shadow: 0 4px 15px rgba(11, 193, 206, 0.649) !important;
    border-radius: 15px;
    background-color: var(--bs-background-primary) !important;
}

iframe {
    filter: brightness(1.05) contrast(95%);
    background-color: white;
}

#menu iframe {
    background-color: white !important;
    filter: brightness(1.05) contrast(98%);
}

.btn-menu-action {
    background-color: var(--bs-primary-text-title);
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--bs-primary-text-title);
}

.btn-menu-action:hover {
    background-color: var(--bs-active);
    color: var(--bs-background-primary) !important;
    transform: translateY(-2px);
}

.btn-menu-download {
    background-color: var(--bs-primary-text-title);
    color: var(--bs-background-primary) !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--bs-active);
}

.btn-menu-download:hover {
    background-color: var(--bs-active);
    transform: translateY(-2px);
}

.btn-menu-action-div {
    margin-top: 1rem;
}

.d-lg-none.bg-light {
    background-color: var(--bs-background-primary) !important;
    border-radius: 12px;
}

.bi-file-earmark-pdf.text-primary {
    color: var(--bs-primary-text-title) !important;
}

/* ==========================================================================
   SECCIÓN 3: EXPERIENCIAS (TESTIMONIALES)
   ========================================================================== */
.experiencias-section {
    background-image: url('/assets/img/img-sections/experiencias/experiencias.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.experiencias-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 249, 250, 0.85);
    z-index: 1;
}

.testimonial-card {
    background-color: var(--bs-background-primary);
    border-radius: 20px;
    margin-top: 50px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.profile-img-wrapper {
    width: 100px;
    height: 100px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bs-background-primary);
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--bs-active);
}

/* ==========================================================================
   SECCIÓN 4: GALERÍA (ESTILO BENTO)
   ========================================================================== */
.btn-filter {
    background-color: transparent;
    color: var(--bs-primary-text-title);
    border: 2px solid var(--bs-primary-text-title);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--bs-active);
    color: var(--bs-background-primary);
    border-color: var(--bs-active);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

@media (min-width: 768px) {
    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bs-primary-dark) 0%, transparent 80%); 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================================================
   LIGHTBOX (VISOR DE IMÁGENES)
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay:not(.d-none) {
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(11, 193, 206, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--bs-active);
}

/* ==========================================================================
   SECCIÓN 5: RESERVAS
   ========================================================================== */
.reservas-section {
    background-image: url('../img/img-sections/reservas/reservas.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

.reservas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 249, 250, 0.85); 
    z-index: 1;
}

.btn-whatsapp-lg {
    background-color: #25D366;
    color: white !important;
    padding: 15px 40px;
    border-radius: 15px;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: pulse-white 2s infinite;
    cursor: pointer;
}

.btn-whatsapp-lg:hover {
    transform: scale(1.05);
    background-color: #1ebe57;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4) !important;
}

.text-reservas {
    color: var(--bs-primary-text) !important;
}

/* ==========================================================================
   SECCIÓN 6: UBICACIÓN Y MAPA
   ========================================================================== */
.map-container {
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: scale(1.01);
}

.info-location-card {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.info-location-card h5 {
    color: var(--bs-primary-text-title);
    font-size: 1.1rem;
}

.info-location-card .icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 193, 206, 0.1);
    border-radius: 12px;
}

.logo-footer {
    max-width: 150px;
    margin-bottom: 20px;
}

/* ==========================================================================
   RECURSOS ADICIONALES Y CORRECCIONES PDF
   ========================================================================== */
@media (max-height: 800px) {
    embed {
        height: 600px;
    }
}

.bi-file-earmark-pdf {
    color: var(--bs-primary-text-title) !important;
}

/* ==========================================================================
   ANIMACIONES DE ENTRADA (REVEAL)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.whatsapp-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    color: white;
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: fixed; 
    bottom: 42px; 
    right: 100px;
    background-color: var(--bs-primary-text-title);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid var(--bs-active); 
    z-index: 9999;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.whatsapp-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-tooltip:hover {
    background-color: var(--bs-active);
    color: var(--bs-background-primary);
    transition: all 0.6s ease-in-out;
}   

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
footer div a, h1, h2, h3, h4, h5, h6 {
    text-decoration: none;
    color: var(--bs-primary-text);
    transition: all 0.3s ease-in-out;
}

footer div a:hover {
    color: var(--bs-active);
    transition: color 0.3s ease-in-out;
}

/* ==========================================================================
   MEDIA QUERIES (ADAPTACIÓN MÓVIL)
   ========================================================================== */

/* Móviles pequeños */
@media (max-width: 576px) {
    .whatsapp-tooltip {
        right: 85px;      
        bottom: 40px;     
        font-size: 12px;   
        padding: 5px 10px;
        margin-right: 10px; 
    }
    .head-div {
        justify-content: space-between !important;
    }
    .logo {
        max-width: 150px; 
    }
    .navbar-div a {
        font-size: 18px !important;
    }
}

/* Tablets y Menú Colapsable */
@media (max-width: 991px) {
    .navbar-div ul {
        flex-direction: column;
        width: 100%;
        padding: 15px 0;
        gap: 15px;
    }
    .header-scrolled .logo {
        max-height: 80px;
        width: auto;
    }
    .header-scrolled .bi-list {
        font-size: 1.8rem !important;
        transition: all 0.4s ease-in-out;
    }
    .logo {
        max-width: 150px; 
    }
    .navbar-div a {
        font-size: 18px !important;
    }
    .head-div {
        justify-content: space-between !important;
    }
    .map-container {
        height: 350px !important;
        margin-top: 30px;
    }
}

/* Efectos de Scroll (Header Inner) */
#main-header.header-scrolled .header-inner {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

#main-header.header-scrolled .logo-transition {
    transform: scale(0.9);
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes pulse-white {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
