/* Hero New Font Faces */
@font-face {
    font-family: 'Hero New';
    src: url('../assets/hero-new-cufonfonts/Hero%20New%20Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hero New';
    src: url('../assets/hero-new-cufonfonts/Hero%20New%20Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hero New';
    src: url('../assets/hero-new-cufonfonts/Hero%20New%20Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hero New';
    src: url('../assets/hero-new-cufonfonts/Hero%20New%20Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hero New';
    src: url('../assets/hero-new-cufonfonts/Hero%20New%20ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary-dark: #081F5C; /* BLAU OBSCUR */
    --color-primary: #1855B2;      /* BLAU SECUNDARI */
    --color-primary-light: #7096D1; /* BLAU GRIS */
    --color-sand: #FFF9F0;         /* BLANC CREMA */
    --color-sky: #BAD6EB;          /* BLAU CEL */
    --color-accent: #1855B2;       /* BLAU SECUNDARI for accents */
    
    --color-white: #ffffff;
    --color-text: #081F5C;         /* BLAU OBSCUR */
    --color-text-secondary: #605e5c;
    
    --fluent-shadow: 0 4px 12px rgba(7,31,92,0.1);
    --fluent-shadow-large: 0 20px 50px rgba(7,31,92,0.15);
    --border-radius: 12px;
    --container-width: 1300px;
    --border-radius: 12px;
    --container-width: 1300px;
    
    /* Typography System */
    --font-hero: 'Hero New', 'Plus Jakarta Sans', system-ui, sans-serif;
    --tracking-100: 0.1em;
}

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

body {
    font-family: var(--font-hero);
    font-weight: 400; /* Regular for body */
    letter-spacing: var(--tracking-100);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .hero h1 {
    font-family: var(--font-hero);
    font-weight: 800; /* ExtraBold para Títulos */
    letter-spacing: var(--tracking-100);
}

.subtitle {
    font-family: var(--font-hero);
    font-weight: 800; /* ExtraBold para Sub-títulos */
    letter-spacing: var(--tracking-100);
}

footer, .footer-section, .footer-bottom {
    font-family: var(--font-hero);
    font-weight: 300; /* Light para Pies de página */
    letter-spacing: var(--tracking-100);
}

[x-cloak] { display: none !important; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Top Bar */
.top-bar {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 4px 0;
    font-size: 11px;
    font-weight: 600;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    color: white;
}

.top-bar-left a {
    color: white !important;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s;
}

.top-bar-left a:hover { color: #ccc !important; }

/* Google Translate Native Customization from Reference */
#goog-gt-tt { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  padding: 0 10px !important;
  height: 38px !important;
  min-width: 80px !important;
  justify-content: center !important;
}

.goog-te-gadget-simple:hover { opacity: 0.8; }

.goog-te-gadget-simple img { display: none !important; }

.goog-te-gadget-simple .goog-te-menu-value {
  color: var(--color-primary-dark) !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  text-transform: uppercase;
}

.goog-te-gadget-simple .goog-te-menu-value span[style*="color: #bbb"] { display: none !important; }

.btn-my-booking {
    background-color: var(--color-accent);
    color: white !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-my-booking:hover { transform: scale(1.05); background-color: var(--color-primary-light); }

/* 2. Main Header */
header {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 90px; }

.main-nav { display: flex; list-style: none; gap: 30px; }
.main-nav a {
    text-decoration: none;
    color: var(--color-primary-dark) !important;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}
.main-nav a:hover { opacity: 0.7; color: var(--color-primary) !important; }

.btn-primary {
    background-color: var(--color-accent) !important;
    color: white !important;
    font-weight: 800;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary:hover { background-color: var(--color-primary-light) !important; transform: translateY(-2px); }

/* 3. Hero Section Blocky */
.hero {
    position: relative;
    min-height: 90vh;
    padding: 180px 0 120px 0;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(7,31,92,0.3), rgba(7,31,92,0.6));
    z-index: -1;
}

.hero-content { color: white; width: 100%; }
.hero-text h1 { font-size: 4.8rem; font-weight: 900; margin-bottom: 10px; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* Booking Tabs & Panel */
.search-tabs { display: flex; gap: 4px; align-items: flex-end; }

.tab-item {
    background: rgba(7, 31, 92, 0.9);
    color: white;
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-item.active { background: var(--color-primary); }

.pax-selector-box-hero {
    /* Styles inherited from tab-item in HTML */
}

.search-box-blocky {
    background: white;
    display: flex;
    border-radius: 0 20px 24px 24px;
    box-shadow: 0 30px 60px rgba(7,31,92,0.3);
    /* overflow: hidden; Removed to allow autocomplete dropdowns to overflow */
}

.search-field {
    flex: 1;
    padding: 25px 30px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 11px;
    color: var(--color-primary-light);
    font-weight: 900;
    text-transform: uppercase;
}

.search-field input {
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-dark);
    outline: none;
    background: transparent;
}

input, select, textarea {
    color: var(--color-primary-dark) !important;
    font-family: inherit;
}

td {
    color: var(--color-primary-dark) !important;
}

.btn-blocky-search {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0 50px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0 20px 24px 0; /* Añadido porque el padre ya no tiene overflow hidden */
}
.btn-blocky-search:hover { background: var(--color-primary-dark); }

/* 4. Blocky Informative Sections */
.info-blocks { padding: 100px 0; background: var(--color-sand); }
.blocks-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 35px; }

.info-card {
    border-radius: 24px;
    overflow: hidden;
    color: white;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 45px;
    transition: all 0.4s ease;
}

.info-card.promo {
    background-image: url('https://images.unsplash.com/photo-1519046904884-53103b34b206?q=80&w=1000&auto=format&fit=crop');
    background-size: cover; background-position: center;
}
.info-card.promo::before, .info-card.newsletter::before, .info-card.tips::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(7,31,92,0.9), transparent); z-index: 0; }
.info-card.newsletter { background-color: var(--color-primary); }
.info-card.tips { background-color: var(--color-primary-light); }
.info-card-content { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.info-card h2 { font-size: 2.8rem; font-weight: 900; }

/* 5. Destinos (CON DECORACIÓN SVG) */
.destinos {
    padding: 120px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.bg-decor {
    position: absolute;
    z-index: 0;
    opacity: 0.04; /* Muy sutil */
    pointer-events: none;
    color: var(--color-primary);
}

.bg-decor-top-right { top: -30px; right: -30px; width: 250px; transform: rotate(15deg); }
.bg-decor-bottom-left { bottom: -30px; left: -30px; width: 250px; transform: rotate(-15deg); }
.bg-decor-center-right { top: 40%; right: -30px; width: 200px; }
.bg-decor svg { width: 100%; height: auto; }

.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    position: relative;
    z-index: 1;
}
.destino-card {
    overflow: hidden; background: white; border-radius: 24px; border: 1px solid #f0f0f0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column;
}
.destino-card:hover { transform: translateY(-15px); box-shadow: 0 40px 80px rgba(7,31,92,0.15); }
.destino-img { height: 280px; background-size: cover; background-position: center; transition: transform 1.2s ease; }
.destino-card:hover .destino-img { transform: scale(1.1); }
.destino-info { padding: 35px; flex: 1; display: flex; flex-direction: column; }
.destino-info h3 { font-size: 1.8rem; font-weight: 900; color: var(--color-primary-dark); }
.destino-info .description { font-size: 1.05rem; color: var(--color-text-secondary); margin-bottom: 30px; line-height: 1.6; flex: 1; }
.destino-pricing { display: flex; justify-content: space-between; align-items: center; padding-top: 25px; border-top: 2px solid var(--color-sand); }
.destino-pricing .value { font-size: 2.4rem; font-weight: 900; color: var(--color-primary); }

.btn-cta {
    background: var(--color-primary); color: white; padding: 14px 30px; border-radius: 14px;
    text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 10px;
}

/* Utils */
.autocomplete-results { position: absolute; top: 100%; left: 0; right: 0; background: white; z-index: 100; max-height: 300px; overflow-y: auto; box-shadow: var(--fluent-shadow-large); }
.result-item { padding: 15px; cursor: pointer; border-bottom: 1px solid #f5f5f5; color: var(--color-primary-dark); }
.pax-dropdown { position: absolute; top: 110%; left: 0; background: white; padding: 25px; border-radius: 14px; box-shadow: var(--fluent-shadow-large); z-index: 100; min-width: 280px; }
.btn-pax { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--color-primary); background: white; color: var(--color-primary); font-weight: 800; cursor: pointer; }

/* Pines UI Datepicker */
.pines-datepicker-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--fluent-shadow-large);
    z-index: 200;
    width: 280px;
    border: 1px solid #eee;
}
.pines-btn-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
}
.pines-btn-nav:hover { background: #f5f5f5; }
.pines-day {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-primary-dark);
    font-weight: 700;
    transition: all 0.2s;
}
.pines-day:hover { background: var(--color-sky); color: var(--color-primary-dark); }
.pines-day-active { background: var(--color-primary) !important; color: white !important; }

.pines-day-active { background: var(--color-primary) !important; color: white !important; }

/* Mapa Leaflet y Footer */
.airport-tooltip { background: white; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 8px; font-weight: bold; color: var(--color-primary-dark); padding: 5px 10px; }
.leaflet-tooltip-top:before { border-top-color: white !important; }

footer { 
    position: relative;
    background: var(--color-primary-dark); 
    color: white; 
    padding: 80px 0 40px; 
    font-size: 14px;
    z-index: 1;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../assets/images/patron11-02.png');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.08; /* Subtle blend */
    z-index: -1;
    pointer-events: none;
}

.pattern-bg-light {
    position: relative;
    z-index: 1;
}
.pattern-bg-light::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../assets/images/patron1-01.png');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.03; /* Subtle blend */
    z-index: -1;
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
}
.footer-about {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}
.footer-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--color-white);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--color-sky); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
.mobile-only { display: none !important; }
@media (max-width: 768px) {
    .top-bar-right .btn-my-booking { display: none !important; }
    .mobile-only { display: block !important; }
    
    .desktop-nav-wrapper { 
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 15px !important;
        z-index: 999;
    }
    .desktop-nav-wrapper.mobile-open {
        display: flex !important;
    }
    .main-nav { 
        display: flex !important; 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }
    
    .search-box-blocky { flex-direction: column; }
    .search-field { border-right: none; border-bottom: 1px solid #eee; }
    .blocks-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.5rem !important; }
    section { padding: 50px 0 !important; }
    section h2 { font-size: 2.2rem !important; }
    .footer-logo { max-width: 100% !important; }
    .header-actions { flex-direction: column !important; width: 100%; align-items: stretch !important; }
}

/* 8. Cookies Bar */
.cookies-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(7,31,92,0.2);
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--color-sky);
    max-width: 1000px;
    margin: 0 auto;
}

.cookies-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.cookies-text a {
    color: var(--color-primary);
    font-weight: 700;
}

/* 9. WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 95px;
    right: 20px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.whatsapp-bubble {
    background: white;
    padding: 12px 20px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-dark);
    animation: fadeInBubble 0.5s ease-out both;
    animation-delay: 2s;
    border: 1px solid #eee;
    white-space: nowrap;
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.taxi-anim {
    color: white;
    width: 32px;
    height: 32px;
    animation: taxiDrive 3s infinite linear;
}

@keyframes taxiDrive {
    0% { transform: translateX(-45px); opacity: 0; }
    10% { opacity: 1; }
    45% { transform: translateX(0); }
    55% { transform: translateX(0); }
    90% { opacity: 1; }
    100% { transform: translateX(45px); opacity: 0; }
}

@keyframes fadeInBubble {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .cookies-bar {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 20px;
    }
    .whatsapp-float {
        bottom: 95px;
        right: 20px;
    }
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
}

/* Google Translate Banner Fix */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }

/* Datepicker disabled states */
.pines-day-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    color: #999 !important;
}
