﻿/* ============================================================
   servicios.css
   ============================================================ */

/* ── PAGE HERO ── */
.page-hero {
    position: relative;
    padding: 10rem 5vw 6rem;
    overflow: hidden;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,45,62,.65);
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(193,162,116,.12) 0%, transparent 65%);
    z-index: 2;
    pointer-events: none;
}

.page-hero > *:not(.page-hero-bg):not(.page-hero-overlay) {
    position: relative;
    z-index: 3;
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--g2);
    margin-bottom: 1.5rem;
}

    .page-hero-eyebrow::before,
    .page-hero-eyebrow::after {
        content: '';
        width: 28px;
        height: 1px;
        background: var(--g2);
    }

.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 1rem;
}

    .page-hero h1 em {
        font-style: italic;
        color: var(--g3);
    }

.page-hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,.55);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.85;
}

/* ── NAV INTERNA ── */
.servicios-nav {
    background: var(--b2);
    border-bottom: 3px solid var(--g2);
    position: sticky;
    top: 82px;
    z-index: 100;
}

.servicios-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    /* Antes forzaba una sola fila con scroll horizontal, y la barra
       de desplazamiento se veía como una franja dorada bajo el menú.
       Ahora los botones bajan de renglón si no caben. */
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.servicios-nav-btn {
    padding: 1.1rem 2rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color .2s, border-color .2s;
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

    .servicios-nav-btn:hover {
        color: #fff;
    }

    .servicios-nav-btn.on {
        color: var(--g2);
        border-bottom-color: var(--g2);
    }

/* ── SECCIONES ── */
.servicio-section {
    padding: 7rem 5vw;
}

    .servicio-section:nth-child(even) {
        background: var(--bg2);
    }

    .servicio-section:nth-child(odd) {
        background: #fff;
    }

.servicio-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.servicio-intro {
    color: var(--muted);
    font-size: .9rem;
    max-width: 600px;
    line-height: 1.8;
    margin-top: .5rem;
}

/* ── TABLAS DE TARIFAS ── */
.tarifas-intro {
    display: grid;
    /* El mapa necesita más ancho que las tablas para que los nombres
       de la Sierra quepan al costado de sus puntos */
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.tarifas-mapa img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(26,45,62,.12);
}

/* Selector de vistas del mapa */
.mapa-vistas {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}

.mapa-vista {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem .95rem;
    border-radius: 40px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}

    .mapa-vista:hover {
        color: var(--g1);
        border-color: var(--g2);
    }

    .mapa-vista.activa {
        background: var(--b1);
        border-color: var(--b1);
        color: var(--g3);
    }

/* Mapa Google en servicios */
#mapaRutas {
    width: 100%;
    /* 780px dejaba una caja altísima y angosta con mucho hueco oscuro */
    height: 660px;
    border-radius: 12px;
    border: 1px solid rgba(193,162,116,.28);
    box-shadow: 0 14px 44px rgba(15,30,43,.28);
    overflow: hidden;
}

/* Controles de zoom a tono con el mapa oscuro */
#mapaRutas .gm-bundled-control button {
    background: rgba(15,30,43,.88) !important;
    border: 1px solid rgba(193,162,116,.3) !important;
}

#mapaRutas .gm-bundled-control img {
    filter: invert(1) sepia(1) saturate(.4) hue-rotate(5deg) brightness(1.4);
}

.tarifas-tablas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tarifa-grupo-titulo {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--b2);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--g4);
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .tarifa-grupo-titulo i {
        color: var(--g2);
        font-size: 1rem;
    }

.tarifa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

    .tarifa-table thead th {
        background: var(--b2);
        color: #fff;
        padding: .7rem 1rem;
        text-align: left;
        font-size: .65rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

        .tarifa-table thead th:first-child {
            border-radius: 4px 0 0 0;
        }

        .tarifa-table thead th:last-child {
            border-radius: 0 4px 0 0;
        }

    .tarifa-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background .15s;
    }

        .tarifa-table tbody tr:hover {
            background: var(--g5);
        }

    .tarifa-table tbody td {
        padding: .65rem 1rem;
        color: var(--b1);
    }

        .tarifa-table tbody td:last-child {
            font-weight: 700;
            color: var(--g1);
        }

.tarifa-nota {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .8rem;
    padding: .6rem 1rem;
    background: var(--g5);
    border-left: 3px solid var(--g2);
    border-radius: 0 3px 3px 0;
}

    .tarifa-nota strong {
        color: var(--g1);
    }

/* ── HORARIOS ── */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.horario-card {
    background: var(--b1);
    border-radius: 4px;
    padding: 1.8rem;
    border-top: 3px solid var(--g2);
}

.horario-card-titulo {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--g3);
    font-weight: 700;
    margin-bottom: 1rem;
}

.horario-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .horario-list li {
        font-size: .8rem;
        color: rgba(255,255,255,.6);
        display: flex;
        align-items: center;
        gap: .5rem;
    }

        .horario-list li i {
            color: var(--g2);
            font-size: .7rem;
        }

/* ── PAQUETERÍA ── */
.paqueteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.paqueteria-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.paqueteria-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color .2s, transform .2s;
}

    .paqueteria-feature:hover {
        border-color: var(--g2);
        transform: translateX(4px);
    }

.paqueteria-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--g5);
    border: 1px solid var(--g4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g1);
    font-size: .9rem;
    flex-shrink: 0;
}

.paqueteria-feature-text h4 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--b2);
    margin-bottom: .3rem;
}

.paqueteria-feature-text p {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── RENTA ── */
.renta-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 3rem;
}

.renta-feature {
    background: var(--b1);
    border-radius: 4px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: transform .2s, background .2s;
    border-top: 3px solid transparent;
}

    .renta-feature:hover {
        transform: translateY(-4px);
        border-top-color: var(--g2);
        background: var(--b2);
    }

.renta-feature-icon {
    font-size: 1.8rem;
    color: var(--g2);
    margin-bottom: 1rem;
}

.renta-feature h4 {
    font-family: var(--serif);
    font-size: 1rem;
    color: #fff;
    margin-bottom: .5rem;
}

.renta-feature p {
    font-size: .76rem;
    color: rgba(255,255,255,.45);
    line-height: 1.6;
}

.renta-unidades {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.renta-unidad {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow .3s, transform .3s;
}

    .renta-unidad:hover {
        box-shadow: 0 12px 40px rgba(26,45,62,.12);
        transform: translateY(-4px);
    }

    .renta-unidad img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

.renta-unidad-info {
    padding: 1.8rem;
    background: #fff;
}

.renta-unidad-titulo {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--b2);
    font-weight: 700;
    margin-bottom: 1rem;
}

.renta-unidad-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .renta-unidad-list li {
        font-size: .8rem;
        color: var(--muted);
        display: flex;
        align-items: flex-start;
        gap: .5rem;
    }

        .renta-unidad-list li i {
            color: var(--g2);
            margin-top: 2px;
            flex-shrink: 0;
        }

.renta-cta {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

    .renta-cta a {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--g1);
        transition: color .2s;
    }

        .renta-cta a:hover {
            color: var(--g2);
        }

/* ── CTA CON IMAGEN ── */
.cta {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,45,62,.72);
    z-index: 1;
}

.cta-text, .cta-acts, .cta::before {
    position: relative;
    z-index: 2;
}

/* ── MODAL PDF ── */
.pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(26,45,62,.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

    .pdf-overlay.open {
        display: flex;
    }

.pdf-modal {
    background: var(--b1);
    border-top: 3px solid var(--g2);
    width: 100%;
    max-width: 860px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    border-radius: 0 0 4px 4px;
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--b2);
    border-bottom: 1px solid rgba(193,162,116,.2);
    flex-shrink: 0;
}

.pdf-modal-title {
    font-family: var(--serif);
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.pdf-modal-cerrar {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color .2s;
    padding: .2rem .5rem;
    line-height: 1;
}

    .pdf-modal-cerrar:hover {
        color: var(--g2);
    }

.pdf-iframe {
    flex: 1;
    border: none;
    width: 100%;
}

/* ft-legal */
.ft-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .ft-legal a {
        font-size: .68rem;
        color: rgba(255,255,255,.25);
        transition: color .2s;
    }

        .ft-legal a:hover {
            color: var(--g3);
        }

/* ── REVEAL ── */
[data-r] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s var(--ease),transform .75s var(--ease);
}

    [data-r].in {
        opacity: 1;
        transform: none;
    }

[data-r="r"] {
    transform: translateX(28px);
}

    [data-r="r"].in {
        transform: none;
    }

[data-r="l"] {
    transform: translateX(-28px);
}

    [data-r="l"].in {
        transform: none;
    }

[data-r="s"] {
    transform: scale(.95);
    opacity: 0;
}

    [data-r="s"].in {
        transform: none;
        opacity: 1;
    }

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

/* Tablet grande — 1100px */
@media (max-width: 1100px) {
    .renta-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicios-nav {
        top: 82px;
    }
}

/* Tablet — 960px */
@media (max-width: 960px) {
    .tarifas-intro {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .paqueteria-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .renta-unidades {
        grid-template-columns: 1fr;
    }

    .horarios-grid {
        grid-template-columns: 1fr;
    }

    #mapaRutas {
        height: 680px;
    }

    .servicio-section {
        padding: 5rem 5vw;
    }
}

/* Tablet chica — 800px */
@media (max-width: 800px) {
    .page-hero {
        padding: 9rem 5vw 5rem;
    }

    .servicios-nav {
        top: 72px;
    }

    .servicios-nav-btn {
        padding: 1rem 1.5rem;
        font-size: .68rem;
    }

    .renta-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .horarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil — 600px */
@media (max-width: 600px) {
    .page-hero {
        padding: 8rem 5vw 4rem;
    }

        .page-hero h1 {
            font-size: clamp(2.2rem, 9vw, 3.5rem);
        }

    .servicio-section {
        padding: 4rem 5vw;
    }

    .servicios-nav-btn {
        padding: .9rem 1.2rem;
        font-size: .62rem;
        gap: .3rem;
    }

    .tarifas-intro {
        gap: 2rem;
    }

    /* Tabla con scroll horizontal en móvil */
    .tarifa-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #mapaRutas {
        height: 660px;
    }

    .horarios-grid {
        grid-template-columns: 1fr;
    }

    .renta-features {
        grid-template-columns: 1fr 1fr;
    }

    .renta-unidad-info {
        padding: 1.2rem;
    }

    .paqueteria-feature {
        padding: 1rem;
    }

    .paqueteria-feature-icon {
        width: 36px;
        height: 36px;
    }

    .pdf-overlay {
        padding: .8rem;
    }

    .pdf-modal {
        height: 90vh;
    }

    .pdf-modal-header {
        padding: .8rem 1rem;
    }

    .ft-legal {
        gap: 1rem;
    }
}

/* Móvil pequeño — 400px */
@media (max-width: 400px) {
    .page-hero {
        padding: 7rem 4vw 3rem;
    }

        .page-hero h1 {
            font-size: clamp(2rem, 10vw, 3rem);
        }

    .servicios-nav-btn {
        padding: .8rem 1rem;
        font-size: .58rem;
    }

    .renta-features {
        grid-template-columns: 1fr;
    }

    #mapaRutas {
        height: 600px;
    }

    .tarifa-table tbody td {
        padding: .5rem .8rem;
        font-size: .78rem;
    }

    .pdf-modal {
        height: 95vh;
    }

    .ft-legal {
        flex-direction: column;
        gap: .4rem;
    }
}
