/* Dojo Master: landing y páginas legales. Sin frameworks ni recursos externos. */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #e8161e;
  --red-strong: #c00010;
  --ink: #1d1b1c;
  --ink-soft: #57504f;
  --bg: #fff8f7;
  --bg-alt: #fdeeec;
  --card: #ffffff;
  --line: #ecdcda;
  --dark: #121214;
  --dark-2: #2b2b2f;
  --radius: 18px;
  --shadow: 0 18px 50px rgb(18 18 20 / 0.16);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red: #ff3b42;
    --red-strong: #ff6b6f;
    --ink: #f3eeed;
    --ink-soft: #bdb4b2;
    --bg: #161416;
    --bg-alt: #1f1c1e;
    --card: #242023;
    --line: #3a3436;
    --shadow: 0 18px 50px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red-strong);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
}

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(18 18 20 / 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: #e9e5e4;
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover {
  color: #fff;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: #e8161e;
  color: #fff;
}
.btn-primary:hover {
  background: #c9101a;
}
.btn-ghost {
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / 0.35);
}
.btn-small {
  padding: 8px 16px;
  font-size: 15px;
}
.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Portada */
.hero {
  background: radial-gradient(120% 90% at 85% 10%, #3a1a1c 0%, transparent 55%),
    linear-gradient(180deg, var(--dark-2), var(--dark));
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.hero-logo {
  width: 120px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: #ff3b42;
}
.hero .lead {
  font-size: 20px;
  color: #d6d0cf;
  max-width: 34ch;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 14px;
  color: #a9a2a1;
}
.hero-shot {
  align-self: end;
  margin-bottom: -60px;
}

/* Marco de tablet */
.tablet {
  background: #0b0b0c;
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow), inset 0 0 0 2px #2c2c30;
}
.tablet img {
  border-radius: 14px;
  width: 100%;
}
.tablet.portrait {
  border-radius: 30px;
}

/* Secciones */
section {
  padding: 96px 0;
}
.hero + section {
  padding-top: 140px;
}
.section-alt {
  background: var(--bg-alt);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-strong);
  margin-bottom: 10px;
}
.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 19px;
  margin: 0;
}

/* Funciones */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgb(232 22 30 / 0.1);
  color: var(--red);
  margin-bottom: 16px;
}
.feature .ico svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.feature h3 {
  font-size: 20px;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
}

/* Bloques con captura */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}
.showcase + .showcase {
  margin-top: 96px;
}
.showcase.reverse .showcase-text {
  order: 2;
}
.showcase h2 {
  font-size: clamp(26px, 3vw, 36px);
}
.showcase p {
  color: var(--ink-soft);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.gallery figure {
  margin: 0;
}
.gallery figcaption {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* Privacidad */
.privacy-band {
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  color: #fff;
}
.privacy-band .section-head p {
  color: #cfc8c7;
}
.privacy-band .eyebrow {
  color: #ff6b6f;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pillar {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  padding: 22px;
  background: rgb(255 255 255 / 0.03);
}
.pillar strong {
  display: block;
  font-size: 19px;
  margin-bottom: 6px;
}
.pillar span {
  color: #bdb6b5;
  font-size: 15px;
}
.privacy-band .more {
  margin-top: 32px;
}
.privacy-band .more a {
  color: #ff8a8e;
}

/* Preguntas */
.faq {
  max-width: 820px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* Llamada final */
.cta {
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.cta p {
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 52ch;
}
.cta .reqs {
  font-size: 14px;
  margin-top: 18px;
}

/* Pie */
.site-footer {
  background: var(--dark);
  color: #a9a2a1;
  font-size: 15px;
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a {
  color: #e9e5e4;
  text-decoration: none;
  margin-right: 18px;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Páginas legales */
.legal-hero {
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  color: #fff;
  padding: 56px 0 44px;
}
.legal-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
}
.legal-hero p {
  color: #cfc8c7;
  margin: 0;
}
.legal {
  padding: 48px 0 80px;
}
.legal .wrap {
  max-width: 820px;
}
.legal h2 {
  font-size: 24px;
  margin-top: 40px;
  padding-top: 8px;
}
.legal h3 {
  font-size: 19px;
  margin-top: 24px;
}
.legal p,
.legal li {
  color: var(--ink);
}
.legal .toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
}
.legal .toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
}
.legal .summary {
  background: var(--bg-alt);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}
.legal code {
  font-size: 0.85em;
  word-break: break-all;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .showcase {
    grid-template-columns: 1fr;
  }
  .showcase.reverse .showcase-text {
    order: 0;
  }
  .hero-shot {
    margin-bottom: -40px;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .nav a:not(.btn) {
    display: none;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding-top: 44px;
  }
  .hero + section {
    padding-top: 100px;
  }
  .features,
  .pillars,
  .gallery {
    grid-template-columns: 1fr;
  }
  .tablet {
    padding: 8px;
    border-radius: 16px;
  }
  .tablet img {
    border-radius: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
