/* --- VARIABLES & RESET (WORKSKY PALETTE) --- */
:root {
    --brand-teal: #257e77;
    --brand-orange: #e36e26;
    --brand-magenta: #b6005d;
    --brand-green: #009045;
    --brand-blue: #0070ba;

    --bg-dark: #020617;
    --accent: var(--brand-teal);
    --accent-glow: rgba(37, 126, 119, 0.4);
    --btn-action: var(--brand-orange);
    --airbnb: var(--brand-magenta);
    
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.4);
    --text-dark: #0f172a;
    --text-grey: #64748b;
    --drawer-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- ANIMACIONES GLOBALES --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 5%; position: fixed; width: 100%; z-index: 100;
    transition: 0.4s ease; background: linear-gradient(to bottom, rgba(2,6,23,0.6), transparent);
}
.navbar.scrolled {
    background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border); padding: 0.8rem 5%;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; color: white; }
.logo span { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.nav-actions { display: flex; align-items: center; gap: 20px; }

/* ENLACES CENTRALES DEL NAVBAR */
.nav-center { display: flex; gap: 40px; align-items: center; }
.nav-link { color: white; text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: color 0.3s, transform 0.3s; position: relative; }
.nav-link:hover { color: var(--brand-teal); transform: translateY(-2px); }

.btn-ai {
    background: var(--glass); border: 1px solid var(--glass-border); color: white;
    padding: 0.6rem 1.2rem; border-radius: 50px; cursor: pointer; transition: 0.3s;
    font-weight: 500; font-size: 0.85rem; backdrop-filter: blur(4px);
}
.btn-ai:hover { background: var(--accent); color: white; box-shadow: 0 0 15px var(--accent-glow); border-color: var(--accent); }

.hamburger { background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; z-index: 101; padding: 5px; }
.bar { width: 24px; height: 2px; background-color: white; border-radius: 2px; transition: 0.3s ease; }
.hamburger:hover .bar { background-color: var(--accent); width: 28px; }

/* --- HERO SECTION --- */
.hero { height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1500673922987-e212871fec22?auto=format&fit=crop&q=80&w=2070') center/cover; animation: slowZoom 25s infinite alternate ease-in-out; z-index: 0; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.15); } }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(2,6,23,0.3) 0%, var(--bg-dark) 90%); z-index: 1; }
.hero-content { position: relative; z-index: 10; text-align: center; width: 100%; padding: 0 20px; }

.giant-text {
    font-size: clamp(4rem, 11vw, 9rem); font-weight: 900; line-height: 0.9; letter-spacing: -3px; margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 20%, var(--brand-teal) 120%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(0,0,0,0.5)); animation: fadeInUp 1s ease-out;
}
.hero-tagline { font-size: 1.1rem; max-width: 550px; margin: 0 auto 3rem; color: rgba(255,255,255,0.7); font-weight: 300; line-height: 1.5; animation: fadeInUp 1.2s ease-out; }

/* --- SEARCH BAR --- */
.search-container {
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-top: 1px solid var(--glass-highlight); max-width: 850px; margin: 0 auto; border-radius: 100px; display: flex; padding: 0.5rem; align-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transition: transform 0.3s, box-shadow 0.3s; animation: fadeInUp 1.4s ease-out;
}
.search-container:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.6); background: rgba(15, 23, 42, 0.75); }

.search-item { flex: 1; text-align: left; padding: 0.5rem 1.8rem; border-right: 1px solid var(--glass-border); position: relative; }
.search-item:last-of-type { border-right: none; }
.search-item .label { display: block; font-size: 0.65rem; text-transform: uppercase; color: var(--accent); letter-spacing: 1.5px; margin-bottom: 4px; font-weight: 700; }
.search-item input, .search-item p, .guest-display { background: transparent; border: none; color: white; font-size: 0.9rem; font-weight: 500; width: 100%; outline: none; font-family: 'Inter', sans-serif; cursor: pointer; }
.search-item input::placeholder { color: rgba(255,255,255,0.4); }

.search-button {
    background: var(--btn-action); color: white; border: none; padding: 1rem 2rem; border-radius: 50px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 15px rgba(227, 110, 38, 0.4);
}
.search-button:hover { transform: scale(1.05); background: white; color: var(--btn-action); box-shadow: 0 0 25px rgba(255,255,255,0.4); }

.date-picker-wrapper { display: flex; align-items: center; gap: 5px; }
.date-input { width: 100px; cursor: pointer; }
.date-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; cursor: pointer; transition: 0.2s; }
.date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* DROPDOWNS */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown { position: absolute; top: 150%; left: 50%; transform: translateX(-50%); background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 10px 0; display: none; flex-direction: column; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 200; animation: fadeInUp 0.2s ease forwards; }
.nav-dropdown.active { display: flex; }
.nav-dropdown a { color: white; text-decoration: none; padding: 12px 20px; font-size: 0.95rem; font-weight: 500; transition: 0.2s; text-align: center; }
.nav-dropdown a:hover { background: rgba(37, 126, 119, 0.2); color: var(--brand-teal); }

.location-wrapper { position: relative; cursor: pointer; }
.location-dropdown { position: absolute; top: 130%; left: 0; width: 250px; background: white; border-radius: 20px; padding: 10px; box-shadow: 0 -10px 30px rgba(0,0,0,0.15); display: none; flex-direction: column; gap: 5px; z-index: 200; color: var(--text-dark); animation: fadeInUp 0.2s ease forwards; border: 1px solid #f1f5f9; }
.location-dropdown.active { display: flex; }
.loc-option { padding: 12px 15px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.loc-option:hover { background: #f1f5f9; color: var(--brand-teal); padding-left: 20px; }

.guest-wrapper { position: relative; cursor: pointer; }
.guest-dropdown { position: absolute; bottom: 130%; right: 0; width: 280px; background: white; border-radius: 20px; padding: 20px; box-shadow: 0 -10px 30px rgba(0,0,0,0.15); display: none; flex-direction: column; gap: 15px; z-index: 200; cursor: default; color: var(--text-dark); animation: fadeInUp 0.3s ease forwards; border: 1px solid #f1f5f9; }
.guest-dropdown.active { display: flex; }
.guest-row { display: flex; justify-content: space-between; align-items: center; }
.guest-label p { font-weight: 700; font-size: 0.95rem; margin-bottom: 0; }
.guest-label span { font-size: 0.8rem; color: #717171; }
.guest-counter { display: flex; align-items: center; gap: 10px; }
.counter-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ddd; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s; color: #222; }
.counter-btn:hover { border-color: black; background: #f8fafc; }
.count-value { font-weight: 600; width: 15px; text-align: center; }

/* --- SECCIÓN 2: LISTINGS --- */
.listings { padding: 80px 5%; background-color: white; color: var(--text-dark); }
.container-listings { max-width: 1200px; margin: 0 auto; width: 100%; }
.listings-header { margin-bottom: 30px; }
.listings-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 5px; }
.subtitle { color: var(--text-grey); font-size: 1rem; }

.editorial-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; min-height: 500px; height: auto; }
.spotlight-wrapper { height: 100%; }
.spotlight-card { height: 100%; min-height: 500px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 15px 30px rgba(0,0,0,0.1); transition: all 0.4s ease; display: flex; flex-direction: column; }
.spotlight-img { height: 55%; width: 100%; position: relative; overflow: hidden; }
.spotlight-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.spotlight-card:hover .spotlight-img img { transform: scale(1.05); }

.spotlight-overlay { position: absolute; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: flex-start; }
.badge-top { background: white; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: var(--text-dark); }
.heart-btn.large { position: static; width: 40px; height: 40px; font-size: 1.3rem; background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: 0.3s; }
.heart-btn.large:hover { background: white; color: var(--airbnb); }

.spotlight-info { flex: 1; background: #0f172a; padding: 20px 25px; color: white; display: flex; flex-direction: column; justify-content: space-between; }
.s-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.s-header h3 { font-size: 1.6rem; font-weight: 700; margin: 0; color: white; }
.rating-badge { background: var(--accent); color: white; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 0.9rem;}
.s-desc { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-footer { display: flex; justify-content: space-between; align-items: center; }
.s-price { font-size: 1.5rem; font-weight: 700; color: white; margin: 0;}
.s-price span { font-size: 0.9rem; font-weight: 400; opacity: 0.6; }
.btn-explore { background: white; color: var(--btn-action); border: none; padding: 10px 20px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 0.9rem; }
.btn-explore:hover { background: var(--btn-action); color: white; transform: translateX(5px); }

.side-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; min-height: 500px; height: 100%; }
.side-card { border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; }
.side-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.side-card::after { content: ''; position: absolute; inset: 0; background: black; opacity: 0; transition: 0.3s; }
.side-card:hover::after { opacity: 0.1; }
.side-img { width: 100%; height: 100%; object-fit: cover; }
.side-info { position: absolute; bottom: 10px; left: 10px; right: 10px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 10px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.side-info h4 { font-size: 0.9rem; font-weight: 700; margin: 0; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%; }
.side-info p { font-size: 0.85rem; font-weight: 700; color: var(--brand-teal); margin: 0; }

/* --- SECCIÓN 3: FEATURES --- */
.features { padding: 80px 5%; background-color: #f8fafc; color: var(--text-dark); }
.features .container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.features-text h2 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1px; }
.features-text .description { color: var(--text-grey); margin-bottom: 2.5rem; line-height: 1.6; font-size: 1.05rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-card { background: white; padding: 20px; border-radius: 20px; text-align: center; border: 1px solid #e2e8f0; box-shadow: 0 5px 15px rgba(0,0,0,0.02); transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: white; }
.stat-card h3 { font-size: 1.8rem; margin-bottom: 4px; background: linear-gradient(45deg, var(--brand-teal), var(--brand-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card p { font-size: 0.85rem; font-weight: 500; color: #94a3b8; }
.features-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.gallery-column { display: flex; flex-direction: column; gap: 15px; }
.img-wrapper { width: 100%; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.img-wrapper:hover img { transform: scale(1.05); }
.tall { height: 280px; } .small { height: 160px; } .large { height: 350px; }

/* --- SIDE DRAWER --- */
.side-drawer { position: fixed; top: 0; right: -100%; width: 400px; max-width: 85%; height: 100vh; background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(15px); color: white; z-index: 200; box-shadow: -10px 0 40px rgba(0,0,0,0.5); transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); padding: 40px; display: flex; flex-direction: column; border-left: 1px solid var(--glass-border); }
.side-drawer.active { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.logo-drawer { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -1px; }
.logo-drawer span { color: var(--brand-teal); }
.close-btn { background: rgba(255,255,255,0.1); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.close-btn:hover { background: var(--brand-orange); transform: rotate(90deg); }
.main-links li { margin-bottom: 20px; list-style: none; }
.main-links a { text-decoration: none; color: white; font-size: 1.8rem; font-weight: 700; transition: 0.3s; display: inline-block; }
.main-links a:hover { color: var(--brand-teal); transform: translateX(10px); }
.drawer-divider { border: 0; border-top: 1px solid var(--glass-border); margin: 30px 0; opacity: 0.5; }
.secondary-links li { margin-bottom: 12px; list-style: none; }
.secondary-links a { text-decoration: none; color: var(--text-grey); font-size: 1rem; font-weight: 500; transition: 0.2s; }
.secondary-links a:hover { color: white; }
.drawer-footer { margin-top: auto; }
.btn-login { width: 100%; padding: 15px; background: var(--brand-orange); border: none; color: white; font-weight: 700; font-size: 1rem; border-radius: 8px; cursor: pointer; margin-bottom: 20px; transition: 0.3s; }
.btn-login:hover { background: white; color: var(--brand-orange); }
.copyright { font-size: 0.8rem; color: var(--text-grey); text-align: center; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 150; opacity: 0; pointer-events: none; transition: 0.3s; backdrop-filter: blur(4px); }
.overlay.active { opacity: 1; pointer-events: all; }

/* --- FOOTER STYLES --- */
.main-footer { background-color: var(--bg-dark); color: white; padding: 60px 5% 40px; border-top: 1px solid var(--glass-border); position: relative; z-index: 10; margin-top: 50px; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 60px; margin-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-tagline { color: var(--text-grey); margin-top: 15px; line-height: 1.6; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.footer-col a { color: var(--text-grey); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); transform: translateX(5px); }
.footer-divider { border: 0; border-top: 1px solid var(--glass-border); margin-bottom: 25px; opacity: 0.5; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--text-grey); font-size: 0.85rem; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; position: relative; }
.social-links a::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: var(--accent); transition: 0.3s; }
.social-links a:hover { color: var(--accent); }
.social-links a:hover::after { width: 100%; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   MODAL AUTH (FAMILY FRIENDLY)
========================================= */
.auth-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
    z-index: 1000; display: none; justify-content: center; align-items: center; padding: 20px;
}
.auth-modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.auth-modal {
    background: white; border-radius: 20px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 450px; padding: 40px; text-align: center; width: 100%;
}

.auth-modal-close {
    position: absolute; top: 20px; right: 20px; background: #f1f5f9; border: none;
    width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: 0.2s; z-index: 10;
}
.auth-modal-close:hover { background: #e2e8f0; color: var(--brand-orange); }

.auth-modal-body { display: flex; flex-direction: column; align-items: center; }
.auth-icon { font-size: 4rem; margin-bottom: 10px; animation: wave 2s infinite; display: inline-block; transform-origin: 70% 70%;}
.auth-modal-body h2 { font-size: 2rem; margin-bottom: 15px; color: var(--text-dark); }
.auth-modal-body p { color: var(--text-grey); line-height: 1.6; margin-bottom: 30px; font-size: 1.05rem; }

.auth-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-bottom: 20px;}
.btn-primary-auth { background: var(--brand-teal); color: white; border: none; padding: 15px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.2s;}
.btn-primary-auth:hover { background: var(--brand-orange); box-shadow: 0 5px 15px rgba(227, 110, 38, 0.3); transform: translateY(-2px);}
.btn-secondary-auth { background: transparent; border: 2px solid var(--brand-teal); color: var(--brand-teal); padding: 13px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.2s;}
.btn-secondary-auth:hover { background: #f0fdfa; }

.auth-modal-body small { color: #94a3b8; font-size: 0.85rem;}

@keyframes wave { 0% { transform: rotate(0deg); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } 60% { transform: rotate(0deg); } 100% { transform: rotate(0deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   --- RESPONSIVE MEDIA QUERIES ---
   ========================================= */
@media (max-width: 1024px) {
    .giant-text { font-size: 12vw; }
    .features .container { grid-template-columns: 1fr; gap: 40px; }
    .features-gallery { order: -1; margin-bottom: 20px; }
    
    .editorial-layout { grid-template-columns: 1fr; height: auto; }
    .spotlight-wrapper { height: 400px; min-height: auto; }
    .side-grid { height: 350px; min-height: auto; }
}

@media (max-width: 900px) {
    .nav-center { display: none; }
}

@media (max-width: 768px) {
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-nav { gap: 40px; justify-content: space-between; width: 100%; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 640px) {
    .giant-text { font-size: 15vw; }
    
    .search-container { flex-direction: column; background: rgba(15,23,42,0.9); border-radius: 24px; padding: 20px; }
    .search-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; margin-bottom: 10px; padding: 0.8rem; }
    .search-button { width: 100%; margin-top: 10px; }
    
    .stat-card h3 { font-size: 1.5rem; }
    
    .side-drawer { width: 100%; border-left: none; }
    .main-links a { font-size: 1.5rem; }

    .spotlight-wrapper { height: 380px; }
    .s-header h3 { font-size: 1.4rem; }
    .side-grid { display: flex; overflow-x: auto; height: 200px; padding-bottom: 15px; scroll-snap-type: x mandatory; gap: 10px; }
    .side-card { min-width: 220px; height: 100%; scroll-snap-align: start; flex-shrink: 0; }
}