/* =========================================================
   TIEMPO PERFECTO — TURISMO
   Stylesheet — Viña del Mar, Valparaíso & Concón
   ========================================================= */

/* ---- CUSTOM PROPERTIES ---- */
:root {
    /* Brand Colors */
    --primary:        #0f4c81;
    --primary-dark:   #0a3560;
    --primary-light:  #1e6abf;
    --secondary:      #06b6d4;
    --accent:         #f59e0b;

    /* City Palettes */
    --vina:           #ec4899;
    --vina-dark:      #be185d;
    --vina-light:     #fce7f3;
    --valpo:          #8b5cf6;
    --valpo-dark:     #6d28d9;
    --valpo-light:    #ede9fe;
    --concon:         #0ea5e9;
    --concon-dark:    #0369a1;
    --concon-light:   #e0f2fe;

    /* Neutrals */
    --bg-page:        #f0f9ff;
    --bg-white:       #ffffff;
    --bg-soft:        #f8fafc;
    --text-dark:      #0f172a;
    --text-mid:       #334155;
    --text-light:     #64748b;
    --border:         #e2e8f0;

    /* Shadows */
    --shadow-sm:      0 2px 8px rgba(15, 76, 129, 0.07);
    --shadow-md:      0 6px 24px rgba(15, 76, 129, 0.12);
    --shadow-lg:      0 16px 48px rgba(15, 76, 129, 0.16);
    --shadow-hover:   0 12px 40px rgba(15, 76, 129, 0.22);

    /* Layout */
    --nav-h:          70px;
    --radius-sm:      8px;
    --radius-md:      16px;
    --radius-lg:      24px;

    /* Motion */
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --t:              all 0.3s var(--ease);
    --t-fast:         all 0.15s var(--ease);

    /* Typography */
    --font:           'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-page);
    line-height: 1.65;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- LAYOUT UTILITIES ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 88px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
    margin: 10px auto 0;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 6px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--t);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: var(--t);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: var(--t);
}

.navbar.scrolled .nav-brand { color: var(--primary); }

.brand-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
}

.brand-icon img {
    height: 40px;
    width: auto;
    transition: var(--t);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--t);
}

.navbar.scrolled .nav-link { color: var(--text-mid); }

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.navbar.scrolled .nav-link:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--t);
}

.navbar.scrolled .nav-toggle span { background: var(--primary); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(140deg, #0f4c81 0%, #1565c0 35%, #0891b2 65%, #0e7490 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 55% 85%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 24px;
    max-width: 820px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 7px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}


.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 44px;
}

.hero-pill {
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--t);
}

.hero-pill:hover { transform: translateY(-3px); }
.pill-vina   { background: rgba(236, 72, 153, 0.3); }
.pill-valpo  { background: rgba(139, 92, 246, 0.3); }
.pill-concon { background: rgba(14, 165, 233, 0.3); }

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50%       { transform: translateY(10px); opacity: 0.3; }
}

/* wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100px;
}


/* ============================================================
   CITIES SECTION
   ============================================================ */
.cities-section { background: var(--bg-page); }

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.city-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-md);
    transition: var(--t);
    position: relative;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.city-card-header {
    height: 150px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background-size: cover;
    background-position: center;
}

.city-header-vina  { background-image: url('../images/vina-city.jpg'); }
.city-header-valpo { background-image: url('../images/valpo-city.jpg'); }
.city-header-concon { background-image: url('../images/concon-city.jpg'); }

/* floating icon */
.city-icon-wrap {
    position: absolute;
    top: 110px;
    left: 28px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
    z-index: 1;
}

.city-card-body {
    padding: 28px 28px 28px 28px;
    padding-top: 52px; /* space for floating icon */
}

.city-card-body h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.city-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.label-vina   { color: var(--vina); }
.label-valpo  { color: var(--valpo); }
.label-concon { color: var(--concon); }

.city-desc {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.city-highlights {
    margin-bottom: 22px;
}

.city-highlights li {
    font-size: 0.87rem;
    color: var(--text-mid);
    font-weight: 500;
    padding: 4px 0;
}

.city-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    transition: var(--t);
}

.btn-vina   { background: var(--vina); }
.btn-vina:hover   { background: var(--vina-dark); transform: translateY(-2px); }
.btn-valpo  { background: var(--valpo); }
.btn-valpo:hover  { background: var(--valpo-dark); transform: translateY(-2px); }
.btn-concon { background: var(--concon); }
.btn-concon:hover { background: var(--concon-dark); transform: translateY(-2px); }


/* ============================================================
   ATTRACTIONS SECTION
   ============================================================ */
.attractions-section { background: var(--bg-soft); }

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--t);
    color: var(--text-mid);
    background: var(--bg-soft);
    border: 2px solid transparent;
}

.filter-tab:hover {
    background: var(--bg-page);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-tab[data-filter="vina"].active        { background: var(--vina);   border-color: var(--vina); }
.filter-tab[data-filter="valparaiso"].active  { background: var(--valpo);  border-color: var(--valpo); }
.filter-tab[data-filter="concon"].active      { background: var(--concon); border-color: var(--concon); }

.tab-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-tab:not(.active) .tab-badge {
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-light);
}

/* Search */
.search-wrap {
    position: relative;
}

.search-input {
    padding: 10px 16px 10px 42px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.88rem;
    width: 240px;
    transition: var(--t);
    background: var(--bg-soft);
    color: var(--text-dark);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Attractions Grid */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

/* Card */
.attraction-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.4s var(--ease) both;
}

.attraction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.attraction-card.hidden { display: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card Header */
.card-header {
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s var(--ease);
}

.card-header[style*="background-image"] {
    cursor: pointer !important;
}

.card-header[style*="background-image"]:hover {
    transform: scale(1.05);
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.12));
}

.card-icon {
    font-size: 3.5rem;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
    transition: var(--t);
}

.attraction-card:hover .card-icon { transform: scale(1.18) rotate(-3deg); }

.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 2;
}

.card-city-dot {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.dot-vina       { background: var(--vina); }
.dot-valparaiso { background: var(--valpo); }
.dot-concon     { background: var(--concon); }

/* Card Body */
.card-body {
    padding: 20px 20px 12px;
    flex: 1;
}

.card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-soft);
}

.card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.card-info-ico { width: 18px; flex-shrink: 0; }

.card-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.card-map-btn,
.card-route-btn {
    flex: 1;
    padding: 8px 10px;
    background: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.card-map-btn {
    border: 1.5px solid #e11d48;
    color: #e11d48;
}

.card-map-btn:hover {
    background: #e11d48;
    color: white;
}

.card-route-btn {
    border: 1.5px solid #0891b2;
    color: #0891b2;
}

.card-route-btn:hover {
    background: #0891b2;
    color: white;
}

/* No results */
.no-results {
    display: none;
    text-align: center;
    padding: 64px 20px;
    color: var(--text-light);
}

.no-results span {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.no-results p { font-size: 1rem; }


/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section { background: var(--bg-page); }

.map-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.map-tab {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--t);
    color: var(--text-mid);
    background: var(--bg-white);
    border: 2px solid var(--border);
}

.map-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.map-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.map-iframe-wrap {
    position: relative;
    padding-bottom: 48%;
    height: 0;
}

.map-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.map-credit {
    padding: 10px 18px;
    font-size: 0.76rem;
    color: var(--text-light);
    text-align: right;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.map-credit a {
    color: var(--primary);
    text-decoration: underline;
}

/* Custom clock marker pin */
.map-clock-pin {
    width: 36px;
    height: 36px;
    background: #e11d48;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.55);
    border: 2.5px solid white;
}

.map-clock-pin span {
    transform: rotate(45deg);
    font-size: 1.15rem;
    line-height: 1;
    display: block;
}


/* ============================================================
   PRACTICAL TIPS SECTION
   ============================================================ */
.tips-section { background: var(--bg-soft); }

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tip-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    border-top: 4px solid transparent;
}

.tip-card:nth-child(1) { border-top-color: var(--secondary); }
.tip-card:nth-child(2) { border-top-color: var(--vina); }
.tip-card:nth-child(3) { border-top-color: var(--accent); }
.tip-card:nth-child(4) { border-top-color: var(--valpo); }
.tip-card:nth-child(5) { border-top-color: var(--concon); }
.tip-card:nth-child(6) { border-top-color: #10b981; }

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.tip-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.7;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; }

.footer-wave {
    background: var(--bg-soft);
    line-height: 0;
}

.footer-wave svg { width: 100%; height: 70px; }

.footer-main {
    background: var(--primary);
    color: white;
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.65;
}

.footer-heading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--t);
    text-align: left;
    padding: 4px 0;
}

.footer-link-btn:hover {
    color: white;
    padding-left: 8px;
}

.footer-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    padding: 4px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
}


/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #20ba5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--t);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4);
}

@keyframes whatsapp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================================
   AIRBNB SECTION
   ============================================================ */
.airbnb-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 88px 0;
    position: relative;
    overflow: hidden;
}

.airbnb-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 106, 191, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.airbnb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.airbnb-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--t);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border);
}

.airbnb-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.airbnb-card-header {
    background: linear-gradient(135deg, #ff5a5f, #ff6b6b);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.airbnb-icon {
    font-size: 2rem;
}

.airbnb-logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.airbnb-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.airbnb-card-body h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
}

.airbnb-desc {
    color: var(--text-mid);
    margin: 0;
    font-size: 0.95rem;
}

.airbnb-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.airbnb-features span {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.airbnb-cta {
    margin-top: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff5a5f, #ff6b6b);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    transition: var(--t);
    font-size: 0.95rem;
}

.airbnb-card:hover .airbnb-cta {
    background: linear-gradient(135deg, #ff4449, #ff5a5f);
}

/* ============================================================
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}


/* ============================================================
   SCROLL ANIMATIONS (AOS-like)
   ============================================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RULES SECTION
   ============================================================ */
.rules-section { background: var(--bg-page); }

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.rule-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    border-left: 4px solid transparent;
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rule-info     { border-left-color: #10b981; }
.rule-prohibit { border-left-color: #ef4444; }

.rule-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.rule-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.rule-card p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.65;
}

.rule-card p strong {
    color: var(--text-mid);
    font-weight: 600;
}

.rules-note {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 22px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.rules-note > span {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.rules-note p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
}


/* ============================================================
   INVENTORY SECTION
   ============================================================ */
.inventory-section { background: var(--bg-soft); }

.inventory-summary {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.inv-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-page);
    min-width: 120px;
    text-align: center;
    transition: var(--t);
}

.inv-summary-item:hover {
    background: var(--bg-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.inv-summary-item > span {
    font-size: 2rem;
    line-height: 1;
}

.inv-summary-item strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.inv-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
}

.inv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.inv-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    color: white;
}

.inv-card-header > span { font-size: 1.8rem; }

.inv-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.inv-header-bedroom  { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.inv-header-bathroom { background: linear-gradient(135deg, #0891b2, var(--secondary)); }
.inv-header-kitchen  { background: linear-gradient(135deg, var(--accent), #d97706); }
.inv-header-living   { background: linear-gradient(135deg, var(--valpo), var(--valpo-dark)); }
.inv-header-terrace  { background: linear-gradient(135deg, #10b981, #059669); }
.inv-header-parking  { background: linear-gradient(135deg, #6b7280, #4b5563); }

.inv-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inv-list li {
    font-size: 0.87rem;
    color: var(--text-mid);
    font-weight: 500;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    transition: var(--t-fast);
}

.inv-list li:hover {
    background: var(--bg-soft);
    transform: translateX(4px);
    color: var(--primary);
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .cities-grid      { grid-template-columns: repeat(2, 1fr); }
    .tips-grid        { grid-template-columns: repeat(2, 1fr); }
    .footer-grid      { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: span 2; }
    .rules-grid       { grid-template-columns: repeat(2, 1fr); }
    .inventory-grid   { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    section { padding: 64px 0; }

    /* Mobile nav */
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--t);
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        color: var(--text-mid) !important;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-link:hover {
        background: var(--bg-page) !important;
        color: var(--primary) !important;
    }

    /* Hero */
    .hero-title   { font-size: 2.4rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    /* Grids → single col */
    .cities-grid  { grid-template-columns: 1fr; }
    .tips-grid    { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: span 1; }

    /* Filter bar */
    .filter-bar   { flex-direction: column; align-items: stretch; }
    .search-wrap  { width: 100%; }
    .search-input { width: 100%; }

    /* Map */
    .map-iframe-wrap { padding-bottom: 70%; }

    /* Cards */
    .attractions-grid { grid-template-columns: 1fr; }

    /* Rules */
    .rules-grid       { grid-template-columns: 1fr; }

    /* Inventory */
    .inventory-grid   { grid-template-columns: 1fr; }
    .inventory-summary { gap: 10px; }
    .inv-summary-item  { min-width: 100px; padding: 12px 16px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-cities { flex-direction: column; align-items: center; }

    .filter-tabs { gap: 4px; }
    .filter-tab  { padding: 8px 12px; font-size: 0.8rem; }
    .tab-text    { display: none; }

    .map-tabs    { gap: 4px; }
    .map-tab     { padding: 7px 14px; font-size: 0.82rem; }
}


/* ============================================================
   NAV USER ITEMS (visible only when logged in)
   ============================================================ */
.nav-user-item {
    display: none;
}

.nav-user-item.active {
    display: block;
}

.nav-link-user {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.navbar.scrolled .nav-link-user {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--primary);
}

.nav-link-user:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.navbar.scrolled .nav-link-user:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: white !important;
}


/* ============================================================
   NAV USER BUTTON
   ============================================================ */
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: var(--t);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar.scrolled .nav-user-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: white;
    transform: translateY(-2px);
}

.navbar.scrolled .nav-user-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.user-btn-icon { font-size: 1rem; }

.user-btn-arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    transition: transform 0.2s ease;
    display: none; /* only visible when logged in */
}

.nav-user-btn.logged-in .user-btn-arrow {
    display: inline;
}

.nav-user-btn.logged-in.dropdown-open .user-btn-arrow {
    transform: rotate(180deg);
}

/* ============================================================
   NAV USER DROPDOWN
   ============================================================ */
.nav-user-wrap {
    position: relative;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(10, 30, 60, 0.18);
    padding: 8px 0;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 10px;
}

.user-dropdown-avatar {
    font-size: 1.5rem;
    background: var(--primary-light, #e0e7ff);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-dropdown-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.user-dropdown-email {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-dropdown-divider {
    height: 1px;
    background: #f0f4f8;
    margin: 4px 0;
}

.user-dropdown-item {
    width: 100%;
    text-align: left;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark, #1e293b);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-item:hover {
    background: #f1f5f9;
}

.user-dropdown-logout {
    color: #e11d48;
}

.user-dropdown-logout:hover {
    background: #fff1f2;
}


.nav-user-btn.logged-in {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.navbar.scrolled .nav-user-btn.logged-in {
    background: var(--accent);
    border-color: var(--accent);
}


/* ============================================================
   USER MODAL OVERLAY
   ============================================================ */
.user-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-page);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
    overflow-y: auto;
}

.user-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.user-modal {
    background: var(--bg-page);
    width: 100%;
    min-height: 100vh;
    position: relative;
    transform: translateY(24px);
    transition: transform 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.user-modal-overlay.open .user-modal {
    transform: translateY(0);
}

/* Full-screen top bar */
.modal-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    box-shadow: 0 2px 12px rgba(10,30,60,0.15);
    flex-shrink: 0;
}

.modal-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
    z-index: 10;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-panel {
    padding: 40px 20px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    box-sizing: border-box;
}

.modal-panel.modal-panel-wide {
    max-width: 860px;
}


/* ============================================================
   AUTH PANEL
   ============================================================ */
.modal-auth-tabs {
    display: flex;
    background: var(--bg-soft);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}

.modal-auth-tab {
    flex: 1;
    padding: 10px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--t-fast);
}

.modal-auth-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.modal-auth-content { display: block; }
.modal-auth-content.hidden { display: none; }

.modal-form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.modal-form-sub {
    font-size: 0.86rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}


/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-soft);
    transition: var(--t-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.form-group input[readonly] {
    background: var(--bg-page);
    color: var(--text-light);
    cursor: not-allowed;
}

.form-group textarea { resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.5;
    cursor: pointer;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    font-size: 0.84rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    display: none;
}

.form-error.visible { display: block; }

.form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 0.84rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    display: none;
}

.form-success.visible { display: block; }

.btn-form-submit {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--t);
    margin-bottom: 16px;
    border: none;
}

.btn-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-form-secondary {
    background: var(--secondary);
}

.btn-form-secondary:hover {
    background: #0891b2;
}

.form-switch {
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-light);
}

.link-btn {
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--t-fast);
    font-size: inherit;
}

.link-btn:hover { color: var(--primary-dark); text-decoration: underline; }


/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 24px 32px;
    margin: -32px -32px 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

.user-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info p {
    font-size: 0.82rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--t-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.dashboard-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    padding: 6px;
    border-radius: var(--radius-sm);
    margin: 24px 0 20px;
}

.dash-tab {
    flex: 1;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--t-fast);
    font-family: var(--font);
    cursor: pointer;
    text-align: center;
}

.dash-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.dash-tab-content { display: block; }
.dash-tab-content.hidden { display: none; }

.dash-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}


/* ============================================================
   PUNTOS / FIDELIZACIÓN SCREEN
   ============================================================ */
.puntos-niveles {
    margin-top: 22px;
}

.puntos-niveles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 0 16px;
}

.puntos-nivel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.82rem;
    transition: var(--t-fast);
}

.puntos-nivel-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.puntos-nivel-emoji {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.puntos-descuento {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.puntos-note {
    font-size: 0.83rem;
    color: var(--text-light);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .puntos-niveles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dashboard tabs: scrollable on mobile when there are 5 tabs */
@media (max-width: 599px) {
    .dashboard-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }
    .dashboard-tabs::-webkit-scrollbar { display: none; }
    .dash-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}


/* ============================================================
   RESERVAS
   ============================================================ */
.promo-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.precio-display {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.precio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text-mid);
    gap: 8px;
}

.precio-normal-val { color: var(--text-light); }

.precio-row-pref {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.precio-pref-val {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0369a1;
    font-weight: 700;
}

.descuento-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.precio-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #bfdbfe;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    display: none;
}

.precio-total.visible { display: block; }

.mis-reservas {
    margin-top: 28px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.mis-reservas h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.reserva-item {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    border-left: 3px solid var(--secondary);
    font-size: 0.85rem;
}

.reserva-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.reserva-item-dates {
    font-weight: 700;
    color: var(--primary);
}

.reserva-estado {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.estado-pendiente { background: #fef3c7; color: #92400e; }
.estado-confirmada { background: #dcfce7; color: #15803d; }

.reserva-item-detail {
    color: var(--text-light);
    line-height: 1.6;
}

.reserva-empty {
    text-align: center;
    padding: 28px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.reserva-empty-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }

.reserva-descuento {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 1px 6px;
    border-radius: 20px;
}


/* ============================================================
   LOYALTY BAR — Sistema de Fidelización
   ============================================================ */
.loyalty-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(15,76,129,0.05) 100%);
    border-radius: var(--radius-md);
    margin: 14px 0 4px;
    border: 1px solid var(--border);
}

/* --- Nivel badge --- */
.loyalty-badge {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.loyalty-badge-bronce  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.loyalty-badge-plata   { background: #f1f5f9; color: #334155; border: 1px solid #94a3b8; }
.loyalty-badge-oro     { background: #fef9c3; color: #713f12; border: 1px solid #fbbf24; }
.loyalty-badge-platino { background: #f0e6ff; color: #4c1d95; border: 1px solid #a78bfa; }

/* --- Info block --- */
.loyalty-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.loyalty-points {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.loyalty-progress-wrap {
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.loyalty-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loyalty-next {
    font-size: 0.75rem;
    color: var(--text-light);
}



/* ============================================================
   REVISTAS (Dashboard)
   ============================================================ */
.revistas-intro {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 18px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

.revistas-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.revista-card {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    cursor: pointer;
    border: 2px solid transparent;
}

.revista-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.revista-cover {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.revista-body {
    padding: 12px 14px;
}

.revista-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.revista-issue {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.revista-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(15, 76, 129, 0.1);
    color: var(--primary);
    margin-bottom: 10px;
}

.btn-ver-revista {
    display: block;
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--t-fast);
    text-align: center;
    border: none;
}

.btn-ver-revista:hover { background: var(--primary-dark); }


/* ============================================================
   REVISTAS SECTION (public)
   ============================================================ */
.revistas-section { background: var(--bg-soft); }

.revistas-public-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.revista-public-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    text-align: center;
}

.revista-public-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.revista-public-cover {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.revista-public-body { padding: 16px; }

.revista-public-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.revista-public-issue {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.revista-public-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
}

.revistas-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    flex-wrap: wrap;
}

.revistas-cta-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.revistas-cta > div { flex: 1; min-width: 180px; }

.revistas-cta h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.revistas-cta p {
    font-size: 0.88rem;
    opacity: 0.85;
}


/* ============================================================
   BENEFICIOS SECTION
   ============================================================ */
.beneficios-section { background: var(--bg-page); }

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

.beneficio-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    border-bottom: 4px solid transparent;
}

.beneficio-card:nth-child(1) { border-bottom-color: var(--accent); }
.beneficio-card:nth-child(2) { border-bottom-color: var(--secondary); }
.beneficio-card:nth-child(3) { border-bottom-color: var(--vina); }
.beneficio-card:nth-child(4) { border-bottom-color: var(--valpo); }

.beneficio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.beneficio-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
    display: block;
}

.beneficio-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.beneficio-card p {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.65;
}

.beneficio-card strong { color: var(--text-mid); }

.beneficios-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.beneficios-cta-note {
    font-size: 0.82rem;
    color: var(--text-light);
}


/* ============================================================
   PDF VIEWER MODAL
   ============================================================ */
.pdf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 30, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
}

.pdf-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.pdf-modal-overlay.hidden { display: none; }

.pdf-modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    flex-shrink: 0;
}

.pdf-modal-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.pdf-modal-body {
    flex: 1;
    min-height: 0;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 80vh;
    border: none;
    display: block;
}


/* ============================================================
   IMAGE MODAL
   ============================================================ */
.image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.image-modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.image-modal-overlay.hidden { 
    display: none; 
}

.image-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 3001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}


/* ============================================================
   RESPONSIVE — NEW SECTIONS
   ============================================================ */
@media (max-width: 1024px) {
    .beneficios-grid         { grid-template-columns: repeat(2, 1fr); }
    .revistas-public-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .user-btn-label          { display: none; }
    .beneficios-grid         { grid-template-columns: repeat(2, 1fr); }
    .revistas-public-grid    { grid-template-columns: repeat(2, 1fr); }
    .revistas-dash-grid      { grid-template-columns: 1fr; }
    .form-row                { grid-template-columns: 1fr; }
    .revistas-cta            { flex-direction: column; text-align: center; }
    .dashboard-header        { flex-wrap: wrap; gap: 10px; }
    .user-info h3            { font-size: 1rem; }
    .modal-panel             { padding: 24px; }
    .dashboard-header        { margin: -24px -24px 0; padding: 20px 24px; }
}

@media (max-width: 480px) {
    .beneficios-grid         { grid-template-columns: 1fr; }
    .revistas-public-grid    { grid-template-columns: 1fr; }
    .revistas-dash-grid      { grid-template-columns: 1fr; }
    .dashboard-tabs          { flex-direction: column; }
    .dash-tab                { text-align: center; }
    .pdf-modal-body iframe   { height: 70vh; }
}

/* ==========================================
   CARRUSEL DE IMÁGENES EN EL HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 20px 80px;
    box-sizing: border-box;
    width: 100%;
}

/* --- Estilos del Carrusel de Fondo --- */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Capa de sombra/degradado para legibilidad del texto --- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.25) 0%, 
        rgba(15, 23, 42, 0.45) 50%, 
        rgba(15, 23, 42, 0.65) 100%
    );
    z-index: 1;
}

/* --- Contenido alineado y centrado --- */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-highlight {
    color: #E09A0A; /* Naranja sólido vibrante */
    /* Eliminamos las propiedades de gradient y clip */
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-cities {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-pill {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pill-vina { background: rgba(236, 72, 153, 0.2); color: #fbcfe8; }
.pill-valpo { background: rgba(245, 158, 11, 0.2); color: #fde68a; }
.pill-concon { background: rgba(14, 165, 233, 0.2); color: #bae6fd; }

.hero-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* --- Botones y Controles del Carrusel --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    /* Elevamos el z-index para que quede por sobre hero-bg (z-index: 1) y hero-content */
    z-index: 10;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

/* --- Elementos Decorativos Inferiores --- */
.hero-scroll {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}