/* =========================================================
   PARADIGMA EVENTS — estilos
   ========================================================= */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #15102e;
  --ink-2: #1f1a3f;
  --text: #221d44;
  --muted: #5d5a7a;
  --purple: #8862ff;
  --purple-deep: #2e20c8;
  --purple-soft: #ede8ff;
  --yellow: #ffd324;
  --yellow-deep: #e6b800;
  --bg: #ffffff;
  --tint: #f6f4ff;
  --line: #e6e3f2;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --head: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px -12px rgba(21, 16, 46, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); margin: 0 0 .9em; }
.eyebrow a { color: inherit; text-decoration: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }

/* ---------- Botones ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--h); padding: 0 1.4em; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s, color .2s; white-space: nowrap; }
.btn--lg { --h: 56px; padding: 0 1.8em; font-size: 1.05rem; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 211, 36, .9); }
.btn--yellow:hover { background: #ffdc4d; color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(255, 211, 36, 1); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--purple); color: var(--purple-deep); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(21, 16, 46, .35); }
.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 72px; gap: 16px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__list a, .nav__sub-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; background: none; border: 0; font-family: inherit; cursor: pointer; transition: background .2s, color .2s; }
.nav__list a:hover, .nav__sub-btn:hover, .nav__list a[aria-current="page"], .has-sub.is-current > .nav__sub-btn { background: var(--purple-soft); color: var(--purple-deep); }
.nav__sub-btn svg { transition: transform .25s; }
.has-sub.is-open > .nav__sub-btn svg { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-sub.is-open > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .has-sub:hover > .nav__sub { opacity: 1; visibility: visible; transform: none; } }
.nav__sub a { display: block; width: 100%; border-radius: var(--radius-sm); padding: 9px 12px; font-size: .95rem; }
.nav__cta .btn { --h: 44px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .header__inner { grid-template-columns: auto 1fr auto; }
  .burger { display: flex; justify-self: end; }
  .nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px 16px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); border-top: 1px solid var(--line); }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a, .nav__sub-btn { width: 100%; justify-content: space-between; padding: 14px 14px; font-size: 1.1rem; border-radius: var(--radius-sm); }
  .nav__sub { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.is-open > .nav__sub { display: block; }
  .nav__sub a { font-size: 1rem; color: var(--muted); }
  .nav__cta { margin-top: 16px; }
  .nav__cta .btn { width: 100%; --h: 52px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero--home { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 16, 46, .35) 0%, rgba(21, 16, 46, .55) 50%, rgba(21, 16, 46, .92) 100%); }
.hero__content { padding: 120px 0 56px; max-width: 820px; }
.hero--home .eyebrow { color: var(--yellow); }
.hero--home h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero--home .lead { color: rgba(255, 255, 255, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.hero__facts { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .25); display: flex; flex-wrap: wrap; gap: 20px 40px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.hero__facts strong { display: block; font-family: var(--head); font-size: 1.8rem; color: var(--yellow); line-height: 1.1; }

.hero--page { padding: 56px 0 24px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__media img, .hero__media--wide img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__media--wide { margin: 0; }
.hero__media--wide img { aspect-ratio: 16 / 8; }
.hero--compact { padding: 56px 0 8px; }
.hero--compact .lead { max-width: 70ch; }
@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero--page { padding-top: 32px; }
  .hero__content { padding-top: 80px; }
  .hero--home { min-height: 80vh; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--flush { padding: 8px 0 24px; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .85); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .78); }
.section--dark a { color: var(--yellow); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section__head--row h2 { margin: 0; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Tarjetas */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media { overflow: hidden; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { color: var(--muted); margin: 0; font-size: .98rem; }
.card__more { margin-top: auto; padding-top: 10px; font-family: var(--head); font-weight: 700; color: var(--purple-deep); }
.arrow { display: inline-block; transition: transform .2s; }
.card:hover .arrow, .btn:hover .arrow { transform: translateX(4px); }

/* Características */
.feature { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section--tint .feature { border-color: transparent; }
.section--dark .feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.grid--list .feature { background: transparent; border: 0; padding: 0; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; margin-bottom: 16px; }
.section--dark .feature__icon { background: rgba(136, 98, 255, .22); color: var(--yellow); }
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; margin-bottom: .35em; }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a:hover { color: var(--purple-deep); }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.section--dark .feature p { color: rgba(255, 255, 255, .72); }

/* Listas */
.checks, .steps { padding: 0; margin: 0 0 1.2em; }
.checks { list-style: none; }
.checks li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--purple-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: .55em; width: 8px; height: 5px; border-left: 2px solid var(--purple-deep); border-bottom: 2px solid var(--purple-deep); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 0 56px; margin-bottom: 1.1em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1em; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-family: var(--head); font-weight: 700; display: grid; place-items: center; }
.note { margin-top: 40px; padding: 32px; border-radius: var(--radius); background: var(--tint); }
.note h2 { font-size: 1.5rem; }
.note p { margin: 0; }

/* Prosa (proyectos, blog, legales) */
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); }
.prose--legal { font-size: 1rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery__item { margin: 0; }
.gallery__item img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 639px) { .gallery { grid-template-columns: 1fr; } }

/* FAQ */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-family: var(--head); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; font-weight: 600; transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }
.faq__a p:last-child { margin: 0; }

/* CTA */
.cta { padding: 0 0 clamp(56px, 8vw, 96px); }
.cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 20px; background: linear-gradient(135deg, var(--purple-deep), var(--purple)); color: #fff; }
.cta__inner h2 { color: #fff; margin-bottom: .3em; }
.cta__inner p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 767px) { .cta__inner { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact__list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact__list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.contact__list a { font-weight: 600; text-decoration: none; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }
.form { padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--tint); border: 1px solid var(--line); }
.form h2 { font-size: 1.6rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--purple); border-color: transparent; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; }
.form .check input { margin-top: .3em; }
.form__note { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.form .btn { width: 100%; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 64px 0 24px; font-size: .95rem; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { margin-bottom: 18px; }
.footer__tagline { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer__h { font-family: var(--head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--purple); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer__bottom p { margin: 0; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* WhatsApp flotante */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .8); transition: transform .2s; }
.wa:hover { transform: scale(1.06); color: #fff; }

/* Aviso de cookies */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-inline: auto; padding: 20px 22px; background: var(--ink); color: rgba(255, 255, 255, .85); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); font-size: .95rem; }
.cookies p { margin: 0 0 14px; }
.cookies a { color: var(--yellow); }
.cookies__actions { display: flex; justify-content: flex-end; gap: 8px; }
.cookies .btn { --h: 40px; font-size: .9rem; }
@media (min-width: 900px) { .cookies { left: auto; right: 24px; bottom: 90px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .card, .btn { transition: none; } }

/* Marca: símbolo + nombre */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand__name { font-family: var(--head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.brand--light { color: #fff; margin-bottom: 18px; }
.brand--light img { height: 44px; }
.brand--light .brand__name { font-size: 1.45rem; }
