/* ============================================================
   gestionvacacionalsagunto.es — Gestión Vacacional Viviaro
   Target: propietarios de viviendas en Sagunto y comarca
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ── VARIABLES ── */
:root {
    --navy: #0f2942;
    --navy2: #1a4d7a;
    --gold: #c8963e;
    --gold-light: #f5e6c8;
    --green: #10b981;
    --green-light: #d1fae5;
    --bg: #ffffff;
    --bg2: #f8fafc;
    --bg3: #f1f5f9;
    --text: #1e293b;
    --text2: #475569;
    --text3: #94a3b8;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 16px rgba(15,41,66,.06);
    --shadow-lg: 0 12px 40px rgba(15,41,66,.1);
}

/* ── TIPOGRAFÍA ── */
body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.15; color: var(--navy); }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--gold);
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 18px; letter-spacing: -.5px;
}
.section-sub { color: var(--text2); max-width: 600px; line-height: 1.7; margin-bottom: 40px; }

/* ── NAVBAR ── */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 68px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1100; transition: all .3s;
}
#navbar.scrolled { box-shadow: 0 4px 20px rgba(15,41,66,.08); }
.nav-inner {
    max-width: 1140px; margin: 0 auto; height: 100%;
    padding: 0 28px; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
}
.logo {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: 1rem; color: var(--navy);
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.logo img { width: 34px; height: 34px; object-fit: contain; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    font-size: .88rem; font-weight: 500; color: var(--text2);
    transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
    background: linear-gradient(135deg, var(--gold), #b8862f);
    color: white !important; padding: 10px 22px;
    border-radius: var(--radius-sm); font-weight: 700 !important;
    display: inline-flex; align-items: center; gap: 7px;
    transition: all .2s; box-shadow: 0 4px 12px rgba(200,150,62,.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(200,150,62,.35); }
.hamburger {
    display: none; background: none; border: none;
    color: var(--navy); font-size: 1.4rem; cursor: pointer;
    padding: 8px; z-index: 1200; flex-shrink: 0;
}

/* ── HERO ── */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(170deg, var(--bg2) 0%, var(--bg) 60%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(200,150,62,.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 420px;
    gap: 50px; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold-light); color: var(--gold);
    font-size: .78rem; font-weight: 700;
    padding: 6px 16px; border-radius: 24px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 18px; letter-spacing: -1px;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold), #b8862f);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text { color: var(--text2); font-size: 1.08rem; line-height: 1.75; max-width: 520px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #b8862f);
    color: white; padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: .95rem; display: inline-flex;
    align-items: center; gap: 9px; transition: all .25s;
    box-shadow: 0 6px 20px rgba(200,150,62,.3); border: none; cursor: pointer;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,150,62,.4); }
.btn-outline {
    background: white; color: var(--navy); padding: 14px 28px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 700; font-size: .95rem; display: inline-flex;
    align-items: center; gap: 9px; transition: all .25s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--navy); }
.hero-stats { display: flex; gap: 36px; }
.hero-stat-num {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: 2rem; color: var(--navy); line-height: 1;
}
.hero-stat-num span { color: var(--gold); }
.hero-stat-label { font-size: .72rem; font-weight: 600; color: var(--text3); margin-top: 4px; }

/* HERO CARD */
.hero-card {
    background: white; border: 1px solid var(--border);
    border-radius: 20px; padding: 32px 28px;
    box-shadow: var(--shadow-lg);
}
.hero-card h3 {
    font-size: 1.15rem; margin-bottom: 6px;
}
.hero-card p { font-size: .85rem; color: var(--text2); margin-bottom: 22px; }
.hero-card-stat {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.hero-card-stat:last-of-type { border-bottom: none; }
.hero-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.hero-card-icon.gold { background: var(--gold-light); color: var(--gold); }
.hero-card-icon.green { background: var(--green-light); color: var(--green); }
.hero-card-icon.navy { background: rgba(15,41,66,.08); color: var(--navy); }
.hero-card-stat strong { display: block; font-size: .92rem; color: var(--navy); }
.hero-card-stat small { font-size: .75rem; color: var(--text3); }

/* ── SERVICIOS ── */
.servicios { padding: 80px 0; background: var(--bg2); }
.servicios-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.servicio-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 26px;
    transition: all .3s; position: relative; overflow: hidden;
}
.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.servicio-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-light), rgba(200,150,62,.15));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--gold); margin-bottom: 18px;
}
.servicio-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.servicio-card p { font-size: .85rem; color: var(--text2); line-height: 1.65; }

/* ── CÓMO FUNCIONA ── */
.como-funciona { padding: 80px 0; }
.pasos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.paso {
    text-align: center; padding: 28px 18px;
    border-radius: var(--radius); position: relative;
}
.paso-num {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: 2.5rem; color: var(--gold-light); line-height: 1;
    margin-bottom: 14px;
}
.paso h3 { font-size: 1rem; margin-bottom: 8px; }
.paso p { font-size: .82rem; color: var(--text2); line-height: 1.6; }

/* ── ZONAS ── */
.zonas { padding: 80px 0; background: var(--bg2); }
.zonas-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.zona-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 16px;
    text-align: center; transition: all .25s;
    display: block;
}
.zona-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.zona-emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.zona-nombre { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .88rem; color: var(--navy); }
.zona-tipo { font-size: .72rem; color: var(--text3); margin-top: 3px; }

/* ── RENTABILIDAD / SIMULADOR ── */
.rentabilidad { padding: 80px 0; }
.rent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.rent-table {
    width: 100%; border-collapse: collapse;
    background: white; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
}
.rent-table th {
    background: var(--navy); color: white;
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: .8rem; text-transform: uppercase;
    letter-spacing: .5px; padding: 14px 18px; text-align: left;
}
.rent-table td {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    font-size: .88rem;
}
.rent-table tr:last-child td { border-bottom: none; font-weight: 700; color: var(--green); }

/* ── TESTIMONIOS ── */
.testimonios { padding: 80px 0; background: var(--navy); color: white; }
.testimonios .section-tag { color: var(--gold); }
.testimonios .section-title { color: white; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); padding: 28px 24px;
}
.test-stars { color: #fbbf24; font-size: .9rem; margin-bottom: 12px; }
.test-card p { color: rgba(255,255,255,.85); font-size: .88rem; line-height: 1.65; margin-bottom: 16px; }
.test-author { font-size: .78rem; font-weight: 700; color: var(--gold); }

/* ── FAQ ── */
.faq { padding: 80px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border); padding: 20px 0;
    cursor: pointer;
}
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
    color: var(--navy); gap: 14px;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--gold); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    font-size: .88rem; color: var(--text2); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 12px; }

/* ── CTA FINAL ── */
.cta-final {
    padding: 80px 0; text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: white;
}
.cta-final h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-final p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 28px; }
.cta-final .btn-gold { font-size: 1.05rem; padding: 16px 32px; }

/* ── FOOTER ── */
footer {
    background: #0a1f33; color: rgba(255,255,255,.7);
    padding: 60px 0 30px; font-size: .85rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand p { line-height: 1.7; margin-top: 14px; }
footer h4 { color: white; font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
footer ul li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,.7); transition: color .2s; }
footer a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px; text-align: center; font-size: .75rem; color: rgba(255,255,255,.4);
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: white; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    z-index: 900; transition: all .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ── FORMULARIO ── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .72rem; font-weight: 700; color: var(--text3); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: var(--bg2); border: 2px solid var(--border);
    border-radius: var(--radius-sm); padding: 11px 14px;
    font-family: 'DM Sans', sans-serif; font-size: .88rem;
    color: var(--text); outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: white; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: .8rem; color: var(--text3); margin-bottom: 14px; }
.breadcrumb a { color: var(--text2); }
.breadcrumb span { margin: 0 6px; }

/* ── PAGE HERO (servicio y zona) ── */
.page-hero {
    padding: 130px 0 60px;
    background: linear-gradient(170deg, var(--bg3) 0%, var(--bg) 60%);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; letter-spacing: -.5px; }
.page-hero p { color: var(--text2); max-width: 620px; line-height: 1.7; margin-bottom: 24px; }

/* ── CONTENT ── */
.content-section { padding: 60px 0 80px; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.content-main h2 { font-size: 1.3rem; margin-bottom: 12px; margin-top: 36px; }
.content-main h2:first-child { margin-top: 0; }
.content-main p { color: var(--text2); line-height: 1.8; margin-bottom: 14px; }
.content-main ul { margin: 14px 0; padding-left: 0; }
.content-main li {
    padding: 8px 0 8px 28px; position: relative;
    color: var(--text2); line-height: 1.6; font-size: .92rem;
}
.content-main li::before {
    content: '✓'; position: absolute; left: 0; color: var(--gold);
    font-weight: 700;
}

/* SIDEBAR CTA */
.sidebar-cta {
    position: sticky; top: 90px;
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    box-shadow: var(--shadow-lg);
}
.sidebar-cta h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sidebar-cta p { font-size: .82rem; color: var(--text2); margin-bottom: 18px; }
.sidebar-cta .btn-gold { width: 100%; justify-content: center; }
.sidebar-trust { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.sidebar-trust div { font-size: .78rem; color: var(--text2); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sidebar-trust i { color: var(--green); }

/* ── NAV MÓVIL ── */
@media (max-width: 900px) {
    .hamburger { display: flex; align-items: center; justify-content: center; }
    .nav-inner { padding: 0 16px; }
    .logo { font-size: .9rem; }
    .logo img { width: 28px; height: 28px; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: min(300px, 85vw); height: 100vh;
        background: white; flex-direction: column;
        align-items: flex-start; justify-content: flex-start;
        padding: 90px 28px 40px; gap: 0;
        box-shadow: -4px 0 30px rgba(0,0,0,.12);
        transition: right .32s cubic-bezier(.4,0,.2,1); z-index: 1050;
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 14px 0; font-size: 1rem; color: var(--navy) !important; border-bottom: 1px solid var(--border); }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a.nav-cta { margin-top: 16px; text-align: center; color: white !important; border-radius: var(--radius-sm); padding: 14px 16px; border-bottom: none; }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1040; }
    .nav-overlay.active { display: block; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 110px 0 50px; }
    .hero-card { margin-top: 20px; }
    .servicios-grid { grid-template-columns: 1fr; }
    .pasos-grid { grid-template-columns: repeat(2, 1fr); }
    .test-grid { grid-template-columns: 1fr; }
    .rent-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-stat-num { font-size: 1.5rem; }
    .pasos-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .zonas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TABS PLATAFORMAS ── */
.tabs-nav {
    display: flex; gap: 0; margin-bottom: 0;
    border-bottom: 2px solid var(--border);
}
.tab-btn {
    padding: 16px 28px; font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: .95rem; color: var(--text3);
    background: none; border: none; cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: all .2s; display: flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
    color: var(--navy); border-bottom-color: var(--gold);
}
.tab-btn i { font-size: 1.1rem; }
.tab-panel { display: none; padding: 40px 0; }
.tab-panel.active { display: block; }
.tab-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow); margin-bottom: 24px;
}
.tab-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tab-card p { color: var(--text2); line-height: 1.7; margin-bottom: 14px; font-size: .92rem; }
.tab-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin: 18px 0;
}
.tab-feature {
    display: flex; align-items: center; gap: 10px;
    font-size: .85rem; color: var(--text2); font-weight: 500;
}
.tab-feature i { color: var(--gold); width: 16px; }
.tab-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold); font-weight: 700; font-size: .9rem;
    margin-top: 8px; transition: gap .2s;
}
.tab-link:hover { gap: 12px; }
@media (max-width: 600px) {
    .tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tab-btn { padding: 14px 18px; font-size: .82rem; white-space: nowrap; }
    .tab-features { grid-template-columns: 1fr; }
}
