/* ============================================================
   AI MANGANELL · hoja de estilos
   Paleta y tipografía en :root — cambia aquí y cambia todo.
   ============================================================ */

:root {
  --acc: #3b8dff;          /* acento principal (azul eléctrico) */
  --acc2: #7ab6ff;         /* acento hover */
  --acc-rgb: 59, 141, 255; /* mismo acento en RGB, para rgba() */
  --acc-deep: #10305c;     /* halo oscuro del acento */
  --bg: #06161d;
  --ink: #e8f2ef;
  --red: #ff4d3d;
  --blue: #3b8dff;
  --card: #0a1613;
  --sec-pad: 100px;        /* aire vertical entre secciones */
  --font-1: 'Space Grotesk', system-ui, sans-serif;
  --font-2: 'Manrope', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background-color: var(--bg); }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  font-family: var(--font-1);
  -webkit-font-smoothing: antialiased;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='5'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(47,159,214,.12), rgba(47,159,214,0) 65%);
  background-position: top left, top center;
  background-repeat: repeat, no-repeat;
  background-size: 320px 320px, 100% 1600px;
  background-attachment: fixed, scroll;
}
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc2); }
img { display: block; }
::selection { background: rgba(var(--acc-rgb), .3); }
[hidden] { display: none !important; }

/* ---------- animaciones ---------- */
@keyframes pulse    { 0%,100% { opacity:.5 } 50% { opacity:1 } }
@keyframes palpita  { 0%,100% { transform:scale(1); border-color:rgba(255,197,61,.55); box-shadow:0 0 0 rgba(255,197,61,0) }
                      50%     { transform:scale(1.025); border-color:rgba(255,197,61,.95); box-shadow:0 0 34px rgba(255,197,61,.4) } }
@keyframes glow     { 0%,100% { box-shadow:0 0 24px rgba(var(--acc-rgb),.55), 0 0 60px rgba(var(--acc-rgb),.3) }
                      50%     { box-shadow:0 0 36px rgba(var(--acc-rgb),.85), 0 0 90px rgba(var(--acc-rgb),.5) } }
@keyframes float-up { 0% { transform:translateY(0); opacity:0 } 8% { opacity:1 } 92% { opacity:1 } 100% { transform:translateY(-115vh); opacity:0 } }
@keyframes p2fade   { from { opacity:0 } to { opacity:1 } }
@keyframes p2zoom   { from { opacity:0; transform:scale(.985) } to { opacity:1; transform:none } }
@keyframes rise     { from { opacity:0; transform:translateY(14px) } to { opacity:1; transform:none } }

.rise { animation: rise .6s ease-out both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .16s; }
.rise.d3 { animation-delay: .24s; }
.rise.d4 { animation-delay: .32s; }

/* ---------- utilidades de color ---------- */
.c-acc  { color: var(--acc); }
.c-red  { color: var(--red); }
.c-blue { color: var(--blue); }
.u-red  { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 1px; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px 12px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 22px;
  font-size: 16px; font-weight: 600; letter-spacing: .03em; line-height: 1;
  flex-shrink: 1; min-width: 0;
}
.nav-link { display: inline-flex; align-items: center; color: #fff; white-space: nowrap; }
.nav-link:hover { color: var(--acc); }
.nav-cta {
  display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 999px;
  background: var(--acc); color: #07100e; font-weight: 700; white-space: nowrap;
  animation: glow 2.4s ease-in-out infinite;
}
.nav-cta:hover {
  background: var(--acc2); color: #07100e;
  box-shadow: 0 0 36px rgba(var(--acc-rgb), .8), 0 0 80px rgba(var(--acc-rgb), .45);
}

/* ============================================================
   PÁGINA 1 · HERO
   ============================================================ */
.hero-wrap { position: relative; overflow: hidden; min-height: 100vh; }
.hero-video { position: absolute; inset: 0; z-index: 0; background: #07100e; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: rgba(7,16,14,.66); pointer-events: none; }
.hero-grad-x { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,14,.55) 0%, rgba(7,16,14,0) 60%); }
.hero-grad-y { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,16,14,.5) 0%, rgba(7,16,14,0) 55%); }

.hero-inner {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  max-width: 720px; margin: 0 auto; padding: 104px 24px 56px; min-height: 100vh;
}
.hero { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-glow { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.hero-copy { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .07);
  font-family: var(--mono); font-size: 11.5px; color: var(--acc2); letter-spacing: .08em;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 2s infinite; }

.hero h1 {
  margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(34px, 4.6vw, 58px); max-width: 700px; text-wrap: pretty;
}
.hero-sub { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(232,242,239,.75); max-width: 540px; text-wrap: pretty; }
.hero-sub strong { color: var(--ink); }
.hero-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hero-list li { display: flex; gap: 8px; align-items: center; font-size: 12.5px; line-height: 1.3; color: rgba(232,242,239,.85); }
.hero-list svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--acc); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   FORMULARIO (compartido por las dos páginas)
   ============================================================ */
.form-sec { position: relative; width: 100%; max-width: 680px; margin: 0 auto; z-index: 20; }
.form-stack { position: relative; }
.form-shadow {
  position: absolute; inset: 0; transform: translate(14px, 14px); border-radius: 22px;
  background: var(--acc); opacity: .9; box-shadow: 0 0 50px rgba(var(--acc-rgb), .5);
}
.form-card {
  position: relative; border-radius: 22px; background: var(--card);
  border: 1px solid rgba(var(--acc-rgb), .25); padding: 44px 44px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lead-form { display: flex; flex-direction: column; gap: 8px; }
.lead-form-2 { gap: 18px; }
.lead-form h2 {
  margin: 0; font-size: clamp(24px, 6.4vw, 34px); font-weight: 700; letter-spacing: -.01em;
  text-align: center; line-height: 1.15;
}
.hl { color: var(--acc); box-shadow: inset 0 -4px 0 var(--red); padding: 0 .1em; }
.step-note {
  text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--acc); margin: 14px 0 22px;
}
.step-note strong { color: var(--red); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lead-form .grid-2, .lead-form > .field-wrap { margin-bottom: 14px; }
.lead-form-2 .grid-2, .lead-form-2 > .field-wrap { margin-bottom: 0; }

.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-wrap label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: rgba(232,242,239,.55); text-align: left;
}
.req { color: var(--red); }
.opt { color: rgba(232,242,239,.35); }

.field {
  padding: 15px 18px; border-radius: 10px; border: 1px solid rgba(232,242,239,.15);
  background: rgba(232,242,239,.04); color: var(--ink); font-size: 15px;
  font-family: inherit; outline: none; width: 100%;
}
.field-select { border-color: rgba(var(--acc-rgb), .25); }
.field:focus {
  border-color: rgba(var(--acc-rgb), .55);
  box-shadow: 0 0 14px 2px rgba(var(--acc-rgb), .32);
}
.field::placeholder { color: rgba(232,242,239,.35); }
textarea.field { resize: none; overflow: hidden; line-height: 1.6; }
.field-select option { color: #07100e; }

.consent {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5;
  color: rgba(232,242,239,.65); cursor: pointer;
}
.lead-form > .consent { margin-bottom: 18px; }
.lead-form-2 > .consent { margin-bottom: 0; }
.consent input { margin-top: 2px; accent-color: var(--acc); width: 16px; height: 16px; }

.form-error { margin: 0 0 12px; font-size: 13.5px; color: #ff8c7a; }
.lead-form-2 .form-error { margin-bottom: 0; }

.btn-acc {
  border: none; background: var(--acc); color: #07100e; font-weight: 800;
  font-family: inherit; cursor: pointer; text-align: center;
}
.btn-acc:hover { background: var(--acc2); color: #07100e; }
.btn-submit { padding: 18px; border-radius: 12px; font-size: 19px; box-shadow: 0 0 32px rgba(var(--acc-rgb), .4); }
.btn-sm { padding: 11px 22px; border-radius: 9px; font-size: 13.5px; font-weight: 700; }
.btn-round { border-radius: 999px; }
.btn-ghost {
  padding: 11px 20px; border-radius: 9px; border: 1px solid rgba(232,242,239,.25);
  background: transparent; color: var(--ink); font-weight: 600; font-size: 13.5px;
  font-family: inherit; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); }

.form-foot {
  text-align: center; font-family: var(--mono); font-size: 11.5px;
  color: rgba(232,242,239,.45); margin-top: 14px;
}
.lead-form-2 .form-foot { margin-top: 0; }

.form-sent { display: flex; flex-direction: column; gap: 20px; text-align: center; padding: 24px 8px; }
.form-sent p { margin: 0; font-size: 15.5px; color: rgba(232,242,239,.75); }
.sent-title { font-size: 20px; font-weight: 700; color: var(--acc2); }
.btn-cal { align-self: center; padding: 16px 34px; border-radius: 12px; font-size: 16px; }

.form-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 4px; }
.form-logo img { height: 106px; width: auto; max-width: 100%; }

/* ============================================================
   PÁGINA 2 · CONSULTORÍA
   ============================================================ */
#page2 { position: relative; font-family: var(--font-2); }
.particles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.particles span {
  position: absolute; bottom: -10px; border-radius: 50%;
  animation-name: float-up; animation-timing-function: linear; animation-iteration-count: infinite;
}
.p2-body { position: relative; z-index: 1; animation: p2fade .5s ease-out both; }

.p2-hero {
  position: relative; overflow: hidden; min-height: 82vh;
  display: flex; align-items: center; justify-content: center; padding: 96px 48px;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, rgba(var(--acc-rgb), .13), transparent 70%);
}
.p2-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.p2-hero-veil {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,22,29,.82), rgba(6,22,29,.6) 45%, rgba(6,22,29,.95));
}
.noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='5'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
}
.p2-hero-copy {
  position: relative; z-index: 1; max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: p2zoom .7s .06s cubic-bezier(.22,.8,.3,1) both; transform-origin: 50% 0;
}
.p2-kicker { font-size: 22px; line-height: 1.5; color: var(--ink); }
.p2-hero-copy h1 {
  margin: 34px 0 0; font-size: clamp(38px, 4.4vw, 64px); font-weight: 700; line-height: 1.16;
  letter-spacing: -.02em; color: var(--acc); max-width: 16ch; text-wrap: balance;
}
.p2-hero-copy p { margin: 30px 0 0; max-width: 700px; font-size: 24px; line-height: 1.38; color: var(--ink); text-wrap: pretty; }
.p2-hero-copy .btn-acc {
  margin-top: 52px; padding: 22px 44px; font-weight: 700; font-size: 19px;
  box-shadow: 0 0 40px rgba(var(--acc-rgb), .3);
}

/* fondo de textura que cubre el bloque central de la página 2 */
.p2-tiled {
  position: relative;
  background-image: url(assets/fondo-tile.png);
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}

.sec { padding: var(--sec-pad) 48px 0; }
.wrap { max-width: 980px; margin: 0 auto; }
.sec-title {
  margin: 0 0 54px; text-align: center; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700;
  line-height: 1.2; letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}

/* beneficios */
.ben-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ben-card {
  display: flex; flex-direction: column; gap: 26px; padding: 28px 22px 32px;
  border-radius: 10px; border: 1px solid rgba(232,242,239,.09); transition: box-shadow .25s, border-color .25s, background .25s;
}
.ben-card:hover {
  background: radial-gradient(ellipse 100% 75% at 50% 32%, rgba(var(--acc-rgb), .5), rgba(var(--acc-rgb), .14) 70%, rgba(var(--acc-rgb), .04));
  border-color: rgba(var(--acc-rgb), .7);
  box-shadow: 0 0 50px rgba(var(--acc-rgb), .28);
}
.ben-ico { font-size: 34px; line-height: 1; }
.ben-card p { margin: 0; font-size: 15.5px; line-height: 1.9; color: rgba(232,242,239,.8); text-wrap: pretty; }

/* garantía (banda) */
.guarantee-bar {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 30px 36px; border-radius: 12px; border: 2px solid var(--acc);
  background: rgba(var(--acc-rgb), .05);
  box-shadow: 0 0 60px rgba(var(--acc-rgb), .28), 0 0 140px rgba(var(--acc-rgb), .14);
}
.guarantee-bar p { margin: 0; text-align: center; font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--ink); text-wrap: pretty; }

/* qué obtienes */
.obt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.obt-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px;
  border-radius: 12px; background: rgba(232,242,239,.035);
}
.obt-item span:last-child { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.tick { color: var(--acc); font-size: 17px; line-height: 1.5; flex: none; }
.cross { color: var(--red); font-size: 18px; line-height: 1.4; flex: none; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 96px; margin-top: 64px; }
.fact { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fact-label { font-size: 19px; line-height: 1.4; color: rgba(232,242,239,.5); }
.fact-value { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--acc); text-align: center; }
.fact-note { font-size: 18px; line-height: 1.5; color: rgba(232,242,239,.5); }

/* es para ti */
.para-grid { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.para-item, .para-not {
  display: flex; gap: 16px; align-items: center; padding: 24px 26px; border-radius: 12px;
  border: 1px solid rgba(var(--acc-rgb), .28); background: rgba(232,242,239,.03);
}
.para-item span:last-child, .para-not span:last-child {
  font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); text-wrap: pretty;
}
.para-item .tick { font-size: 18px; line-height: 1.4; }
.para-not { max-width: 560px; margin: 22px auto 0; border-color: rgba(255,77,61,.5); background: rgba(255,77,61,.07); }

/* manifiesto */
.manifiesto { padding: 150px 48px; }
.manifiesto p {
  margin: 0; max-width: 1000px; font-size: clamp(44px, 9.5vw, 130px); font-weight: 700;
  line-height: .94; letter-spacing: -.045em; color: var(--ink); text-wrap: balance;
}

/* contacto */
.contacto {
  position: relative; overflow: hidden; padding: 110px 48px;
  background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(var(--acc-rgb), .14), transparent 65%);
}
.contacto-head { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; text-align: center; }
.contacto-head h2 { margin: 0; font-size: 42px; font-weight: 700; letter-spacing: -.01em; }
.contacto .form-sec { margin-top: 34px; z-index: 2; }

/* garantía total */
.sec-total { padding: 0 48px 110px; }
.total-box {
  max-width: 800px; margin: 0 auto; padding: 52px 48px; border-radius: 16px;
  border: 2px solid var(--acc); background: rgba(var(--acc-rgb), .05);
  box-shadow: 0 0 70px rgba(var(--acc-rgb), .25), 0 0 160px rgba(var(--acc-rgb), .12);
  text-align: center;
}
.total-box h2 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.total-box > p { margin: 26px auto 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.plazas {
  margin-top: 38px; padding: 20px 26px; border-radius: 10px;
  border: 1px solid rgba(255,197,61,.55); background: rgba(255,197,61,.12);
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  animation: palpita 3.6s ease-in-out infinite;
}
.plazas-bang { color: #ffc53d; font-weight: 700; font-size: 17px; line-height: 1.5; }
.plazas span:last-child { font-size: 17px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  display: flex; flex-direction: column; gap: 22px; padding: 44px 48px 34px;
  border-top: 1px solid rgba(var(--acc-rgb), .12);
  font-size: 13.5px; color: rgba(232,242,239,.5);
}
.foot-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand-name { font-family: var(--font-1); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--ink); }
.foot-social { display: flex; align-items: center; gap: 16px; min-height: 20px; }
.foot-social a { color: rgba(232,242,239,.6); display: inline-flex; }
.foot-social a:hover { color: var(--acc); }
.foot-social svg { width: 18px; height: 18px; }

.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; align-items: center;
  padding-top: 20px; border-top: 1px solid rgba(232,242,239,.08);
}
.foot-link { color: rgba(232,242,239,.6); }
.foot-link:hover { color: var(--acc); }
.foot-link-subtle { font-size: 12px; color: rgba(232,242,239,.4); }
.foot-link-subtle:hover { color: var(--acc); }

.foot-email { text-align: center; }

.foot-symbol { display: flex; justify-content: center; }
.foot-symbol img { height: 26px; width: auto; opacity: .7; }

.foot-copy { margin: 0; text-align: center; font-size: 12px; color: rgba(232,242,239,.38); }

/* ============================================================
   COOKIES
   ============================================================ */
#cookie-bar {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 900;
  max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px;
  border-radius: 16px; background: rgba(10,22,19,.96); backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--acc-rgb), .3); box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
#cookie-bar p { margin: 0; flex: 1 1 340px; font-size: 13.5px; line-height: 1.6; color: rgba(232,242,239,.75); }
.cookie-btns { display: flex; gap: 10px; flex: 0 0 auto; }

/* ============================================================
   MODAL LEGAL
   ============================================================ */
#legal-modal {
  position: fixed; inset: 0; z-index: 950; background: rgba(3,8,7,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.legal-card {
  position: relative; max-width: 720px; width: 100%; max-height: 82vh; overflow-y: auto;
  border-radius: 18px; background: var(--card); border: 1px solid rgba(var(--acc-rgb), .3);
  padding: 44px 44px 40px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.legal-close {
  position: absolute; top: 20px; right: 22px; background: none; border: none;
  color: rgba(232,242,239,.6); cursor: pointer; padding: 6px;
}
.legal-close:hover { color: var(--ink); }
.legal-card h2 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.legal-date { margin: 0 0 24px; font-family: var(--mono); font-size: 11.5px; color: var(--acc); letter-spacing: .08em; }
.legal-body { display: flex; flex-direction: column; gap: 20px; font-size: 14.5px; line-height: 1.7; color: rgba(232,242,239,.75); }
.legal-body h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.legal-body p { margin: 0; }
.legal-body p + p { margin-top: 8px; }
.legal-body strong { color: rgba(232,242,239,.9); }

/* ============================================================
   PÁGINA LEGAL INDEPENDIENTE (aviso / privacidad / cookies)
   reutiliza .legal-body y .legal-date del modal para el contenido
   ============================================================ */
.legal-page { padding: calc(var(--sec-pad) + 20px) 48px var(--sec-pad); }
.legal-page-wrap { max-width: 700px; margin: 0 auto; }
.legal-page-wrap h1 {
  margin: 0 0 10px; font-family: var(--font-1); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.18; font-size: clamp(28px, 4.5vw, 42px);
}
.legal-page-wrap .legal-date { margin: 0 0 40px; }
.legal-page-wrap .legal-body { font-size: 15.5px; }
.legal-page-wrap .legal-body > div { padding-bottom: 4px; }

/* ============================================================
   BLOG · POST INDIVIDUAL
   ============================================================ */
.post-page { padding: calc(var(--sec-pad) + 20px) 48px var(--sec-pad); }
.post-wrap { max-width: 700px; margin: 0 auto; }

/* cabecera */
.post-header { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 40px; }
.post-header h1 {
  margin: 0; font-family: var(--font-1); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.18; font-size: clamp(30px, 5vw, 46px); text-wrap: balance;
}
.post-meta {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(232,242,239,.55);
}
.post-meta time { color: var(--acc2); }
.post-meta .dot { color: rgba(232,242,239,.3); }

/* portada */
.post-cover {
  margin: 0 0 48px; border-radius: 18px; overflow: hidden; line-height: 0;
  border: 1px solid rgba(var(--acc-rgb), .2); box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* cuerpo — sin clases: el CSS apunta a las etiquetas dentro de .post-content */
.post-content {
  font-family: var(--font-2); font-size: 18px; line-height: 1.75; color: rgba(232,242,239,.86);
}
.post-content > * + * { margin-top: 1.5em; }

.post-content h2 {
  margin-top: 2.3em; font-family: var(--font-1); font-weight: 700; letter-spacing: -.015em;
  line-height: 1.25; font-size: clamp(24px, 3.2vw, 32px); color: var(--ink); text-wrap: balance;
}
.post-content h3 {
  margin-top: 1.9em; font-family: var(--font-1); font-weight: 700; letter-spacing: -.01em;
  line-height: 1.3; font-size: clamp(19px, 2.4vw, 22px); color: var(--ink); text-wrap: balance;
}
.post-content p { margin: 0; text-wrap: pretty; }

.post-content ul, .post-content ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: .65em; }
.post-content li { line-height: 1.7; }
.post-content ul li::marker, .post-content ol li::marker { color: var(--acc); }

.post-content blockquote {
  margin: 0; padding: 1.1em 1.4em; border-left: 3px solid var(--acc); border-radius: 0 12px 12px 0;
  background: rgba(var(--acc-rgb), .07); color: var(--ink);
}
.post-content blockquote p { margin: 0; font-size: 1.05em; line-height: 1.65; }
.post-content blockquote p + p { margin-top: .7em; }

.post-content a { text-decoration-color: rgba(var(--acc-rgb), .45); text-underline-offset: .15em; }
.post-content a:hover { text-decoration-color: var(--acc2); }
.post-content a:focus-visible { outline: 2px solid var(--acc2); outline-offset: 3px; border-radius: 2px; }

.post-content strong { color: var(--ink); font-weight: 700; }
.post-content code {
  font-family: var(--mono); font-size: .87em; color: var(--acc2);
  background: rgba(232,242,239,.08); padding: .15em .4em; border-radius: 5px;
}

/* FAQ */
.post-faq { margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(var(--acc-rgb), .15); }
.post-faq h2 {
  margin: 0 0 18px; font-family: var(--font-1); font-weight: 700; letter-spacing: -.015em;
  font-size: clamp(24px, 3vw, 30px); color: var(--ink);
}
.post-faq details {
  border: 1px solid rgba(232,242,239,.12); border-radius: 12px; background: rgba(232,242,239,.03);
  padding: 0 22px;
}
.post-faq details + details { margin-top: 12px; }
.post-faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; font-family: var(--font-2); font-weight: 600; font-size: 16px; color: var(--ink);
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: '+'; flex: none; font-size: 22px; color: var(--acc); transition: transform .2s; }
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq summary:focus-visible { outline: 2px solid var(--acc2); outline-offset: 4px; border-radius: 6px; }
.post-faq details p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.7; color: rgba(232,242,239,.75); }

/* autor */
.post-author {
  margin-top: 56px; display: flex; align-items: center; gap: 18px; padding: 26px 28px;
  border-radius: 16px; border: 1px solid rgba(232,242,239,.1); background: rgba(232,242,239,.03);
}
.author-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.author-avatar img { width: 60%; height: auto; }
.author-name { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.author-role { font-size: 13px; font-weight: 500; color: rgba(232,242,239,.5); }
.author-bio { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: rgba(232,242,239,.65); }

/* CTA de cierre */
.post-cta {
  margin-top: 56px; padding: 44px 40px; border-radius: 18px; text-align: center;
  border: 2px solid var(--acc); background: rgba(var(--acc-rgb), .06); box-shadow: 0 0 60px rgba(var(--acc-rgb), .2);
}
.post-cta h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.post-cta p { margin: 14px auto 0; max-width: 46ch; font-size: 16px; line-height: 1.6; color: rgba(232,242,239,.75); }
.post-cta .btn-acc { margin-top: 26px; display: inline-flex; padding: 16px 34px; border-radius: 12px; font-size: 16px; }

/* ============================================================
   BLOG · LISTADO
   ============================================================ */
.blog-page { padding: calc(var(--sec-pad) + 20px) 48px var(--sec-pad); }
.blog-page-wrap { max-width: 1080px; margin: 0 auto; }

.blog-page-header { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 640px; margin-bottom: 44px; }
.blog-page-header h1 {
  margin: 0; font-family: var(--font-1); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.15; font-size: clamp(32px, 5vw, 52px); text-wrap: balance;
}
.blog-page-header p { margin: 0; font-size: 16.5px; line-height: 1.6; color: rgba(232,242,239,.75); text-wrap: pretty; }

/* filtro por categoría — mejora progresiva: sin JS no existe, con JS oculta cards */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.blog-filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(232,242,239,.18);
  background: transparent; color: rgba(232,242,239,.7); font-family: inherit; font-size: 13.5px;
  font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.blog-filter-btn:hover { border-color: rgba(var(--acc-rgb),.5); color: var(--ink); }
.blog-filter-btn.is-active { background: var(--acc); border-color: var(--acc); color: #07100e; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.blog-card {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(232,242,239,.09); background: rgba(232,242,239,.02);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.blog-card:hover { border-color: rgba(var(--acc-rgb),.5); box-shadow: 0 0 40px rgba(var(--acc-rgb),.18); transform: translateY(-2px); }
.blog-card.is-hidden { display: none; }
.blog-card-cover { line-height: 0; aspect-ratio: 16 / 9; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.blog-card-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--acc2); }
.blog-card-body h2 { margin: 0; font-family: var(--font-1); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.blog-card-body p {
  margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(232,242,239,.7); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-body time { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: rgba(232,242,239,.4); }

.blog-empty { padding: 80px 24px; text-align: center; border-radius: 16px; border: 1px dashed rgba(232,242,239,.15); }
.blog-empty p { margin: 0; font-size: 16px; color: rgba(232,242,239,.55); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) { .ben-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .obt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .para-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px)  { .obt-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px)  { .ben-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 760px) {
  :root { --sec-pad: 58px; }
  nav, footer, .sec, .p2-hero, .contacto, .sec-total, .manifiesto, .post-page, .legal-page, .blog-page { padding-left: 20px; padding-right: 20px; }
  nav { padding-top: 14px; padding-bottom: 10px; }
  .nav-logo img { height: 22px; }
  .nav-link { font-size: 13px; }
  .nav-cta { padding: 11px 18px; font-size: 13px; }
  .hero-wrap { min-height: 0; }
  .hero-inner { min-height: 100svh; padding-top: 88px; padding-bottom: 44px; }
  .form-card { padding: 26px 20px 22px; }
  .form-shadow { transform: translate(7px, 7px); box-shadow: none; }
  .lead-form h2 { margin-bottom: 2px; }
  .btn-submit { padding: 16px; }
  .field { padding: 13px 14px; }
  input, select, textarea, button { font-size: 16px; }
  .manifiesto { padding-top: 84px; padding-bottom: 84px; }
  .legal-card { padding: 32px 22px 28px; }
  .post-page { padding-top: 100px; }
  .post-content { font-size: 16.5px; }
  .post-cover { margin-bottom: 32px; }
  .post-cta { padding: 34px 24px; }
  .post-author { padding: 22px; }
  .legal-page { padding-top: 100px; }
  .blog-page { padding-top: 100px; }
}

@media (max-width: 420px) {
  nav, footer, .sec, .p2-hero, .contacto, .sec-total, .manifiesto, .post-page, .legal-page, .blog-page { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .post-author { flex-direction: column; align-items: flex-start; text-align: left; }
}

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