/* Designious Corporation — tres estilos de marca: negro (predeterminado), blanco y rojo.
   El estilo se cambia con data-theme="black|white|red" en <html>. */

/* Blanco: estilo predeterminado (la página abre así) */
:root,
:root[data-theme="white"] {
  /* superficie base: encabezado, portada, videos, pie */
  --base-bg: #ffffff;
  --base-fg: #030408;
  --base-mute: #4a4d56;
  --base-line: rgba(3,4,8,.18);
  --base-line-strong: rgba(3,4,8,.7);
  --icon: #d40000;
  --header-bg: rgba(255,255,255,.94);
  --invert-bg: #030408;       /* botón de idioma / estilo activo */
  --invert-fg: #ffffff;
  /* botones */
  --btn-bg: #e50000;
  --btn-fg: #ffffff;
  --btn-hover-bg: #030408;
  --btn-hover-fg: #ffffff;
  /* superficie alterna: caso de éxito */
  --alt-bg: #f3f3f4;
  --alt-fg: #030408;
  --alt-mute: #4a4d56;
  --alt-line: rgba(3,4,8,.18);
  --alt-red: #d40000;
  /* franjas: cabecera del caso y contacto */
  --band-bg: #fe0000;
  --band-fg: #ffffff;
  --person-bg: #030408;
  --person-fg: #ffffff;
  --person-mute: #a9adb8;
  --person-rule: #ffffff;
  --person-accent: #fe0000;
  /* detalles */
  --hero-rule: #fe0000;
  --offset: #fe0000;
  --ghost-opacity: .05;
}

/* Negro */
:root[data-theme="black"] {
  --base-bg: #030408;
  --base-fg: #ffffff;
  --base-mute: #a9adb8;
  --base-line: rgba(255,255,255,.16);
  --base-line-strong: rgba(255,255,255,.7);
  --icon: #fe0000;
  --header-bg: rgba(3,4,8,.92);
  --invert-bg: #ffffff;
  --invert-fg: #030408;
  --btn-hover-bg: #ffffff;
  --btn-hover-fg: #030408;
  --ghost-opacity: .07;
}

/* Rojo */
:root[data-theme="red"] {
  --base-bg: #fe0000;
  --base-fg: #ffffff;
  --base-mute: #030408;
  --base-line: rgba(255,255,255,.55);
  --base-line-strong: #ffffff;
  --icon: #ffffff;
  --header-bg: rgba(254,0,0,.96);
  --invert-bg: #ffffff;
  --invert-fg: #030408;
  --btn-bg: #ffffff;
  --btn-fg: #030408;
  --btn-hover-bg: #030408;
  --btn-hover-fg: #ffffff;
  --alt-bg: #ffffff;
  --band-bg: #030408;
  --band-fg: #ffffff;
  --person-bg: #ffffff;
  --person-fg: #030408;
  --person-mute: #4a4d56;
  --person-rule: #fe0000;
  --person-accent: #fe0000;
  --hero-rule: #030408;
  --offset: #030408;
  --ghost-opacity: .13;
}

:root {
  --ink: #030408;
  --red: #fe0000;
  --red-text: #d40000;
  --white: #ffffff;

  --f-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --wrap: 1320px;
  --header-h: 88px;
  --gut: clamp(20px, 5vw, 56px);
  --pad: clamp(64px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 6px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base-bg);
  color: var(--base-fg);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
/* anillo doble: se ve sobre fondos claros y oscuros */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #030408; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--f-sans);
  text-decoration: none; border: 2px solid var(--btn-bg); border-radius: 2px;
  transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-hover-bg); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--base-fg); border-color: var(--base-line-strong); }
.btn--ghost:hover { background: var(--base-fg); color: var(--base-bg); border-color: var(--base-fg); }
/* botones sobre la franja (contacto) */
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: transparent; border-color: #fff; color: #fff; }
.btn--line { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn--line:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Encabezado (logo pegado a la izquierda) ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--base-line); }
.top__row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); padding-inline: clamp(14px, 2vw, 28px); }
.top__brand { display: block; flex: none; }
.top__brand img { height: 58px; width: auto; }
.top__nav { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-left: auto; }
.top__nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--base-mute); padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { color: var(--base-fg); border-color: var(--base-fg); }
:root[data-theme="red"] .top__nav a { color: var(--base-fg); }
:root[data-theme="red"] .top__nav a:hover { border-color: var(--ink); }
.top__tools { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; border: 1px solid var(--base-line-strong); border-radius: 2px; }
.lang__btn { background: none; border: 0; color: var(--base-fg); font: 600 .8rem/1 var(--f-sans); padding: 10px 12px; cursor: pointer; letter-spacing: .04em; }
.lang__btn[aria-pressed="true"] { background: var(--invert-bg); color: var(--invert-fg); }

.themes { display: inline-flex; gap: 8px; align-items: center; }
.theme { width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer; border: 2px solid var(--base-line-strong); }
.theme[data-theme-btn="black"] { background: #030408; border-color: #fff; box-shadow: 0 0 0 1px rgba(3,4,8,.6); }
.theme[data-theme-btn="white"] { background: #fff; border-color: #030408; }
.theme[data-theme-btn="red"] { background: #fe0000; border-color: #fff; box-shadow: 0 0 0 1px rgba(3,4,8,.6); }
.theme[aria-pressed="true"] { outline: 2px solid var(--base-fg); outline-offset: 3px; }

/* ---------- Banner a pantalla completa ---------- */
.banner { position: relative; isolation: isolate; overflow: hidden; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 480px; max-height: 1100px; display: flex; align-items: flex-end; background: #030408; color: #fff; }
.banner__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #030408; }
.banner__shade { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(to top, rgba(3,4,8,.88) 0%, rgba(3,4,8,.55) 32%, rgba(3,4,8,0) 62%),
    linear-gradient(to right, rgba(3,4,8,.45) 0%, rgba(3,4,8,0) 55%); }
.banner__content { position: relative; padding-bottom: clamp(56px, 9vh, 104px); }
.banner h1 { font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1.03; letter-spacing: -.028em; max-width: 14em; text-wrap: balance; text-shadow: 0 2px 24px rgba(3,4,8,.45); }
.banner__lead { margin-top: 18px; max-width: 36em; font-size: clamp(1.02rem, 1.5vw, 1.3rem); color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(3,4,8,.5); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* botón translúcido sobre el video: igual en los tres estilos */
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--ink); border-color: #fff; }
.banner__sound { position: absolute; right: clamp(14px, 2vw, 28px); bottom: clamp(18px, 3vh, 32px); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid rgba(255,255,255,.75); border-radius: 2px; background: rgba(3,4,8,.62); color: #fff; font: 600 .9rem/1 var(--f-sans); cursor: pointer; }
.banner__sound:hover { background: #fff; color: var(--ink); }
.banner__sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.banner__sound path:first-child { fill: currentColor; stroke: none; }
.banner__sound .on { display: none; }
.banner__sound[aria-pressed="true"] .on { display: inline; }
.banner__sound[aria-pressed="true"] .off { display: none; }
.banner__down { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.banner__down svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Qué hacemos: video + servicios ---------- */
.intro { background: var(--base-bg); color: var(--base-fg); padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); border-bottom: 6px solid var(--hero-rule); }

.wrap--wide { max-width: calc(var(--wrap) + var(--gut) * 2); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 48px); align-items: start; }

.stage { position: relative; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; background: var(--offset); z-index: -1; }
.stage video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border: 1px solid rgba(255,255,255,.22); }
.stage__sound { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 2px; background: rgba(3,4,8,.8); color: #fff; font: 600 .9rem/1 var(--f-sans); cursor: pointer; }
.stage__sound:hover { background: #fff; color: var(--ink); }
.stage__sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage__sound path:first-child { fill: currentColor; stroke: none; }
.stage__sound .on { display: none; }
.stage__sound[aria-pressed="true"] .on { display: inline; }
.stage__sound[aria-pressed="true"] .off { display: none; }

/* qué hace la empresa: junto al video */
.what__title { font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -.015em; padding-bottom: 14px; border-bottom: 3px solid var(--icon); text-wrap: balance; }
.what__item { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--base-line); }
.what__item svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.what__item h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.what__item p { margin-top: 2px; font-size: .95rem; line-height: 1.45; color: var(--base-mute); }

/* ---------- Secciones generales ---------- */
.sec { padding: var(--pad) 0; }
.sec--base { background: var(--base-bg); color: var(--base-fg); }
.sec__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.sec h2 { font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.sec__head p { margin-top: 18px; color: var(--base-mute); max-width: 38em; }

/* ---------- Caso de éxito ---------- */
.case__band { background: var(--band-bg); color: var(--band-fg); padding: clamp(48px, 7vw, 88px) 0; }
.case__tag { display: inline-block; font-weight: 700; font-size: 1rem; background: #fff; color: var(--ink); padding: 6px 14px; margin-bottom: 22px; }
.case__band h2 { font-weight: 700; font-size: clamp(2rem, 4.8vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; max-width: 18em; text-wrap: balance; }

.case__body { background: var(--alt-bg); color: var(--alt-fg); padding: var(--pad) 0; }
.steps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps__list { display: grid; gap: 0; border-top: 1px solid var(--alt-line); }
.steps__list li { border-bottom: 1px solid var(--alt-line); }
.step { width: 100%; display: flex; gap: 20px; text-align: left; background: none; border: 0; padding: 24px 12px 24px 18px; font: inherit; color: var(--alt-mute); cursor: pointer; border-left: 4px solid transparent; transition: background-color .2s; }
.step:hover { background: rgba(3,4,8,.04); }
.step.is-active { color: var(--alt-fg); border-left-color: var(--red); background: #fff; }
.step__n { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; border: 2px solid currentColor; border-radius: 50%; }
.step.is-active .step__n { background: var(--red); border-color: var(--red); color: #fff; }
.step__txt { display: grid; gap: 6px; }
.step__txt strong { font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: var(--alt-fg); }
.step__txt span { font-size: .98rem; line-height: 1.55; max-width: 32em; }

.steps__view { position: sticky; top: calc(var(--header-h) + 16px); background: var(--ink); border: 1px solid var(--ink); }
.pane img { width: 100%; height: auto; }
.pane[hidden] { display: none; }
.pane.is-active { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; } to { opacity: 1; } }

.results { margin-top: clamp(56px, 8vw, 104px); }
.results__title { font-size: 1.1rem; font-weight: 600; padding-bottom: 14px; border-bottom: 3px solid var(--red); display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-top: 1px solid var(--alt-line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 28px 20px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--alt-line); }
.stat .num { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat dt { margin-top: 10px; font-size: 1rem; font-weight: 500; color: var(--alt-mute); }
.stat:last-child .num { color: var(--alt-red); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.col h3 { font-size: 1.05rem; font-weight: 700; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--alt-fg); }
.col li { padding: 6px 0; color: var(--alt-mute); font-size: .98rem; line-height: 1.55; }
.col li b { color: var(--alt-fg); font-weight: 600; }
.col__impact { margin-top: 18px; font-weight: 600; color: var(--alt-red); line-height: 1.5; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.vid video { width: 100%; background: #000; border: 1px solid var(--base-line); }
.vid--wide video { aspect-ratio: 16 / 9; }
.vid--tall video { aspect-ratio: 9 / 16; object-fit: cover; }
.vid figcaption { margin-top: 12px; font-size: .95rem; color: var(--base-mute); }
.note { margin-top: 28px; font-size: .9rem; color: var(--base-mute); }

/* ---------- Contacto ---------- */
.contact { background: var(--band-bg); color: var(--band-fg); padding: var(--pad) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.contact h2 { font-weight: 700; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.contact__lead { margin-top: 20px; font-size: 1.2rem; max-width: 28em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.person { display: grid; gap: 6px; background: var(--person-bg); color: var(--person-fg); padding: clamp(28px, 4vw, 44px); border-top: 6px solid var(--person-rule); }
.person__name { font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.person__role { font-family: var(--f-serif); letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; color: var(--person-mute); }
.person__tel { margin-top: 18px; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 600; text-decoration: none; letter-spacing: -.01em; width: fit-content; border-bottom: 3px solid var(--person-accent); }
.person__tel:hover { opacity: .75; }
.person__note { color: var(--person-mute); font-size: .95rem; }
.person__mail { margin-top: 14px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; font-size: 1rem; font-weight: 500; text-underline-offset: 4px; }
.person__mail:hover { opacity: .75; }

/* ---------- Pie ---------- */
.foot { background: var(--base-bg); color: var(--base-fg); padding: clamp(40px, 6vw, 72px) 0; }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot img { width: 150px; height: auto; }
.foot__txt { text-align: right; color: var(--base-mute); font-size: .92rem; }
.foot__mail { color: var(--base-fg); text-underline-offset: 4px; }
.foot__motto { font-family: var(--f-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--base-fg); font-size: 1rem; margin-bottom: 8px; }

/* ---------- Transición suave al cambiar de estilo ---------- */
body, .top, .intro, .sec--base, .case__body, .case__band, .contact, .foot, .person, .what__item {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1020px) {
  :root { --header-h: 76px; }
  .top__brand img { height: 48px; }
  .top__nav { display: none; }
  .top__tools { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .stage { margin-bottom: 8px; }
  .steps { grid-template-columns: 1fr; }
  .steps__view { position: static; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--alt-line); }
  .cols { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; }
  .vid--tall { max-width: 380px; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__txt { text-align: left; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .top__brand img { height: 40px; }
  .themes { display: none; }
  .top__row { gap: 10px; }
  .top__tools { gap: 10px; }
  .top__tools .btn { display: none; }
  .themes { gap: 6px; }
  .theme { width: 22px; height: 22px; }
  .banner__actions .btn, .contact__actions .btn { width: 100%; }
  .banner__sound span { display: none; }
  .banner__sound { padding: 0 12px; }
  .banner__down { display: none; }
  .stage { margin-inline: calc(var(--gut) * -1); }
  .stage::before { inset: 10px 0 -10px 0; }
  .stage video { border-left: 0; border-right: 0; }
  .stage__sound span { display: none; }
  .stage__sound { padding: 0 14px; }
  .step { gap: 14px; padding-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner__down svg { animation: none; }
  .pane.is-active { animation: none; }
  body, .top, .intro, .sec--base, .case__body, .case__band, .contact, .foot, .person, .what__item { transition: none; }
}
