/* Daylory landing · estilos únicos, sin recursos externos.
   Paleta tomada de Daylory-Legal (crema, tinta y violeta de marca). */

:root {
  color-scheme: light dark;
  --canvas: #f5f0e8;
  --surface: #fffdf9;
  --surface-muted: #eee8de;
  --ink: #17151b;
  --muted: #5f5964;
  --accent: #7057d9;
  --accent-strong: #4f38b7;
  --on-accent: #ffffff;
  --border: #dcd4c8;
  --focus: #4f38b7;
  --shadow: 0 20px 60px rgba(39, 31, 26, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #15131a;
    --surface: #1d1a24;
    --surface-muted: #241f2c;
    --ink: #f3efe8;
    --muted: #bdb6c8;
    --accent: #7057d9;
    --accent-strong: #b9a8ff;
    --on-accent: #ffffff;
    --border: #3a3446;
    --focus: #d4c8ff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --canvas: #15131a;
  --surface: #1d1a24;
  --surface-muted: #241f2c;
  --ink: #f3efe8;
  --muted: #bdb6c8;
  --accent: #7057d9;
  --accent-strong: #b9a8ff;
  --on-accent: #ffffff;
  --border: #3a3446;
  --focus: #d4c8ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.03em;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-200%);
  text-decoration: none;
  font-weight: 650;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

/* Cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
}

.lang:hover {
  color: var(--ink);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 680;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.textlink {
  color: var(--accent-strong);
  font-weight: 620;
}

/* Portada */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
}

.accent {
  color: var(--accent);
}

.lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 26px -14px -12px;
  border-radius: 34px;
  background: var(--accent);
  opacity: 0.16;
  transform: rotate(4deg);
  z-index: -1;
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.caption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.intro-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  padding: 22px 0;
  border-block: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.intro-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check {
  color: var(--accent-strong);
  font-weight: 800;
}

/* Secciones */

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 44rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 760;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 720;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.features {
  background: var(--surface-muted);
  border-block: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.feature-grid .card h3 {
  font-size: 1.2rem;
}

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.gallery {
  margin-top: 56px;
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.gallery-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 740;
}

.gallery-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (min-width: 981px) {
  .shots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .shots.shots-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.duo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.duo-art {
  margin: 0;
}

.duo-art img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (min-width: 981px) {
  .duo-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}

.sources {
  padding: 80px 0;
}

.sources-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.sources h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 740;
}

.sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.sources li:first-child {
  border-top: 1px solid var(--border);
}

.sources strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.faq-intro p {
  margin-top: 18px;
  color: var(--muted);
}

details {
  border-bottom: 1px solid var(--border);
}

details:first-child {
  border-top: 1px solid var(--border);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  color: var(--accent-strong);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Llamada final */

.cta {
  padding: 40px 0 96px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 58px 56px;
  border-radius: 30px;
  background: var(--accent);
  color: var(--on-accent);
}

.cta-box h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 780;
}

.cta-box p {
  max-width: 30rem;
  margin-top: 16px;
  color: #ece8ff;
}

.cta-box .btn {
  flex: none;
  background: var(--ink);
  color: var(--canvas);
}

.cta-box .btn:hover {
  background: #000;
  color: #fff;
}

.cta-box .fine {
  color: #e2dcff;
}

/* Pie */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
}

.footer-grid p {
  max-width: 40rem;
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.copy {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    gap: 40px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid,
  .sources-grid {
    gap: 40px;
  }

  .cta-box {
    padding: 46px 40px;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 48px 0 56px;
  }

  h1 {
    max-width: none;
  }

  .hero-art {
    max-width: 270px;
  }

  .intro-line {
    justify-content: flex-start;
    font-size: 0.86rem;
  }

  .section {
    padding: 68px 0;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 24px;
  }

  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sources-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  details p {
    padding-right: 0;
  }

  .cta-box {
    display: block;
    padding: 36px 26px;
    border-radius: 24px;
  }

  .cta-box .btn {
    margin-top: 26px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-end .btn-small {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .textlink {
    align-self: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
