/* valentinrigazio.com — hoja de estilos original (grafito, cobalto y tricolor) */

:root {
  --bg: #121317;
  --bg-2: #1a1c22;
  --slab: #1d1f26;
  --slab-2: #242731;
  --line: #2f3340;
  --line-2: #414657;
  --ink: #d3d8e6;
  --hi: #ffffff;
  --dim: #98a0b8;
  --blue: #2f6bff;
  --blue-2: #5f8fff;
  --blue-3: #a9c3ff;
  --red: #e5483c;
  --red-2: #ff7a5f;
  --flag-red: #d52b1e;
  --flag-blue: #0038a8;
  --wrap: 1180px;
  --font: "Albert Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.72;
  background:
    radial-gradient(800px 520px at 92% -4%, rgba(47,107,255,.20), rgba(47,107,255,0) 70%),
    radial-gradient(700px 520px at -6% 40%, rgba(229,72,60,.08), rgba(229,72,60,0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 1000px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; background: #0e0f13; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--flag-red) 0 33.3%, #fff 33.3% 66.6%, var(--flag-blue) 66.6% 100%); }
.bar { position: relative; z-index: 62; display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { flex: none; display: inline-flex; align-items: center; color: #fff; }
.mark { font-size: 1.85rem; font-weight: 800; font-style: italic; letter-spacing: -.05em; line-height: 1; }
.menu { flex: 1; }
.menu ul { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: 9px 14px; border-radius: 9px; color: var(--blue-3); font-weight: 600; font-size: .94rem; transition: background .15s ease, color .15s ease; }
.menu a:hover { background: var(--slab-2); color: #fff; }
.menu a[aria-current="true"] { background: var(--blue); color: #fff; }
.bar-cta { margin-left: auto; }

.hamburger { display: none; margin-left: auto; width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 5px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--slab); cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { display: none; position: fixed; inset: 0; z-index: 61; background: #0e0f13; overflow-y: auto; padding: 100px 20px 40px; }
.drawer.is-open { display: block; }
.drawer ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.drawer ul a { display: block; padding: 16px 18px; border-radius: 14px; background: var(--slab); border: 1px solid var(--line); color: #fff; font-weight: 600; font-size: 1.08rem; }
.drawer ul a[aria-current="true"] { background: var(--blue); border-color: transparent; }
.drawer .d-cta { display: grid; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 26px; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  transition: transform .15s ease, filter .15s ease, background .15s ease; text-align: center;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, .hamburger:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 8px 24px rgba(47,107,255,.42); }
.btn-blue:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #1d0705; box-shadow: 0 8px 24px rgba(229,72,60,.36); }
.btn-red:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid var(--line-2); }
.btn-ghost:hover { background: var(--slab-2); }
.btn-sm { padding: 10px 20px; font-size: .94rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero { padding: 48px 0 24px; scroll-margin-top: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero-copy h1 { margin: 0 0 22px; color: #fff; font-size: clamp(2rem, 3.8vw, 3.05rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.hero-text p { color: var(--ink); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 8px 18px; border-radius: 999px; background: var(--slab-2); border: 1px solid var(--line-2); color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.2; }
.chip:first-child { background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: transparent; }
.visual { position: relative; margin: 0; max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); background: var(--slab); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 80px rgba(47,107,255,.25); }
.flagbar { display: flex; height: 12px; }
.flagbar i { flex: 1; }
.flagbar i:nth-child(1) { background: var(--flag-red); }
.flagbar i:nth-child(2) { background: #fff; }
.flagbar i:nth-child(3) { background: var(--flag-blue); }
.visual img { width: 100%; height: auto; aspect-ratio: 1 / 1; background: #7da2c6; }

/* ============ SECTIONS (losas) ============ */
.sec { padding: 14px 0; scroll-margin-top: 84px; }
.slab { border-radius: 24px; background: var(--slab); border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(0,0,0,.35); overflow: hidden; }
.slab-head { position: relative; display: flex; align-items: center; gap: 18px; padding: 24px 36px 22px 44px; background: linear-gradient(100deg, #262a37, #1d1f26); border-bottom: 1px solid var(--line); }
.slab-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(180deg, var(--flag-red) 0 33.3%, #fff 33.3% 66.6%, var(--flag-blue) 66.6% 100%); }
.no { flex: none; color: var(--blue-2); font-size: 1.05rem; font-weight: 800; letter-spacing: .1em; padding: 5px 12px; border-radius: 8px; background: rgba(47,107,255,.16); }
.slab-head h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; }
.slab-body { padding: 30px 36px 30px 44px; }
.slab-body > :last-child { margin-bottom: 0; }
.slab-body p { font-size: 1.04rem; line-height: 1.78; }
.slab-body h3 { margin: 32px 0 12px; display: inline-block; padding: 6px 16px; border-radius: 10px; background: rgba(47,107,255,.16); border-left: 4px solid var(--blue-2); color: var(--blue-3); font-size: 1.14rem; line-height: 1.3; font-weight: 700; }
.slab-body h3:first-child { margin-top: 0; }
.slab-body strong { color: #fff; font-weight: 700; }

.slab-body ul { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; }
.slab-body ul li { position: relative; padding: 13px 16px 13px 46px; border-radius: 12px; background: var(--slab-2); border: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.slab-body ul li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 10px; height: 10px; border-radius: 3px; background: var(--blue-2); transform: rotate(45deg); }
.slab-body ul.cards { grid-template-columns: 1fr 1fr; }

.slab-body ol { list-style: none; counter-reset: s; margin: 16px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.slab-body ol li { position: relative; counter-increment: s; padding: 48px 18px 16px; border-radius: 14px; background: var(--slab-2); border: 1px solid var(--line); font-size: 1rem; line-height: 1.6; overflow: hidden; }
.slab-body ol li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 8px; color: transparent; -webkit-text-stroke: 1.4px var(--blue-2); font-size: 1.9rem; font-weight: 800; line-height: 1.2; }

.table-wrap { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line-2); background: #16181d; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-wrap.wide table { min-width: 560px; }
.table-wrap th { text-align: left; padding: 14px 18px; background: #1f3fa8; color: #fff; font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:first-child td { border-top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.table-wrap td:first-child { color: #fff; font-weight: 600; }

.cta { margin: 28px 0 6px; padding: 26px 20px; border-radius: 16px; display: flex; justify-content: center; background: linear-gradient(120deg, rgba(47,107,255,.26), rgba(229,72,60,.16)); border: 1px solid var(--line-2); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--slab-2); border: 1px solid var(--line); overflow: hidden; }
.faq details[open] { border-color: var(--blue-2); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 62px 18px 22px; color: #fff; font-weight: 700; font-size: 1.04rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--red); }
.faq .ans { padding: 0 22px 20px; }
.faq .ans p { margin: 0; }

/* ============ FOOTER ============ */
.site-footer { margin-top: 56px; padding: 46px 0 26px; background: #0d0e12; color: #b9c0d6; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--flag-red) 0 33.3%, #fff 33.3% 66.6%, var(--flag-blue) 66.6% 100%); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.f-brand p { margin: 14px 0 0; color: var(--dim); font-size: .96rem; max-width: 340px; }
.f-col h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a { display: inline-block; padding: 5px 0; font-size: .97rem; color: #e3e8f7; }
.f-col a:hover { color: #fff; text-decoration: underline; }
.f-bottom { padding-top: 20px; border-top: 1px solid var(--line); }
.f-bottom p { margin: 0; font-size: .88rem; color: var(--dim); }

/* ============ PÁGINA 404 ============ */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.nf-card { max-width: 520px; width: 100%; padding: 44px 32px; text-align: center; border-radius: 24px; background: var(--slab); border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.nf-code { margin: 0 0 6px; color: var(--blue-2); font-size: 4rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.nf-card h1 { margin: 0 0 12px; color: #fff; font-size: 1.7rem; line-height: 1.2; }
.nf-card p { color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .menu, .bar-cta { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .visual { max-width: 460px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .hero { padding-top: 30px; }
  .hero-actions .btn { width: 100%; }
  .chip { font-size: .82rem; padding: 7px 14px; }
  .slab { border-radius: 20px; }
  .slab-head { padding: 18px 16px 16px 26px; gap: 12px; flex-wrap: wrap; }
  .slab-body { padding: 24px 16px 22px 24px; }
  .slab-body ul.cards { grid-template-columns: 1fr; }
  .slab-body ol { grid-template-columns: 1fr; }
  .slab-body h3 { font-size: 1.06rem; }
  .btn { white-space: normal; }
  .cta .btn { width: 100%; }
  .f-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
