﻿body {
    font-family: "Inter", system-ui, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

.prose {
    max-width: 900px;
    margin-inline: auto;
    font-size: 1.05rem
}

    .prose p {
        margin: 0 0 1rem;
        color: #0f172a
    }

    .prose .lead {
        font-size: 1.15rem;
        color: #1f2937
    }

    .prose h3 {
        margin: 2rem 0 0.75rem;
        font-weight: 700
    }
/* Reset moderno + utilidades */
*, *::before, *::after {
    box-sizing: border-box
}

html:focus-within {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: system-ui,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: #fff
}

img {
    max-width: 100%;
    display: block;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

:root {
    --bg: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --brand: #E98935;
    --brand-ink: #ffffff;
    --surface: #f1f5f9;
    --radius: 14px;
    --maxw: 1100px;
    --header-h: clamp(70px, 8vh, 120px);
}

/* Accesibilidad */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto
}

    .skip-link:focus {
        left: 1rem;
        top: 1rem;
        background: #000;
        color: #fff;
        padding: .5rem .75rem;
        border-radius: .5rem;
        z-index: 999
    }

/* Header + nav */
.site-header {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid #e2e8f0
}

.brand {
    display: grid;
    place-items: center;
    height: var(--header-h);
    padding-inline: 1rem
}

.logo {
    height: clamp(40px,8vw,80px);
    width: auto
}

.site-nav {
    position: sticky;
    top: 0;
    background: #ffffffd9;
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 50
}

.nav-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    width: 48px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
    transition: transform .35s ease, opacity .25s ease, width .35s ease;
}

.nav-toggle span:nth-child(1) {
    transform: translateY(-8px);
}

.nav-toggle span:nth-child(2) {
    transform: translateY(0);
}

.nav-toggle span:nth-child(3) {
    transform: translateY(8px);
    width: 18px;
    transform-origin: right center;
}

.site-nav[aria-expanded="true"] .nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
}

.site-nav[aria-expanded="true"] .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-nav[aria-expanded="true"] .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
    width: 24px;
}

body.is-scrolled .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: rgba(248, 250, 252, 0.88);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px) saturate(180%);
    animation: navSlideDown .45s ease;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

    .site-nav .nav-toggle {
        display: none
    }

.menu {
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: .6rem 1rem;
    flex-wrap: wrap
}

    .menu a {
        display: block;
        padding: .55rem .9rem;
        border-radius: 999px;
        color: var(--muted);
        font-weight: 600
    }

        .menu a[aria-current="true"], .menu a.is-active {
            background: var(--brand);
            color: var(--brand-ink);
            text-decoration: none
        }

/* Mobile nav */
@media (max-width: 768px) {
    .site-nav {
        position: sticky
    }

    .site-nav .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem 1rem;
        gap: .2rem;
    }

    .site-nav[aria-expanded="true"] .menu {
        display: flex;
    }

    .site-nav[aria-expanded="false"] .menu {
        display: none;
    }
}

/* Container + sections */
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1rem,3vw,2rem)
}

.section {
    padding: clamp(2.5rem, 6vw, 5rem) 0
}

    .section.alt {
        background: var(--surface)
    }

    .section h2 {
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
        margin: 0 0 1rem
    }

.grid-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3,minmax(0,1fr))
}

@media (max-width: 960px) {
    .grid-3 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media (max-width: 640px) {
    .grid-3 {
        grid-template-columns: 1fr
    }
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 .5rem 1rem rgba(15,23,42,.04)
}

/* Slider: crossfade + controles + respeto a reduce-motion */
.hero {
    isolation: isolate
}

.slider {
    position: relative;
    min-height: min(70vh,720px)
}

/* La altura ya no depende de % (que colapsa); la fijamos con min-height */
.slider {
    position: relative;
}

.slides {
    position: relative;
    min-height: clamp(360px, 70vh, 720px);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    display: grid;
    place-items: center
}

    .slide.is-active {
        opacity: 1
    }

.slide picture, .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.slide picture {
    position: relative;
    display: block;
}

.slide picture::after {
    content: "";
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, .18), transparent 65%),
                radial-gradient(circle at 70% 80%, rgba(249, 115, 22, .16), transparent 60%);
    mix-blend-mode: screen;
    opacity: .55;
    pointer-events: none;
}

.slides .slide {
    overflow: hidden;
}

.plate-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

.plate-overlay .plate {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem 1rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fefefe, #f5f6f8);
    border: 2px solid rgba(51, 65, 85, .55);
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-size: clamp(.78rem, 1.25vw, 1.05rem);
    box-shadow: 0 22px 45px rgba(15, 23, 42, .28);
    opacity: 0;
    left: 50%;
    top: 55%;
    transform: translate3d(var(--start-x, -280px), var(--start-y, 280px), -220px) scale(.6);
    animation: plateFloat linear infinite;
    animation-duration: calc(var(--duration, 9) * 1s);
    animation-delay: calc(var(--delay, 0) * 1s);
    will-change: transform, opacity;
}

.plate-overlay .plate::before {
    content: "EU";
    font-size: .58em;
    letter-spacing: .12em;
    padding: .18rem .42rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
    color: #e0f2fe;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.plate-overlay .plate::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, .35);
    pointer-events: none;
    opacity: .65;
}

.plate-overlay .plate.plate--a {
    --start-x: -420px;
    --start-y: 260px;
    --mid1-x: -120px;
    --mid1-y: 60px;
    --mid2-x: 80px;
    --mid2-y: -80px;
    --end-x: 280px;
    --end-y: -380px;
    --duration: 10;
}

.plate-overlay .plate.plate--b {
    --start-x: 360px;
    --start-y: 280px;
    --mid1-x: 180px;
    --mid1-y: 75px;
    --mid2-x: -60px;
    --mid2-y: -40px;
    --end-x: -260px;
    --end-y: -360px;
    --duration: 9.5;
}

.plate-overlay .plate.plate--c {
    --start-x: -160px;
    --start-y: 240px;
    --mid1-x: -40px;
    --mid1-y: 40px;
    --mid2-x: 140px;
    --mid2-y: -120px;
    --end-x: 320px;
    --end-y: -400px;
    --duration: 11;
}

.plate-overlay .plate.plate--d {
    --start-x: 220px;
    --start-y: 300px;
    --mid1-x: 80px;
    --mid1-y: 90px;
    --mid2-x: -140px;
    --mid2-y: -70px;
    --end-x: -320px;
    --end-y: -420px;
    --duration: 9;
}

.plate-overlay .plate.plate--e {
    --start-x: -520px;
    --start-y: 280px;
    --mid1-x: -220px;
    --mid1-y: 70px;
    --mid2-x: 40px;
    --mid2-y: -90px;
    --end-x: 220px;
    --end-y: -430px;
    --duration: 12;
}

.plate-overlay .plate.plate--f {
    --start-x: 480px;
    --start-y: 300px;
    --mid1-x: 240px;
    --mid1-y: 55px;
    --mid2-x: 0px;
    --mid2-y: -110px;
    --end-x: -240px;
    --end-y: -420px;
    --duration: 10.5;
}

.plate-overlay .plate.plate--slow {
    --duration: 13.5;
}

.plate-overlay .plate.plate--fast {
    --duration: 8;
}

.plate-delay-0 { --delay: 0; }
.plate-delay-1 { --delay: 1.4; }
.plate-delay-2 { --delay: 2.7; }
.plate-delay-3 { --delay: 4.1; }
.plate-delay-4 { --delay: 5.8; }
.plate-delay-5 { --delay: 7.2; }
.plate-delay-6 { --delay: 8.6; }
.plate-delay-7 { --delay: 9.9; }

@keyframes plateFloat {
    0% {
        opacity: 0;
        transform: translate3d(var(--start-x), var(--start-y), -220px) scale(.6);
    }
    12% {
        opacity: .65;
    }
    38% {
        opacity: .95;
        transform: translate3d(var(--mid1-x), var(--mid1-y), -40px) scale(.95);
    }
    68% {
        opacity: .6;
        transform: translate3d(var(--mid2-x), var(--mid2-y), 110px) scale(1.12);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--end-x), var(--end-y), 240px) scale(1.3);
    }
}

    .slide .caption {
        position: absolute;
        inset: auto 0 8% 0;
        display: grid;
        place-items: center;
        text-align: center;
        color: #fff;
        text-shadow: 0 2px 18px rgba(0,0,0,.45);
        padding-inline: 1rem
    }

        .slide .caption h2 {
            font-size: clamp(1.8rem,3.5vw,3rem);
            margin: .2rem 0 .4rem
        }

        .slide .caption p {
            font-size: clamp(1rem,1.4vw,1.25rem);
            opacity: .95
        }

.ctrl {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    border: 0;
    background: #0009;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer
}

    .ctrl:hover {
        background: #000c
    }

    .ctrl.prev {
        left: 1rem
    }

    .ctrl.next {
        right: 1rem
    }

/* Animación auto-advance: se pausa en hover/focus y con reduce-motion */
.slides[data-autoplay="true"]:hover .slide,
.slides[data-autoplay="true"]:focus-within .slide {
    animation-play-state: paused
}

@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
}

/* Ajuste anclas bajo nav sticky */
section {
    scroll-margin-top: calc(64px + 1rem);
}


/* ─── Dropdown ─────────────────────────────────────────────────────────────── */
.has-submenu {
    position: relative
}

.submenu {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15,23,42,.14);
    padding: .35rem;
    margin-top: .4rem;
    list-style: none;
    display: none;
    min-width: 220px;
    z-index: 60
}

    .submenu li {
        margin: 0
    }

    .submenu a {
        display: block;
        padding: .55rem .8rem;
        border-radius: 10px;
        color: #334155;
        font-weight: 600;
        white-space: nowrap
    }

        .submenu a:hover {
            background: #f1f5f9;
            text-decoration: none
        }

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    display: block
}

/* Mobile: el menú es en columna y el submenú se abre “en línea” */
@media (max-width:768px) {
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        padding: .25rem 0;
        margin: .25rem 0 0 0
    }

    .has-submenu.open > .submenu {
        display: block
    }

    .submenu a {
        padding: .5rem .9rem;
        margin-left: .5rem
    }
}
@media (min-width: 769px) {
    /* Alineado uniforme de los items del menú en desktop */
    .menu {
        display: flex;
        align-items: center;
    }

        .menu > li {
            display: flex;
            align-items: center;
        }
}

/* Dropdown sin desalinear el trigger */
.has-submenu {
    position: relative;
    /* QUITAMOS el padding-bottom que desalineaba */
    padding-bottom: 0;
}

/* Puente hover sin afectar layout (no crea gap visual) */
:root {
    --submenu-gap: .6rem;
}
/* ajusta si quieres más separación visual */
.has-submenu::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px; /* un pelín más ancho para evitar micro-gaps */
    top: 100%;
    height: var(--submenu-gap); /* área “hoverable” entre trigger y panel */
}

/* Panel pegado + separación controlada por --submenu-gap */
.submenu {
    position: absolute;
    left: 0;
    top: calc(100% + var(--submenu-gap));
    margin-top: 0; /* sin margen que cree gaps reales */
}

/* En móvil el submenú es estático, sin puente */
@media (max-width:768px) {
    .has-submenu::after {
        display: none;
    }

    .submenu {
        position: static;
        top: auto;
    }
}
/* ── SR CENTER ─────────────────────────────────────────────────────────────── */
:root {
    --sr-grad: radial-gradient(1200px 600px at 10% -20%, rgba(233,137,53,.18), transparent 70%), radial-gradient(1200px 600px at 90% 120%, rgba(233,137,53,.12), transparent 70%);
}

.srcenter-hero {
    background: var(--sr-grad), linear-gradient(#fff, #fff);
    padding: clamp(3rem, 6vw, 6rem) 0;
}

    .srcenter-hero .hero-inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(1rem, 3vw, 3rem);
        align-items: center;
    }

@media (max-width: 960px) {
    .srcenter-hero .hero-inner {
        grid-template-columns: 1fr
    }
}

.hero-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 .5rem
}

.hero-text .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: #334155
}

.badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem
}

.badge {
    background: var(--brand);
    color: var(--brand-ink);
    padding: .35rem .6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem
}

.hero-media img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(15,23,42,.15)
}

.parallax {
    transform: translateY(0);
    will-change: transform;
    transition: transform .5s ease
}

/* Grid de contenidos */
.srcenter-grid {
    background: #fff
}

.grid-2 {
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
    grid-template-columns: repeat(2,minmax(0,1fr))
}

@media (max-width: 960px) {
    .grid-2 {
        grid-template-columns: 1fr
    }
}

.card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(1rem, 2vw, 1.25rem);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.06)
}

    .card .card-media img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        object-fit: cover
    }

    .card .card-body h3 {
        margin: .25rem 0 .6rem
    }

    .card .card-body .muted {
        color: #475569
    }

    .card .tags {
        display: flex;
        gap: .4rem;
        flex-wrap: wrap;
        margin-top: .6rem
    }

        .card .tags span {
            background: #f1f5f9;
            color: #334155;
            padding: .35rem .55rem;
            border-radius: 999px;
            font-weight: 600;
            font-size: .85rem
        }

@media (max-width: 900px) {
    .card {
        grid-template-columns: 1fr
    }
}

/* Lista con checks */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0
}

    .checklist li {
        padding-left: 1.6rem;
        position: relative;
        margin: .45rem 0
    }

        .checklist li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .45rem;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            background: var(--brand);
            box-shadow: 0 0 0 3px rgba(233,137,53,.18);
        }

/* Animaciones de entrada */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease
}

    .reveal.in-view {
        opacity: 1;
        transform: none
    }

/* Hover sutil */
.card:hover {
    box-shadow: 0 20px 50px rgba(15,23,42,.09)
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none
    }

    .parallax {
        transition: none
    }
}
/* ── BLUEPARK ─────────────────────────────────────────────────────────────── */
:root {
    --bp-grad: radial-gradient(1200px 600px at 0% -20%, rgba(233,137,53,.16), transparent 70%), radial-gradient(1200px 600px at 100% 120%, rgba(233,137,53,.10), transparent 70%);
    --bus-grad: radial-gradient(1200px 600px at 15% -25%, rgba(233,137,53,.18), transparent 70%), radial-gradient(1200px 600px at 85% 125%, rgba(233,137,53,.12), transparent 70%);
}

.bluepark-hero {
    background: var(--bp-grad), linear-gradient(#fff,#fff);
    padding: clamp(3rem,6vw,6rem) 0;
}

    .bluepark-hero .hero-inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(1rem,3vw,3rem);
        align-items: center;
    }

@media (max-width:960px) {
    .bluepark-hero .hero-inner {
        grid-template-columns: 1fr
    }
}

.bluepark-grid {
    background: #fff;
}

/* ── SRBUS ────────────────────────────────────────────────────────────────── */
.srbus-hero {
    background: var(--bus-grad), linear-gradient(#fff,#fff);
    padding: clamp(3rem,6vw,6rem) 0;
}

    .srbus-hero .hero-inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(1rem,3vw,3rem);
        align-items: center;
    }

@media (max-width:960px) {
    .srbus-hero .hero-inner {
        grid-template-columns: 1fr
    }
}

.srbus-grid {
    background: #fff;
}

/* (Reutiliza .badge, .card, .grid-2, .checklist, .reveal ya definidas en SRCENTER) */
/* ── FOTOROJO ─────────────────────────────────────────────────────────────── */
:root {
    --fr-grad: radial-gradient(1200px 600px at 5% -20%, rgba(233,137,53,.18), transparent 70%), radial-gradient(1200px 600px at 95% 120%, rgba(233,137,53,.12), transparent 70%);
}

.fotorojo-hero {
    background: var(--fr-grad), linear-gradient(#fff,#fff);
    padding: clamp(3rem,6vw,6rem) 0;
}

    .fotorojo-hero .hero-inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(1rem,3vw,3rem);
        align-items: center;
    }

@media (max-width:960px) {
    .fotorojo-hero .hero-inner {
        grid-template-columns: 1fr
    }
}

.fotorojo-grid {
    background: #fff;
}

/* Las clases .badge, .card, .grid-2, .checklist, .reveal ya existen y se reutilizan */

/* ── OCR (LOLANPR) ────────────────────────────────────────────────────────── */
:root {
    --ocr-grad: radial-gradient(1200px 600px at 10% -20%, rgba(233,137,53,.18), transparent 70%), radial-gradient(1200px 600px at 90% 120%, rgba(233,137,53,.12), transparent 70%);
}

.ocr-hero {
    background: var(--ocr-grad), linear-gradient(#fff,#fff);
    padding: clamp(3rem,6vw,6rem) 0;
}

    .ocr-hero .hero-inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(1rem,3vw,3rem);
        align-items: center;
    }

@media (max-width:960px) {
    .ocr-hero .hero-inner {
        grid-template-columns: 1fr
    }
}

.ocr-grid {
    background: #fff;
}

/* Reutiliza .badge, .card, .grid-2, .checklist, .reveal ya definidas */
/* Logo centrado y con menos altura */
:root {
    /* altura del nav fijo (ya la calculas por JS): */
    --nav-h: 56px;
    /* altura objetivo del logo (ajústala a tu gusto) */
    --logo-h: clamp(40px, 7vw, 72px); /* ~40px en móvil, ~64–72px en desktop */
}

.site-header {
    padding: .5rem 0 .25rem;
}

.brand {
    display: grid;
    place-items: center; /* centra horizontal y vertical */
    padding: .25rem 1rem;
}

.logo {
    height: var(--logo-h);
    width: auto;
    display: block;
}

/* Si tenías estilos viejos que forzaban 100% de ancho, anúlalos */
.header-banner, .header-banner__img {
    all: unset;
}
/* Centrado del bloque del logo y altura controlada */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

    .site-header .brand {
        width: 100%;
        display: flex !important; /* evita que otros estilos lo cambien */
        justify-content: center; /* centra horizontalmente */
        align-items: center; /* centra verticalmente */
        padding: .4rem 1rem;
        text-align: center; /* fallback */
    }

        .site-header .brand a {
            display: inline-flex;
            align-items: center;
        }

:root {
    --logo-h: 56px;
}
/* ajusta: 48–72px suele ir bien */
.site-header .brand .logo {
    height: var(--logo-h);
    width: auto;
    display: block;
    margin: 0 auto; /* por si queda algún estilo heredado */
}

/* Por si quedaron estilos antiguos del banner, los anulamos */
.header-banner, .header-banner__img {
    all: unset;
}
/* Logo un poco más alto */
:root {
    --logo-h: 72px;
}
/* prueba 68–76px según te guste */

/* En móviles, un pelín más compacto */
@media (max-width: 480px) {
    :root {
        --logo-h: 56px;
    }
}

/* opcional: un poco más de aire alrededor del logo */
.site-header .brand {
    padding: .6rem 1rem;
}


.site-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px
}

.site-footer a:hover {
        text-decoration: none;
        color: var(--brand)
    }

/* ===== Modern refresh overrides ===== */
:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --brand: #2563eb;
    --brand-alt: #f97316;
    --surface: rgba(255, 255, 255, 0.65);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-lg: 0 25px 45px rgba(15, 23, 42, 0.18);
    --shadow-md: 0 18px 32px rgba(15, 23, 42, 0.12);
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body {
    background:
        radial-gradient(800px 520px at 10% 10%, rgba(37, 99, 235, 0.10), transparent 55%),
        radial-gradient(840px 560px at 90% 0%, rgba(249, 115, 22, 0.12), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 55%, #e2e8f0 100%);
    color: var(--ink);
}

.section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section.alt {
    background: linear-gradient(145deg, rgba(255,255,255,0.82) 0%, rgba(241,245,249,0.9) 100%);
    backdrop-filter: blur(16px);
}

.container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.hero {
    position: relative;
    overflow: hidden;
    

.hero::before {
    content: "";
    position: absolute;
    inset: -30% -40%;
    background: radial-gradient(60% 50% at 50% 20%, rgba(37, 99, 235, 0.24), transparent),
                radial-gradient(35% 40% at 80% 0%, rgba(249, 115, 22, 0.22), transparent);
    filter: blur(40px);
    z-index: 0;
}

.hero .slides,
.hero .hero-inner {
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #0f172a;
}

.hero-text .lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(15, 23, 42, 0.78);
    max-width: 46ch;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.badge {
    padding: .4rem .95rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.04));
    color: var(--brand);
    border: 1px solid rgba(37, 99, 235, 0.22);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.1));
    color: #0f172a;
}

.card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
}

.card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-lg) - 1px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.card:hover::after {
    opacity: 1;
}

.card-media {
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    flex: 0 0 auto;
    height: clamp(220px, 24vw, 280px);
}

.card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.card:hover .card-media img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .9rem;
}

.card-body .muted {
    color: rgba(15, 23, 42, 0.65);
    margin-bottom: 1.1rem;
}

.checklist {
    display: grid;
    gap: .6rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
    color: rgba(15, 23, 42, 0.76);
    font-weight: 500;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--brand), rgba(37, 99, 235, 0.5));
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.grid-2 {
    display: grid;
    gap: clamp(1.75rem, 3vw, 2.8rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(.98);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--surface-strong);
}

.hero-media img {
    width: 100%;
    display: block;
}

.hero .ctrl {
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    border: 0;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    backdrop-filter: blur(6px);
    transition: transform .3s ease, background .3s ease;
}

.hero .ctrl:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.75);
}

.section .lead {
    max-width: 58ch;
    color: rgba(15, 23, 42, 0.72);
}

.srcenter-grid .card,
.srbus-grid .card,
.bluepark-grid .card,
.fotorojo-grid .card,
.ocr-grid .card {
    background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(249,250,251,0.95) 100%);
}

.srcenter-grid .card:hover,
.srbus-grid .card:hover,
.bluepark-grid .card:hover,
.fotorojo-grid .card:hover,
.ocr-grid .card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(241,245,249,0.98) 100%);
}

.section.alt::before {
    content: "";
    position: absolute;
    inset: -25% -10% auto;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(45% 45% at 50% 50%, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
    opacity: .6;
}

.contact-section {
    position: relative;
}

.contact-section .contact-card {
    position: relative;
    background: radial-gradient(circle at 20% -10%, rgba(59, 130, 246, 0.28), transparent 55%),
                radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.2), transparent 58%),
                linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.75));
    border-radius: var(--radius-xl, 28px);
    padding: clamp(2.5rem, 5vw, 3.8rem);
    box-shadow: 0 45px 80px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(18px);
    overflow: hidden;
    color: rgba(241, 245, 249, 0.9);
}

.contact-section .contact-card::before,
.contact-section .contact-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.65;
}

.contact-section .contact-card::before {
    width: 320px;
    height: 320px;
    top: -140px;
    left: -110px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.4), transparent 68%);
}

.contact-section .contact-card::after {
    width: 280px;
    height: 280px;
    bottom: -120px;
    right: -120px;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.28), transparent 72%);
}

.contact-section .contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-section .contact-card__header {
    display: grid;
    gap: 0.75rem;
    margin-bottom: clamp(1.8rem, 4vw, 2.4rem);
    max-width: 55ch;
}

.contact-section .contact-card__header h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: 0;
    color: #e2e8f0;
}

.contact-section .contact-card__subtitle {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.8);
    letter-spacing: 0.01em;
    max-width: 60ch;
}

.contact-section .contact-card p {
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.78);
}

.contact-section .contact-card__grid {
    display: grid;
    gap: clamp(1.8rem, 4vw, 2.6rem);
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: stretch;
}

.contact-section .contact-card__form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.5rem;
    padding: clamp(2rem, 4vw, 2.4rem);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(241, 245, 249, 0.22);
    box-shadow: inset 0 1px 0 rgba(241, 245, 249, 0.25), 0 25px 45px rgba(15, 23, 42, 0.22);
}

.contact-section .contact-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-section .contact-card__field--full {
    grid-column: 1 / -1;
}

.contact-section .contact-card__form label {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.contact-section .contact-card__form input,
.contact-section .contact-card__form textarea {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 0.95rem 1.15rem;
    font-size: 1.02rem;
    background-color: rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.2), 0 15px 35px rgba(15, 23, 42, 0.28);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.contact-section .contact-card__form input:focus,
.contact-section .contact-card__form textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(241, 245, 249, 0.35);
    transform: translateY(-2px);
    background-color: rgba(15, 23, 42, 0.6);
}

.contact-section .contact-card__form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-section .contact-card__actions {
    display: flex;
    justify-content: flex-start;
    grid-column: 1 / -1;
    margin-top: .5rem;
}
 .contact-card__actions {
   
    margin-top: .5rem;
}

.contact-section .contact-card__actions .btn {
    min-width: 200px;
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 60%, #4338ca 100%);
    color: #f8fafc;
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-section .contact-card__actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.34);
    filter: brightness(1.05);
}

.contact-section .contact-card__actions .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35);
}

.contact-section .contact-card__info {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.88));
    border-radius: 22px;
    padding: clamp(1.8rem, 4vw, 2.2rem);
    display: grid;
    gap: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.25), 0 25px 45px rgba(15, 23, 42, 0.26);
    position: relative;
    overflow: hidden;
}

.contact-section .contact-card__info::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.35), transparent 70%);
    pointer-events: none;
    opacity: 0.9;
}

.contact-section .contact-card__info::after {
    content: "";
    position: absolute;
    inset: auto -35% -35% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.28), transparent 72%);
    pointer-events: none;
}

.contact-section .contact-card__info h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.9);
}

.contact-section .contact-card__info p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    display: grid;
    gap: 0.25rem;
}

.contact-section .contact-card__info a {
    color: #e0f2fe;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-section .contact-card__info a:hover {
    text-decoration: underline;
}

.contact-section .contact-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.75);
}

.contact-section .contact-card__note {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.7);
}

@media (max-width: 960px) {
    .contact-section .contact-card__grid {
        grid-template-columns: 1fr;
    }

    .contact-section .contact-card__info {
        order: -1;
    }

    .contact-section .contact-card__form {
        grid-template-columns: 1fr;
        padding: clamp(1.6rem, 4vw, 2rem);
    }

    .contact-section .contact-card__actions {
        justify-content: stretch;
    }

    .contact-section .contact-card__actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.4rem;
    }

    .card-media {
        height: clamp(180px, 52vw, 220px);
    }

    .hero-text h2 {
        font-size: clamp(2rem, 6vw, 2.6rem);
    }

    .grid-2 {
        gap: clamp(1.2rem, 6vw, 2rem);
    }

    .badge {
        font-size: .8rem;
        padding-inline: .85rem;
    }

    .plate-overlay {
        gap: 1rem;
        padding: 1rem;
    }

    .plate-overlay .plate {
        font-size: .7rem;
        padding: .3rem .75rem;
        border-radius: 10px;
    }
}

}
