/**
 * EL CORAZÓN DEL CARIBE - UNIFIED DESIGN SYSTEM
 * Premium Travel Brand Styles
 * Compatible con Bootstrap 5 + Hostify Integration
 */

/* ======================================== 1. IMPORTACIONES ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ======================================== 2. VARIABLES CSS (Design Tokens) ======================================== */
:root {
    --brand: #0b4d7a;
    --brand2: #1c78b3;
    --brand-light: #e0f2fe;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --wa: #25d366;
    --wa-hover: #20bd5a;
    --text: #0f172a;
    --text-light: #475569;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --blur: 12px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --h1: clamp(32px, 5vw, 48px);
    --h2: clamp(24px, 4vw, 36px);
    --h3: clamp(18px, 3vw, 24px);
    --body: 16px;
    --small: 14px;
    --tiny: 12px;
}

/* ======================================== HEADER REMASTER ======================================== */
.site-header {
    background: rgba(239, 247, 252, 0.96);
    border-bottom-color: rgba(11, 77, 122, 0.14);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.site-header nav {
    min-height: 72px;
    padding: 10px 0;
}

.site-header .brand {
    min-width: max-content;
    gap: 10px;
    font-weight: 500;
}

.site-header .brand:hover {
    opacity: 1;
}

.site-header .brand-logo {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(11, 77, 122, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 2px 8px rgba(11, 77, 122, 0.08);
}

.brand-copy {
    display: grid;
    color: #0f3550;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 15px;
    font-weight: 500;
}

.brand-copy small {
    margin-top: 3px;
    color: #527084;
    font-size: 12px;
    font-weight: 400;
}

.site-header .menu {
    align-items: center;
    gap: 4px;
}

.site-header .menu a {
    position: relative;
    padding: 10px 12px;
    border-radius: 999px;
    color: #4b6475;
    font-size: 14px;
    font-weight: 500;
}

.site-header .menu a:hover,
.site-header .menu a:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    color: #0b4d7a;
}

.site-header .menu a.is-active {
    background: #fff;
    color: #0b4d7a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.site-header .actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action,
.site-header .actions .btn-icon {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #415d70;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.header-action:hover,
.header-action:focus-visible,
.site-header .actions .btn-icon:hover,
.site-header .actions .btn-icon:focus-visible {
    border-color: rgba(11, 77, 122, 0.24);
    background: #fff;
    color: #0b4d7a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 120, 179, 0.13);
}

.site-header .actions .btn-wa {
    background: #177d66;
    color: #fff;
}

.site-header .actions .btn-wa:hover,
.site-header .actions .btn-wa:focus-visible {
    background: #126553;
    color: #fff;
}

.site-header .actions > a[href*="/admin/"] {
    min-height: 40px;
    border-color: rgba(11, 77, 122, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #0b4d7a;
    font-size: 14px;
    font-weight: 500;
}

.language-control {
    position: relative;
}

.language-trigger {
    width: auto;
    min-width: 58px;
    gap: 6px;
    padding: 0 10px;
}

.language-trigger svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.language-short {
    font-size: 12px;
    font-weight: 500;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    width: 272px;
    max-height: min(430px, calc(100vh - 96px));
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(11, 77, 122, 0.18);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.language-menu[hidden] {
    display: none;
}

.language-option {
    display: grid;
    width: 100%;
    min-height: 44px;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #334155;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-checked="true"] {
    background: #e8f3fa;
    color: #0b4d7a;
    outline: none;
}

.language-flag {
    font-size: 20px;
}

.language-check {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #0b4d7a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

@media (max-width: 1020px) {
    .brand-copy {
        display: none;
    }

    .site-header .menu a {
        padding-inline: 9px;
    }
}

@media (max-width: 767px) {
    .site-header nav {
        min-height: 64px;
        gap: 10px;
    }

    .site-header .brand-logo {
        width: 40px;
        height: 40px;
    }

    .site-header .menu {
        top: 64px;
        gap: 4px;
        padding: 12px 16px 18px;
        border-top: 1px solid rgba(11, 77, 122, 0.12);
        background: rgba(239, 247, 252, 0.98);
    }

    .site-header .menu a {
        padding: 12px 14px;
    }

    .site-header .actions > a[href*="/admin/"] {
        display: none;
    }

    .site-header .actions {
        margin-left: auto;
    }

    .language-menu {
        position: fixed;
        top: 70px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .menu-toggle {
        order: 4;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid rgba(11, 77, 122, 0.15);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.66);
    }

    .menu-toggle span {
        height: 2px;
    }
}

@media (max-width: 430px) {
    .site-header .actions .btn-wa {
        display: none;
    }
}

/* ======================================== 3. RESET Y BASE ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--body);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--brand2);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--brand);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ======================================== 4. LAYOUT - CONTAINER ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 900px;
}

/* ======================================== 5. NAVBAR (ECC-NAVBAR) ======================================== */
.ecc-navbar,
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ecc-navbar nav,
header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: var(--spacing-lg);
}

.ecc-navbar .brand,
header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    color: var(--brand);
    text-decoration: none;
    transition: opacity 0.2s;
}

.ecc-navbar .brand:hover,
header .brand:hover {
    opacity: 0.8;
}

.ecc-navbar .brand-logo,
header .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.ecc-navbar .brand-name,
header .brand-name {
    display: none;
}

@media (min-width: 640px) {
    .ecc-navbar .brand-name,
    header .brand-name {
        display: none; /* Siempre oculto */
    }
}

/* Menú hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.ecc-navbar .menu,
header .menu {
    display: none;
    gap: var(--spacing-sm);
}

/* Menú móvil */
@media (max-width: 767px) {
    .ecc-navbar .menu,
    header .menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
        z-index: 1000;
    }

    .ecc-navbar .menu.active,
    header .menu.active {
        display: flex;
    }

    .ecc-navbar .menu a,
    header .menu a {
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .ecc-navbar .menu,
    header .menu {
        display: flex;
    }
}

.ecc-navbar .menu a,
header .menu a {
    padding: 8px 16px;
    font-weight: 600;
    font-size: var(--small);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.ecc-navbar .menu a:hover,
header .menu a:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.ecc-navbar .actions,
header .actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* ======================================== 6. BOTONES (ECC-BTN) ======================================== */
/* Botones de ícono */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-icon .icon {
    width: 22px;
    height: 22px;
}

.btn-icon.btn-wa {
    background: var(--wa);
    color: white;
}

.btn-icon.btn-wa:hover {
    background: var(--wa-hover);
    transform: scale(1.05);
}

.btn-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--success);
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.btn-sm {
    font-size: 14px !important;
    padding: 10px 18px !important;
}

.ecc-btn-primary,
.btn-search,
button[type="submit"]:not(.ecc-btn-secondary) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: var(--small);
    color: white;
    background: var(--brand2);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(28, 120, 179, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ecc-btn-primary:hover,
.btn-search:hover,
button[type="submit"]:not(.ecc-btn-secondary):hover {
    background: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(28, 120, 179, 0.3);
}

.ecc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: var(--small);
    color: var(--brand);
    background: white;
    border: 2px solid var(--brand);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ecc-btn-secondary:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
}

.ecc-btn-whatsapp,
.btn-wa,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: var(--small);
    color: white !important;
    background: var(--wa);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.ecc-btn-whatsapp:hover,
.btn-wa:hover,
.btn-whatsapp:hover {
    background: var(--wa-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    color: white !important;
}

header .btn-wa {
    padding: 10px;
    width: 42px;
    height: 42px;
}

.icon,
.icon-wa {
    width: 20px;
    height: 20px;
}

/* ======================================== 7. HERO (ECC-HERO) ======================================== */
.ecc-hero,
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.35) 100%),
        url('/assets/hero.jpg') center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.ecc-hero::before,
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: saturate(1.1) contrast(1.05);
    z-index: 0;
}

.ecc-hero .container,
.hero .container {
    position: relative;
    z-index: 1;
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.ecc-hero-content,
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.ecc-hero-title,
.hero-title {
    font-size: var(--h1);
    font-weight: 900;
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ecc-hero-subtitle,
.hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 600;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
}

/* ======================================== 8. GLASS CARD (ECC-GLASS) ======================================== */
.ecc-glass,
.glass-card,
.search {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.search-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* ======================================== 9. CARDS (ECC-CARD) ======================================== */
.ecc-card,
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.ecc-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-destination {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: var(--tiny);
    font-weight: 700;
}

.card-body {
    padding: var(--spacing-md);
}

.card-body h3 {
    font-size: var(--h3);
    margin: 0 0 8px;
}

.card-body p {
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

/* ======================================== 10. SECCIONES (ECC-SECTION) ======================================== */
.ecc-section,
section {
    padding: var(--spacing-2xl) 0;
}

.ecc-section-title,
.section-title {
    font-size: var(--h2);
    text-align: center;
    margin: 0 0 12px;
}

.ecc-section-subtitle,
.sub {
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    margin: 0 auto 32px;
    max-width: 70ch;
}

/* ======================================== 11. GRIDS ======================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* ======================================== 12. BENEFIT CARDS ======================================== */
.benefit-card,
.item {
    padding: var(--spacing-lg);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.benefit-card:hover,
.item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h3,
.item h3 {
    font-size: var(--h3);
    margin: 0 0 8px;
}

.benefit-card p,
.item p {
    color: var(--muted);
    margin: 0;
    font-weight: 500;
}

.list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* ======================================== 13. CTA BLOCKS ======================================== */
.cta,
.cta-help {
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
}

.cta-content {
    margin-bottom: var(--spacing-lg);
}

.cta-title {
    font-size: var(--h2);
    margin: 0 0 12px;
}

.cta-text {
    margin: 0;
    opacity: 0.95;
    font-weight: 600;
}

/* ======================================== 14. FORMULARIOS ======================================== */
.search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .search {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .search {
        grid-template-columns: repeat(4, 1fr);
    }
}

.search input,
.search select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    min-height: 48px; /* Estilo Airbnb inputs */
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--small);
    font-weight: 600;
    background: white;
    transition: all 0.2s;
}

.search input:focus,
.search select:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand2);
    box-shadow: 0 0 0 4px rgba(28, 120, 179, 0.1);
}

.search-toggle {
    grid-column: 1 / -1;
}

.search-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: var(--small);
    color: var(--muted);
    cursor: pointer;
}

.search-toggle input[type="checkbox"] {
    width: auto;
}

.search-guests {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.search-advanced {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.btn-search {
    grid-column: 1 / -1;
}

.form-hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: var(--tiny);
    color: var(--muted);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ======================================== 15. FOOTER (ECC-FOOTER) ======================================== */
.ecc-footer,
footer {
    background: #0B1220;
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
}

.ecc-footer .container,
footer .container {
    text-align: center;
}

.ecc-footer p,
footer p {
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.ecc-footer a,
footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.ecc-footer a:hover,
footer a:hover {
    color: white;
}

/* ======================================== 16. UTILIDADES ======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* ======================================== 17. RESPONSIVE ======================================== */
@media (max-width: 767px) {
    :root {
        --spacing-2xl: 32px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .ecc-navbar nav,
    header nav {
        flex-wrap: wrap;
    }
}

/* ======================================== 18. ANIMACIONES ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ======================================== 19. ACCESIBILIDAD ======================================== */
:focus-visible {
    outline: 3px solid var(--brand2);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ======================================== 20. OVERRIDES AIREADOS + COMPONENTES NUEVOS ======================================== */
:root {
    /* Paleta Airbnb/Turístico */
    --brand: #2563EB; /* Azul océano primario */
    --brand2: #1D4ED8; /* Azul profundo hover */
    --brand-light: #E0E7FF; /* Azul claro */
    --accent: #FB7185; /* Coral turístico */
    --accent-light: #FFE4E8; /* Coral claro */
    --text: #0F172A; /* Texto principal */
    --text-light: #475569; /* Texto secundario */
    --border: #E2E8F0; /* Bordes */
    --bg-light: #F8FAFC; /* Fondo */
}

/* Botones base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: var(--small);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary,
.btn-search,
button[type="submit"]:not(.ecc-btn-secondary) {
    color: #fff;
    background: var(--brand2);
    border: none;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover,
.btn-search:hover,
button[type="submit"]:not(.ecc-btn-secondary):hover {
    background: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.3);
}

.btn-outline,
.ecc-btn-secondary {
    color: var(--brand);
    background: #fff;
    border: 2px solid var(--brand);
}

.btn-outline:hover,
.ecc-btn-secondary:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
}

/* Chips de confianza debajo del buscador */
.trust-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.trust-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.trust-chip svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
}

/* Sticky Cart (desktop) */
@media (min-width: 1024px) {
    #openCart2.sticky-cart {
        position: fixed;
        right: 28px;
        bottom: 28px;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        border-radius: 999px;
    }
}

/* ======================================== HOME CONVERSION REMASTER ======================================== */
.home-hero {
    min-height: 720px;
    background:
        linear-gradient(90deg, rgba(4, 27, 45, 0.86) 0%, rgba(4, 37, 62, 0.68) 48%, rgba(4, 37, 62, 0.32) 100%),
        url('/assets/hero.jpg') center/cover no-repeat;
}

.home-hero::before {
    background: none;
    filter: none;
}

.home-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
    align-items: center;
    gap: 48px;
}

.home-hero .hero-content {
    max-width: 650px;
    margin: 0;
    text-align: left;
}

.hero-eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: #bde3fa;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.home-hero .hero-title {
    max-width: 16ch;
    margin-bottom: 18px;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-wrap: balance;
}

.home-hero .hero-subtitle {
    max-width: 58ch;
    font-size: clamp(16px, 1.7vw, 19px);
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-actions .btn {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 500;
}

.hero-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--brand);
}

.home-hero .search-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 0 0 auto;
}

.home-hero .search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px;
    border-color: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.search-heading {
    display: grid;
    grid-column: 1 / -1;
    gap: 3px;
    margin-bottom: 4px;
    color: var(--text);
}

.search-heading strong {
    font-size: 18px;
    font-weight: 500;
}

.search-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.home-hero .search input,
.home-hero .search select {
    min-height: 48px;
    font-weight: 400;
}

.home-hero .search-guests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-hero .btn-search {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 500;
}

.home-hero .trust-chips {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.home-hero .trust-chip {
    min-height: 44px;
    padding: 9px 13px;
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.92);
    color: #25465e;
    box-shadow: 0 2px 10px rgba(4, 27, 45, 0.12);
    font-size: 13px;
    font-weight: 400;
}

.home-hero .trust-chip svg {
    flex: 0 0 auto;
    color: var(--brand2);
}

.section-heading-centered {
    text-align: center;
}

.section-heading-centered .section-kicker,
.section-benefits .section-kicker,
.cta .section-kicker {
    color: var(--brand2);
}

.section-booking-steps,
.section-faq {
    background: #fff;
}

.booking-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.booking-steps li {
    position: relative;
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 210px;
    padding: 22px;
    border: 1px solid #dbe9f2;
    border-radius: 20px;
    background: #f7fbfe;
}

.booking-steps li > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.booking-steps h3 {
    margin: 0 0 7px;
    color: #143c58;
    font-size: 16px;
    font-weight: 500;
}

.booking-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.section-destinos .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
    margin-inline: auto;
}

.section-benefits .benefit-icon {
    background: var(--brand-light);
    color: var(--brand);
}

.section-benefits .cta-help {
    background: linear-gradient(145deg, #073a5f, #0b4d7a);
    text-align: left;
}

.section-benefits .cta-help .section-kicker {
    color: #bde3fa;
}

.section-benefits .cta-help .btn-whatsapp {
    display: inline-flex;
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.faq-list details {
    overflow: hidden;
    border: 1px solid #dbe5ec;
    border-radius: 16px;
    background: #fff;
}

.faq-list summary {
    position: relative;
    min-height: 56px;
    padding: 17px 52px 17px 18px;
    color: #173b54;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--brand2);
    font-size: 24px;
    font-weight: 400;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: '−';
}

.faq-list details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

main > .cta {
    border-radius: 0;
    background: linear-gradient(135deg, #073a5f, #0b4d7a);
}

main > .cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

main > .cta .cta-content {
    max-width: 680px;
    margin: 0;
    text-align: left;
}

main > .cta .section-kicker {
    color: #bde3fa;
}

.whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--wa);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    background: var(--wa-hover);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 12px 28px rgba(15, 23, 42, 0.24);
}

.whatsapp-fab svg {
    width: 27px;
    height: 27px;
}

@media (max-width: 920px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .home-hero .hero-content,
    .home-hero .search-wrapper {
        max-width: 680px;
        margin-inline: auto;
    }

    .home-hero .hero-content {
        text-align: center;
    }

    .home-hero .hero-title,
    .home-hero .hero-subtitle {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .booking-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-hero .container {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .home-hero .hero-title {
        font-size: clamp(34px, 11vw, 44px);
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .home-hero .search {
        grid-template-columns: 1fr;
        padding: 17px;
    }

    .home-hero .search-guests,
    .booking-steps,
    .section-destinos .grid {
        grid-template-columns: 1fr;
    }

    .booking-steps li {
        min-height: 0;
        grid-template-columns: 42px 1fr;
    }

    main > .cta .container {
        align-items: stretch;
        flex-direction: column;
    }

    main > .cta .cta-content {
        text-align: center;
    }

    .whatsapp-fab {
        right: 16px;
        bottom: 16px;
    }
}

/* Long translated navigation labels collapse before they can crowd the header. */
@media (min-width: 768px) and (max-width: 1120px) {
    .site-header .menu-toggle {
        display: flex;
        order: 4;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid rgba(11, 77, 122, 0.15);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.66);
    }

    .site-header .menu {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        padding: 14px 24px 20px;
        border-top: 1px solid rgba(11, 77, 122, 0.12);
        background: rgba(239, 247, 252, 0.98);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(12px);
    }

    .site-header .menu.active {
        display: flex;
    }

    .site-header .menu a {
        padding: 12px 14px;
    }
}

/* ======================================== DESTINATION EXPERIENCE CARDS ======================================== */
.section-destinos {
    background: #f6f9fc;
}

.section-destinos .section-kicker {
    color: var(--brand2);
}

.section-destinos .experience-grid {
    max-width: 1120px;
    gap: 22px;
}

.experience-card {
    display: grid;
    grid-template-rows: 250px 1fr;
    border-color: #dce6ee;
    border-radius: 22px;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 47, 69, 0.07);
}

.experience-card:hover,
.experience-card:focus-visible {
    border-color: rgba(28, 120, 179, 0.4);
    color: inherit;
    outline: none;
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 47, 69, 0.13);
}

.experience-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(28, 120, 179, 0.14), 0 16px 34px rgba(15, 47, 69, 0.13);
}

.experience-card .card-img {
    height: 250px;
    background-position: center;
}

.experience-card-business .card-img {
    background-position: center 62%;
}

.experience-label {
    position: absolute;
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(5, 40, 65, 0.84);
    color: #fff;
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 500;
}

.experience-card .card-body {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
}

.experience-card .card-body h3 {
    margin-bottom: 10px;
    color: #102f45;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.28;
}

.experience-card .card-body > p {
    margin-bottom: 18px;
    color: #5a7181;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.experience-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.experience-highlights li {
    padding: 6px 10px;
    border: 1px solid #d8e8f2;
    border-radius: 999px;
    background: #eff7fc;
    color: #315d78;
    font-size: 12px;
    font-weight: 400;
}

.experience-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--brand);
    font-size: 14px;
    font-weight: 500;
}

.experience-card:hover .experience-link span,
.experience-card:focus-visible .experience-link span {
    transform: translateX(3px);
}

.experience-link span {
    transition: transform 160ms ease;
}

@media (max-width: 640px) {
    .experience-card {
        grid-template-rows: 220px 1fr;
    }

    .experience-card .card-img {
        height: 220px;
    }

    .experience-card .card-body {
        padding: 20px;
    }
}

/* ======================================== GLOBAL SITE FOOTER ======================================== */
.site-footer {
    padding: 0;
    background: #061f33;
    color: #d5e4ed;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(150px, 0.75fr)) minmax(240px, 1fr);
    gap: 42px;
    padding-top: 56px;
    padding-bottom: 46px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.site-footer p {
    font-weight: 400;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.site-footer-logo:hover,
.site-footer-logo:focus-visible {
    color: #fff;
}

.site-footer-logo img {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer-logo span {
    display: grid;
    line-height: 1.05;
}

.site-footer-logo strong {
    font-size: 16px;
    font-weight: 500;
}

.site-footer-logo small {
    margin-top: 4px;
    color: #9fc2d7;
    font-size: 12px;
    font-weight: 400;
}

.site-footer-brand p {
    max-width: 38ch;
    margin: 18px 0 0;
    color: #a9c1d0;
    font-size: 14px;
    line-height: 1.65;
}

.site-footer-nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
}

.site-footer-nav a,
.site-footer-phone,
.site-footer-bottom a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    color: #a9c1d0;
    font-size: 14px;
    font-weight: 400;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible,
.site-footer-phone:hover,
.site-footer-phone:focus-visible,
.site-footer-bottom a:hover,
.site-footer-bottom a:focus-visible {
    color: #fff;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer-contact p {
    margin: 0 0 18px;
    color: #a9c1d0;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer-whatsapp {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--wa);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.site-footer-whatsapp:hover,
.site-footer-whatsapp:focus-visible {
    background: var(--wa-hover);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.site-footer-whatsapp svg {
    width: 19px;
    height: 19px;
}

.site-footer-phone {
    margin-top: 8px;
}

.site-footer-trust {
    border-top: 1px solid rgba(159, 194, 215, 0.16);
    border-bottom: 1px solid rgba(159, 194, 215, 0.16);
    background: #08283f;
}

.site-footer-trust .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.site-footer-trust span {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #d8e8f1;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.site-footer-trust i {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: rgba(125, 201, 239, 0.14);
    color: #7dc9ef;
    font-size: 12px;
    font-style: normal;
}

.site-footer-bottom {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-footer-bottom p,
.site-footer-bottom div,
.site-footer-pending {
    margin: 0;
    color: #7f9bad;
    font-size: 12px;
    font-weight: 400;
}

.site-footer-bottom div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer-bottom a {
    min-height: 36px;
    color: #7f9bad;
    font-size: 12px;
}

.site-footer-pending small {
    margin-left: 5px;
    padding: 3px 7px;
    border: 1px solid rgba(159, 194, 215, 0.18);
    border-radius: 999px;
    color: #9bb4c3;
    font-size: 10px;
    font-weight: 400;
}

@media (max-width: 980px) {
    .site-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 42px;
        padding-bottom: 36px;
    }

    .site-footer-trust .container {
        grid-template-columns: 1fr;
        gap: 3px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-footer-trust span {
        justify-content: flex-start;
        text-align: left;
    }

    .site-footer-bottom,
    .site-footer-bottom div {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer-bottom {
        padding-top: 22px;
        padding-bottom: 24px;
    }
}
