/* ═══════════════════════════════════════════════════════
   CIVIVOX INSTITUCIONES — styles.css
   civivox.voto · 2026
   Autor: Pablo Garcia - pabloe33@gmail.com
═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
    --ink: #080808;
    --paper: #F5F3EE;
    --yellow: #FFE135;
    --white: #FFFFFF;
    --s1: #111111;
    --s2: #1A1A1A;
    --s3: #2C2C2C;
    --s4: #4A4A4A;
    --s5: #7A7A7A;
    --s6: #AAAAAA;
    --blue: #1566C0;
    --blue-lt: #D6E4F7;
    --green: #1A7A3A;
    --green-lt: #D1EDDA;
    --red: #C0392B;
    --red-lt: #FADBD8;

    --ff-disp: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --ff-body: 'Barlow', Arial, sans-serif;
    --ff-mono: 'Roboto Mono', 'Courier New', monospace;

    --max: 1140px;
    --pad: clamp(20px, 4vw, 48px);
    --gap: 2px;

    /* Touch target mínimo accesible */
    --touch: 44px;
}

/* ─── RESET & BASE ────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--ink);
    color: var(--white);
    font-family: var(--ff-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--ink);
}

::-webkit-scrollbar-thumb {
    background: var(--yellow);
}

/* Focus visible mejorado para accesibilidad */
:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

/* ─── UTILITIES ──────────────────────────────────────── */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.grid2 {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: var(--gap);
}

.grid3 {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: var(--gap);
}

.tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--ff-mono);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid currentColor;
    gap: 6px;
}

.tag-y {
    color: var(--yellow);
}

.tag-b {
    color: var(--blue);
}

.tag-g {
    color: var(--green);
}

.section-eyebrow {
    font-family: var(--ff-mono);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--yellow);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-eyebrow::before {
    content: '';
    flex-shrink: 0;
    width: 28px;
    height: 1.5px;
    background: var(--yellow);
}

.section-eyebrow-black {
    font-family: var(--ff-mono);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-eyebrow-black::before {
    content: '';
    flex-shrink: 0;
    width: 28px;
    height: 1.5px;
    background: var(--ink);
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0)
    }
    100% {
        transform: translateX(-50%)
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: .35
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%)
    }
    100% {
        transform: translateY(400%)
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0
    }
    100% {
        background-position: 200% 0
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-8px)
    }
}

@keyframes glitch1 {
    0%, 100% {
        clip-path: inset(0 0 96% 0)
    }
    20% {
        clip-path: inset(18% 0 64% 0)
    }
    40% {
        clip-path: inset(54% 0 28% 0)
    }
    60% {
        clip-path: inset(76% 0 8% 0)
    }
    80% {
        clip-path: inset(32% 0 42% 0)
    }
}

@keyframes glitch2 {
    0%, 100% {
        clip-path: inset(80% 0 4% 0);
        transform: translateX(-3px)
    }
    20% {
        clip-path: inset(62% 0 20% 0);
        transform: translateX(3px)
    }
    40% {
        clip-path: inset(20% 0 68% 0);
        transform: translateX(-2px)
    }
    60% {
        clip-path: inset(42% 0 44% 0);
        transform: translateX(2px)
    }
    80% {
        clip-path: inset(6% 0 86% 0);
        transform: translateX(-1px)
    }
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

@keyframes drawLine {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-3deg) translateY(20px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes pingPulse {
    0% {
        transform: scale(1);
        opacity: .8
    }
    70% {
        transform: scale(2.2);
        opacity: 0
    }
    100% {
        transform: scale(2.2);
        opacity: 0
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .ticker-rail {
        animation: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal-l {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal-l.in {
    opacity: 1;
    transform: none;
}

/* Fallback: sin JS, mostrar todo */
@media (scripting: none) {
    .reveal, .reveal-l {
        opacity: 1;
        transform: none;
    }
}

/* ─── NAV ────────────────────────────────────────────── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 60px;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .3s, border-color .3s, height .3s;
    border-bottom: 1px solid transparent;
}

#nav.stuck {
    background: rgba(8, 8, 8, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, .07);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--ff-disp);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--white);
    line-height: 1;
    min-height: var(--touch); /* touch target */
}

.nav-brand .accent {
    color: var(--yellow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: 150px;
}

.nav-links a {
    font-family: var(--ff-mono);
    font-size: .63rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--s5);
    transition: color .15s;
    padding: 4px 0; /* aumentar área clickeable */
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--yellow);
    transition: width .25s ease;
}

.nav-links a:hover {
    color: var(--yellow);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-pill {
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--ff-mono);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 10px 22px;
    min-height: var(--touch);
    border: none;
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-pill:hover {
    background: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 225, 53, .25);
}

/* ─── NAV HAMBURGER & MOBILE MENU ────────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    /* Touch target completo */
    width: var(--touch);
    height: var(--touch);
    align-items: center;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all .25s ease;
    transform-origin: center;
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    z-index: 899;
    background: rgba(8, 8, 8, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--s3);
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}

.nav-mobile.open {
    max-height: 400px;
    padding: 16px 0 24px;
}

.nav-mobile-link {
    font-family: var(--ff-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--s5);
    padding: 16px var(--pad);
    display: block; /* padding generoso para touch */
    border-bottom: 1px solid var(--s3);
    transition: color .15s, background .15s;
    min-height: var(--touch);
    display: flex;
    align-items: center;
}

.nav-mobile-link:hover,
.nav-mobile-link:active {
    color: var(--yellow);
    background: rgba(255, 225, 53, .04);
}

.nav-mobile-cta {
    font-family: var(--ff-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--ink);
    margin: 16px var(--pad) 0;
    padding: 16px;
    text-align: center;
    display: block;
    transition: background .18s;
    min-height: var(--touch);
}

.nav-mobile-cta:hover,
.nav-mobile-cta:active {
    background: var(--white);
}

@media (min-width: 769px) {
    .nav-burger {
        display: none;
    }

    .nav-mobile {
        display: none !important;
    }

    .nav-right .nav-pill {
        display: inline-flex;
    }
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 80px;
}

/* Partículas de fondo animadas */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0;
    animation: pingPulse 4s ease-out infinite;
}

.hero-particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.hero-particle:nth-child(2) {
    width: 3px;
    height: 3px;
    left: 42%;
    top: 85%;
    animation-delay: 1.2s;
}

.hero-particle:nth-child(3) {
    width: 5px;
    height: 5px;
    left: 45%;
    top: 35%;
    animation-delay: 2.1s;
}

.hero-particle:nth-child(4) {
    width: 3px;
    height: 3px;
    left: 5%;
    top: 70%;
    animation-delay: 0.7s;
}

.hero-particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 50%;
    top: 15%;
    animation-delay: 3.0s;
}

.hero-band {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 44%;
    height: 130%;
    background: var(--yellow);
    transform: skewX(-6deg);
    z-index: 0;
}

.hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, .08) 1px, transparent 1px);
    background-size: 18px 18px;
}

.hero-gridlines {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .04;
    background-image: repeating-linear-gradient(90deg, var(--yellow) 0px, var(--yellow) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, var(--yellow) 0px, var(--yellow) 1px, transparent 1px, transparent 80px);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-left {
    padding-right: 48px;
}

.hero-overline {
    font-family: var(--ff-mono);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--s5);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp .7s ease both;
}

.hero-overline-dot {
    width: 6px;
    height: 6px;
    background: var(--yellow);
    border-radius: 50%;
    animation: pulse 2s infinite;
    position: relative;
}

/* Ping alrededor del dot */
.hero-overline-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--yellow);
    animation: pingPulse 2s ease-out infinite;
}

.hero-h1 {
    font-family: var(--ff-disp);
    font-size: clamp(3.4rem, 5.5vw, 6rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.5px;
    margin-bottom: 28px;
    animation: fadeUp .7s .1s ease both;
}

.hero-h1 .line-yellow {
    color: var(--yellow);
}

.hero-h1 .line-outline {
    -webkit-text-stroke: 1.5px var(--white);
    color: transparent;
}

/* Efecto glitch sobre el título — sutil, se activa al hover del hero */
.hero-h1 .line-outline {
    position: relative;
    display: inline-block;
}

.hero-h1 .line-outline::before,
.hero-h1 .line-outline::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    -webkit-text-stroke: 1.5px rgba(255, 0, 80, .5);
    color: transparent;
    opacity: 0;
}

#hero:hover .hero-h1 .line-outline::before {
    opacity: 1;
    animation: glitch1 2.5s steps(1) infinite;
    transform: translateX(2px);
}

#hero:hover .hero-h1 .line-outline::after {
    -webkit-text-stroke: 1.5px rgba(0, 200, 255, .5);
    color: transparent;
    opacity: 1;
    animation: glitch2 2.5s steps(1) infinite;
}

.hero-sub {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--s6);
    max-width: 420px;
    margin-bottom: 40px;
    animation: fadeUp .7s .2s ease both;
}

.hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeUp .7s .3s ease both;
    margin-bottom: 14px;
}

.btn-hero {
    font-family: var(--ff-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 15px 32px;
    border: none;
    transition: all .22s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    position: relative;
    overflow: hidden;
}

/* Ripple effect en botones primarios */
.btn-hero-primary {
    background: var(--yellow);
    color: var(--ink);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background .3s;
}

.btn-hero-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 225, 53, .3);
}

.btn-hero-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, .18);
}

.btn-hero-ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.hero-fine {
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .08em;
    color: var(--s4);
    animation: fadeUp .7s .4s ease both;
}

.hero-right {
    position: relative;
}

/* ─── METRIC PANEL ───────────────────────────────────── */
.metric-panel {
    background: var(--s1);
    border: 1px solid var(--s3);
    position: relative;
    overflow: hidden;
    animation: fadeUp .8s .25s ease both;
}

.metric-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--yellow) 0%, #fff 50%, var(--yellow) 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.metric-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(255, 225, 53, .04), transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

.metric-header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--s3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-header-title {
    font-family: var(--ff-mono);
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--s5);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ff-mono);
    font-size: .55rem;
    letter-spacing: .1em;
    color: var(--green);
}

.live-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.metric-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
}

.metric-cell {
    padding: 24px 22px;
    border-right: 1px solid var(--s3);
    border-bottom: 1px solid var(--s3);
}

.metric-cell:nth-child(even) {
    border-right: none;
}

.metric-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.metric-val {
    font-family: var(--ff-disp);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: -.5px;
    line-height: 1;
    margin-bottom: 7px;
}

.metric-key {
    font-family: var(--ff-mono);
    font-size: .57rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--s5);
}

.hash-strip {
    padding: 12px 22px;
    background: rgba(0, 0, 0, .4);
    border-top: 1px solid var(--s3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hash-icon {
    font-size: .75rem;
    flex-shrink: 0;
}

.hash-code {
    font-family: var(--ff-mono);
    font-size: .58rem;
    color: var(--s5);
    letter-spacing: .04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hash-code span {
    color: var(--green);
}

.inst-tags {
    margin-top: var(--gap);
    background: var(--s1);
    border: 1px solid var(--s3);
    padding: 16px 20px;
    animation: fadeUp .8s .4s ease both;
}

.inst-tags-label {
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--s4);
    margin-bottom: 12px;
}

.inst-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.inst-chip {
    font-family: var(--ff-mono);
    font-size: .57rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 10px;
    background: var(--s2);
    border: 1px solid var(--s3);
    color: var(--s5);
    transition: all .15s;
}

.inst-chip:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* ─── TICKER ─────────────────────────────────────────── */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    background: var(--yellow);
    padding: 12px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    position: relative;
    z-index: 2;
}

.ticker-rail {
    display: inline-flex;
    animation: ticker 36s linear infinite;
}

.ticker-rail:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--ff-disp);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ticker-sep {
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, .3);
    border-radius: 50%;
}

/* ─── PROBLEMA ───────────────────────────────────────── */
#problema {
    padding: 110px 0;
    background: var(--s1);
}

.problema-h {
    font-family: var(--ff-disp);
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.3px;
}

.pain-items {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.pain-card {
    background: var(--ink);
    border: 1px solid var(--s3);
    border-left: 3px solid var(--red);
    padding: 22px 24px;
    display: flex;
    gap: 18px;
    transition: border-left-color .25s, transform .25s, box-shadow .25s;
}

.pain-card:hover {
    border-left-color: var(--yellow);
    transform: translateX(4px);
    box-shadow: -4px 0 20px rgba(255, 225, 53, .06);
}

.pain-num {
    font-family: var(--ff-disp);
    font-size: 2rem;
    font-weight: 900;
    color: var(--s3);
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
    transition: color .25s;
}

.pain-card:hover .pain-num {
    color: var(--s4);
}

.pain-title {
    font-family: var(--ff-disp);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    letter-spacing: .02em;
}

.pain-body {
    font-size: .84rem;
    color: var(--s5);
    line-height: 1.75;
}

.problema-callout {
    margin-top: var(--gap);
    background: var(--yellow);
    padding: 28px 30px;
    position: relative;
    overflow: hidden;
}

.problema-callout::before {
    content: '!';
    position: absolute;
    right: 20px;
    bottom: -10px;
    font-family: var(--ff-disp);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, .08);
    line-height: 1;
    pointer-events: none;
}

/* Línea animada que crece en la parte inferior */
.problema-callout::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: rgba(0, 0, 0, .2);
    transition: width 1.5s ease;
}

.reveal.in .problema-callout::after {
    width: 100%;
}

.callout-text {
    font-family: var(--ff-disp);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: .01em;
    max-width: 480px;
}

.callout-sub {
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .1em;
    color: rgba(0, 0, 0, .5);
    margin-top: 10px;
    text-transform: uppercase;
}

/* ─── SOLUCIÓN ───────────────────────────────────────── */
#solucion {
    padding: 110px 0;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

#solucion::before {
    content: 'CIVI VOX';
    position: absolute;
    bottom: -2%;
    right: -1%;
    font-family: var(--ff-disp);
    font-size: min(18vw, 220px);
    font-weight: 900;
    color: rgba(255, 225, 53, .03);
    letter-spacing: -.02em;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.solucion-headline {
    font-family: var(--ff-disp);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.4px;
}

.solucion-headline .em {
    color: var(--yellow);
}

.solucion-headline .outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .4);
    color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.feat {
    background: var(--s1);
    border: 1px solid var(--s3);
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    transition: all .25s;
}

.feat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.feat:hover::after {
    transform: scaleX(1);
}

.feat:hover {
    transform: translateY(-4px);
    border-color: var(--s4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

/* Número decorativo de fondo en cada feat card */
.feat::before {
    content: attr(data-index);
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-family: var(--ff-disp);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.feat-icon {
    font-size: 1.6rem;
    margin-bottom: 18px;
    display: block;
}

.feat-title {
    font-family: var(--ff-disp);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: .02em;
}

.feat-body {
    font-size: .83rem;
    color: var(--s5);
    line-height: 1.8;
}

.feat-label {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yellow);
    background: rgba(255, 225, 53, .08);
    border: 1px solid rgba(255, 225, 53, .18);
    padding: 3px 9px;
}

/* ─── PARA QUIÉN ─────────────────────────────────────── */
#para-quien {
    padding: 110px 0;
    background: var(--yellow);
    color: var(--ink);
    overflow: hidden;
    position: relative;
}

#para-quien .section-eyebrow-black {
    color: var(--ink);
}

#para-quien .section-eyebrow-black::before {
    background: var(--ink);
}

#para-quien::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .03) 0px, rgba(0, 0, 0, .03) 1px, transparent 1px, transparent 36px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .03) 0px, rgba(0, 0, 0, .03) 1px, transparent 1px, transparent 36px);
    pointer-events: none;
}

.para-quien-inner {
    position: relative;
    z-index: 1;
}

.para-quien-headline {
    font-family: var(--ff-disp);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.4px;
    margin-bottom: 48px;
}

.para-quien-headline .em {
    color: var(--yellow);
}

.para-quien-headline .outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .4);
    color: transparent;
}

/* --- Grid de dos columnas --- */
.num-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
    background: rgba(0, 0, 0, 0.12);
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.num-cell {
    background: var(--bg, #fff); /* ajustá --bg a tu variable de fondo */
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* --- Badges --- */
.sector-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.sector-badge.public {
    background: #F5C400;
    color: #1a1200;
}

.sector-badge.private {
    background: #1a1a1a;
    color: #F5C400;
    border: 0.5px solid #444;
}

/* --- Títulos y descripción --- */
.sector-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.sector-sub {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    opacity: 0.75;
}

/* --- Divisor --- */
.sector-divider {
    height: 0.5px;
    background: rgba(0, 0, 0, 0.12);
    margin-bottom: 1.25rem;
}

/* --- Ítems de lista --- */
.num-key {
    font-size: 12.5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    margin-bottom: 0.55rem;
}

.sector-arrow {
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.sector-arrow.pub {
    color: #c9a200;
}

.sector-arrow.priv {
    color: #888;
}

/* --- Caja "Ideal para" --- */
.ideal-box {
    background: #111;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.ideal-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.4rem;
}

.ideal-text {
    font-size: 12px;
    color: #bbb;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .num-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── PROCESO ────────────────────────────────────────── */
#proceso {
    padding: 110px 0;
    background: var(--s1);
}

.proceso-headline {
    font-family: var(--ff-disp);
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.3px;
    margin-bottom: 60px;
}

.steps-row {
    display: grid;
    grid-template-columns:repeat(5, 1fr);
    gap: var(--gap);
}

.step {
    background: var(--ink);
    border: 1px solid var(--s3);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}

.step:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 24px rgba(255, 225, 53, .06);
}

.step:hover .step-n {
    background: var(--yellow);
    color: var(--ink);
}

/* Línea de progreso entre steps — visible en desktop */
.step::before {
    content: '';
    position: absolute;
    right: -1px;
    top: 48px;
    width: 1px;
    height: calc(100% - 96px);
    background: linear-gradient(to bottom, transparent, var(--s3), transparent);
}

.step:last-child::before {
    display: none;
}

.step-n {
    width: 38px;
    height: 38px;
    background: var(--s2);
    border: 1px solid var(--s3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-disp);
    font-size: 1rem;
    font-weight: 900;
    color: var(--yellow);
    margin-bottom: 18px;
    transition: all .25s;
}

.step-title {
    font-family: var(--ff-disp);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: .02em;
}

.step-body {
    font-size: .78rem;
    color: var(--s5);
    line-height: 1.75;
}

/* ─── PRECIOS ────────────────────────────────────────── */
#precios {
    padding: 110px 0;
    background: var(--s1);
}

.precios-headline {
    font-family: var(--ff-disp);
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.3px;
    margin-bottom: 16px;
}

.precios-sub {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    color: var(--s5);
    margin-bottom: 52px;
}

.plan-grid {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: var(--gap);
}

.plan {
    background: var(--ink);
    border: 1px solid var(--s3);
    padding: 32px 28px;
    position: relative;
    transition: all .25s;
}

.plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}

.plan.featured {
    border-color: var(--yellow);
    background: var(--s2);
}

.plan.featured::before {
    content: 'MÁS ELEGIDO';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--ff-mono);
    font-size: .55rem;
    font-weight: 500;
    letter-spacing: .14em;
    padding: 4px 14px;
    white-space: nowrap;
}

/* Borde animado en el plan featured */
.plan.featured {
    background: linear-gradient(var(--s2), var(--s2)) padding-box,
    linear-gradient(135deg, var(--yellow), rgba(255, 225, 53, .2), var(--yellow)) border-box;
    border: 1px solid transparent;
    animation: borderFlow 4s ease infinite;
    background-size: 200% auto;
}

.plan-name {
    font-family: var(--ff-mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--s5);
    margin-bottom: 18px;
}

.plan-price {
    font-family: var(--ff-disp);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.plan.featured .plan-price {
    color: var(--yellow);
}

.plan-cycle {
    font-family: var(--ff-mono);
    font-size: .62rem;
    color: var(--s5);
    margin-bottom: 28px;
    letter-spacing: .05em;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    border-top: 1px solid var(--s3);
}

.plan-features li {
    font-size: .83rem;
    color: var(--s5);
    padding: 8px 0;
    border-bottom: 1px solid var(--s3);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-check {
    color: var(--green);
    flex-shrink: 0;
    font-weight: 700;
}

.plan-x {
    color: var(--s3);
    flex-shrink: 0;
    font-weight: 700;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 13px;
    font-family: var(--ff-mono);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 2px solid;
    text-align: center;
    transition: all .22s;
    min-height: var(--touch);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-btn-y {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
}

.plan-btn-y:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-1px);
}

.plan-btn-o {
    background: transparent;
    border-color: var(--s3);
    color: var(--white);
}

.plan-btn-o:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.plan-badges {
    margin-top: var(--gap);
    background: var(--ink);
    border: 1px solid var(--s3);
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--s5);
}

.plan-badge-icon {
    font-size: .9rem;
}

/* ─── CONTACTO ───────────────────────────────────────── */
#contacto {
    padding: 110px 0;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -5%;
    width: 50%;
    height: 160%;
    background: var(--yellow);
    transform: skewX(6deg);
    z-index: 0;
    opacity: .06;
}

.contact-inner {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-h {
    font-family: var(--ff-disp);
    font-size: clamp(3rem, 4.5vw, 5rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.4px;
    margin-bottom: 24px;
}

.contact-sub {
    font-size: .95rem;
    color: var(--s5);
    line-height: 1.85;
    max-width: 380px;
    margin-bottom: 36px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon-box {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--s2);
    border: 1px solid var(--s3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: border-color .2s, background .2s;
}

.contact-row:hover .contact-icon-box {
    border-color: var(--yellow);
    background: rgba(255, 225, 53, .06);
}

.contact-detail {
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .04em;
    color: var(--s5);
}

.contact-detail strong {
    color: var(--white);
}

.contact-detail a {
    color: var(--white);
    transition: color .15s;
}

.contact-detail a:hover {
    color: var(--yellow);
}

/* ─── FORM ───────────────────────────────────────────── */
.form-header {
    background: var(--yellow);
    color: var(--ink);
    padding: 16px 24px;
    font-family: var(--ff-disp);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.form-body {
    background: var(--s1);
    border: 1px solid var(--s3);
    border-top: none;
    padding: 28px 24px;
}

.fg {
    margin-bottom: 14px;
}

.fg label {
    display: block;
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--s5);
    margin-bottom: 6px;
}

.fg input,
.fg select {
    width: 100%;
    padding: 12px 14px;
    background: var(--s2);
    border: 1px solid var(--s3);
    color: var(--white);
    font-size: .88rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
    /* Evitar zoom en iOS al hacer focus */
    font-size: max(.88rem, 16px);
}

.fg input::placeholder {
    color: var(--s4);
}

.fg input:focus,
.fg select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 225, 53, .1);
}

.fg select {
    color: var(--s4);
    cursor: pointer;
}

.fg select:valid {
    color: var(--white);
}

/* Error state para validación */
.fg input.invalid,
.fg select.invalid {
    border-color: var(--red);
}

.fg input.invalid:focus,
.fg select.invalid:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}

.fg-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--yellow);
    border: none;
    color: var(--ink);
    font-family: var(--ff-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: all .22s;
    margin-top: 4px;
    min-height: var(--touch);
    position: relative;
    overflow: hidden;
}

.form-submit:hover {
    background: var(--white);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.form-fine {
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .06em;
    color: var(--s4);
    text-align: center;
    margin-top: 10px;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
    background: var(--s1);
    border-top: 1px solid var(--s3);
    padding: 36px 0 28px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-family: var(--ff-disp);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--white);
}

.footer-brand .y {
    color: var(--yellow);
}

.footer-domain {
    font-family: var(--ff-mono);
    font-size: .6rem;
    letter-spacing: .06em;
    color: var(--s5);
    margin-top: 5px;
}

.footer-domain a {
    transition: color .15s;
}

.footer-domain a:hover {
    color: var(--yellow);
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: var(--ff-mono);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--s5);
    transition: color .15s;
    padding: 4px 0; /* touch-friendlier */
}

.footer-nav a:hover {
    color: var(--yellow);
}

.footer-copy {
    font-family: var(--ff-mono);
    font-size: .58rem;
    letter-spacing: .05em;
    color: var(--s4);
    margin-top: 18px;
    text-align: center;
}

/* ─── DASHBOARD MOCKUP ───────────────────────────────────── */
.mockup-shell {
    background: var(--s1);
    border: 1px solid var(--s3);
    overflow: hidden;
    position: relative;
    animation: fadeUp .8s .25s ease both;
}

.mockup-topbar {
    background: #0a0a0a;
    border-bottom: 1px solid var(--s3);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-brand {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mockup-brand-text {
    font-family: var(--ff-disp);
    font-size: .85rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: .04em;
}

.mockup-tabs {
    display: flex;
    gap: 16px;
    margin-left: 12px;
    flex: 1;
}

.mockup-tab {
    font-family: var(--ff-mono);
    font-size: .5rem;
    letter-spacing: .1em;
    color: var(--s5);
    padding-bottom: 4px;
}

.mockup-tab.active {
    color: var(--yellow);
    border-bottom: 1.5px solid var(--yellow);
}

.mockup-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.mockup-inst-badge {
    font-family: var(--ff-mono);
    font-size: .45rem;
    letter-spacing: .1em;
    border: 1px solid #8B5CF6;
    color: #8B5CF6;
    padding: 2px 6px;
}

.mockup-notif {
    position: relative;
    font-size: .75rem;
}

.mockup-notif-dot {
    position: absolute;
    top: -3px;
    right: -4px;
    background: #FF3B30;
    color: #fff;
    font-family: var(--ff-mono);
    font-size: .4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-avatar {
    width: 20px;
    height: 20px;
    background: #8B5CF6;
    border-radius: 2px;
    font-family: var(--ff-mono);
    font-size: .45rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-inst-name {
    font-family: var(--ff-mono);
    font-size: .5rem;
    letter-spacing: .08em;
    color: var(--s5);
}

.mockup-body {
    padding: 14px 16px 10px;
}

.mockup-section-label {
    font-family: var(--ff-mono);
    font-size: .48rem;
    letter-spacing: .14em;
    color: var(--s5);
    margin-bottom: 4px;
}

.mockup-inst-title {
    font-family: var(--ff-disp);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.mockup-inst-type {
    font-family: var(--ff-mono);
    font-size: .48rem;
    letter-spacing: .1em;
    border: 1px solid #8B5CF6;
    color: #8B5CF6;
    padding: 2px 7px;
    display: inline-block;
    margin-bottom: 12px;
}

.mockup-stats {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 2px;
    margin-bottom: 10px;
}

.mockup-stat {
    padding: 8px 10px;
    background: var(--s2);
    position: relative;
    overflow: hidden;
}

.mockup-stat-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.mockup-stat-val {
    font-family: var(--ff-disp);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
}

.mockup-stat-key {
    font-family: var(--ff-mono);
    font-size: .42rem;
    letter-spacing: .08em;
    color: var(--s5);
    text-transform: uppercase;
}

.mockup-peticiones {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mockup-pet {
    background: var(--s2);
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-left: 2px solid var(--s3);
}

.mockup-pet:first-child {
    border-left-color: #34C759;
}

.mockup-pet:nth-child(2) {
    border-left-color: var(--yellow);
}

.mockup-pet:nth-child(3) {
    border-left-color: #0A84FF;
}

.mockup-pet-left {
    flex: 1;
    min-width: 0;
}

.mockup-pet-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.mptag {
    font-family: var(--ff-mono);
    font-size: .4rem;
    letter-spacing: .08em;
    border: 1px solid;
    padding: 1px 5px;
    text-transform: uppercase;
}

.mockup-pet-title {
    font-family: var(--ff-body);
    font-size: .65rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-pet-meta {
    font-family: var(--ff-mono);
    font-size: .42rem;
    letter-spacing: .04em;
    color: var(--s5);
}

.mockup-pet-right {
    text-align: right;
    flex-shrink: 0;
    min-width: 48px;
}

.mockup-pet-count {
    font-family: var(--ff-disp);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.mockup-pet-of {
    font-family: var(--ff-mono);
    font-size: .4rem;
    color: var(--s5);
    margin-bottom: 3px;
}

.mockup-pet-bar {
    height: 2px;
    background: var(--s3);
    width: 48px;
}

.mockup-pet-fill {
    height: 100%;
}

.mockup-preview-label {
    background: rgba(255, 225, 53, .06);
    border-top: 1px solid rgba(255, 225, 53, .12);
    padding: 6px 16px;
    font-family: var(--ff-mono);
    font-size: .45rem;
    letter-spacing: .12em;
    color: rgba(255, 225, 53, .4);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Base = mobile (≤480px) → tablet (481–768px) → desktop (769px+)
═══════════════════════════════════════════════════════ */

/* ── MOBILE BASE ─────────────────────────────────────── */
/* Nav */
#nav {
    height: 54px;
    padding: 0 16px;
}

.nav-links {
    display: none;
}

.nav-pill {
    font-size: .6rem;
    padding: 8px 14px;
}

/* Hero */
#hero {
    padding: 80px 0 48px;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-band {
    display: none;
}

.hero-particles {
    display: none;
}

/* ocultar partículas en mobile para performance */
.hero-gridlines {
    opacity: .02;
}

.hero-left {
    padding-right: 0;
}

.hero-inner {
    width: 100%;
}

.hero-h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: .9rem;
    margin-bottom: 28px;
    max-width: 100%;
}

.hero-btns {
    flex-direction: column;
    gap: 8px;
}

.btn-hero {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: .65rem;
}

.hero-fine {
    font-size: .55rem;
}

.grid2 {
    grid-template-columns:1fr;
    gap: 24px;
}

/* Mockup — simplificado en mobile */
.mockup-topbar-right .mockup-inst-name {
    display: none;
}

.mockup-tabs {
    display: none;
}

.mockup-pet-meta {
    display: none;
}

/* Ticker */
.ticker-item {
    font-size: .78rem;
    padding: 0 18px;
}

/* Problema */
#problema {
    padding: 64px 0;
}

.problema-h {
    font-size: clamp(2rem, 8vw, 3rem);
}

.pain-items {
    margin-top: 24px;
}

.pain-card {
    padding: 16px;
    gap: 12px;
}

.pain-num {
    font-size: 1.5rem;
    min-width: 28px;
}

.pain-title {
    font-size: 1rem;
}

.pain-body {
    font-size: .8rem;
}

.callout-text {
    font-size: 1.2rem;
}

/* Solución */
#solucion {
    padding: 64px 0;
}

#solucion::before {
    display: none;
}

.solucion-headline {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
}

.features-grid {
    grid-template-columns:1fr;
    margin-top: 32px;
}

/* Para quién */
#para-quien {
    padding: 64px 0;
}

.pq-headline {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 32px;
}

.sector-cards {
    grid-template-columns:1fr;
}

.sector-header {
    padding: 20px 20px 16px;
}

.sector-title {
    font-size: 1.4rem;
}

.sector-body {
    padding: 16px 20px;
}

/* Proceso */
#proceso {
    padding: 64px 0;
}

.proceso-headline {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 32px;
}

.steps-row {
    grid-template-columns:1fr;
}

.step::before {
    display: none;
}

.step {
    padding: 18px 16px;
}

/* Precios */
#precios {
    padding: 64px 0;
}

.precios-headline {
    font-size: clamp(2rem, 8vw, 3.2rem);
}

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

.plan {
    padding: 24px 20px;
}

.plan-price {
    font-size: 2.4rem;
}

.plan-badges {
    gap: 8px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
}

/* Contacto */
#contacto {
    padding: 64px 0;
}

.contact-inner {
    grid-template-columns:1fr;
    gap: 40px;
}

.contact-h {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
}

.fg-row {
    grid-template-columns:1fr;
}

.form-body {
    padding: 20px 16px;
}

/* Footer */
footer {
    padding: 28px 0 20px;
}

.footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-nav {
    gap: 16px;
}

.footer-copy {
    font-size: .52rem;
    text-align: left;
}

/* ── TABLET (481px – 768px) ──────────────────────────── */
@media (min-width: 481px) {
    #hero {
        padding: 90px 0 56px;
    }

    .hero-h1 {
        font-size: clamp(3rem, 8vw, 4rem);
    }

    .btn-hero {
        width: auto;
    }

    .hero-btns {
        flex-direction: row;
    }

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

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

    .steps-row {
        grid-template-columns:1fr 1fr;
    }

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

    .sector-cards {
        grid-template-columns:1fr;
    }

    .fg-row {
        grid-template-columns:1fr 1fr;
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
    }
}

/* ── DESKTOP (769px+) ────────────────────────────────── */
@media (min-width: 769px) {
    #nav {
        height: 60px;
        padding: 0 var(--pad);
    }

    .nav-links {
        display: flex;
    }

    .nav-pill {
        font-size: .65rem;
        padding: 10px 22px;
    }

    #hero {
        padding: 100px 0 80px;
        min-height: 100vh;
    }

    .hero-band {
        display: block;
    }

    .hero-particles {
        display: block;
    }

    .hero-left {
        padding-right: 48px;
    }

    .hero-h1 {
        font-size: clamp(3.4rem, 5.5vw, 6rem);
    }

    .hero-sub {
        font-size: 1rem;
        max-width: 420px;
    }

    .hero-btns {
        flex-direction: row;
    }

    .btn-hero {
        width: auto;
        font-size: .68rem;
        padding: 15px 32px;
    }

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

    .mockup-tabs {
        display: flex;
    }

    .mockup-pet-meta {
        display: block;
    }

    .mockup-topbar-right .mockup-inst-name {
        display: block;
    }

    #problema {
        padding: 110px 0;
    }

    .problema-h {
        font-size: clamp(2.8rem, 4vw, 4.2rem);
    }

    #solucion {
        padding: 110px 0;
    }

    #solucion::before {
        display: block;
    }

    .solucion-headline {
        font-size: clamp(3rem, 5vw, 5.5rem);
    }

    .features-grid {
        grid-template-columns:repeat(3, 1fr);
        margin-top: 56px;
    }

    #para-quien {
        padding: 110px 0;
    }

    .pq-headline {
        font-size: clamp(2.8rem, 4vw, 4.5rem);
        margin-bottom: 56px;
    }

    .sector-cards {
        grid-template-columns:1fr 1fr;
    }

    #proceso {
        padding: 110px 0;
    }

    .proceso-headline {
        font-size: clamp(2.8rem, 4vw, 4.5rem);
        margin-bottom: 60px;
    }

    .steps-row {
        grid-template-columns:repeat(5, 1fr);
    }

    .step::before {
        display: block;
    }

    #numeros {
        padding: 110px 0;
    }

    .numeros-headline {
        font-size: clamp(2.4rem, 4vw, 4rem);
        margin-bottom: 48px;
    }

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

    .num-val {
        font-size: 3.2rem;
    }

    .testimonial {
        flex-direction: row;
        gap: 24px;
        padding: 32px 36px;
    }

    #precios {
        padding: 110px 0;
    }

    .precios-headline {
        font-size: clamp(2.8rem, 4vw, 4.5rem);
    }

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

    .plan-price {
        font-size: 3rem;
    }

    .plan-badges {
        flex-direction: row;
        align-items: center;
    }

    #contacto {
        padding: 110px 0;
    }

    .contact-inner {
        grid-template-columns:1fr 1fr;
        gap: 80px;
    }

    .contact-h {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .fg-row {
        grid-template-columns:1fr 1fr;
    }

    footer {
        padding: 36px 0 28px;
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
    }

    .footer-copy {
        text-align: center;
    }
}

/* ── LARGE (1200px+) ─────────────────────────────────── */
@media (min-width: 1200px) {
    .num-grid {
        grid-template-columns:repeat(2, 1fr);
    }
}

/* ─── SAFE AREAS (iPhone notch / Dynamic Island) ───── */
@supports (padding: max(0px)) {
    #nav {
        padding-left: max(var(--pad), env(safe-area-inset-left));
        padding-right: max(var(--pad), env(safe-area-inset-right));
    }

    .wrap {
        padding-left: max(var(--pad), env(safe-area-inset-left));
        padding-right: max(var(--pad), env(safe-area-inset-right));
    }
}

/* ─── PRINT ──────────────────────────────────────────── */
@media print {
    #nav, .ticker-wrap, .hero-band, .hero-gridlines,
    .hero-particles, .nav-mobile {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    #hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-h1 {
        color: #000;
        -webkit-text-stroke: none;
    }

    .hero-h1 .line-yellow {
        color: #666;
    }

    .hero-h1 .line-outline {
        -webkit-text-stroke: 1px #000;
    }

    section {
        padding: 32px 0 !important;
    }

    .reveal, .reveal-l {
        opacity: 1 !important;
        transform: none !important;
    }
}
