/* Veleta Interactive — estilos */
:root {
  --bg: #050a18;
  --bg-2: #081230;
  --bg-card: rgba(14, 30, 70, .45);
  --line: rgba(80, 170, 255, .16);
  --text: #eaf2ff;
  --muted: #9fb0cf;
  --cyan: #00e5ff;
  --blue: #0a7cff;
  --deep: #0626a8;
  --grad: linear-gradient(90deg, #00e5ff 0%, #1aa3ff 55%, #0a5cff 100%);
  --grad-btn: linear-gradient(90deg, #00c8ff 0%, #0a6cff 60%, #0636c9 100%);
  --grad-text: var(--grad);
  --strong: #ffffff;
  --soft: #c9d6ee;
  --nav: #d5e2f7;
  --topbar-bg: rgba(5, 10, 24, .82);
  --menu-bg: rgba(5, 10, 24, .97);
  --ghost-border: rgba(0, 200, 255, .75);
  --contact-end: #061232;
  --radius: 18px;
  --wrap: 1200px;
  --topbar: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) - 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.9em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn--primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 170, 255, .6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(0, 190, 255, .75), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--ghost {
  border: 1.5px solid var(--ghost-border); color: var(--strong);
  box-shadow: 0 0 18px -6px rgba(0, 200, 255, .6) inset, 0 0 18px -8px rgba(0, 200, 255, .6);
}
.btn--ghost:hover { background: rgba(0, 180, 255, .12); border-color: var(--cyan); }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: var(--topbar-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.topbar__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.topbar__logo img { width: 128px; height: auto; }
.nav { display: flex; gap: 40px; margin: 0 auto; }
.nav a {
  position: relative; text-decoration: none; font-size: .95rem; font-weight: 500;
  color: var(--nav); padding: 6px 0; transition: color .2s;
}
.nav a:hover { color: var(--strong); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transform: translateX(-50%);
  transition: width .25s; box-shadow: 0 0 10px rgba(0, 200, 255, .8);
}
.nav a.is-active { color: var(--strong); }
.nav a.is-active::after, .nav a:not(.btn):hover::after { width: 100%; }
.nav__cta-mobile { display: none !important; }
.nav .btn { padding: .95em 1.9em; }
.burger { display: none; }
.theme-toggle {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--strong);
  transition: border-color .2s, background .2s, transform .3s;
}
.theme-toggle:hover { border-color: var(--cyan); background: rgba(0, 180, 255, .1); }
.theme-toggle:active { transform: rotate(-30deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
.only-light { display: none !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--topbar) + 24px) 0 80px;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(0, 110, 255, .22), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 20%, rgba(0, 60, 180, .18), transparent 70%),
    linear-gradient(180deg, #040915 0%, #06102a 55%, #040914 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__beam {
  position: absolute; top: -20%; left: 58%; width: 26%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(80, 170, 255, .16) 45%, rgba(160, 220, 255, .28) 50%, rgba(80, 170, 255, .1) 55%, transparent);
  transform: rotate(22deg); filter: blur(18px); opacity: .9;
  animation: beam 9s ease-in-out infinite alternate;
}
.hero__beam--2 { left: 72%; width: 10%; opacity: .5; animation-duration: 12s; animation-delay: -4s; }
@keyframes beam { from { opacity: .45; transform: rotate(22deg) translateX(-2%); } to { opacity: .95; transform: rotate(24deg) translateX(2%); } }
.hero__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background:
    radial-gradient(ellipse 40% 45% at 68% 35%, rgba(0, 140, 255, .18), transparent 70%),
    linear-gradient(180deg, rgba(3, 8, 20, 0) 0%, rgba(3, 8, 20, .85) 100%);
}
.hero__floor::before { /* niebla */
  content: ""; position: absolute; inset: -30% 0 20% 0;
  background: radial-gradient(ellipse 60% 40% at 65% 60%, rgba(120, 180, 255, .12), transparent 70%);
  filter: blur(20px); animation: fog 14s ease-in-out infinite alternate;
}
@keyframes fog { to { transform: translateX(6%); opacity: .6; } }
.hero__grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.hero__text { position: relative; z-index: 2; }
.hero__brand { margin: 0 0 8px; }
.hero__brand img { width: min(440px, 100%); height: auto; filter: drop-shadow(0 10px 40px rgba(0, 140, 255, .35)); }
.hero__claim {
  margin: 10px 0 14px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05;
  font-weight: 700; letter-spacing: -.02em;
}
.hero__lead { max-width: 36ch; margin: 0 0 34px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--soft); }

.hero__visual { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-right: 150px; margin-top: 60px; }
.hero__arrows {
  width: 100%; max-width: 520px; height: auto; position: relative;
  filter: drop-shadow(0 0 30px rgba(0, 190, 255, .45)) drop-shadow(0 30px 60px rgba(0, 60, 200, .6));
  transform: perspective(1200px) rotateY(-14deg);
  animation: float 6s ease-in-out infinite;
}
.hero__reflect {
  width: 100%; max-width: 520px; height: auto; margin-top: 6px;
  transform: perspective(1200px) rotateY(-14deg) scaleY(-1);
  opacity: .22; filter: blur(3px);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.9), transparent 45%);
  mask-image: linear-gradient(0deg, rgba(0,0,0,.9), transparent 45%);
  animation: float-r 6s ease-in-out infinite;
}
.hero__glow {
  position: absolute; top: 20%; left: 10%; right: 10%; height: 50%;
  background: radial-gradient(ellipse, rgba(0, 170, 255, .35), transparent 65%); filter: blur(30px);
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes float-r { 0%, 100% { translate: 0 0; } 50% { translate: 0 12px; } }

.hero__tags {
  position: absolute; right: 24px; top: 0; margin: 0; padding: 4px 0 4px 22px; list-style: none;
  border-left: 2px solid rgba(0, 190, 255, .8);
  font-size: .74rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--soft);
  line-height: 2.1; box-shadow: -8px 0 16px -12px rgba(0, 200, 255, .9);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(160, 200, 255, .4); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--cyan); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 120px 0; }
.section--alt {
  background:
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(0, 110, 255, .14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.section__head { margin-bottom: 48px; }
.kicker {
  margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--grad); box-shadow: 0 0 10px rgba(0, 200, 255, .8); }
.h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.body { color: var(--muted); font-size: 1.05rem; margin: 0 0 1em; }
.body strong { color: var(--strong); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 64px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: .7;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(0, 200, 255, .45); box-shadow: 0 20px 50px -20px rgba(0, 150, 255, .45); }
.pillar__n { font-family: 'Orbitron', 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--cyan); letter-spacing: .1em; }
.pillar h3 { margin: 14px 0 8px; font-size: 1.4rem; font-weight: 700; }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Proyecto ---------- */
.project {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 34, 80, .7), rgba(6, 14, 36, .9));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 100, 255, .5);
}
.project__media { position: relative; min-height: 360px; }
.project__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 24, 0) 40%, rgba(8, 18, 44, .95) 100%), linear-gradient(0deg, rgba(5, 10, 24, .8), transparent 50%);
}
.project__logo {
  position: absolute; z-index: 1; left: 28px; bottom: 24px; width: min(260px, 55%); height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6));
}
.project__body { padding: 44px 44px 40px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); background: rgba(0, 0, 0, .2);
}
.chip--hot { border-color: rgba(255, 170, 40, .6); color: #ffc15a; }
.project__title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.project__tag { margin: 4px 0 16px; font-weight: 500; color: var(--cyan); }
.features {
  list-style: none; margin: 18px 0 30px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .92rem; color: var(--soft);
}
.features li { display: flex; align-items: center; gap: 10px; }
.features li::before {
  content: ""; flex: none; width: 8px; height: 8px; rotate: 45deg;
  background: var(--grad); box-shadow: 0 0 8px rgba(0, 200, 255, .8);
}
.project__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--line); transition: transform .3s, border-color .3s;
}
.gallery img:hover { transform: scale(1.02); border-color: rgba(0, 200, 255, .5); }

/* ---------- Noticias ---------- */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line); transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(0, 200, 255, .45); transform: translateY(-3px); }
.card__meta { margin: 0 0 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.card h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card__link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--strong); }
.card__link:hover { color: var(--cyan); }

/* ---------- Contacto ---------- */
.section--contact {
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0, 110, 255, .2), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--contact-end));
}
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact .h2 { margin-bottom: 18px; }
.contact__box {
  padding: 40px; border-radius: 24px; background: var(--bg-card); border: 1px solid rgba(0, 200, 255, .3);
  box-shadow: 0 0 60px -20px rgba(0, 170, 255, .4);
}
.contact__mail {
  display: block; font-size: clamp(1.05rem, 1.9vw, 1.45rem); font-weight: 700; text-decoration: none;
  line-height: 1.3; overflow-wrap: normal; word-break: normal; margin-bottom: 28px;
}
.contact__mail:hover { color: var(--cyan); }
.contact__label { margin: 0 0 12px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.social { display: flex; gap: 12px; }
.social--studio { margin-bottom: 26px; }
.social a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.social a:hover { border-color: var(--cyan); background: rgba(0, 180, 255, .12); }
.social svg { width: 20px; height: 20px; fill: var(--strong); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: .88rem; color: var(--muted); }
.footer__in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__in img { width: 96px; height: auto; }
.footer__in p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-left: auto; }
.footer__legal a { display: inline-block; padding: 10px 0; }
.footer__credit { margin-left: 8px; display: block; padding: 12px 0; opacity: .75; transition: opacity .2s; }
.footer__credit:hover { opacity: 1; }
.footer__credit img { width: 72px; height: auto; transform: translateY(-3px); }
.footer a { color: var(--strong); text-decoration: none; }
.footer a:hover { color: var(--cyan); }

/* ---------- Páginas legales ---------- */
.wrap--narrow { max-width: 860px; }
.legal { padding: calc(var(--topbar) + 56px) 0 96px; background: radial-gradient(ellipse 60% 30% at 80% 0%, rgba(0, 110, 255, .16), transparent 70%); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; color: var(--strong); }
.crumbs a:hover { color: var(--cyan); }
.legal h1 { margin-bottom: 12px; }
.legal__lead { color: var(--soft); font-size: 1.1rem; margin: 0 0 6px; }
.legal__date { color: var(--muted); font-size: .85rem; margin: 0 0 40px; }
.legal__body { color: var(--muted); }
.legal__body h2 { color: var(--text); font-size: 1.3rem; margin: 44px 0 12px; }
.legal__body strong { color: var(--strong); }
.legal__body a { color: var(--cyan); }
.legal__body ul { padding-left: 1.2em; }
.legal__body li { margin-bottom: 6px; }
.legal__body code { font-size: .9em; color: var(--soft); background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 4px; }
.legal__id { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 20px 0; padding: 24px 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.legal__id dt { color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.legal__id dd { margin: 0; color: var(--strong); font-weight: 500; word-break: break-word; }
.legal__table { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--line); }
.legal__table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.legal__table th, .legal__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { color: var(--strong); background: rgba(0, 120, 255, .12); font-weight: 600; }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__nav { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.legal__nav a { color: var(--strong); text-decoration: none; }
.legal__nav a:hover { color: var(--cyan); }
@media (max-width: 640px) {
  .legal__table { border: 0; overflow: visible; }
  .legal__table table { min-width: 0; }
  .legal__table thead { display: none; }
  .legal__table tr { display: block; margin-bottom: 14px; padding: 6px 18px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
  .legal__table td { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal__table tr:last-child td { border-bottom: 1px solid var(--line); }
  .legal__table td:last-child, .legal__table tr:last-child td:last-child { border-bottom: 0; }
  .legal__table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
  .legal__table td:first-child { color: var(--strong); font-weight: 600; }
}
@media (max-width: 560px) {
  .legal__id { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .legal__id dd { margin-bottom: 10px; }
}

/* ---------- Modo claro ---------- */
/* Elegido con el interruptor */
:root[data-theme="light"] {
  --bg: #f3f6fc;
  --bg-2: #e6edf9;
  --bg-card: rgba(255, 255, 255, .78);
  --line: rgba(10, 70, 170, .14);
  --text: #0b1630;
  --muted: #4b5b7a;
  --cyan: #0a7fd4;
  --grad-text: linear-gradient(90deg, #00a3e0 0%, #0a6cff 55%, #0a3fd1 100%);
  --strong: #0b1630;
  --soft: #34466a;
  --nav: #2b3b5e;
  --topbar-bg: rgba(243, 246, 252, .86);
  --menu-bg: rgba(243, 246, 252, .98);
  --ghost-border: rgba(0, 130, 230, .6);
  --contact-end: #dde7f7;
  color-scheme: light;
}
:root[data-theme="light"] .hero { background: radial-gradient(ellipse 60% 70% at 72% 45%, rgba(0, 130, 255, .16), transparent 70%), radial-gradient(ellipse 50% 50% at 10% 20%, rgba(0, 170, 255, .12), transparent 70%), linear-gradient(180deg, #f6f9fe 0%, #e9f0fb 60%, #f3f6fc 100%); }
:root[data-theme="light"] .hero__beam { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, .6) 55%, transparent); }
:root[data-theme="light"] .hero__floor { background: radial-gradient(ellipse 40% 45% at 68% 35%, rgba(0, 140, 255, .1), transparent 70%), linear-gradient(180deg, rgba(243, 246, 252, 0) 0%, rgba(243, 246, 252, .9) 100%); }
:root[data-theme="light"] .hero__grain { opacity: .035; }
:root[data-theme="light"] .hero__brand img { filter: drop-shadow(0 10px 30px rgba(0, 110, 255, .18)); }
:root[data-theme="light"] .hero__arrows { filter: drop-shadow(0 0 24px rgba(0, 170, 255, .3)) drop-shadow(0 30px 50px rgba(0, 60, 200, .3)); }
:root[data-theme="light"] .hero__reflect { opacity: .14; }
:root[data-theme="light"] .hero__scroll { border-color: rgba(10, 60, 150, .3); }
:root[data-theme="light"] .section--alt { background: radial-gradient(ellipse 50% 40% at 85% 10%, rgba(0, 130, 255, .1), transparent 70%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
:root[data-theme="light"] .pillar, :root[data-theme="light"] .card, :root[data-theme="light"] .contact__box, :root[data-theme="light"] .legal__id { box-shadow: 0 10px 30px -18px rgba(10, 50, 130, .25); }
:root[data-theme="light"] .project { background: linear-gradient(135deg, #ffffff, #eef3fb); box-shadow: 0 30px 60px -36px rgba(10, 60, 160, .35); }
:root[data-theme="light"] .chip { background: rgba(255, 255, 255, .7); }
:root[data-theme="light"] .chip--hot { color: #a85f00; border-color: rgba(200, 120, 0, .45); }
:root[data-theme="light"] .legal__body code { background: rgba(10, 40, 100, .07); }
:root[data-theme="light"] .legal { background: radial-gradient(ellipse 60% 30% at 80% 0%, rgba(0, 130, 255, .1), transparent 70%); }
:root[data-theme="light"] .btn--ghost { box-shadow: none; }
:root[data-theme="light"] .only-dark { display: none !important; }
:root[data-theme="light"] .only-light { display: block !important; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (min-width: 1081px) {
  :root[data-theme="light"] .project__media::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .96) 100%), linear-gradient(0deg, rgba(5, 10, 24, .75), transparent 50%); }
}

/* ---------- Cambio de tema suave ---------- */
.theme-fade::view-transition-old(root),
.theme-fade::view-transition-new(root) { animation-duration: .7s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease, fill .6s ease, box-shadow .6s ease !important;
}

/* ---------- Aviso de cookies ---------- */
.ck {
  position: fixed; left: 20px; bottom: 20px; z-index: 80; width: min(390px, calc(100vw - 40px));
  padding: 22px 22px 18px; border-radius: 18px; background: var(--menu-bg); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 170, 255, .06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .88rem; line-height: 1.55;
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease;
}
.ck.is-open { opacity: 1; transform: none; }
.ck[hidden] { display: none; }
.ck .ck__title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--strong); display: flex; align-items: center; gap: 8px; }
.ck__title svg { width: 20px; height: 20px; flex: none; }
.ck p { margin: 0 0 14px; color: var(--muted); }
.ck a { color: var(--cyan); }
.ck__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ck__btn {
  flex: 1 1 auto; padding: .7em 1em; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: .84rem;
  border: 1.5px solid var(--ghost-border); background: transparent; color: var(--strong); transition: background .2s, border-color .2s;
}
.ck__btn:hover { background: rgba(0, 180, 255, .1); }
.ck__btn--primary { border-color: transparent; background: var(--grad-btn) border-box; color: #fff; }
.ck__btn--primary:hover { background: var(--grad-btn) border-box; filter: brightness(1.08); }
.ck__prefs { margin: 4px 0 14px; display: grid; gap: 10px; }
.ck__prefs[hidden] { display: none; }
.ck__row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); }
.ck__row strong { display: block; color: var(--strong); font-size: .86rem; }
.ck__row span { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.ck__row em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--cyan); white-space: nowrap; padding-top: 2px; }
.ck__switch { position: relative; flex: none; width: 42px; height: 24px; margin-top: 2px; }
.ck__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ck__switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(120, 140, 170, .45); transition: background .2s; pointer-events: none; }
.ck__switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ck__switch input:checked + i { background: var(--grad-btn); }
.ck__switch input:checked + i::after { transform: translateX(18px); }
.ck__switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ck-revisit {
  position: fixed; left: 20px; bottom: 20px; z-index: 79; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--menu-bg); border: 1px solid var(--line); color: var(--strong);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); transition: transform .2s, border-color .2s;
}
.ck-revisit:hover { transform: scale(1.06); border-color: var(--cyan); }
.ck-revisit[hidden] { display: none; }
.ck-revisit svg { width: 22px; height: 22px; }
.footer__legal button { font: inherit; color: var(--strong); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.footer__legal button:hover { color: var(--cyan); }
@media (max-width: 560px) {
  .ck { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .ck-revisit { left: 12px; bottom: 12px; }
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__tags { display: none; }
  .hero__visual { padding-right: 0; margin-top: 0; }
  .nav { gap: 28px; }
  .project { grid-template-columns: 1fr; }
  .project__media { min-height: 0; aspect-ratio: 16 / 9; }
  .project__media::after { background: linear-gradient(0deg, rgba(5, 10, 24, .85), transparent 60%) !important; }
}
@media (max-width: 900px) {
  :root { --topbar: 70px; }
  .topbar__cta { display: none; }
  .topbar__logo img { width: 108px; }
  .theme-toggle { margin-left: auto; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: -8px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--strong); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--topbar) 0 auto 0; margin: 0; flex-direction: column; gap: 0;
    padding: 12px 24px 28px; background: var(--menu-bg); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav a.is-active { color: var(--cyan); }
  .nav__cta-mobile { display: inline-flex !important; align-self: flex-start; margin-top: 20px; }
  .topbar.menu-open { background: var(--menu-bg); }

  .hero { padding-top: calc(var(--topbar) + 12px); text-align: center; }
  .hero__in { grid-template-columns: 1fr; gap: 8px; }
  .hero__brand img { margin: 0 auto; width: min(340px, 82%); }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__visual { display: none; }
  .hero__reflect { display: none; }
  .hero__scroll { display: none; }
  .hero__beam { left: 40%; width: 50%; }

  .section { padding: 84px 0; }
  .split, .contact { grid-template-columns: 1fr; gap: 24px; }
  .split { margin-bottom: 40px; }
  .pillars, .news { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .project__body { padding: 28px 22px; }
  .features { grid-template-columns: 1fr; }
  .contact__box { padding: 28px 22px; }
  .gallery { gap: 12px; }
  .footer__in { flex-direction: column; text-align: center; }
  .footer__credit, .footer__legal { margin-left: 0; }
  .btn { padding: .9em 1.5em; }
}
