/* tuautoahora.com — estilos propios: azul marino, verde y amarillo */

:root {
  --navy-0: #070d27;
  --navy-1: #0a1233;
  --navy-2: #0f1b4a;
  --navy-3: #16276a;
  --edge: #25397f;
  --edge-2: #36509f;
  --text: #cdd6f3;
  --white: #ffffff;
  --mute: #93a0cf;
  --go: #2fe27b;
  --go-2: #8bf5b7;
  --sun: #ffc933;
  --sun-2: #ffe27a;
  --violet: #6b3cff;
  --royal: #2f5cff;
  --max: 1200px;
  --face: "Red Hat Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 400 17px/1.7 var(--face); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 90% -6%, rgba(107,60,255,.28), transparent 70%),
    radial-gradient(800px 600px at -8% 30%, rgba(47,92,255,.22), transparent 70%),
    radial-gradient(700px 520px at 100% 78%, rgba(47,226,123,.07), transparent 70%),
    var(--navy-1);
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
.ta-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.ta-skip { position: absolute; left: 14px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--sun); color: #231a00; font-weight: 700; }
.ta-skip:focus { top: 12px; }

/* ---------- cabecera ---------- */
.ta-top { position: sticky; top: 0; z-index: 60; background: var(--navy-0); border-bottom: 1px solid var(--edge); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.ta-top__in { position: relative; z-index: 62; max-width: var(--max); margin: 0 auto; padding: 0 20px; min-height: 72px; display: flex; align-items: center; gap: 22px; }
.ta-logo { font-size: 1.95rem; font-weight: 700; font-style: italic; letter-spacing: -.05em; line-height: 1; color: var(--white); }
.ta-nav { flex: 1; }
.ta-nav ul { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ta-nav a { display: block; padding: 9px 15px; border-radius: 999px; color: #dfe5fb; font-weight: 500; font-size: .96rem; transition: background .15s, color .15s; }
.ta-nav a:hover { background: var(--navy-3); color: var(--white); }
.ta-nav a[aria-current="true"] { background: var(--sun); color: #231a00; font-weight: 700; }
.ta-top__cta { margin-left: auto; }
.ta-burger { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 1px solid var(--edge-2); border-radius: 12px; background: var(--navy-2); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ta-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.ta-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ta-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.ta-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ta-drawer { display: none; position: fixed; inset: 0; z-index: 61; padding: 100px 20px 40px; overflow-y: auto; background: var(--navy-0); }
.ta-drawer.is-open { display: block; }
.ta-drawer ul { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ta-drawer ul a { display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--edge); background: var(--navy-2); color: var(--white); font-weight: 500; font-size: 1.08rem; }
.ta-drawer ul a[aria-current="true"] { background: var(--sun); border-color: transparent; color: #231a00; font-weight: 700; }

/* ---------- botones ---------- */
.ta-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border: 0; border-radius: 14px; font: 700 1rem/1.2 var(--face); text-align: center; cursor: pointer; transition: transform .15s, filter .15s; }
.ta-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.ta-btn:focus-visible, a:focus-visible, summary:focus-visible, .ta-burger:focus-visible { outline: 3px solid var(--sun-2); outline-offset: 2px; }
.ta-btn--go { background: linear-gradient(135deg, var(--go), var(--go-2)); color: #05260f; box-shadow: 0 8px 24px rgba(47,226,123,.3); }
.ta-btn--sun { background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #231a00; box-shadow: 0 8px 24px rgba(255,201,51,.28); }
.ta-btn--sm { padding: 10px 20px; font-size: .94rem; }
.ta-btn--lg { padding: 14px 28px; }
.ta-btn--xl { padding: 16px 34px; font-size: 1.05rem; }
.ta-btn--block { display: flex; width: 100%; }

/* ---------- portada ---------- */
.ta-hero { padding: 46px 0 10px; scroll-margin-top: 90px; }
.ta-hero__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; }
.ta-hero h1 { margin: 0 0 22px; color: var(--white); font-size: clamp(2rem, 3.8vw, 3.05rem); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.ta-hero__lead p { font-size: 1.06rem; }
.ta-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ta-photo { margin: 0; position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--edge-2); background: #1d3a6e; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 8px rgba(47,92,255,.12); }
.ta-photo img { width: 100%; height: auto; aspect-ratio: 1380 / 752; }
.ta-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 46px; }
.ta-promo { position: relative; overflow: hidden; padding: 30px 32px 32px; border-radius: 26px; color: var(--white); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.ta-promo::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.1); }
.ta-promo--violet { background: linear-gradient(135deg, #7a45ff, #4a2fd1); }
.ta-promo--blue { background: linear-gradient(135deg, #3b6bff, #1e3fb8); }
.ta-promo > * { position: relative; z-index: 1; }
.ta-promo__tag { margin: 0 0 6px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ta-promo__big { margin: 0 0 8px; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.ta-promo__sub { max-width: 440px; margin: 0 0 20px; color: rgba(255,255,255,.88); font-size: 1rem; line-height: 1.55; }
.ta-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.ta-tile { display: block; height: 100%; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--edge); background: var(--navy-2); transition: border-color .15s, transform .15s; }
.ta-tile:hover { border-color: var(--go); transform: translateY(-2px); }
.ta-tile strong { display: block; color: var(--white); font-size: 1.2rem; line-height: 1.25; }
.ta-tile span { display: block; margin-top: 4px; color: var(--mute); font-size: .95rem; }

/* ---------- documento ---------- */
.ta-doc { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; align-items: start; margin-top: 50px; }
.ta-doc__main { position: relative; padding: 14px 42px 40px; border-radius: 28px; border: 1px solid var(--edge); background: linear-gradient(180deg, #101c4d, #0d1744); box-shadow: 0 30px 70px rgba(0,0,0,.4); overflow: hidden; }
.ta-doc__main::before { content: ""; display: block; height: 7px; margin: -14px -42px 18px; background: linear-gradient(90deg, var(--sun), var(--go) 55%, var(--royal)); }
.ta-part { padding: 30px 0 8px; border-bottom: 1px solid var(--edge); scroll-margin-top: 96px; }
.ta-part:last-child { border-bottom: 0; }
.ta-part h2 { margin: 0 0 18px; padding-left: 18px; position: relative; color: var(--white); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.17; font-weight: 700; letter-spacing: -.02em; }
.ta-part h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--sun), var(--go)); }
.ta-part h3 { scroll-margin-top: 100px; margin: 30px 0 12px; color: var(--sun-2); font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.ta-part p { line-height: 1.78; }
.ta-part strong { color: var(--white); }

.ta-list { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; }
.ta-list li { position: relative; padding: 13px 16px 13px 46px; border-radius: 14px; border: 1px solid var(--edge); background: var(--navy-2); line-height: 1.6; }
.ta-list li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 11px; height: 11px; border-radius: 3px; background: var(--go); transform: rotate(45deg); }
.ta-list--cards { grid-template-columns: 1fr 1fr; }
.ta-steps { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; counter-reset: n; }
.ta-steps li { position: relative; counter-increment: n; min-height: 56px; padding: 14px 16px 14px 64px; border-radius: 14px; border: 1px solid var(--edge); background: var(--navy-2); line-height: 1.6; }
.ta-steps li::before { content: counter(n); position: absolute; left: 14px; top: 11px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #231a00; font-weight: 700; }

.ta-scroll { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--edge-2); background: #0a1238; }
.ta-scroll table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.ta-scroll--wide table { min-width: 540px; }
.ta-scroll th { padding: 14px 18px; text-align: left; background: #1d378c; color: var(--sun-2); font-size: .83rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.ta-scroll td { padding: 12px 18px; border-top: 1px solid var(--edge); vertical-align: top; }
.ta-scroll tbody tr:first-child td { border-top: 0; }
.ta-scroll tbody tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.ta-scroll td:first-child { color: var(--white); font-weight: 600; }

.ta-cta { display: flex; justify-content: center; margin: 28px 0 8px; padding: 26px 20px; border-radius: 20px; border: 1px solid var(--edge-2); background: linear-gradient(120deg, rgba(107,60,255,.3), rgba(47,226,123,.16)); }

.ta-faq { display: grid; gap: 10px; margin: 6px 0 12px; }
.ta-q { border-radius: 16px; border: 1px solid var(--edge); background: var(--navy-2); overflow: hidden; }
.ta-q[open] { border-color: var(--sun); }
.ta-q summary { position: relative; padding: 18px 64px 18px 22px; color: var(--white); font-weight: 700; font-size: 1.04rem; line-height: 1.4; list-style: none; cursor: pointer; }
.ta-q summary::-webkit-details-marker { display: none; }
.ta-q summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; background: var(--royal); color: var(--white); font-size: 1.35rem; font-weight: 500; line-height: 1; }
.ta-q[open] summary::after { content: "−"; background: var(--sun); color: #231a00; }
.ta-q__a { padding: 0 22px 20px; }
.ta-q__a p { margin: 0; }

.ta-toc { position: sticky; top: 98px; padding: 22px 20px; border-radius: 22px; border: 1px solid var(--edge); background: var(--navy-2); }
.ta-toc__t { margin: 0 0 12px; color: var(--sun-2); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ta-toc ol { margin: 0; padding: 0; list-style: none; max-height: calc(100vh - 210px); overflow-y: auto; }
.ta-toc a { display: block; padding: 7px 12px; border-radius: 10px; color: #c3cdee; font-size: .93rem; line-height: 1.35; border-left: 3px solid transparent; }
.ta-toc a:hover { color: var(--white); background: var(--navy-3); }
.ta-toc a[aria-current="true"] { color: var(--white); background: var(--navy-3); border-left-color: var(--go); font-weight: 600; }

/* ---------- pie ---------- */
.ta-foot { margin-top: 56px; padding: 46px 0 26px; border-top: 4px solid var(--sun); background: var(--navy-0); color: #b6c0e6; }
.ta-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 26px; }
.ta-foot__grid p { margin: 14px 0 0; color: var(--mute); font-size: .96rem; max-width: 340px; }
.ta-foot__t { margin: 0 0 12px !important; color: var(--go-2) !important; font-size: .78rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ta-foot ul { margin: 0; padding: 0; list-style: none; }
.ta-foot li a { display: inline-block; padding: 5px 0; color: #e4e9fb; font-size: .97rem; }
.ta-foot li a:hover { color: var(--white); text-decoration: underline; }
.ta-foot__c { margin: 0; padding-top: 20px; border-top: 1px solid var(--edge); color: var(--mute); font-size: .88rem; }

/* ---------- 404 ---------- */
.ta-lost { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.ta-lost__card { width: 100%; max-width: 520px; padding: 44px 32px; text-align: center; border-radius: 26px; border: 1px solid var(--edge-2); background: var(--navy-2); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.ta-lost__n { margin: 0 0 6px; color: var(--sun); font-size: 4rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.ta-lost h1 { margin: 0 0 12px; color: var(--white); font-size: 1.7rem; line-height: 1.2; }

/* ---------- adaptación ---------- */
@media (max-width: 1100px) {
  .ta-toc { display: none; }
  .ta-doc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .ta-nav, .ta-top__cta { display: none; }
  .ta-burger { display: flex; }
  .ta-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .ta-tiles { grid-template-columns: 1fr 1fr; }
  .ta-foot__grid { grid-template-columns: 1fr 1fr; }
  .ta-foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .ta-hero { padding-top: 28px; }
  .ta-hero__actions .ta-btn { width: 100%; }
  .ta-photo { border-radius: 20px; box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 5px rgba(47,92,255,.12); }
  .ta-promos { grid-template-columns: 1fr; margin-top: 32px; }
  .ta-promo { padding: 24px 22px 26px; border-radius: 22px; }
  .ta-promo .ta-btn { width: 100%; }
  .ta-tiles { gap: 10px; }
  .ta-tile { padding: 16px 16px; }
  .ta-tile strong { font-size: 1.05rem; }
  .ta-doc { margin-top: 34px; }
  .ta-doc__main { padding: 10px 18px 28px; border-radius: 22px; }
  .ta-doc__main::before { margin: -10px -18px 12px; }
  .ta-part { padding-top: 24px; }
  .ta-list--cards { grid-template-columns: 1fr; }
  .ta-part h3 { font-size: 1.1rem; }
  .ta-btn { white-space: normal; }
  .ta-cta .ta-btn { width: 100%; }
  .ta-foot__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
