@font-face{font-family:"DM Sans";font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/dmsans-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/dmsans-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400 500;font-display:swap;src:url("../fonts/jetbrainsmono-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400 500;font-display:swap;src:url("../fonts/jetbrainsmono-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Sora";font-style:normal;font-weight:400 600;font-display:swap;src:url("../fonts/sora-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Sora";font-style:normal;font-weight:400 600;font-display:swap;src:url("../fonts/sora-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* ---- Design System Patricio Sierra v2 (base estructural Cloudflare) ---- */
    :root {
      color-scheme: dark;
    
      /* ---- color: base ---- */
      --ps-bg:          #040B08;          /* surface.base   (AuthKit #05060F) */
      --ps-bg-raised:   #06110D;          /* surface.strong */
      --ps-tint:        188 245 221;      /* #BCF5DD — el "vidrio" (AuthKit #BAD6F7) */
      --ps-accent:      #2FBF87;          /* hue main */
      --ps-accent-hi:   #5AD3A4;          /* hover del acento */
      --ps-accent-glow: #7FEBC0;          /* líneas de luz */
      --ps-on-accent:   #03130C;          /* texto sobre acento · 8,09:1 */
      --ps-signal:      #E0A83A;          /* dato de pérdida (lo que no se mide) */
      --ps-danger:      #FF8A7A;          /* error de formulario */
    
      /* ---- color: texto (contraste medido sobre --ps-bg) ---- */
      --ps-text:        #F2FBF7;                    /* 18,6:1 */
      --ps-text-2:      rgb(201 235 220 / .78);     /* cuerpo · 9,5:1 */
      --ps-text-muted:  rgb(201 235 220 / .64);     /* secundario · 6,6:1 */
      --ps-text-faint:  rgb(201 235 220 / .56);     /* placeholder · 5,2:1 */
      --ps-grad-title:  linear-gradient(0deg, #DAF7EA 0%, #7EDDB5 100%);
      --ps-grad-btn:    linear-gradient(180deg, #8FE3BF 0%, #DAF7EA 100%);
    
      /* ---- color: líneas y vidrio ---- */
      --ps-line:        rgb(var(--ps-tint) / .12);
      --ps-line-2:      rgb(var(--ps-tint) / .22);
      --ps-line-field:  rgb(var(--ps-tint) / .32);
      --ps-glass:       rgb(var(--ps-tint) / .03);
      --ps-glass-2:     rgb(var(--ps-tint) / .06);
    
      /* ---- sombras (shadow.1..4 del DESIGN.md, en verde) ---- */
      --ps-sh-ring:   inset 0 0 0 1px rgb(var(--ps-tint) / .12);
      --ps-sh-ring-2: inset 0 0 0 1px rgb(var(--ps-tint) / .06);
      --ps-sh-card:   inset 0 1px 1px rgb(199 234 219 / .12), inset 0 24px 48px rgb(199 234 219 / .05), 0 24px 32px rgb(2 8 5 / .7);
      --ps-sh-hero:   inset 0 1px 1px rgb(216 248 234 / .2), inset 0 24px 48px rgb(168 245 210 / .06), 0 16px 32px rgb(0 0 0 / .3);
      --ps-sh-field:  inset 0 0 0 1px var(--ps-line-field), inset 0 1px 1px rgb(216 248 234 / .06), inset 0 4px 12px rgb(216 248 234 / .04);
    
      /* ---- forma ---- */
      --ps-r-xs: 6px; --ps-r-sm: 12px; --ps-r-md: 16px; --ps-r-lg: 24px; --ps-r-xl: 28px; --ps-r-pill: 999px;
    
      /* ---- espacio (base 4) ---- */
      --ps-s1: 4px; --ps-s2: 8px; --ps-s3: 12px; --ps-s4: 16px; --ps-s5: 24px; --ps-s6: 32px; --ps-s7: 48px; --ps-s8: 64px; --ps-s9: 96px;
    
      /* ---- tipografía ---- */
      --ps-font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
      --ps-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
      --ps-font-mono: 'JetBrains Mono', ui-monospace, monospace;
    
      /* ---- movimiento ---- */
      --ps-ease-ui:     cubic-bezier(.6, .6, 0, 1);
      --ps-ease-switch: cubic-bezier(.165, .84, .44, 1);
      --ps-ease-in:     ease;
      --ps-dur-instant: 200ms;
      --ps-dur-fast:    450ms;
      --ps-dur-normal:  1500ms;
    }
    /* alias de tokens que la home ya usaba */
    :root { --ps-surface: var(--ps-bg-raised); --ps-line-strong: var(--ps-line-2); --ps-accent-hover: var(--ps-accent-hi); --ps-text-bright: var(--ps-text); }
    body { margin: 0; background: var(--ps-bg); }
    a { color: var(--ps-accent); text-decoration: none; }
    a:hover { color: var(--ps-accent-hover); }

    /* etiqueta mono en mayuscula */
    .ps-label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--ps-text-muted); text-transform: uppercase; }
    /* titulo de seccion: Sora 500, line-height 1.0, tracking -0.025em */
    .ps-h2 { font-family: 'Sora', 'Helvetica Neue', Arial, sans-serif; font-size: 48px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.0; margin: 0; }
    .ps-h3 { font-family: 'Sora', 'Helvetica Neue', Arial, sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
    .ps-body { font-size: 16px; line-height: 1.2; color: var(--ps-text-muted); margin: 0; letter-spacing: -0.0025em; }
    .ps-body--long { line-height: 1.45; }
    .ps-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
    .ps-card { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 8px; padding: 28px; }
    /* ---- vidrio (ui-kit) ---- */
    .ps-glass {
      position: relative; border-radius: var(--ps-r-md);
      background: var(--ps-glass);
      -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
      box-shadow: var(--ps-sh-card);
    }
    .ps-glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--ps-line); pointer-events: none; }
    .ps-glass > * { position: relative; z-index: 1; }

    /* card "hero": más opaca, con brillo arriba y 4 puntos en las esquinas */
    .ps-glass--hero {
      background: linear-gradient(rgb(var(--ps-tint) / .04), rgb(var(--ps-tint) / .04)), rgb(5 14 10 / .97);
      box-shadow: var(--ps-sh-hero);
    }
    .ps-glass--hero::before {
      --dot: #D1FAE8; content: ""; position: absolute; inset: 16px; pointer-events: none; z-index: 2;
      filter: drop-shadow(0 0 8px #D1FAE8);
      background-image: radial-gradient(var(--dot) 50%, transparent 50%), radial-gradient(var(--dot) 50%, transparent 50%), radial-gradient(var(--dot) 50%, transparent 50%), radial-gradient(var(--dot) 50%, transparent 50%);
      background-size: 4px 4px; background-repeat: no-repeat;
      background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    }
    .ps-card.ps-glass { border: 0; }

    /* ---- movimiento y fondos (ui-kit) ---- */

    @property --cta-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

    #ps-stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

    /* borde de luz que gira (card-animated-loop) */
    .ps-fx { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
      --line: var(--ps-accent-glow); --start: 0deg;
      filter: drop-shadow(0 0 10px var(--line)); opacity: .5;
      animation: ps-line-op 3s linear infinite; }
    .ps-fx::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
      background: conic-gradient(from calc(var(--angle) + var(--start)), transparent 0%, var(--line) 20%, transparent 25%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
              mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
      animation: ps-angle 12s linear infinite; }
    .ps-fx--intermittent { opacity: 0; animation: ps-line-blink 8s linear infinite var(--delay, 0s); }
    .ps-fx--intermittent::before { animation-duration: 8s; }
    @keyframes ps-angle { to { --angle: 360deg; } }
    @keyframes ps-line-op { 0%, 100% { opacity: .38; } 50% { opacity: .5; } }
    @keyframes ps-line-blink { 0% { opacity: 0; } 10%, 35% { opacity: .55; } 50%, 100% { opacity: 0; } }

    /* spotlights: conos de luz que respiran */
    .ps-spots { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
      -webkit-mask-image: radial-gradient(farthest-side at 50% 0, #000 50%, transparent 90%); mask-image: radial-gradient(farthest-side at 50% 0, #000 50%, transparent 90%);
      opacity: 0; transition: opacity 1.5s .5s; }
    .is-intro .ps-spots, .ps-spots.is-on { opacity: 1; }
    .ps-spot { position: absolute; top: -40px; left: var(--x, 50%); width: 200px; height: 700px; border-radius: 9999px;
      transform-origin: 50% 0; opacity: .5; filter: blur(15px);
      background-image: conic-gradient(at 50% -5%, transparent 45%, rgb(110 196 160 / .3) 49%, rgb(110 196 160 / .55) 50%, rgb(110 196 160 / .3) 51%, transparent 55%);
      animation: ps-spot-op calc(var(--d, 5s) * 1.2) linear infinite var(--delay, 0s) alternate, ps-spot-sc calc(var(--d, 5s) * 1.7) ease infinite var(--delay, 0s) both; }
    @keyframes ps-spot-op { 0% { opacity: .6; } 50% { opacity: .45; } 95% { opacity: .6; } }
    @keyframes ps-spot-sc {
      0%, 100% { transform: translateX(-50%) rotate(var(--rot, 0deg)) scale(var(--sc, 1)); }
      50% { transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * 1.2)) scale(calc(var(--sc, 1) * 1.1)); } }

    /* sección alterna: cuadrícula que se desvanece */
    .ps-alt { position: relative; }
    .ps-alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Cpath d='M38 .5H.5V38' fill='none' stroke='rgba(188,245,221,0.05)'/%3E%3C/svg%3E");
      -webkit-mask-image: radial-gradient(75% 70% at 50% 42%, #000 25%, transparent 78%); mask-image: radial-gradient(75% 70% at 50% 42%, #000 25%, transparent 78%); }
    .ps-alt > * { position: relative; z-index: 1; }

    .ps-tile { width: 48px; height: 48px; border-radius: var(--ps-r-sm); display: grid; place-items: center; flex: none;
      background: linear-gradient(180deg, rgb(var(--ps-tint) / .08), rgb(var(--ps-tint) / .02));
      box-shadow: inset 0 1px 1px rgb(216 248 234 / .2), inset 0 0 0 1px rgb(var(--ps-tint) / .12), 0 8px 16px rgb(0 0 0 / .4); }

    .ps-tile svg { width: 26px; height: 26px; }

    .ps-num { font-family: var(--ps-font-mono); font-size: 12px; color: var(--ps-accent); letter-spacing: .04em; }

    .ps-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .ps-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 0 20px 0 0; }
    .ps-step__top { display: flex; align-items: center; gap: 4px; }
    .ps-step .ps-tile { transition: filter var(--ps-dur-fast), box-shadow var(--ps-dur-fast) var(--ps-ease-ui); }
    .ps-step .ps-tile svg { stroke: rgb(201 235 220 / .55); transition: stroke var(--ps-dur-fast); }
    .ps-sep { flex: 1; height: 24px; position: relative; --lc: rgb(var(--ps-tint) / .08); --cc: rgb(var(--ps-tint) / .1); }
    .ps-sep::before, .ps-sep::after { content: ""; position: absolute; inset: 0;
      background-image: linear-gradient(to right, var(--lc), var(--lc)), radial-gradient(24px circle at 50% 50%, transparent calc(50% - 2px), var(--cc) calc(50% - 1px), transparent 50%), radial-gradient(2px circle at 50% 50%, #B7F4D9 calc(50% - 1px), transparent 50%);
      background-position: 0 center, 50% center, 50% center; background-repeat: no-repeat; background-size: 100% 1px, auto, auto; }
    .ps-sep::after { --lc: rgb(127 235 192 / .7); --cc: rgb(127 235 192 / .6);
      -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent);
      -webkit-mask-size: 200% 100%; mask-size: 200% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
      -webkit-mask-position: 200% 0; mask-position: 200% 0; filter: drop-shadow(0 0 4px rgb(127 235 192 / .6)); }
    .ps-step.is-done .ps-sep::after, .ps-step.is-active .ps-sep::after { animation: ps-sweep 1.2s var(--ps-ease-ui) forwards; }
    @keyframes ps-sweep { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
    .ps-step.is-active .ps-tile, .ps-step.is-done .ps-tile { box-shadow: inset 0 1px 1px rgb(216 248 234 / .3), inset 0 0 0 1px rgb(127 235 192 / .45), 0 0 22px rgb(47 191 135 / .25), 0 8px 16px rgb(0 0 0 / .4); }
    .ps-step.is-active .ps-tile svg, .ps-step.is-done .ps-tile svg { stroke: var(--ps-accent-glow); }
    .ps-step.is-active .ps-tile { animation: ps-shine 1.5s linear; }
    @keyframes ps-shine { 10%, 20% { filter: brightness(160%); } 80% { filter: none; } }
    .ps-step .ps-h4 { transition: color var(--ps-dur-fast); color: var(--ps-text-muted); }
    .ps-step.is-active .ps-h4, .ps-step.is-done .ps-h4 { color: var(--ps-text); }
    .ps-step .ps-num { color: var(--ps-text-muted); transition: color var(--ps-dur-fast); }
    .ps-step.is-active .ps-num, .ps-step.is-done .ps-num { color: var(--ps-accent); }
    .ps-step:last-child .ps-sep { display: none; }

    /* CTA box (cta-box de AuthKit): borde de luz cónico permanente + hover */
    .ps-ctabox { position: relative; border-radius: var(--ps-r-xl); background-color: rgb(186 247 220 / .02);
      -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
      box-shadow: inset 0 1px 1px rgb(216 248 234 / .2), inset 0 24px 48px rgb(168 245 210 / .06);
      transition: background-color var(--ps-dur-fast) var(--ps-ease-ui), box-shadow var(--ps-dur-fast) var(--ps-ease-ui); }
    .ps-ctabox::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
      background: linear-gradient(rgb(152 239 200 / .24) 0%, rgb(216 248 234 / 0) 100%), rgb(186 247 220 / .12);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
              mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0); }
    .ps-ctabox::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; --start: 0deg;
      background: conic-gradient(from calc(var(--cta-angle) + var(--start)), transparent 0%, rgb(160 245 207 / .7) 40%, transparent 45%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
              mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
      opacity: .5; animation: ps-cta-angle 6s linear infinite; transition: opacity var(--ps-dur-instant) ease-in-out; }
    @keyframes ps-cta-angle { to { --cta-angle: 360deg; } }
    .ps-ctabox:hover, .ps-ctabox.is-hover { background-color: rgb(186 247 220 / .04); box-shadow: inset 0 1px 1px rgb(216 248 234 / .16), inset 0 32px 48px rgb(168 245 210 / .16); }
    .ps-ctabox:hover::after, .ps-ctabox.is-hover::after { opacity: .9; }
    .ps-ctabox:hover .ps-grad, .ps-ctabox.is-hover .ps-grad { text-shadow: 0 2px 16px rgb(126 221 181 / .48); }
    .ps-ctabox__dots { position: absolute; inset: 22px; pointer-events: none; }
    .ps-ctabox__dots i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #D1FAE8; filter: drop-shadow(0 0 6px rgb(186 247 220 / .5)); }
    .ps-ctabox__dots i:nth-child(1) { top: 0; left: 0; } .ps-ctabox__dots i:nth-child(2) { top: 0; right: 0; }
    .ps-ctabox__dots i:nth-child(3) { bottom: 0; left: 0; } .ps-ctabox__dots i:nth-child(4) { bottom: 0; right: 0; }

    @media (max-width: 900px) { .ps-steps { grid-template-columns: 1fr; gap: 28px; } .ps-step { padding: 0; } .ps-sep { display: none; } }

    @media (max-width: 640px) { .ps-ctabox { padding: 44px 20px !important; } .ps-cta-row .ps-btn { width: 100%; } .ps-kicker::before, .ps-kicker::after { width: 40px; } .ps-kicker { gap: 14px; } .ps-spot { width: 140px; } }

    /* menos movimiento: todo quieto, el contenido igual se lee */

    @media (prefers-reduced-motion: reduce) {

      .ps-btn::before, .ps-btn__fx::before, .ps-btn__fx::after, .ps-fx, .ps-fx::before, .ps-spot, .ps-ctabox::after, .ps-step .ps-sep::after, .ps-step .ps-tile { animation: none !important; transition: none !important; }

      .ps-fx, .ps-fx--intermittent { opacity: 0 !important; }

      .ps-spots { transition: none !important; }

      .ps-step .ps-sep::after { -webkit-mask-position: 0 0; mask-position: 0 0; }

    }

    /* ---- ui-kit: piezas que faltaban (tipografía, nav, secciones, métricas, footer) ---- */

    /* ===================== tipografía ===================== */
    .ps-display, .ps-h2, .ps-h3, .ps-h4 { font-family: var(--ps-font-display); font-weight: 500; color: var(--ps-text); margin: 0; text-wrap: balance; }
    .ps-display { font-size: 56px; line-height: 1.07; letter-spacing: -0.03em; }
    .ps-h2 { font-size: 44px; line-height: 52px; letter-spacing: -0.025em; }
    .ps-h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.02em; }
    .ps-h4 { font-size: 17px; line-height: 24px; letter-spacing: -0.015em; }
    .ps-lead { font-size: 18px; line-height: 28px; color: var(--ps-text-2); margin: 0; text-wrap: pretty; }
    .ps-body { font-size: 16px; line-height: 24px; color: var(--ps-text-2); margin: 0; text-wrap: pretty; }
    .ps-small { font-size: 14px; line-height: 20px; color: var(--ps-text-muted); margin: 0; }
    .ps-mono { font-family: var(--ps-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-text-muted); }
    .ps-strong { color: var(--ps-text); }

    /* link con flecha */
    .ps-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--ps-accent);
      transition: color var(--ps-dur-instant); border-radius: 4px; }
    .ps-link svg { transition: transform var(--ps-dur-fast) var(--ps-ease-ui); }
    .ps-link:hover { color: var(--ps-accent-hi); }
    .ps-link:hover svg { transform: translateX(3px); }

    /* ===================== campo (input) ===================== */

    .ps-hint { display: flex; align-items: center; gap: 10px; font-family: var(--ps-font-mono); font-size: 12px; color: var(--ps-text-muted); min-height: 18px; }
    .ps-hint::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--ps-accent); box-shadow: 0 0 8px var(--ps-accent); flex: none; }
    .ps-hint.is-error { color: var(--ps-danger); }
    .ps-hint.is-error::before { background: var(--ps-danger); box-shadow: 0 0 8px var(--ps-danger); }
    .ps-cta-row { display: flex; gap: 12px; align-items: stretch; }
    .ps-cta-row .ps-btn { height: 52px; }

    .ps-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--ps-r-xs);
      font-size: 13px; color: var(--ps-text-2); background: rgb(var(--ps-tint) / .05); box-shadow: var(--ps-sh-ring); }
    .ps-num { font-family: var(--ps-font-mono); font-size: 12px; color: var(--ps-accent); letter-spacing: .04em; }
    .ps-tile { width: 48px; height: 48px; border-radius: var(--ps-r-sm); display: grid; place-items: center; flex: none;
      background: linear-gradient(180deg, rgb(var(--ps-tint) / .08), rgb(var(--ps-tint) / .02));
      box-shadow: inset 0 1px 1px rgb(216 248 234 / .2), inset 0 0 0 1px rgb(var(--ps-tint) / .12), 0 8px 16px rgb(0 0 0 / .4); }
    .ps-tile svg { width: 26px; height: 26px; }
    .ps-bar-track { height: 4px; border-radius: var(--ps-r-pill); background: rgb(var(--ps-tint) / .08); overflow: hidden; }
    .ps-bar { height: 100%; border-radius: inherit; transform-origin: left center; }
    .ps-bar--signal { background: linear-gradient(90deg, rgb(224 168 58 / .45), var(--ps-signal)); box-shadow: 0 0 10px rgb(224 168 58 / .5); }
    .ps-bar--accent { background: linear-gradient(90deg, rgb(47 191 135 / .45), var(--ps-accent-glow)); box-shadow: 0 0 10px rgb(47 191 135 / .5); }
    .ps-callout { border-left: 2px solid var(--ps-accent); padding: 4px 0 4px 20px; max-width: 780px; box-shadow: -10px 0 18px -14px var(--ps-accent); }
    .ps-hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--ps-line-2) 20%, var(--ps-line-2) 80%, transparent); border: 0; margin: 0; }
    .ps-dotgrid { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
      background-image: radial-gradient(rgb(var(--ps-tint) / .14) 1px, transparent 1px); background-size: 22px 22px;
      -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%); }

    /* halo radial de sección (hero::after de AuthKit) */
    .ps-halo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
      background: radial-gradient(50% 64% at 50% 36%, rgb(47 191 135 / .08) 14%, transparent 100%), radial-gradient(50% 68% at 50% 32%, rgb(216 248 234 / .04) 0%, rgb(152 239 200 / .01) 50%, transparent 100%); }

    /* retícula: líneas de plano + cruces */
    .ps-vlines { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 3s;
      -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
    .is-intro .ps-vlines, .ps-vlines.is-on { opacity: 1; }
    .ps-vlines i { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--ps-line) 80%, transparent); }
    .ps-hl { position: relative; }
    .ps-hl::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; transform: translateX(-50%); background: var(--ps-line); pointer-events: none;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
    .ps-cross { width: 40px; height: 40px; --c: rgb(var(--ps-tint) / .12);
      background-image: linear-gradient(45deg, transparent 50%, var(--c) 50%, transparent calc(50% + 1px)), linear-gradient(-45deg, transparent 50%, var(--c) 50%, transparent calc(50% + 1px)); }

    .ps-corners::before {
      --dot: #D1FAE8; content: ""; position: absolute; inset: 16px; pointer-events: none; z-index: 2;
      filter: drop-shadow(0 0 8px #D1FAE8);
      background-image: radial-gradient(var(--dot) 50%, transparent 50%), radial-gradient(var(--dot) 50%, transparent 50%), radial-gradient(var(--dot) 50%, transparent 50%), radial-gradient(var(--dot) 50%, transparent 50%);
      background-size: 4px 4px; background-repeat: no-repeat;
      background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    }
    .ps-corners { position: relative; }
    .ps-corners--edge::before { inset: -2px; }

    /* ===================== entradas (intro + scroll) ===================== */
    /* Visible por defecto: el JS pone .js-anim en <html> y recién ahí se oculta para animar. */
    .js-anim .ps-in { opacity: 0; transform: translateY(var(--y, 10px)); transition: opacity 1.5s var(--ps-ease-in) var(--dl, 0s), transform 1.5s var(--ps-ease-in) var(--dl, 0s); }
    .js-anim .is-intro .ps-in, .js-anim .ps-in.is-in { opacity: 1; transform: none; }
    .js-anim .ps-rise { opacity: 0; transform: translateY(20px); transition: opacity 1.5s var(--ps-ease-in) var(--dl, 0s), transform 1.5s var(--ps-ease-in) var(--dl, 0s); }
    .js-anim .ps-rise.is-in { opacity: 1; transform: none; }
    .js-anim .ps-bar { transform: scaleX(0); transition: transform 1.4s var(--ps-ease-switch) var(--dl, .15s); }
    .js-anim .is-in .ps-bar { transform: scaleX(1); }

    .js-anim .ps-hero.is-intro .ps-in { opacity: 1; transform: none; }

    /* ===================== nav ===================== */
    .ps-nav { position: sticky; top: 0; z-index: 50; transition: background-color var(--ps-dur-fast) var(--ps-ease-ui), box-shadow var(--ps-dur-fast); }
    .ps-nav.is-stuck { background: rgb(4 11 8 / .62); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 var(--ps-line), 0 -12px 32px rgb(1 6 3 / .24); }
    .ps-nav__in { height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
    .ps-logo { font-family: var(--ps-font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.025em; color: var(--ps-text); border-radius: 4px; }
    .ps-logo b { color: var(--ps-accent); font-weight: 500; text-shadow: 0 0 10px rgb(47 191 135 / .8); }
    .ps-navlinks { display: flex; justify-content: center; gap: 4px; }
    .ps-navlinks a { font-size: 14px; color: var(--ps-text-muted); padding: 8px 12px; border-radius: var(--ps-r-pill); transition: color var(--ps-dur-instant), background-color var(--ps-dur-instant); }
    .ps-navlinks a:hover { color: var(--ps-text); background: rgb(var(--ps-tint) / .05); }

    /* ===================== secciones de la home ===================== */
    .ps-sec { position: relative; padding: 112px 0; }
    .ps-sec + .ps-sec { border-top: 1px solid transparent; }
    .ps-sec-line::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ps-line) 15%, var(--ps-line) 85%, transparent); }
    .ps-sechead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin: 0 auto 56px; max-width: 760px; }
    .ps-sechead .ps-body, .ps-sechead .ps-lead { max-width: 560px; text-wrap: balance; }
    .ps-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .ps-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ps-row { display: flex; gap: 64px; align-items: flex-start; }
    .ps-card-pad { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
    .ps-stat { font-family: var(--ps-font-mono); font-size: 40px; line-height: 1; color: var(--ps-signal); text-shadow: 0 0 18px rgb(224 168 58 / .35); }
    .ps-stat--ok { color: var(--ps-accent-glow); text-shadow: 0 0 18px rgb(47 191 135 / .4); }
    .ps-metric { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--ps-r-sm); }
    .ps-metric .ps-stat { font-size: 26px; }
    .ps-metric__r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 96px; }
    .ps-metric__r .ps-bar-track { width: 96px; height: 3px; }
    .ps-logo-box { position: relative; height: 150px; display: grid; place-items: center; padding: 24px 28px; border-bottom: 1px solid var(--ps-line); overflow: hidden; border-radius: var(--ps-r-md) var(--ps-r-md) 0 0; }
    .ps-logo-box img { position: relative; height: 96px; width: 100%; max-width: 220px; object-fit: contain; filter: saturate(.6); opacity: .82; transition: filter var(--ps-dur-fast) var(--ps-ease-ui), opacity var(--ps-dur-fast) var(--ps-ease-ui), transform var(--ps-dur-fast) var(--ps-ease-ui); }
    .ps-hover:hover .ps-logo-box img, .ps-hover.is-hover .ps-logo-box img { filter: none; opacity: 1; transform: scale(1.03); }
    .ps-photo > img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; border-radius: var(--ps-r-md) var(--ps-r-md) 0 0;
      -webkit-mask-image: linear-gradient(#000 70%, rgb(0 0 0 / .55)); mask-image: linear-gradient(#000 70%, rgb(0 0 0 / .55));
      filter: saturate(.85); transition: filter var(--ps-dur-fast) var(--ps-ease-ui); }
    .ps-hover:hover .ps-photo > img { filter: saturate(1); }
    .ps-portrait > img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--ps-r-md); box-shadow: 0 0 0 1px var(--ps-line); }
    .ps-photo-empty { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 10px; position: relative; border-bottom: 1px solid var(--ps-line); }

    .ps-footer { padding: 44px 0 56px; }
    .ps-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
    .ps-footer__links { display: flex; gap: 8px; flex-wrap: wrap; }
    .ps-footer__links a { font-size: 13px; color: var(--ps-text-muted); padding: 6px 10px; border-radius: var(--ps-r-pill); transition: color var(--ps-dur-instant), background-color var(--ps-dur-instant); }
    .ps-footer__links a:hover { color: var(--ps-text); background: rgb(var(--ps-tint) / .05); }

    .ps-field input { flex: 1; min-width: 0; }

    @media (max-width: 960px) { .ps-grid-3 { grid-template-columns: 1fr; } .ps-row { flex-direction: column; gap: 40px; } .ps-row > * { flex: 1 1 auto !important; width: 100%; max-width: 100% !important; } .ps-navlinks { display: none !important; } .ps-nav__in { grid-template-columns: 1fr auto; } }

    @media (max-width: 640px) { .ps-display { font-size: 34px; line-height: 1.1; } .ps-h2 { font-size: 30px; line-height: 36px; } .ps-lead { font-size: 17px; line-height: 26px; } .ps-cta-row { flex-direction: column; } .ps-grid-2 { grid-template-columns: 1fr; } .ps-card-pad { padding: 22px; } .ps-footer__in { flex-direction: column; align-items: flex-start; gap: 16px; } .ps-metric .ps-body { min-width: 0; } .ps-nav__in { height: 60px; } .ps-nav .ps-btn--md { padding: 0 14px; } }

    @media (prefers-reduced-motion: reduce) { .ps-in, .ps-rise, .ps-bar { opacity: 1 !important; transform: none !important; transition: none !important; } .ps-nav { transition: none !important; } }

    /* ---- carrusel de logos del hero ---- */
    @keyframes ps-marquee { to { transform: translateX(-50%); } }
    .ps-marquee__track { animation: ps-marquee 48s linear infinite; will-change: transform; }
    .ps-marquee:hover .ps-marquee__track { animation-play-state: paused; }
    .ps-logo-m > img { opacity: .64; transition: opacity var(--ps-dur-instant, .2s); }
    .ps-logo-m > img:hover { opacity: 1; }
    @media (max-width: 640px) { .ps-marquee__track { animation-duration: 36s; } .ps-marquee__track > div { gap: 44px !important; padding-right: 44px !important; } }
    @media (prefers-reduced-motion: reduce) { .ps-marquee__track { animation: none !important; } }
    /* ---- título con degradé + halo (ui-kit) ---- */
    .ps-grad { text-shadow: 0 2px 16px rgb(126 221 181 / .24); transition: text-shadow var(--ps-dur-fast) var(--ps-ease-ui); }
    .ps-grad > span { display: inline; background-image: var(--ps-grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

    /* encabezado de seccion centrado (patron Cloudflare) */
    .ps-sechead { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
    /* centrado + ancho libre deja palabras huerfanas en la ultima linea: balancear */
    .ps-sechead .ps-h2 { text-wrap: balance; }
    .ps-sechead .ps-body { text-wrap: balance; max-width: 620px; }

    /* ---- botones, campo y etiquetas (ui-kit) ---- */

    @property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

    @keyframes ps-angle { to { --angle: 360deg; } }

    .ps-btn {
      --line: var(--ps-accent-glow); --line-op: .5; --dur: 6s;
      position: relative; isolation: isolate;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      height: 44px; padding: 0 28px; border: 0; border-radius: var(--ps-r-pill);
      font: 500 16px/1 var(--ps-font-body); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
      color: #DAF7EA;
      background: radial-gradient(31.2% 40.91% at 50% 151.14%, rgb(var(--ps-tint) / .1) 0%, rgb(var(--ps-tint) / 0) 100%), var(--ps-glass-2);
      -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
      box-shadow: var(--ps-sh-ring);
      transition: box-shadow var(--ps-dur-fast) var(--ps-ease-ui), transform var(--ps-dur-instant) ease-out, opacity var(--ps-dur-instant);
    }
    .ps-btn--md { height: 36px; padding: 0 16px; font-size: 14px; --line-op: .2; --dur: 16s; }
    /* cielo de puntos que titila dentro del botón */
    .ps-btn::before { content: ""; position: absolute; inset: 2px; border-radius: inherit; z-index: 1; pointer-events: none;
      background: conic-gradient(from var(--angle), transparent 0%, var(--line) 40%, transparent 40%);
      -webkit-mask-image: radial-gradient(#fff 3%, transparent 3%), radial-gradient(rgb(255 255 255 / .5) 3%, transparent 3%);
              mask-image: radial-gradient(#fff 3%, transparent 3%), radial-gradient(rgb(255 255 255 / .5) 3%, transparent 3%);
      -webkit-mask-size: 30px 30px; mask-size: 30px 30px;
      -webkit-mask-position: 0 0, 15px 15px; mask-position: 0 0, 15px 15px;
      opacity: .5; transition: opacity 1s ease-out;
      animation: ps-angle var(--dur) linear infinite, ps-sky 2s linear infinite; }
    /* resplandor que sube desde abajo en hover */
    .ps-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none;
      background: radial-gradient(farthest-side at 50% 100%, var(--line), transparent);
      mix-blend-mode: hard-light; opacity: 0; transition: opacity 1s ease-out; }
    .ps-btn__fx { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
      filter: drop-shadow(0 0 5px var(--line)); }
    .ps-btn__fx::before, .ps-btn__fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
      background: conic-gradient(from var(--angle), transparent 0%, var(--line) 40%, transparent 45%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
              mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
      opacity: var(--line-op); animation: ps-angle var(--dur) linear infinite; }
    .ps-btn__fx::before { filter: blur(8px); opacity: max(calc(var(--line-op) * .1), .05); -webkit-mask: none; mask: none; padding: 0; }
    .ps-btn__txt { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
      background: var(--ps-grad-btn); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
    .ps-btn__txt svg { stroke: #BFF0DA; }
    @keyframes ps-sky { to { -webkit-mask-position: 0 -15px, 15px -45px; mask-position: 0 -15px, 15px -45px; } }

    .ps-btn:hover, .ps-btn.is-hover { box-shadow: inset 0 0 0 1px var(--ps-line-2); }
    .ps-btn:hover::before, .ps-btn.is-hover::before { opacity: 1; }
    .ps-btn:hover::after, .ps-btn.is-hover::after { opacity: .4; }
    .ps-btn:hover .ps-btn__fx, .ps-btn.is-hover .ps-btn__fx { --line-op: .9; }
    .ps-btn:active, .ps-btn.is-active { transform: translateY(1px) scale(.97); }
    .ps-btn:focus-visible, .ps-btn.is-focus { outline: 2px solid var(--ps-accent); outline-offset: 3px; }

    /* sólido: el CTA de conversión. Mismo vidrio, relleno de acento. */
    .ps-btn--solid {
      --line: #E9FFF5; --line-op: .55;
      color: var(--ps-on-accent);
      background: radial-gradient(60% 80% at 50% 120%, rgb(255 255 255 / .28), transparent 70%), linear-gradient(180deg, #46CF99 0%, var(--ps-accent) 100%);
      box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -1px 0 rgb(0 0 0 / .18), 0 0 0 1px rgb(47 191 135 / .55), 0 10px 28px -10px rgb(47 191 135 / .7);
    }
    .ps-btn--solid .ps-btn__txt { background: none; -webkit-text-fill-color: currentColor; color: var(--ps-on-accent); }
    .ps-btn--solid .ps-btn__txt svg { stroke: currentColor; }
    .ps-btn--solid::before { opacity: .25; }
    .ps-btn--solid:hover, .ps-btn--solid.is-hover {
      background: radial-gradient(60% 80% at 50% 120%, rgb(255 255 255 / .4), transparent 70%), linear-gradient(180deg, #5AD3A4 0%, #37C68E 100%);
      box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(0 0 0 / .18), 0 0 0 1px rgb(90 211 164 / .8), 0 14px 36px -10px rgb(47 191 135 / .9); }
    .ps-btn--solid:hover::after, .ps-btn--solid.is-hover::after { opacity: .25; }

    /* contorno: acciones secundarias */
    .ps-btn--outline { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--ps-line); --line-op: 0; }
    .ps-btn--outline::before { display: none; }
    .ps-btn--outline .ps-btn__txt { background: none; -webkit-text-fill-color: currentColor; color: #D1F2E3; }
    .ps-btn--outline:hover, .ps-btn--outline.is-hover { box-shadow: inset 0 0 0 1px var(--ps-line-2); }
    .ps-btn--outline:hover::after, .ps-btn--outline.is-hover::after { opacity: .12; }

    /* ícono redondo (el botón de GitHub del nav de AuthKit) */
    .ps-btn--icon { width: 36px; height: 36px; padding: 0; }

    /* estados */
    .ps-btn:disabled, .ps-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; }
    .ps-btn:disabled::before, .ps-btn:disabled::after, .ps-btn:disabled .ps-btn__fx { display: none; }
    .ps-btn[aria-busy="true"] { cursor: progress; }
    .ps-btn[aria-busy="true"] .ps-btn__txt::before { content: ""; width: 14px; height: 14px; border-radius: 50%;
      border: 1.5px solid currentColor; border-right-color: transparent; animation: ps-spin .8s linear infinite; }
    .ps-btn--solid[aria-busy="true"] .ps-btn__txt::before { border-color: var(--ps-on-accent); border-right-color: transparent; }
    .ps-btn.is-error { --line: var(--ps-danger); box-shadow: inset 0 0 0 1px rgb(255 138 122 / .55); }
    .ps-btn.is-error .ps-btn__txt { background: none; -webkit-text-fill-color: currentColor; color: var(--ps-danger); }
    /* el error nunca va sobre verde: el rojo sobre acento no se lee */
    .ps-btn--solid.is-error { background: rgb(255 138 122 / .08); box-shadow: inset 0 0 0 1px rgb(255 138 122 / .55), 0 10px 28px -12px rgb(255 138 122 / .45); }
    @keyframes ps-spin { to { transform: rotate(360deg); } }

    .ps-field {
      position: relative; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; flex: 1 1 auto; min-width: 0;
      border-radius: var(--ps-r-pill); background: var(--ps-glass);
      -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
      box-shadow: var(--ps-sh-field); overflow: hidden; text-align: left;
      transition: box-shadow var(--ps-dur-instant) ease-out;
    }
    .ps-field__pre { font-family: var(--ps-font-mono); font-size: 14px; color: var(--ps-text-faint); flex: none; }
    .ps-field input { all: unset; flex: 1; min-width: 0; height: 100%; font-family: var(--ps-font-mono); font-size: 14px; color: rgb(214 242 230 / .95); caret-color: var(--ps-accent); }
    .ps-field input::placeholder { color: var(--ps-text-faint); }
    .ps-field:hover, .ps-field.is-hover { box-shadow: inset 0 0 0 1px rgb(var(--ps-tint) / .42), inset 0 1px 1px rgb(216 248 234 / .11), inset 0 4px 12px rgb(216 248 234 / .09); }
    .ps-field:focus-within, .ps-field.is-focus { box-shadow: inset 0 0 0 1px var(--ps-accent), inset 0 1px 1px rgb(216 248 234 / .11), inset 0 4px 12px rgb(216 248 234 / .09), 0 0 0 4px rgb(47 191 135 / .18); }
    .ps-field.is-disabled { opacity: .45; pointer-events: none; }
    .ps-field.is-error { box-shadow: inset 0 0 0 1px var(--ps-danger), inset 0 4px 12px rgb(255 138 122 / .06), 0 0 0 4px rgb(255 138 122 / .14); }
    .ps-field.is-loading::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%;
      background: linear-gradient(90deg, transparent, var(--ps-accent-glow), transparent); animation: ps-scan 1.2s var(--ps-ease-ui) infinite; }
    @keyframes ps-scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

    .ps-cta-row .ps-btn { height: auto; min-height: 52px; padding: 0 32px; }

    /* etiqueta entre líneas (between-lines) */
    .ps-kicker { display: inline-flex; align-items: center; justify-content: center; gap: 24px; font-size: 14px; line-height: 20px; color: var(--ps-text-muted); }
    .ps-kicker::before, .ps-kicker::after { content: ""; width: 86px; height: 1px; background: linear-gradient(90deg, rgb(216 248 234 / 0) 0%, rgb(184 254 222 / .32) 100%); }
    .ps-kicker::after { transform: rotate(180deg); }
    .ps-kicker--left { justify-content: flex-start; }
    .ps-kicker--left::before { display: none; }

    .ps-h4 { font-family: var(--ps-font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }


    /* ====== MOVIMIENTO ======
       Regla: la animacion ILUSTRA, nunca informa. Todo lo que dice el grafico
       tiene que entenderse con el primer frame congelado. */
    :root {
      --ps-ease: cubic-bezier(.22,.61,.36,1);
      --ps-dur-pulso: 4.2s;     /* el pulso que recorre un hilo */
      --ps-dur-entrada: .5s;    /* aparicion de un bloque */
    }

    /* --- aparicion al entrar en viewport (JS pone .is-in) --- */
    /* 🔴 Progressive enhancement: visible por defecto. El JS agrega .js-anim en <html>
       y RECIEN ahi se oculta para animar. Sin JS (o si falla) se ve todo, sin animacion. */
    .js-anim .ps-rise { opacity: 0; transform: translateY(14px);
      transition: opacity var(--ps-dur-entrada) var(--ps-ease), transform var(--ps-dur-entrada) var(--ps-ease); }
    .js-anim .ps-rise.is-in { opacity: 1; transform: none; }

    /* --- el pulso que viaja por un hilo --- */
    @keyframes ps-viaje {
      0%   { offset-distance: 0%;   opacity: 0; }
      8%   { opacity: 1; }
      62%  { opacity: 1; }
      78%  { opacity: 0; }        /* se apaga en el tramo roto: es el punto */
      100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes ps-dash { to { stroke-dashoffset: -16; } }
    @keyframes ps-latir { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
    @keyframes ps-barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    /* transform, NO left: animar `left` dispara layout en cada frame */
    @keyframes ps-converge {
      0%   { offset-distance: 0%;   opacity: 0; }
      10%  { opacity: 1; }
      88%  { opacity: 1; }
      100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes ps-nucleo {
      0%, 100% { stroke-opacity: .55; }
      50%      { stroke-opacity: 1; }
    }
    @keyframes ps-recorre { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

    .ps-flujo-dash { stroke-dasharray: 4 4; animation: ps-dash 1.1s linear infinite; }
    .ps-latido { animation: ps-latir 2.4s var(--ps-ease) infinite; }

    /* --- barras que crecen (JS pone .is-in en el contenedor) --- */
    .ps-bar { transform-origin: left center; border-radius: 9999px; }
    .js-anim .ps-bar { transform: scaleX(0); transition: transform 1.1s var(--ps-ease); }
    .js-anim .is-in .ps-bar { transform: scaleX(1); }

    /* 🔴 UX: nada de esto corre si el sistema pide menos movimiento */
    @media (prefers-reduced-motion: reduce) {
      .js-anim .ps-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
      .js-anim .ps-bar  { transform: scaleX(1) !important; transition: none !important; }
      .ps-flujo-dash, .ps-latido, .ps-nucleo, :is([style*="ps-viaje"], .psm-1), :is([style*="ps-converge"], .psm-2), .ps-viajero { animation: none !important; }
      .ps-viajero { opacity: .9 !important; }
      * { scroll-behavior: auto !important; }
    }


    /* ====== MOBILE ======
       El diseño se pensó a 1440. Acá todo lo que es fila pasa a columna y la
       escala tipográfica baja un escalón. Regla dura: la página no scrollea de costado. */
    *, *::before, *::after { box-sizing: border-box; }
    /* los redondeos de subpixel suman ~1px y eso ya es scroll lateral en mobile.
       `clip` corta sin crear un contexto de scroll (a diferencia de `hidden`). */
    html, body { overflow-x: clip; max-width: 100%; }
    img, svg { max-width: 100%; }

    @media (max-width: 900px) {
      /* toda grilla de 3 o 4 columnas colapsa */
      :is([style*="repeat(2,"], .psm-3), :is([style*="repeat(3,"], .psm-4), :is([style*="repeat(4,"], .psm-5) { grid-template-columns: 1fr !important; }
      /* las filas de dos bloques se apilan */
      .ps-row { flex-direction: column !important; }
      .ps-row > * { flex: 1 1 auto !important; width: 100% !important; }
      /* la barra de agencias deja de tener divisores verticales */
      .ps-agencias { grid-template-columns: 1fr !important; }
      .ps-agencias > * { border-right: 0 !important; border-bottom: 1px solid var(--ps-line); }
      .ps-agencias > *:last-child { border-bottom: 0 !important; }
    }

    @media (max-width: 640px) {
      .ps-h2 { font-size: 30px !important; }
      .ps-label { font-size: 11px !important; }
      .ps-body { line-height: 1.45 !important; }
      /* el H1 del hero */
      .ps-display { font-size: 32px !important; line-height: 1.08 !important; }
      /* padding lateral: 16px minimo en todos lados */
      :is([style*="max-width: 1200px"], .psm-6) { padding-left: 16px !important; padding-right: 16px !important; }
      /* el campo + boton del CTA se apilan */
      .ps-cta-row { flex-direction: column !important; }
      .ps-cta-row > * { width: 100% !important; justify-content: center !important; }
      /* 🔴 En mobile el texto ocupa todo el ancho y la cara queda DEBAJO de él.
         La foto pasa a ser atmósfera: se corre a la derecha y se apaga fuerte.
         Sin esto el titular es ilegible. */
      .ps-hero-foto { background-position: 88% 4% !important;
                      filter: saturate(.55) contrast(1.05) !important; }
      .ps-hero { min-height: auto !important; }
      /* nav: solo marca y CTA */
      /* se ocultan los links, NO el CTA (ultimo hijo) */
      .ps-navlinks > span:not(:last-child) { display: none !important; }
      .ps-navlinks { gap: 0 !important; }
      /* el pie de pagina y la prueba social se apilan */
      .ps-wrap { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
      /* las cifras y sus barras no se pegan al borde */
      .ps-card { padding: 22px !important; }
    }


    /* ====== SECCIONES ALTERNAS ======
       Receta medida en deliverate.io (2026-10-08): cuadricula SVG de 38px con el
       trazo al 5%, mascara radial que la desvanece hacia los bordes en vez de
       cortarla seca, y un degradado de tono sobre el fondo base.
       Adaptado a los neutros calidos de esta marca. */
    .ps-alt {
      position: relative;
      overflow: hidden;
      background-image: linear-gradient(rgba(8, 7, 7, .95), rgba(13, 12, 12, .8));
    }
    .ps-alt::before {
      content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Cpath d='M38 .5H.5V38' fill='none' stroke='rgba(240,227,222,0.05)'/%3E%3C/svg%3E");
      -webkit-mask-image: radial-gradient(75% 70% at 50% 42%, #000 25%, transparent 78%);
      mask-image: radial-gradient(75% 70% at 50% 42%, #000 25%, transparent 78%);
    }
    /* el contenido va por encima de la grilla */
    .ps-alt > * { position: relative; z-index: 1; }

    /* riel punteado vertical (lenguaje de plano tecnico) */
    .ps-riel { position: absolute; top: 0; height: 100%; width: 1px;
      background-image: linear-gradient(var(--ps-line) 50%, transparent 50%);
      background-size: 1px 32px; }

    /* ====== MOBILE (revisión 2026-11-13) ====== */
    /* ---- Modal: WhatsApp para mandar el informe (se abre al enviar la URL) ---- */
.ps-modal { width: min(460px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--ps-r-xl); background: var(--ps-bg-raised); color: var(--ps-text); box-shadow: var(--ps-sh-ring), var(--ps-sh-card); overflow: auto; }
.ps-modal::backdrop { background: rgb(2 8 5 / .74); backdrop-filter: blur(6px); }
.ps-modal[open] { animation: ps-modal-in var(--ps-dur-fast) var(--ps-ease-switch); }
@keyframes ps-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ps-modal__box { position: relative; margin: 0; padding: 40px 32px 32px; }
.ps-modal__paso { display: flex; flex-direction: column; align-items: stretch; gap: 16px; text-align: left; }
.ps-modal__paso[hidden] { display: none; }
.ps-modal .ps-h3 { padding-right: 32px; }
.ps-modal .ps-field { width: 100%; }
.ps-modal .ps-btn { width: 100%; }
.ps-modal__x { all: unset; box-sizing: border-box; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--ps-r-pill); color: var(--ps-text-muted); cursor: pointer; transition: color var(--ps-dur-instant), background var(--ps-dur-instant); }
.ps-modal__x:hover { color: var(--ps-text); background: var(--ps-glass-2); }
.ps-modal__x:focus-visible { outline: 2px solid var(--ps-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ps-modal[open] { animation: none; } }
@media (max-width: 640px) { .ps-modal__box { padding: 36px 20px 24px; } }

.ps-diag-m { display: none; }
    @media (max-width: 640px) {
      /* diagramas: versión vertical a escala 1:1 (la de 720px quedaba con texto de 5px) */
      .ps-diag-d { display: none !important; }
      .ps-diag-m { display: block !important; }
      /* iOS agranda la página al enfocar un campo con letra menor a 16px */
      .ps-field input, .ps-field__pre { font-size: 16px !important; }
      /* hero: la foto queda detrás del texto; se apaga en la zona del texto y respira abajo */
      .ps-hero-sombra { background:
          linear-gradient(to bottom, rgba(4,11,8,.62) 0%, rgba(4,11,8,.80) 16%, rgba(4,11,8,.80) 58%, rgba(4,11,8,.45) 82%, rgba(4,11,8,1) 100%) !important; }
      .ps-hero-foto { background-position: 66% 0 !important; }
      .ps-hero .ps-lead br { display: none; }
      /* objetivos táctiles de 44px */
      .ps-btn--md { height: 44px !important; }
      .ps-link { min-height: 44px; }
      .ps-logo { display: inline-flex; align-items: center; min-height: 44px; }
      .ps-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
      /* equipo: foto al costado del texto */
      #h-equipo .ps-glass { flex-direction: row !important; }
      #h-equipo .ps-photo > img { width: 116px !important; flex: none; aspect-ratio: auto !important; height: auto !important; object-fit: cover;
                            border-radius: var(--ps-r-md) 0 0 var(--ps-r-md) !important; }
      #h-equipo .ps-card-pad { border-top: 0 !important; border-left: 1px solid var(--ps-line); padding: 18px 16px !important; min-width: 0; }
    }
/* ====== PUENTE GUTENBERG ======
   Lo que el diseño daba por hecho y WordPress cambia al envolver todo en bloques. */

/* el contenedor raíz del diseño (tipografía, color y capa por encima de las estrellas) */
body { margin: 0; background: var(--ps-bg); }
.wp-site-blocks { position: relative; z-index: 1; width: 100%; box-sizing: border-box;
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; color: var(--ps-text-2); }
.wp-site-blocks > * { margin-block: 0; }

/* márgenes de navegador en las etiquetas que WordPress usa en lugar de <div>/<span> */
:where(.wp-site-blocks) :where(p, h1, h2, h3, h4, h5, h6, figure, ul, ol, blockquote) { margin: 0; }

/* el header es el que se pega: el template part envuelve a la barra */
.ps-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .ps-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ps-header .ps-nav { position: relative; }

/* párrafo que solo envuelve un link (el logo): el link ocupa la grilla, como en el diseño */
.ps-pwrap { display: contents; }
.ps-logo strong { color: var(--ps-accent); font-weight: 500; text-shadow: 0 0 10px rgb(47 191 135 / .8); }
.ps-logo--sm { font-size: 15px; }

/* bloque imagen: el <figure> no existe para el layout, la <img> ocupa su lugar */
.wp-block-image.ps-img { display: contents; }
/* (sin max-width propio: el del diseño — img{max-width:100%} y .ps-logo-box img{max-width:220px} — tiene que seguir mandando) */
.ps-glass > .ps-img > img, .ps-alt > .ps-img > img { position: relative; z-index: 1; }

/* la caja del programa era un <a>: ahora es una caja con un link adentro; el JS hace clickeable
   toda la caja, y el hover del link sigue siendo solo sobre el link, como en el diseño */
.ps-cardlink { cursor: pointer; }
.ps-cardlink:has(.ps-stretch:focus-visible) { outline: 2px solid var(--ps-accent); outline-offset: 3px; }
.ps-cardlink .ps-stretch:focus-visible { outline: none; }

/* carrusel: la copia de la pista la agrega el JS (en el editor se ve una sola) */
.ps-marquee__track > .wp-block-group { flex: none; }

/* estados del formulario de auditoría */
.ps-hint[hidden] { display: none; }
.ps-cta-form .ps-hint { justify-content: center; margin-top: 12px; }

/* páginas comunes (política de privacidad, etc.) */
.ps-page-std { max-width: 1200px; margin: 0 auto; padding: 88px 24px 112px; display: flex; flex-direction: column; gap: 32px; }
.ps-prose { max-width: 720px; color: var(--ps-text-2); font-size: 16px; line-height: 26px; }
.ps-prose > * + * { margin-top: 16px; }
.ps-prose h2 { font-family: var(--ps-font-display); color: var(--ps-text); font-weight: 500; font-size: 24px; line-height: 32px; margin-top: 40px; }
@media (max-width: 640px) { .ps-page-std { padding: 56px 16px 72px; } }

/* editor: que el lienzo tenga el fondo del sitio */
.editor-styles-wrapper { background: var(--ps-bg); color: var(--ps-text-2); font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; }
.editor-styles-wrapper .js-anim-off, .editor-styles-wrapper .ps-in, .editor-styles-wrapper .ps-rise { opacity: 1 !important; transform: none !important; }
/* estilos que en el diseño eran inline: misma prioridad que un style="" (pierden solo contra !important) */
.psx-1:not(#\#) { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.psx-2:not(#\#) { font-size: 11px; }
.psx-3:not(#\#) { border-top: 1px solid var(--ps-line); }
.psx-4:not(#\#) { --dl: .6s; }
.psx-5:not(#\#) { --dl: .75s; max-width: 560px; }
.psx-6:not(#\#) { flex: 1 1 0; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 26px; }
.psx-7:not(#\#) { display: flex; gap: 56px; align-items: flex-start; }
.psx-8:not(#\#) { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.psx-9:not(#\#) { display: flex; width: max-content; }
.psx-10:not(#\#) { --dl: 1.4s; border-top: 1px solid var(--ps-line); padding-top: 26px; margin-top: 20px; overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.psx-11:not(#\#) { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 96px 24px 80px 24px; display: flex; flex-direction: column; gap: 32px; }
.psx-12:not(#\#) { position: relative; overflow: hidden; isolation: isolate; min-height: auto; }
.psx-13:not(#\#) { margin-bottom: 0; }
.psx-14:not(#\#) { padding: 28px 24px; overflow: hidden; }
.psx-15:not(#\#) { font-size: 15px; }
.psx-16:not(#\#) { --dl: 0s; }
.psx-17:not(#\#) { --dl: 0.12s; }
.psx-18:not(#\#) { --dl: 0.24s; }
.psx-19:not(#\#) { font-size: 17px; }
.psx-20:not(#\#) { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 40px; }
.psx-21:not(#\#) { padding: 26px 22px; overflow: hidden; }
.psx-22:not(#\#) { max-width: 1200px; margin: 0 auto; padding: 88px 24px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; }
.psx-23:not(#\#) { border-top: 1px solid var(--ps-line); position: relative; overflow: hidden; }
.psx-24:not(#\#) { text-align: left; }
.psx-25:not(#\#) { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.psx-26:not(#\#) { font-size: 14px; }
.psx-27:not(#\#) { --dl: 0.1s; }
.psx-28:not(#\#) { --dl: 0.2s; }
.psx-29:not(#\#) { --dl: 0.3s; }
.psx-30:not(#\#) { flex: 0 0 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.psx-31:not(#\#) { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; gap: 64px; align-items: flex-start; }
.psx-32:not(#\#) { font-size: 15px; color: var(--ps-text-muted); }
.psx-33:not(#\#) { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.psx-34:not(#\#) { padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.psx-35:not(#\#) { border-top: 1px solid var(--ps-line); position: relative; }
.psx-36:not(#\#) { font-size: 15px; flex: 1; }
.psx-37:not(#\#) { gap: 9px; flex: 1; }
.psx-38:not(#\#) { display: flex; flex-direction: column; --dl: 0s; }
.psx-39:not(#\#) { display: flex; flex-direction: column; --dl: 0.12s; }
.psx-40:not(#\#) { display: flex; flex-direction: column; --dl: 0.24s; }
.psx-41:not(#\#) { flex: 0 0 420px; max-width: 420px; }
.psx-42:not(#\#) { font-size: 21px; line-height: 32px; color: var(--ps-text); }
.psx-43:not(#\#) { margin: 0; padding-top: 20px; border-top: 1px solid var(--ps-line); line-height: 22px; }
.psx-44:not(#\#) { flex: 1; display: flex; flex-direction: column; gap: 22px; max-width: 620px; --dl: .12s; }
.psx-45:not(#\#) { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; gap: 64px; align-items: center; }
.psx-46:not(#\#) { font-size: 19px; }
.psx-47:not(#\#) { color: var(--ps-accent); }
.psx-48:not(#\#) { gap: 9px; border-top: 1px solid var(--ps-line); }
.psx-49:not(#\#) { display: flex; flex-direction: column; overflow: hidden; }
.psx-50:not(#\#) { display: flex; flex-direction: column; overflow: hidden; --dl: 0.12s; }
.psx-51:not(#\#) { display: flex; flex-direction: column; overflow: hidden; --dl: 0.24s; }
.psx-52:not(#\#) { max-width: 640px; }
.psx-53:not(#\#) { max-width: 520px; }
.psx-54:not(#\#) { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.psx-55:not(#\#) { max-width: 820px; margin: 0 auto; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.psx-56:not(#\#) { max-width: 1200px; margin: 0 auto; padding: 88px 24px; position: relative; z-index: 1; }
.psi-1:not(#\#) > img { height: 26px; width: auto; flex: none; }
.psi-2:not(#\#) > img { height: 29px; width: auto; flex: none; }
.psi-3:not(#\#) > img { height: 32px; width: auto; flex: none; }
.psi-4:not(#\#) > img { height: 40px; width: auto; flex: none; }
.psi-5:not(#\#) > img { height: 30px; width: auto; flex: none; }
.psi-6:not(#\#) > img { height: 28px; width: auto; flex: none; }
.psi-7:not(#\#) > img { object-position: center 22%; }
