/* =============================================================
   Thalia Ontiveros · estilos globales añadidos (no cambian el diseño
   de las landings: solo agregan accesibilidad, idioma, cookies,
   enlaces legales y estados de formularios)
   ============================================================= */
:root{--to-pink:#FF1493;--to-violet:#8B5CF6;--to-ink:#15121A;--to-snow:#FCFCFD;--to-blue:#2F80FF;--to-lime:#C7FF4A}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Tarjetas del sitio principal enlazadas a sus landings */
.is-linked{position:relative;cursor:pointer}
.card-link{color:inherit;text-decoration:none}
.card-link::after{content:"";position:absolute;inset:0;z-index:3;border-radius:inherit}
.card-link:focus-visible{outline:none}
.is-linked:has(.card-link:focus-visible){outline:3px solid #bb91ff;outline-offset:4px}

/* Enlaces legales en pies de página */
.to-legal{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font-size:12px;line-height:1.6;width:100%}
.to-legal a{color:inherit;opacity:.85;text-decoration:none;text-underline-offset:4px}
.to-legal a:hover,.to-legal a:focus-visible{opacity:1;text-decoration:underline}
.to-legal-footer{background:#110b22;color:#cfc4dd;padding:26px 18px;font:12px/1.6 Poppins,Arial,sans-serif;text-align:center}
.to-legal-footer p{margin:0 0 6px}
.to-legal-footer .to-legal{justify-content:center}

/* Selector de idioma */
.to-lang{position:fixed;left:84px;bottom:22px;z-index:9990;display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 15px;border-radius:999px;background:#15121A;color:#fff!important;font:800 12px/1 Poppins,Arial,sans-serif;letter-spacing:.08em;text-decoration:none!important;box-shadow:0 10px 28px rgba(21,18,26,.28);border:1px solid rgba(255,255,255,.18)}
.to-lang:hover{background:#2a2235}
.to-lang:focus-visible{outline:3px solid var(--to-pink);outline-offset:3px}
.to-lang b{color:var(--to-lime)}

/* Botón y panel de accesibilidad */
.to-a11y-btn{position:fixed;left:22px;bottom:16px;z-index:9991;width:54px;height:54px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--to-violet),var(--to-pink));box-shadow:0 12px 30px rgba(139,92,246,.45)}
.to-a11y-btn svg{width:28px;height:28px;fill:currentColor}
.to-a11y-btn:focus-visible{outline:3px solid var(--to-blue);outline-offset:3px}
.to-a11y-panel{position:fixed;left:22px;bottom:84px;z-index:9992;width:min(360px,calc(100vw - 32px));max-height:min(78vh,640px);overflow:auto;background:#fff;color:#15121A;border-radius:22px;box-shadow:0 26px 70px rgba(21,18,26,.32);border:1px solid #ece6f6;font:14px/1.45 Poppins,Arial,sans-serif;text-align:left}
.to-a11y-panel[hidden]{display:none}
.to-a11y-head{position:sticky;top:0;background:linear-gradient(120deg,#15121A,#2b1747);color:#fff;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;border-radius:22px 22px 0 0}
.to-a11y-head h2{margin:0;font:800 17px/1.2 Poppins,Arial,sans-serif;letter-spacing:-.01em;color:#fff}
.to-a11y-x{width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.to-a11y-body{padding:8px 16px 16px}
.to-a11y-sec{margin:14px 0 8px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8B5CF6}
.to-a11y-row{display:flex;gap:8px;align-items:center}
.to-a11y-panel button{font:inherit;cursor:pointer}
.to-a11y-main{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:14px;border:0;background:linear-gradient(100deg,var(--to-violet),var(--to-pink));color:#fff;font-weight:800!important}
.to-a11y-main svg,.to-a11y-icon svg{width:18px;height:18px;fill:currentColor}
.to-a11y-icon{width:46px;height:46px;border-radius:14px;border:1px solid #e3dcef;background:#faf8fd;color:#15121A;display:grid;place-items:center}
.to-a11y-opt{width:100%;min-height:46px;margin-top:8px;padding:10px 12px;border-radius:14px;border:1px solid #e3dcef;background:#faf8fd;color:#15121A;text-align:left;font-weight:600!important;font-size:13px!important}
.to-a11y-opt[aria-pressed="true"]{background:#15121A;color:#fff;border-color:#15121A}
.to-a11y-opt[aria-pressed="true"]::after{content:" ✓";color:var(--to-lime)}
.to-a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}
.to-a11y-rates{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;font-size:12px;color:#5d566a}
.to-a11y-rates span{width:100%}
.to-a11y-rates button{flex:1;min-height:38px;border-radius:12px;border:1px solid #e3dcef;background:#fff;color:#15121A;font-size:12px!important;font-weight:700!important}
.to-a11y-rates button[aria-pressed="true"]{background:var(--to-pink);border-color:var(--to-pink);color:#fff}
.to-a11y-size{justify-content:space-between;background:#faf8fd;border:1px solid #e3dcef;border-radius:14px;padding:6px}
.to-a11y-size button{width:54px;height:40px;border-radius:10px;border:0;background:#15121A;color:#fff;font-weight:800!important;font-size:15px!important}
.to-a11y-level{font-weight:800}
.to-a11y-reset{width:100%;margin-top:16px;min-height:44px;border-radius:14px;border:1px dashed #c9bde0;background:#fff;color:#5b3fb8;font-weight:800!important}
.to-a11y-hint{margin:10px 0 0;font-size:11px;color:#8a8297}
.to-a11y-guidebar{display:none;position:fixed;left:0;right:0;height:36px;z-index:9989;pointer-events:none;background:rgba(199,255,74,.18);border-top:2px solid var(--to-pink);border-bottom:2px solid var(--to-pink)}
html.a11y-guide .to-a11y-guidebar{display:block}

/* Preferencias aplicadas al contenido (no al panel) */
html.a11y-zoom body>*:not(.to-ui):not(.to-lang){zoom:var(--a11y-zoom)}
html.a11y-legible body *:not(.to-ui):not(.to-ui *):not(svg):not(svg *){font-family:'Atkinson Hyperlegible',Verdana,Arial,sans-serif!important}
html.a11y-spacing body *:not(.to-ui):not(.to-ui *){letter-spacing:.06em!important;word-spacing:.14em!important;line-height:1.8!important}
html.a11y-links a:not(.to-ui *){text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important;outline:2px dashed #FF1493;outline-offset:2px}
html.a11y-gray body>*:not(.to-ui){filter:grayscale(1)}
html.a11y-contrast body>*:not(.to-ui):not(.to-lang),html.a11y-contrast body>*:not(.to-ui):not(.to-lang) *{background-color:#000!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#fff!important;box-shadow:none!important;text-shadow:none!important}
html.a11y-contrast body>*:not(.to-ui) a,html.a11y-contrast body>*:not(.to-ui) a *{color:#ffe600!important;-webkit-text-fill-color:#ffe600!important}
html.a11y-contrast body>*:not(.to-ui) img{filter:none}
html.a11y-contrast body{background:#000!important}
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-cursor,html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-7 1 4 8-3 1-4-8-5 5z' fill='%2315121A' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 4 2,auto!important}
.a11y-reading{outline:3px solid #FF1493!important;outline-offset:4px;background-color:rgba(199,255,74,.28)!important;border-radius:6px}

/* Aviso de cookies */
.to-cookie{position:fixed;right:18px;bottom:18px;z-index:9993;width:min(440px,calc(100vw - 36px));background:#15121A;color:#f4f0fb;border-radius:20px;padding:18px 18px 16px;box-shadow:0 24px 60px rgba(0,0,0,.35);font:13px/1.55 Poppins,Arial,sans-serif;border:1px solid rgba(255,255,255,.12)}
.to-cookie p{margin:0 0 12px;color:#e9e3f3}
.to-cookie a{color:var(--to-lime);font-weight:700}
.to-cookie-actions{display:flex;gap:10px;justify-content:flex-end}
.to-btn,.to-btn-ghost{min-height:42px;padding:0 20px;border-radius:999px;font:800 13px/1 Poppins,Arial,sans-serif;cursor:pointer}
.to-btn{border:0;background:linear-gradient(100deg,var(--to-violet),var(--to-pink));color:#fff}
.to-btn-ghost{border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff}
@media(max-width:620px){
  .to-cookie{left:12px;right:12px;bottom:12px;width:auto}
  html.to-cookie-open .to-a11y-btn{bottom:178px}
  html.to-cookie-open .to-lang{bottom:184px}
  html.to-cookie-open .to-a11y-panel{bottom:246px}
}

/* Estado de envío de formularios */
.to-form-status{margin-top:18px;padding:22px;border-radius:18px;font:14px/1.6 Poppins,Arial,sans-serif}
.to-form-status:focus{outline:none}
.to-form-status.is-ok{background:linear-gradient(135deg,rgba(199,255,74,.28),rgba(139,92,246,.10));border:1px solid rgba(139,92,246,.25);color:#15121A}
.to-form-status.is-ok strong{display:block;font-size:20px;margin-bottom:6px}
.to-form-status.is-error{background:#fff0f5;border:1px solid #f5c2d5;color:#9c224c}
.to-form-status p{margin:0}
.to-form-again{margin-top:14px;min-height:42px;padding:0 18px;border-radius:999px;border:1px solid #15121A;background:#fff;color:#15121A;font-weight:800;cursor:pointer}

@media(max-width:420px){.to-lang{left:80px;height:40px;padding:0 12px}.to-a11y-btn{width:50px;height:50px;left:18px}}
@media print{.to-ui,.to-lang{display:none!important}}
