/* ============================================================
   ASOTECAUTO — /beta/  · CSS autocontenido
   Port vanilla de los efectos OMAP recoloreado al brand rojo.
   No depende de style.css de la home actual.
   ============================================================ */

:root {
    --accent:        #E30613;
    --accent-deep:   #b8050f;
    --accent-light:  #ff1a27;
    --accent-soft:   #fde7e9;
    --accent-rgb:    227, 6, 19;

    --ink-950: #0b0d10;
    --ink-900: #111418;
    --ink-800: #1a1f25;
    --ink-700: #2E2D2C;
    --ink-600: #3b434c;
    --ink-500: #5a636d;
    --ink-400: #7c8591;
    --ink-300: #aab1bb;
    --ink-200: #d2d6dc;
    --ink-100: #e7eaee;
    --ink-50:  #f5f6f8;

    --shell-max: 1280px;

    --shadow-card: 0 1px 0 rgba(11,13,16,0.04), 0 20px 40px -20px rgba(11,13,16,0.14);
    --shadow-cta:  0 10px 30px -10px rgba(var(--accent-rgb), 0.55);
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-feature-settings: "ss01", "cv02", "cv11";
}
body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--ink-50);
    color: var(--ink-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4, h5 {
    margin: 0;
    letter-spacing: -0.02em;
    font-weight: 700;
}

em { font-style: normal; color: var(--accent); }

/* Focus universal */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ink-950);
    color: white;
    padding: 8px 16px;
    z-index: 100;
}
.skip-link:focus { top: 0; }

/* ============================================================
   Layout
   ============================================================ */
.shell {
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 2.25rem;
}
@media (min-width: 576px) {
    .shell { padding: 0 2.5rem; }
}
@media (min-width: 992px) {
    .shell { padding: 0 3rem; }
}

.section {
    padding: 5rem 0;
}
.section--tight { padding: 3.5rem 0; }
@media (max-width: 767px) {
    .section { padding: 3rem 0; }
    .section--tight { padding: 2.25rem 0; }
}
.bg-light { background: white; }
.bg-soft  { background: var(--ink-50); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.overline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.overline::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.section-header h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}
.section-header p {
    color: var(--ink-500);
    font-size: 1.0625rem;
    margin: 0;
}

/* ============================================================
   Navbar (minimalista, autocontenido — no es la nav real)
   ============================================================ */
.beta-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
@media (max-width: 991px) {
    .beta-nav {
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid var(--ink-100);
    }
}
.beta-nav.is-scrolled {
    border-bottom-color: var(--ink-100);
    box-shadow: 0 4px 16px -8px rgba(0,0,0,0.08);
}
.beta-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1rem;
}
@media (min-width: 1400px) {
    .beta-nav__inner { padding: 1rem 0; }
}
.beta-nav__brand img { height: 88px; width: auto; }
@media (max-width: 991px) {
    .beta-nav__brand img { height: 56px; }
}
.beta-nav__menu {
    display: none;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.beta-nav__menu a {
    color: var(--ink-700);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}
.beta-nav__menu a:hover { color: var(--accent); }
.beta-nav__right {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}
.beta-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-cta);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.beta-nav__cta:hover { background: var(--accent-deep); color: white; transform: translateY(-1px); }
.beta-nav__cta i { font-size: 1.05rem; }
@media (min-width: 992px) {
    .beta-nav__menu { display: flex; }
}
@media (max-width: 575px) {
    .beta-nav__cta span { display: none; }
    .beta-nav__cta { padding: 0.55rem 0.7rem; }
    .beta-nav__cta i { font-size: 1.2rem; }
}

/* Hamburguesa: oculto en escritorio */
.beta-nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.2s;
}
.beta-nav__toggle:hover {
    background: rgba(var(--accent-rgb), 0.06);
}
.beta-nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink-900);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.beta-nav.is-open .beta-nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.beta-nav.is-open .beta-nav__toggle-bar:nth-child(2) { opacity: 0; }
.beta-nav.is-open .beta-nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.beta-nav__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 16, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.beta-nav.is-open .beta-nav__backdrop {
    display: block;
    opacity: 1;
}

@media (max-width: 991px) {
    .beta-nav__toggle { display: inline-flex; }
    .beta-nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        max-height: 100vh;
        width: min(340px, 88vw);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.15rem;
        padding: 1.5rem 1.25rem 1.5rem;
        background:
            radial-gradient(120% 60% at 50% 0%, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%),
            linear-gradient(180deg, #ffffff 0%, var(--ink-50) 100%);
        border-top: 5px solid var(--accent);
        border-bottom-left-radius: 18px;
        box-shadow: -24px 24px 60px -16px rgba(11, 13, 16, 0.32);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    /* Cabecera: logo ASOTECAUTO */
    .beta-nav__menu::before {
        content: "";
        display: block;
        height: 56px;
        margin: 0.2rem 0.5rem 1.2rem;
        padding-bottom: 1.2rem;
        background-image: url("/static/web_publica/img/logos/logo_header_color.png");
        background-repeat: no-repeat;
        background-position: left center;
        background-size: contain;
        border-bottom: 1px solid var(--ink-100);
    }
    .beta-nav.is-open .beta-nav__menu { transform: translateX(0); }
    .beta-nav__menu li {
        width: 100%;
        list-style: none;
        opacity: 0;
        transform: translateX(20px);
    }
    .beta-nav.is-open .beta-nav__menu li {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }
    /* Stagger: cada item se revela ligeramente más tarde */
    .beta-nav.is-open .beta-nav__menu li:nth-child(1) { transition-delay: 0.10s; }
    .beta-nav.is-open .beta-nav__menu li:nth-child(2) { transition-delay: 0.14s; }
    .beta-nav.is-open .beta-nav__menu li:nth-child(3) { transition-delay: 0.18s; }
    .beta-nav.is-open .beta-nav__menu li:nth-child(4) { transition-delay: 0.22s; }
    .beta-nav.is-open .beta-nav__menu li:nth-child(5) { transition-delay: 0.26s; }
    .beta-nav.is-open .beta-nav__menu li:nth-child(6) { transition-delay: 0.30s; }

    .beta-nav__menu a {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 0.85rem;
        border-radius: 12px;
        font-size: 1.02rem;
        font-weight: 600;
        color: var(--ink-800);
        transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
        position: relative;
    }
    /* Icono de cada item dentro de un chip con color brand */
    .beta-nav__menu a::before {
        font-family: "bootstrap-icons" !important;
        font-weight: 400;
        font-size: 1.05rem;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(var(--accent-rgb), 0.1);
        color: var(--accent);
        transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }
    .beta-nav__menu li:nth-child(1) a::before { content: "\F423"; }   /* bi-house-door */
    .beta-nav__menu li:nth-child(2) a::before { content: "\F5DB"; }   /* bi-tools */
    .beta-nav__menu li:nth-child(3) a::before { content: "\F4CF"; }   /* bi-people-fill */
    .beta-nav__menu li:nth-child(4) a::before { content: "\F4A3"; }   /* bi-newspaper */
    .beta-nav__menu li:nth-child(5) a::before { content: "\F52F"; }   /* bi-shield-check */
    .beta-nav__menu li:nth-child(6) a::before { content: "\F32F"; }   /* bi-envelope */
    .beta-nav__menu a::after {
        content: "\F285"; /* bi-chevron-right */
        font-family: "bootstrap-icons" !important;
        font-weight: 400;
        margin-left: auto;
        font-size: 0.9rem;
        color: var(--ink-300);
        transition: color 0.25s ease, transform 0.25s ease;
    }
    .beta-nav__menu a:hover {
        background: white;
        color: var(--accent);
        box-shadow: 0 4px 16px -8px rgba(var(--accent-rgb), 0.28);
    }
    .beta-nav__menu a:hover::before {
        background: linear-gradient(135deg, var(--accent), var(--accent-deep));
        color: white;
        transform: scale(1.06);
        box-shadow: 0 6px 14px -6px rgba(var(--accent-rgb), 0.55);
    }
    .beta-nav__menu a:hover::after {
        color: var(--accent);
        transform: translateX(3px);
    }
    .beta-nav__menu a.is-active {
        background: white;
        color: var(--accent);
        box-shadow: 0 4px 16px -8px rgba(var(--accent-rgb), 0.32);
    }
    .beta-nav__menu a.is-active::before {
        background: linear-gradient(135deg, var(--accent), var(--accent-deep));
        color: white;
        box-shadow: 0 6px 14px -6px rgba(var(--accent-rgb), 0.55);
    }
    .beta-nav__menu a.is-active::after { color: var(--accent); }

    body.beta-nav-locked { overflow: hidden; }
}

/* ============================================================
   Hero — parallax + zoom + WordReveal
   ============================================================ */
.beta-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(560px, 86vh, 880px);
    background: var(--ink-950);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.beta-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    transform: scale(1.02);
    transition: transform 14s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.beta-hero.is-loaded .beta-hero__bg { transform: scale(1.22); }
.beta-hero__bg picture,
.beta-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.beta-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg,
            rgba(11, 13, 16, 0.92) 0%,
            rgba(11, 13, 16, 0.78) 45%,
            rgba(11, 13, 16, 0.42) 100%);
    transition: opacity 0.3s linear;
}
.beta-hero__mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 12% 85%, rgba(var(--accent-rgb), 0.45), transparent 70%),
        radial-gradient(50% 45% at 90% 15%, rgba(184, 5, 15, 0.42), transparent 65%),
        radial-gradient(40% 40% at 60% 60%, rgba(0, 0, 0, 0.35), transparent 70%);
}

.beta-hero__content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 6rem;
}
.beta-hero__pretitle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: white;
    margin-bottom: 1.6rem;
    align-self: flex-start;
}
.beta-hero__pretitle i { color: var(--accent-light); }
@media (max-width: 575px) {
    .hide-on-mobile { display: none; }
    .beta-hero__pretitle {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }
}

.beta-hero h1 {
    color: white;
    font-size: clamp(2rem, 5.2vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 22ch;
}
.beta-hero h1 em { color: var(--accent-light); }
.beta-hero__lead {
    margin: 1.4rem 0 0;
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.98rem, 1.4vw, 1.15rem);
    line-height: 1.65;
}
@media (max-width: 575px) {
    .beta-hero h1 { font-size: 2rem; max-width: 100%; }
    .beta-hero__lead { max-width: 100%; }
    /* CTAs principales a ancho completo, más presencia táctil */
    .beta-hero__cta { gap: 0.65rem; }
    .beta-hero__cta > .btn-base {
        width: 100%;
        justify-content: center;
    }
    /* Chip CONEPA: trust badge a ancho completo, en línea con los CTA */
    .beta-hero__federation {
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: none;
        padding: 0.7rem 1rem;
        gap: 0.65rem;
    }
    .beta-hero__federation:hover {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: none;
        transform: none;
    }
    .beta-hero__federation-label {
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.62rem;
    }
    .beta-hero__federation img {
        height: 26px;
        background: white;
        border-radius: 6px;
        padding: 3px 6px;
    }
}

.beta-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2.4rem;
}

.beta-hero__stats {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 720px;
}
.beta-hero__stat {
    padding-left: 1.1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.25);
}
.beta-hero__stat-value {
    display: block;
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.beta-hero__stat-label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   WordReveal
   ============================================================ */
.word-reveal { display: inline; }
.word-reveal__wrap {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.12em;
    line-height: inherit;
    vertical-align: bottom;
}
.word-reveal__inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.word-reveal.is-show .word-reveal__inner {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   Botones — incluye magnetic
   ============================================================ */
.btn-base {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    will-change: transform;
}
.btn-base.is-magnetic {
    /* el JS aplica translate; CSS solo asegura suavidad al volver */
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-cta);
}
.btn-accent:hover { background: var(--accent-deep); color: white; }

.btn-white {
    background: white;
    color: var(--ink-900);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35);
}
.btn-white:hover { background: var(--ink-50); color: var(--ink-900); }

.btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: white;
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: white;
}

.btn-outline-accent {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}
.btn-outline-accent:hover { background: var(--accent); color: white; }

.btn-lg { padding: 1rem 1.85rem; font-size: 1rem; }

/* ============================================================
   Partners — Glassmorphism cards
   ============================================================ */
.beta-partners {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.beta-partners::before {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    background:
        radial-gradient(45% 55% at 18% 28%, rgba(var(--accent-rgb), 0.18), transparent 70%),
        radial-gradient(40% 50% at 82% 75%, rgba(11, 13, 16, 0.10), transparent 70%),
        radial-gradient(60% 60% at 50% 110%, rgba(var(--accent-rgb), 0.08), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.beta-partners__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    padding: 0.5rem 0;
}
.beta-partners__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(11, 13, 16, 0.04),
        0 12px 32px -12px rgba(11, 13, 16, 0.18);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.3s ease,
        background 0.3s ease;
    overflow: hidden;
}
.beta-partners__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 35%, transparent 65%, rgba(var(--accent-rgb), 0.10));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.beta-partners__item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1px 2px rgba(11, 13, 16, 0.04),
        0 22px 44px -18px rgba(var(--accent-rgb), 0.28);
}
.beta-partners__item:hover::after { opacity: 1; }
.beta-partners__item img {
    position: relative;
    z-index: 1;
    height: var(--h, 72px);
    width: auto;
    max-width: 100%;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.beta-partners__item:hover img {
    transform: scale(1.06);
}
@media (min-width: 768px) {
    .beta-partners__row { gap: 1.75rem; }
    .beta-partners__item { min-height: 180px; }
    .beta-partners__item img { height: var(--h-md, var(--h, 80px)); }
}
/* Mobile/tablet: misma estética glass que escritorio, solo proporcional */
@media (max-width: 767px) {
    .beta-partners__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    .beta-partners__item {
        min-height: 130px;
        padding: 1.1rem 0.85rem;
        border-radius: 18px;
    }
    .beta-partners__item img {
        height: 60px;
        image-rendering: -webkit-optimize-contrast;
    }
}
@media (max-width: 575px) {
    .beta-partners__item {
        min-height: 115px;
        padding: 0.95rem 0.75rem;
        border-radius: 16px;
    }
    .beta-partners__item img {
        height: 54px;
    }
}

/* ============================================================
   Cards — about / services / features
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3.5rem;
}
.about-grid p {
    color: var(--ink-600);
    font-size: 1.02rem;
    margin: 0 0 1rem;
    text-align: left;
}
.about-grid strong { color: var(--ink-900); }
@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .about-grid p {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
    }
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.highlight {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.highlight:hover {
    transform: translateY(-4px);
    border-color: var(--accent-soft);
    box-shadow: 0 12px 32px -16px rgba(var(--accent-rgb), 0.35);
}
.highlight i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}
.highlight h4 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.highlight p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }

.services-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
@media (max-width: 575px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
.service-card,
.feature-item {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover,
.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-soft);
    box-shadow: 0 16px 40px -20px rgba(var(--accent-rgb), 0.4);
}
.service-card .icon,
.feature-item .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1.15rem;
}
.service-card h4,
.feature-item h4 {
    font-size: 1.18rem;
    margin: 0 0 0.55rem;
    color: var(--ink-900);
}
.service-card p,
.feature-item p {
    color: var(--ink-500);
    font-size: 1rem;
    margin: 0;
    line-height: 1.65;
}

/* ---- Variante "home": 4 columnas, tarjeta centrada, icono cuadrado grande ---- */
.services-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}
.service-card--home {
    text-align: center;
    padding: 2.4rem 1.9rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(11, 13, 16, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}
.service-card--home:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px -12px rgba(11, 13, 16, 0.18);
    border-color: var(--ink-100);
}
.service-card--home .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    font-size: 2.1rem;
    box-shadow: 0 10px 26px -10px rgba(var(--accent-rgb), 0.55);
    transition: transform 0.3s ease;
}
.service-card--home:hover .icon {
    transform: scale(1.05);
}
.service-card--home h4 {
    font-size: 1.22rem;
    margin: 0 0 0.6rem;
    color: var(--ink-900);
}
.service-card--home p {
    line-height: 1.7;
}
@media (max-width: 991px) {
    .services-grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
    .services-grid--home > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}
@media (max-width: 575px) {
    .services-grid--home {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .services-grid--home > :last-child:nth-child(odd) {
        max-width: none;
    }
}

/* ---- Variante "detalle": icono + título arriba, lista bullets debajo ---- */
.services-grid--detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.service-card--detail {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(11, 13, 16, 0.06);
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}
.service-card--detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px -16px rgba(11, 13, 16, 0.18);
    border-color: var(--accent-soft);
}
.service-card__header {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--ink-100);
}
.service-card__icon {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    font-size: 1.45rem;
    box-shadow: 0 8px 22px -10px rgba(var(--accent-rgb), 0.5);
}
.service-card--detail h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink-900);
}
.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-card__list li {
    position: relative;
    padding: 0.65rem 0 0.65rem 1.85rem;
    color: var(--ink-600);
    font-size: 0.95rem;
    line-height: 1.55;
    border-bottom: 1px solid var(--ink-50);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.service-card__list li:last-child {
    border-bottom: none;
}
.service-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.10);
}
.service-card__list li::after {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--accent);
}
.service-card__list li:hover {
    color: var(--ink-900);
    padding-left: 2.1rem;
}
@media (max-width: 1024px) {
    .services-grid--detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .services-grid--detail {
        grid-template-columns: 1fr;
    }
    .service-card--detail { padding: 1.4rem; }
}

/* ============================================================
   Bento de servicios (página servicios)
   ============================================================ */
.beta-services {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.beta-services__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(var(--accent-rgb), 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.bento-services {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
}
/* desktop layout: 2 featured + 4 standard + 1 wide
   row 1: featured (3) + featured (3)
   row 2: 03 (2) + 04 (2) + 05 (2)
   row 3: 06 (3) + 07 (3) wide
*/
.bento-card { grid-column: span 2; }
.bento-card--featured { grid-column: span 3; }
.bento-card--wide { grid-column: span 3; }

@media (max-width: 991px) {
    .bento-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bento-card,
    .bento-card--featured,
    .bento-card--wide { grid-column: span 2; }
}
@media (max-width: 575px) {
    .bento-services { grid-template-columns: 1fr; }
    .bento-card,
    .bento-card--featured,
    .bento-card--wide { grid-column: span 1; }
}

.bento-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: 22px;
    padding: 2rem 1.85rem 1.85rem;
    box-shadow: 0 2px 14px rgba(11, 13, 16, 0.05);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.3s ease;
}
.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg,
        rgba(var(--accent-rgb), 0.0) 0%,
        rgba(var(--accent-rgb), 0.0) 60%,
        rgba(var(--accent-rgb), 0.10) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.bento-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow:
        0 1px 2px rgba(11, 13, 16, 0.04),
        0 22px 50px -22px rgba(var(--accent-rgb), 0.32);
}
.bento-card:hover::before { opacity: 1; }

/* Marca de agua "01"–"07" */
.bento-card__num {
    position: absolute;
    top: 0.4rem;
    right: 1rem;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(11, 13, 16, 0.04);
    letter-spacing: -0.05em;
    pointer-events: none;
    z-index: 0;
    transition: color 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    font-variant-numeric: tabular-nums;
}
.bento-card:hover .bento-card__num {
    color: rgba(var(--accent-rgb), 0.10);
    transform: translateY(-2px) scale(1.02);
}
.bento-card--featured .bento-card__num {
    font-size: 7rem;
    color: rgba(var(--accent-rgb), 0.07);
}
.bento-card--featured:hover .bento-card__num {
    color: rgba(var(--accent-rgb), 0.16);
}

/* Badge featured */
.bento-card__badge {
    position: absolute;
    top: 1.1rem;
    left: 1.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 9999px;
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bento-card__badge i { font-size: 0.78rem; }
.bento-card { padding-top: 3.4rem; }

/* Icono */
.bento-card__icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 28px -12px rgba(var(--accent-rgb), 0.55);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bento-card--featured .bento-card__icon {
    width: 68px;
    height: 68px;
    font-size: 1.9rem;
}
.bento-card:hover .bento-card__icon {
    transform: translateY(-3px) scale(1.05);
}

.bento-card h3 {
    position: relative;
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-900);
}
.bento-card--featured h3 {
    font-size: 1.55rem;
}
.bento-card__desc {
    position: relative;
    margin: 0 0 1.1rem;
    color: var(--ink-500);
    font-size: 0.98rem;
    line-height: 1.55;
}

.bento-card__list {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}
.bento-card__list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.7rem;
    color: var(--ink-600);
    font-size: 0.93rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--ink-50);
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.bento-card__list li:last-child { border-bottom: none; }
.bento-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.12);
    transition: background 0.25s ease;
}
.bento-card__list li::after {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--accent);
}
.bento-card:hover .bento-card__list li::before {
    background: rgba(var(--accent-rgb), 0.20);
}
.bento-card__list li:hover {
    color: var(--ink-900);
    padding-left: 1.95rem;
}

/* Callout destacado dentro de tarjetas (p.ej. partner OMAP) */
.bento-card__highlight {
    margin-top: 1.5rem;
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    display: flex;
    gap: 1.1rem;
    align-items: center;
}
.bento-card__highlight-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    font-size: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px -10px rgba(var(--accent-rgb), 0.55);
}
.bento-card__highlight-text {
    flex: 1;
    min-width: 0;
}
.bento-card__highlight-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
}
.bento-card__highlight-connector {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-500);
    margin-top: 0.35rem;
}
.bento-card__highlight-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.1rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bento-card__highlight-partner:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}
.bento-card__highlight-partner i { font-size: 0.78rem; }

/* ============================================================
   Hero — variante interior (páginas no home)
   ============================================================ */
.beta-hero--inner {
    min-height: clamp(520px, 70vh, 720px);
}
.beta-hero--inner .beta-hero__content {
    align-items: center;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 5rem;
}
.beta-hero--inner h1 {
    color: white;
    max-width: none;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.beta-hero--inner .beta-hero__pretitle {
    align-self: center;
}
.beta-hero--inner .beta-hero__lead {
    margin-left: auto;
    margin-right: auto;
}
.beta-hero--inner .beta-hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin: 3rem auto 0;
    max-width: none;
    gap: 0;
}
.beta-hero--inner .beta-hero__stat {
    flex: 0 0 auto;
    border-left: none;
    padding: 0.25rem 2.4rem;
    text-align: center;
    position: relative;
    min-width: 150px;
}
.beta-hero--inner .beta-hero__stat + .beta-hero__stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
}
@media (max-width: 575px) {
    .beta-hero--inner .beta-hero__stats {
        flex-direction: column;
        align-items: stretch;
        margin: 2rem auto 0;
        max-width: 280px;
    }
    .beta-hero--inner .beta-hero__stat {
        padding: 0.85rem 1rem;
        min-width: 0;
    }
    /* Separadores: horizontales entre items en lugar de verticales */
    .beta-hero--inner .beta-hero__stat + .beta-hero__stat::before {
        top: 0;
        bottom: auto;
        left: 12%;
        right: 12%;
        width: auto;
        height: 1px;
    }
}
.beta-hero--inner .beta-hero__cta {
    margin-top: 2.4rem;
    justify-content: center;
}

/* Active state for nav links */
.beta-nav__menu a.is-active {
    color: var(--accent);
}

/* ============================================================
   Junta Directiva — cargos principales y vocales
   ============================================================ */
/* Reset del grid-column: span 2 que heredan de .bento-card (pensado para bento services) */
.junta-card-principal,
.junta-card-vocal { grid-column: auto; }

.junta-principales-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
    padding-top: 3.5rem;  /* hueco para el avatar que sobresale */
}
@media (max-width: 991px) { .junta-principales-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .junta-principales-grid { grid-template-columns: 1fr; } }

.junta-card-principal {
    position: relative;
    overflow: visible;          /* permite que el avatar sobresalga */
    text-align: center;
    padding: 4.5rem 1.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        radial-gradient(ellipse at top, rgba(var(--accent-rgb), 0.05) 0%, transparent 55%),
        white;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.3s ease;
}
/* Franjita superior de gradiente */
.junta-card-principal::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.35;
    border-radius: 22px 22px 0 0;
    transition: opacity 0.4s ease;
}
.junta-card-principal:hover { transform: translateY(-6px); }
.junta-card-principal:hover::after { opacity: 0.85; }

/* Avatar grande que sobresale por encima del borde superior */
.junta-avatar {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px -12px rgba(var(--accent-rgb), 0.6);
    border: 5px solid white;
    transform: translateX(-50%);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.45s ease;
}
.junta-avatar .junta-avatar-icon { width: 56px; height: 56px; }
.junta-card-principal:hover .junta-avatar {
    transform: translateX(-50%) translateY(-3px) scale(1.03);
    box-shadow: 0 22px 40px -14px rgba(var(--accent-rgb), 0.75);
}

.junta-cargo {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    padding: 0.32rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.95rem;
}
.junta-card-principal h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.55rem;
    line-height: 1.3;
}
.junta-card-principal .junta-taller {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ink-500);
    position: relative;
    padding-top: 0.55rem;
}
.junta-card-principal .junta-taller::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 2px;
    background: rgba(var(--accent-rgb), 0.3);
    transform: translateX(-50%);
    border-radius: 2px;
    transition: width 0.4s ease, background 0.4s ease;
}
.junta-card-principal:hover .junta-taller::before {
    width: 48px;
    background: var(--accent);
}

/* Vocales */
.junta-vocales-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 575px) {
    .junta-vocales-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.junta-card-vocal {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding: 1.85rem 1.85rem 1.85rem 2.15rem;  /* espacio para la barra lateral */
    background:
        radial-gradient(circle at 8% 50%, rgba(var(--accent-rgb), 0.05) 0%, transparent 35%),
        white;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.3s ease;
}
@media (max-width: 575px) {
    .junta-card-vocal {
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
        gap: 1rem;
    }
    .junta-vocal-avatar { width: 54px; height: 54px; }
    .junta-vocal-avatar .junta-avatar-icon { width: 28px; height: 28px; }
}
/* Barra lateral roja: siempre visible (sutil) y crece al hover */
.junta-card-vocal::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    opacity: 0.35;
    border-radius: 0 4px 4px 0;
    transition:
        width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 0.4s ease,
        top 0.4s ease,
        bottom 0.4s ease;
}
.junta-card-vocal:hover::after {
    width: 5px;
    opacity: 1;
    top: 8%;
    bottom: 8%;
}
.junta-card-vocal:hover { transform: translateY(-4px); }

.junta-vocal-avatar {
    position: relative;
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px -10px rgba(var(--accent-rgb), 0.5);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.junta-vocal-avatar .junta-avatar-icon { width: 32px; height: 32px; }
/* Anillo cónico difuso alrededor del avatar (sutil siempre, brillante en hover) */
.junta-vocal-avatar::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(var(--accent-rgb), 0.4),
        rgba(var(--accent-rgb), 0) 30%,
        rgba(var(--accent-rgb), 0) 70%,
        rgba(var(--accent-rgb), 0.4)
    );
    opacity: 0.4;
    z-index: -1;
    transition: opacity 0.4s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.junta-card-vocal:hover .junta-vocal-avatar { transform: scale(1.06); }
.junta-card-vocal:hover .junta-vocal-avatar::before {
    opacity: 1;
    transform: rotate(180deg);
}

.junta-vocal-info { flex: 1; min-width: 0; }
.junta-card-vocal h4 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.32rem;
    color: var(--ink-900);
    line-height: 1.3;
}
.junta-card-vocal .junta-taller {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--ink-500);
    line-height: 1.4;
}
.junta-card-vocal .junta-taller i {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--accent);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.junta-card-vocal:hover .junta-taller i {
    opacity: 1;
    transform: translateX(1px);
}

/* About section */
.junta-about {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 991px) {
    .junta-about { grid-template-columns: 1fr; gap: 2.5rem; }
}
.junta-about__text h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: 0.4rem 0 1.1rem;
    line-height: 1.15;
    text-align: left;
}
.junta-about__text p {
    color: var(--ink-600);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    text-align: left;
}
@media (min-width: 768px) {
    .junta-about__text p { text-align: justify; hyphens: auto; }
}
.junta-about__values {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.junta-value {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}
.junta-value__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px -10px rgba(var(--accent-rgb), 0.55);
}
.junta-value h4 {
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
    color: var(--ink-900);
    font-weight: 700;
}
.junta-value p {
    margin: 0;
    color: var(--ink-600);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ============================================================
   Info Sector — news grid
   ============================================================ */
.beta-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}
@media (max-width: 991px) { .beta-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .beta-news-grid { grid-template-columns: 1fr; } }

.beta-news-card {
    grid-column: auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.beta-news-card__media {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--ink-100);
}
.beta-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.beta-news-card:hover .beta-news-card__media img { transform: scale(1.06); }

.beta-news-card__placeholder {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}
.beta-news-card__body {
    padding: 1.6rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.beta-news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.beta-news-card__date i { font-size: 0.85rem; }
.beta-news-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.7rem;
    color: var(--ink-900);
    font-weight: 700;
}
.beta-news-card h3 a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.beta-news-card h3 a:hover { color: var(--accent); }
.beta-news-card__body p {
    color: var(--ink-600);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}
.beta-news-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}
.beta-news-card__readmore:hover {
    gap: 0.7rem;
    color: var(--accent-deep);
}

.beta-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--ink-500);
}
.beta-empty-state__icon {
    font-size: 3.5rem;
    color: var(--ink-300);
    margin-bottom: 1rem;
}
.beta-empty-state h3 {
    color: var(--ink-700);
    margin: 0 0 0.5rem;
}

/* Banda de colaboradores — tarjetas blancas estilo partners certificados (info sector) */
.partners-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 991px) { .partners-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .partners-cards { grid-template-columns: 1fr; } }

.partners-cards__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: 18px;
    padding: 2rem 1.4rem;
    box-shadow: 0 2px 12px rgba(11, 13, 16, 0.04);
    min-height: 160px;
    transition:
        transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}
.partners-cards__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px -10px rgba(11, 13, 16, 0.15);
    border-color: rgba(var(--accent-rgb), 0.25);
}
.partners-cards__item img {
    max-height: 94px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 991px) {
    .partners-cards__item { min-height: 140px; }
    .partners-cards__item img { max-height: 85px; }
}
.partners-cards__item:hover img { transform: scale(1.04); }

/* ============================================================
   Contacto — formulario, info cards, mapa
   ============================================================ */
.beta-contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}
@media (max-width: 991px) { .beta-contact-grid { grid-template-columns: 1fr; } }

.beta-form-card {
    grid-column: auto;
    padding: 2.5rem 2rem;
}
.beta-form-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 1.4rem;
}
.beta-contact-form .form-control {
    width: 100%;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--ink-50);
    color: var(--ink-900);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.beta-contact-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}
.beta-contact-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}
.beta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 575px) { .beta-form-row { grid-template-columns: 1fr; } }
.beta-form-group { margin-bottom: 1rem; }
.beta-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-800);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.beta-form-required { color: var(--accent); }

.beta-form-submit {
    margin-top: 0.6rem;
    width: 100%;
}
@media (min-width: 576px) { .beta-form-submit { width: auto; } }

/* Botón accent variant — relleno rojo (para submit) */
.btn-base.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-cta);
}
.btn-base.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px -12px rgba(var(--accent-rgb), 0.7);
    color: white;
}

.beta-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.beta-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 1.2rem;
}
.beta-alert i { font-size: 1.1rem; flex-shrink: 0; line-height: 1; margin-top: 0.05rem; }
.beta-alert--success {
    background: rgba(40, 167, 69, 0.10);
    color: #1e7e34;
    border: 1px solid rgba(40, 167, 69, 0.25);
}
.beta-alert--error,
.beta-alert--danger {
    background: rgba(var(--accent-rgb), 0.10);
    color: var(--accent-deep);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.beta-recaptcha-notice {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--ink-500);
    line-height: 1.5;
}
.beta-recaptcha-notice a { color: var(--ink-600); }

/* Info de contacto (columna derecha) */
.beta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}
.beta-contact-card {
    grid-column: auto;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.05rem;
    flex: 1 1 0;
}
@media (max-width: 991px) {
    .beta-contact-info { height: auto; }
    .beta-contact-card { flex: 0 0 auto; align-items: flex-start; }
}
.beta-contact-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), 0.55);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.beta-contact-card:hover .beta-contact-card__icon { transform: scale(1.06) rotate(-3deg); }
.beta-contact-card__body { flex: 1; min-width: 0; }
.beta-contact-card h4 {
    font-size: 0.95rem;
    margin: 0 0 0.3rem;
    font-weight: 700;
    color: var(--ink-900);
}
.beta-contact-card p,
.beta-contact-card a {
    margin: 0;
    color: var(--ink-600);
    font-size: 0.92rem;
    line-height: 1.55;
    text-decoration: none;
    word-break: break-word;
}
.beta-contact-card a { transition: color 0.3s ease; }
.beta-contact-card a:hover { color: var(--accent); }

/* Mapa */
.beta-map-wrapper {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--ink-100);
    box-shadow: 0 4px 14px rgba(11, 13, 16, 0.05);
    background: var(--ink-50);
}
.beta-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
}
@media (max-width: 991px) { .beta-map-wrapper iframe { height: 400px; } }
@media (max-width: 575px) { .beta-map-wrapper iframe { height: 320px; } }
.beta-map-overlay-link {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    background: white;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    z-index: 2;
}
.beta-map-overlay-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    color: var(--accent-deep);
}
@media (max-width: 575px) {
    .beta-map-overlay-link {
        right: 12px;
        bottom: 12px;
        padding: 0.5rem 0.8rem;
        font-size: 0.78rem;
    }
}

/* ============================================================
   Seguro de Taller — coberturas, valores y CTA omap
   ============================================================ */
.seguro-cobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 991px) { .seguro-cobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .seguro-cobs-grid { grid-template-columns: 1fr; } }

.seguro-cob {
    grid-column: auto;
    position: relative;
    overflow: hidden;
    padding: 2.2rem 1.85rem 1.85rem;
}
.seguro-cob__num {
    position: absolute;
    top: 0.4rem;
    right: 1.2rem;
    font-size: 4.2rem;
    font-weight: 800;
    color: rgba(var(--accent-rgb), 0.06);
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease;
}
.seguro-cob:hover .seguro-cob__num { color: rgba(var(--accent-rgb), 0.14); }
.seguro-cob__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    font-size: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    box-shadow: 0 10px 22px -10px rgba(var(--accent-rgb), 0.55);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.seguro-cob:hover .seguro-cob__icon { transform: scale(1.05) rotate(-3deg); }
.seguro-cob h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.55rem;
    line-height: 1.25;
}
.seguro-cob p {
    color: var(--ink-600);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* "Por qué OMAP" — 4 valores en grid */
.seguro-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 991px) { .seguro-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .seguro-values { grid-template-columns: 1fr; gap: 1rem; } }

.seguro-value {
    text-align: left;
}
@media (max-width: 767px) {
    /* En móvil/tablet, cada item con aspecto de card y centrado */
    .seguro-value {
        background: white;
        border: 1px solid var(--ink-100);
        border-radius: 16px;
        padding: 1.25rem;
        box-shadow: 0 1px 3px rgba(11, 13, 16, 0.04);
        text-align: center;
    }
    .seguro-value__icon {
        margin: 0 auto 0.85rem;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    /* Coberturas también centradas en móvil */
    .seguro-cob { text-align: center; }
    .seguro-cob__icon { margin: 0 auto 1.1rem; }
}
.seguro-value__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.seguro-value:hover .seguro-value__icon {
    background: var(--accent);
    color: white;
}
.seguro-value h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.45rem;
    line-height: 1.3;
}
.seguro-value p {
    color: var(--ink-600);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* CTA grande con disclaimer DGSFP */
.seguro-omap-cta {
    background: linear-gradient(135deg, white 0%, rgba(var(--accent-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 22px;
    padding: 3rem 2.5rem 2rem;
    box-shadow: 0 8px 28px -12px rgba(var(--accent-rgb), 0.2);
    text-align: center;
}
@media (max-width: 767px) {
    .seguro-omap-cta__body .overline::before { display: none; }
}
.seguro-omap-cta__body h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: 0.4rem 0 1rem;
    color: var(--ink-900);
}
.seguro-omap-cta__body p {
    color: var(--ink-600);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 auto 1.8rem;
    max-width: 60ch;
}
.seguro-omap-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.seguro-omap-cta__legal {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-100);
    font-size: 0.78rem;
    color: var(--ink-500);
    line-height: 1.55;
    text-align: left;
}
@media (min-width: 768px) {
    .seguro-omap-cta__legal { text-align: justify; hyphens: auto; }
}

/* Chip de federación CONEPA en el hero — junto a los CTA, altura similar a btn-lg */
.beta-hero__federation {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1.15rem;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 1;
    box-sizing: border-box;
    min-height: calc(2 * 1rem + 1rem * 1.55 + 2px); /* iguala btn-lg con borde */
}
/* Iguala el alto de los tres elementos del CTA hero */
.beta-hero__cta > .btn-base,
.beta-hero__cta > .beta-hero__federation {
    min-height: calc(2 * 1rem + 1rem * 1.55 + 2px);
    box-sizing: border-box;
}
.beta-hero__federation:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.beta-hero__federation-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    line-height: 1;
}
.beta-hero__federation img {
    height: 36px;
    width: auto;
    display: block;
}
@media (max-width: 576px) {
    .beta-hero__federation { padding: 0.65rem 1rem; }
    .beta-hero__federation img { height: 30px; }
    .beta-hero__federation-label { font-size: 0.62rem; }
}

/* ============================================================
   Reveal on scroll (genérico)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.30s; }
.reveal-delay-6 { transition-delay: 0.36s; }

/* ============================================================
   CTA section — gradiente rojo (estilo home)
   ============================================================ */
.cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    text-align: center;
}
.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
}
.cta-section::before {
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
}
.cta-section::after {
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
}
.cta-section__inner { position: relative; z-index: 1; }
.cta-section h2 {
    color: white;
    font-size: clamp(1.85rem, 3.6vw, 2.6rem);
    margin: 0 0 1rem;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    max-width: 56ch;
    margin: 0 auto 2rem;
}

/* ============================================================
   Footer premium
   ============================================================ */
.beta-footer {
    position: relative;
    background: var(--ink-700);
    color: rgba(255, 255, 255, 0.72);
    padding: 4rem 0 1.75rem;
    font-size: 0.94rem;
    isolation: isolate;
}
@media (max-width: 767px) {
    .beta-footer { padding: 2.75rem 0 1.5rem; font-size: 0.9rem; }
}
.beta-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}
.beta-footer a:hover { color: white; }

.beta-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 480px) and (max-width: 767px) {
    /* Tablet/móvil grande: brand a ancho completo, 3 cols en una rejilla 2x2 */
    .beta-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
    .beta-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
    .beta-footer__grid {
        grid-template-columns: 2fr 1fr 1.3fr 1fr;
        gap: 2.5rem;
    }
}

.beta-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.beta-footer__brand img {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.1rem;
    display: block;
}
.beta-footer__tagline {
    margin: 0 auto 1.25rem;
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}
@media (max-width: 767px) {
    .beta-footer__brand img {
        height: 72px;
        margin: 0 auto 0.85rem;
    }
    .beta-footer__tagline {
        margin: 0 auto 1rem;
        font-size: 0.88rem;
    }
    /* Centrar todo el contenido del footer en móvil */
    .beta-footer__col { text-align: center; }
    .beta-footer h5 { display: inline-block; }
    /* Items de Contacto: icono arriba, texto abajo, todo centrado */
    .beta-footer__contact li {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        text-align: center;
    }
    .beta-footer__icon { margin-top: 0; }
    .beta-footer__bottom {
        align-items: center;
        text-align: center;
    }
    .beta-footer__legal { justify-content: center; }
}

/* Redes sociales */
.beta-footer__social {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}
.beta-footer__social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.beta-footer__social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}


.beta-footer h5 {
    color: white;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 0 1.1rem;
    position: relative;
    padding-bottom: 0.6rem;
}
@media (max-width: 767px) {
    .beta-footer h5 {
        margin-bottom: 0.7rem;
        padding-bottom: 0.4rem;
        font-size: 0.7rem;
    }
    .beta-footer ul { gap: 0.5rem; }
    /* Bottom bar más compacto */
    .beta-footer__bottom {
        padding-top: 1.2rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
}
.beta-footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.beta-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

/* Enlaces — subrayado animado */
.beta-footer__links a {
    display: inline-block;
    padding: 2px 0;
}
.beta-footer__links a::after {
    content: "";
    display: block;
    height: 1px;
    width: 0;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.beta-footer__links a:hover::after { width: 100%; }

/* Contacto — icono en chip */
.beta-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.55;
}
.beta-footer__icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent-light);
    font-size: 0.92rem;
    margin-top: 1px;
    transition: background 0.25s ease, color 0.25s ease;
}
.beta-footer__contact li:hover .beta-footer__icon {
    background: rgba(var(--accent-rgb), 0.25);
    color: white;
}

/* Horario */
.beta-footer__schedule strong { color: white; font-weight: 600; }

/* Bottom bar */
.beta-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.5);
}
.beta-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.85rem;
}
.beta-footer__legal span { color: rgba(255, 255, 255, 0.25); }
.beta-footer__legal a { color: rgba(255, 255, 255, 0.65); }
.beta-footer__legal a:hover { color: white; }
.beta-footer__copy { letter-spacing: 0.02em; }

/* Enlaces: redundantes en móvil/tablet (ya están en el menú hamburguesa) */
@media (max-width: 991px) {
    .beta-footer__col:has(.beta-footer__links) { display: none; }
}

/* === Mobile overrides al final para que ganen por orden === */
@media (max-width: 767px) {
    .beta-footer__col { text-align: center; }
    .beta-footer h5 { display: inline-block; }
    .beta-footer__contact li {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        text-align: center;
    }
    .beta-footer__icon { margin-top: 0; }
    .beta-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    .beta-footer__legal { justify-content: center; }
}

/* ============================================================
   Fase 2 — Scroll progress (barra fija arriba)
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 70;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s linear;
    pointer-events: none;
}

/* ============================================================
   Fase 2 — Grain texture global (sutil, sobre todo el body)
   ============================================================ */
.grain {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Fase 2 — SineFloat (oscilación senoidal continua)
   --------------------------------------------------------------
   Cada elemento .sine-float recibe translateY desde JS.
   Phase distinta por elemento crea efecto "onda viajera".
   ============================================================ */
.sine-float {
    will-change: transform;
}

/* ============================================================
   Fase 2 — StackingCards en sección de Servicios (≥992px)
   --------------------------------------------------------------
   En mobile/tablet sigue siendo grid (definición de arriba).
   En desktop, las 4 cards se apilan sticky-top al hacer scroll.
   ============================================================ */
.stack-section {
    position: relative;
}
.stack-counter {
    position: sticky;
    top: 132px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    margin-bottom: -1.25rem;
    pointer-events: none;
}
.stack-counter__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-600);
    box-shadow: 0 6px 18px -10px rgba(0,0,0,0.18);
}
.stack-counter__pill strong { color: var(--accent); font-size: 0.85rem; }

@media (min-width: 992px) {
    .services-grid.stack-mode {
        display: block;
    }
    .services-grid.stack-mode .service-card {
        position: sticky;
        top: 158px;
        min-height: 360px;
        margin: 0 auto 1.25rem;
        max-width: 880px;
        padding: 3rem 3.25rem;
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 2rem;
        align-items: flex-start;
    }
    .services-grid.stack-mode .service-card:nth-child(1) { top: 158px; }
    .services-grid.stack-mode .service-card:nth-child(2) { top: 176px; }
    .services-grid.stack-mode .service-card:nth-child(3) { top: 194px; }
    .services-grid.stack-mode .service-card:nth-child(4) { top: 212px; margin-bottom: 0; }
    .services-grid.stack-mode .service-card .icon {
        width: 86px;
        height: 86px;
        border-radius: 22px;
        font-size: 2.4rem;
    }
    .services-grid.stack-mode .service-card h4 {
        font-size: 1.65rem;
        margin-bottom: 0.85rem;
    }
    .services-grid.stack-mode .service-card p {
        font-size: 1.02rem;
        line-height: 1.65;
        max-width: 60ch;
    }
}

/* ============================================================
   Banner Seguro de Taller (servicios) — paleta OMAP
   ============================================================ */
.beta-banner-seguro {
    position: relative;
    padding: 4.5rem 0;
    background: var(--ink-50);
    color: var(--ink-900);
    overflow: hidden;
    isolation: isolate;
    border-top: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100);
}
.beta-banner-seguro::before {
    content: "";
    position: absolute;
    right: -160px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}
.beta-banner-seguro__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.4rem;
}
.beta-banner-seguro__icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    flex-shrink: 0;
}
.beta-banner-seguro__icon i {
    font-size: 2.6rem;
    color: var(--accent);
}
.beta-banner-seguro__overline {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.beta-banner-seguro__title {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    line-height: 1.25;
    margin: 0 0 0.65rem 0;
    color: var(--ink-900);
    font-weight: 700;
}
.beta-banner-seguro__lead {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--ink-600);
    max-width: 60ch;
}
.beta-banner-seguro__lead strong {
    color: var(--ink-900);
    font-weight: 700;
}
.beta-banner-seguro__cta { flex-shrink: 0; }
.beta-banner-seguro__cta .btn-base { white-space: nowrap; }

@media (max-width: 992px) {
    .beta-banner-seguro { padding: 3.5rem 0; }
    .beta-banner-seguro__inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon content"
            "cta cta";
        gap: 1.6rem 1.4rem;
    }
    .beta-banner-seguro__icon { grid-area: icon; }
    .beta-banner-seguro__content { grid-area: content; }
    .beta-banner-seguro__cta { grid-area: cta; justify-self: start; margin-top: 0.4rem; }
}
@media (max-width: 576px) {
    .beta-banner-seguro { padding: 2.8rem 0; }
    .beta-banner-seguro__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "content"
            "cta";
        gap: 1.2rem;
        text-align: left;
    }
    .beta-banner-seguro__icon { width: 64px; height: 64px; border-radius: 18px; }
    .beta-banner-seguro__icon i { font-size: 2rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .beta-hero__bg {
        transition: none;
        transform: scale(1.02);
    }
    .beta-hero.is-loaded .beta-hero__bg { transform: scale(1.04); }
    .word-reveal__inner {
        transition: none;
        transform: none;
        opacity: 1;
    }
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
    .btn-base.is-magnetic { transition: background 0.2s, color 0.2s; }
    .scroll-progress { transition: none; }
    .sine-float { transform: none !important; }
    * { scroll-behavior: auto; }
}

/* ============================================================
   Páginas legacy (Asociarse, Noticias, Aviso Legal, etc.):
   homologar el .page-header al estilo .beta-hero--inner
   ============================================================ */
.page-header {
    position: relative;
    isolation: isolate;
    background: var(--ink-950);
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 5rem 1.5rem 4rem;
    min-height: clamp(280px, 38vh, 380px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 50% at 12% 85%, rgba(var(--accent-rgb), 0.30), transparent 70%),
        radial-gradient(50% 45% at 90% 15%, rgba(46, 45, 44, 0.5), transparent 65%),
        radial-gradient(40% 40% at 60% 60%, rgba(0, 0, 0, 0.5), transparent 70%),
        var(--ink-950);
}
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-header > .container,
.page-header > .shell {
    position: relative;
    z-index: 1;
}
.page-header .overline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
    align-self: center;
}
.page-header .overline::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.page-header h1 {
    color: white;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 auto 1rem;
    max-width: 22ch;
}
.page-header .lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 56ch;
}
@media (max-width: 575px) {
    .page-header {
        padding: 3.5rem 1.5rem 3rem;
        min-height: 240px;
    }
    .page-header h1 { font-size: 2rem; max-width: 100%; }
}

/* ============================================================
   Páginas legales (Aviso Legal, Política Privacidad, Cookies)
   ============================================================ */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 1px 0 rgba(11, 13, 16, 0.04), 0 20px 40px -24px rgba(11, 13, 16, 0.14);
}
@media (max-width: 575px) {
    .legal-content { padding: 1.75rem 1.25rem; border-radius: 18px; }
}
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent-deep);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}
.legal-updated i { color: var(--accent); }

.legal-content h2 {
    color: var(--ink-900);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2.25rem 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--ink-100);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
    color: var(--ink-900);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.4rem 0 0.6rem;
}
.legal-content p {
    color: var(--ink-600);
    line-height: 1.7;
    font-size: 0.98rem;
    margin: 0 0 0.95rem;
}
.legal-content ul {
    margin: 0.6rem 0 1.2rem;
    padding-left: 1.25rem;
    color: var(--ink-600);
    line-height: 1.7;
}
.legal-content ul li { margin-bottom: 0.45rem; }
.legal-content ul li::marker { color: var(--accent); }
.legal-content strong { color: var(--ink-900); font-weight: 700; }
.legal-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
    transition: border-color 0.25s ease;
}
.legal-content a:hover { border-bottom-color: var(--accent); }

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--ink-100);
}
.legal-nav .btn,
.legal-nav .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1.5px solid rgba(var(--accent-rgb), 0.4);
    background: transparent;
    color: var(--accent);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.legal-nav .btn:hover,
.legal-nav .btn-outline-primary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Tabla de cookies (estilo limpio) */
.cookie-table {
    margin: 1.25rem 0 1.5rem;
    border: 1px solid var(--ink-100);
    border-radius: 14px;
    overflow: hidden;
}
.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.cookie-table th,
.cookie-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--ink-100);
}
.cookie-table th {
    background: var(--ink-50);
    color: var(--ink-900);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.74rem;
}
.cookie-table tr:last-child td { border-bottom: 0; }

/* Listado de navegadores (cookies) */
.browser-list {
    list-style: none !important;
    padding-left: 0 !important;
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}
.browser-list li {
    background: var(--ink-50);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--ink-100);
}
.browser-list li::marker { content: ""; }
.browser-list li a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink-800);
    border-bottom: none;
    font-weight: 600;
}
.browser-list li a:hover { color: var(--accent); }
