/* Tybasoft — hoja de estilos principal (v1)
   Paleta inicial del brief (CLAUDE.md → Identidad visual). Valores a validar. */

:root {
  /* Paleta base */
  --night: #0B1626;
  --carbon: #16181D;
  --ivory: #F7F3EA;
  --white: #FFFFFF;
  --gold: #C8963E;
  --copper: #B5652B;
  --tyba-blue: #0099E9;

  /* Variantes para texto con contraste AA (el azul del logo y el dorado no
     alcanzan 4.5:1 sobre fondos claros). */
  --tyba-blue-ink: #006FAD;   /* enlaces sobre marfil/blanco: 4.9:1 */
  --copper-ink: #9A5420;      /* etiquetas sobre marfil: 5.2:1 */
  --muted: #5A5E66;           /* texto secundario sobre marfil: 5.9:1 */
  --muted-on-night: #AEB6C2;  /* texto secundario sobre azul noche: 8.9:1 */
  --line: #E4DCCB;
  --ivory-deep: #EFE8D9;

  /* Tipografía */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espaciado y forma */
  --gutter: 16px;
  --container: 1160px;
  --section-y: clamp(56px, 9vw, 112px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 22, 38, .06), 0 8px 24px rgba(11, 22, 38, .06);
  --header-h: 68px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--carbon);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--tyba-blue-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

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

main:focus { outline: none; }

ul { padding-left: 1.2em; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--night);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

.btn-primary { background: var(--night); color: var(--white); }
.btn-primary:hover { background: #18294a; }

.btn-secondary { background: transparent; color: var(--night); border-color: var(--night); }
.btn-secondary:hover { background: var(--night); color: var(--white); }

/* Sobre fondos oscuros */
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #d9a84f; }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35em;
}
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

/* Logo compuesto: símbolo + nombre en SVG.
   --logo-h: alto del símbolo. --logo-ratio: alto del símbolo / alto de las mayúsculas.
   Separación: 0,3 veces el alto del símbolo. */
.logo {
  --logo-h: 32px;
  --logo-ratio: 1.8;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--logo-h) * .3);
}
.logo picture { display: block; line-height: 0; flex-shrink: 0; }
.logo-symbol { display: block; height: var(--logo-h); width: auto; }
.brand-name { display: block; flex-shrink: 0; height: calc(var(--logo-h) / var(--logo-ratio)); width: auto; }
.brand-tyba { fill: var(--tyba-blue); }
.brand-soft { fill: var(--logo-soft, var(--night)); }
.logo--negativo { --logo-soft: var(--white); }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
@media (min-width: 720px) { .site-header .logo { --logo-h: 40px; } }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--carbon);
  font: 600 .95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 24px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li > a,
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--carbon);
  font: 500 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.nav-list > li > a:hover, .sub-toggle:hover { background: var(--ivory-deep); }
.nav-list > li > a[aria-current="page"],
.sub-toggle[data-current] {
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
}

.has-sub { position: relative; }
.chevron { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.subnav {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.subnav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--carbon);
  text-decoration: none;
}
.subnav a:hover { background: var(--ivory); }
.subnav strong { display: block; font-family: var(--font-display); font-weight: 600; }
.subnav span { display: block; font-size: .9rem; color: var(--muted); }

/* Con JS: el submenú es un desplegable. Sin JS se muestra siempre (ver móvil). */
@media (min-width: 900px) {
  .js .subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    width: 300px;
    display: none;
  }
  .js .sub-toggle[aria-expanded="true"] + .subnav { display: block; }
  html:not(.js) .has-sub .sub-toggle { display: none; }
  html:not(.js) .subnav { display: flex; padding: 0; border: 0; box-shadow: none; background: none; }
  html:not(.js) .subnav span { display: none; }
}

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(11, 22, 38, .08);
  }
  .js .site-nav.is-open { display: flex; }

  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .sub-toggle .chevron { display: none; }

  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a, .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.05rem; }
  .nav-list > li > a[aria-current="page"], .sub-toggle[data-current] { box-shadow: inset 3px 0 0 var(--gold); }
  .subnav { margin: 4px 0 8px; box-shadow: none; }
  .js .subnav { display: none; }
  .js .sub-toggle[aria-expanded="true"] + .subnav { display: block; }
  .nav-cta { width: 100%; }
}

/* ---------- Secciones ---------- */

.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--deep { background: var(--ivory-deep); }
.section--night { background: var(--night); color: var(--white); }
.section--night a:not(.btn) { color: #7CCBF5; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--copper-ink);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section--night .eyebrow, .on-dark .eyebrow { color: var(--gold); }

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.section--night .lead { color: var(--muted-on-night); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 720px) and (max-width: 979px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.card h3 { margin-bottom: .4em; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; }
.card li + li { margin-top: 6px; }
.section--night .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.section--night .card p, .section--night .card li { color: var(--muted-on-night); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li + li { margin-top: 10px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ivory-deep);
  color: var(--carbon);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: middle;
}
.tag--soon { background: #FDE9C8; color: #6B3A10; }

/* Separador: rombos → puntos → circuito. Se usa poco: Inicio y Nosotros. */
.divider { color: var(--gold); padding-block: 8px; }
.divider svg { width: min(420px, 80%); margin-inline: auto; height: auto; }

/* ---------- Hero de Inicio ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 82vh, 760px);
  padding-block: 72px;
  overflow: hidden;
  text-align: center;
}
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Capa para asegurar contraste del titular sobre la textura */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 46% 60% at 50% 50%, rgba(247, 243, 234, .9) 0%, rgba(247, 243, 234, .55) 60%, rgba(247, 243, 234, 0) 100%);
}
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(247, 243, 234, .45) 0%, rgba(247, 243, 234, .86) 28%, rgba(247, 243, 234, .86) 78%, rgba(247, 243, 234, .45) 100%); }
}
.hero-content { max-width: 720px; margin-inline: auto; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-inline: auto; margin-bottom: 32px; color: #3E424A; }
.hero .btn-row { justify-content: center; }

/* ---------- Banda oscura con imagen ---------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}
.band-bg, .band-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 22, 38, .94) 0%, rgba(11, 22, 38, .82) 45%, rgba(11, 22, 38, .3) 100%);
}
@media (max-width: 640px) {
  .band::after { background: rgba(11, 22, 38, .82); }
}
.band-content { max-width: 560px; }
.band h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.band p { color: #D5DBE3; font-size: 1.15rem; }
.band .link-arrow { color: var(--gold); margin-top: 8px; }

/* ---------- Tarjetas de producto ---------- */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; margin: 0; }
.product-card h3 a { color: inherit; text-decoration: none; }
/* Toda la tarjeta es clicable sin anidar enlaces */
.product-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-card .tagline { font-size: 1.15rem; color: var(--carbon); font-weight: 600; margin: 0; }
.product-card p { color: var(--muted); }
.product-card .link-arrow { margin-top: auto; color: var(--tyba-blue-ink); }
.product-card .accent {
  height: 4px;
  width: 56px;
  border-radius: 4px;
  background: var(--gold);
}
.product-card--albumy .accent { background: linear-gradient(90deg, #24609F, #A8D8EC, #F7E6A6, #F4A6AC); }
.product-card .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.product-card .albumy-mark { width: 88px; height: auto; }

/* ---------- Cifras ---------- */

.stats {
  display: grid;
  gap: 32px;
  margin: 0;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 2px solid var(--gold); padding-top: 18px; }
.stat dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.stat dd { margin: 0; color: var(--muted); max-width: 30ch; }
.section--night .stat dt { color: var(--white); }
.section--night .stat dd { color: var(--muted-on-night); }

/* ---------- Franja de clientes y aliados (nombres en texto mientras llegan los logos) ---------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #3E424A;
  text-align: center;
}
.logo-strip small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); }
.strip-title {
  text-align: center;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.strip-title + .logo-strip { margin-bottom: 40px; }
.logo-strip:last-child { margin-bottom: 0; }

/* ---------- CTA final ---------- */

.cta {
  text-align: center;
  background: var(--night);
  color: var(--white);
}
.cta .eyebrow { color: var(--gold); }
.cta a:not(.btn) { color: #7CCBF5; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta p { color: var(--muted-on-night); max-width: 52ch; margin-inline: auto; margin-bottom: 28px; }
.cta .btn-row { justify-content: center; }
.cta .cta-mail { margin-top: 20px; font-size: .95rem; }

/* ---------- Encabezado de páginas internas ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px);
}
.page-hero-bg, .page-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 243, 234, .97) 0%, rgba(247, 243, 234, .9) 50%, rgba(247, 243, 234, .35) 100%);
}
@media (max-width: 640px) {
  .page-hero--image::after { background: rgba(247, 243, 234, .88); }
}
.page-hero .lead { margin-bottom: 28px; }
.page-hero h1 { max-width: 18ch; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.wordmark::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--tyba-blue);
  transform: rotate(45deg);
}

/* ---------- Talentyba ---------- */

.apps-diagram {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--night);
  border-radius: var(--radius);
  color: var(--white);
}
.apps-diagram .portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(200, 150, 62, .5);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
}
.apps-diagram .portal span { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--muted-on-night); }
.apps-diagram .shared {
  font-size: .85rem;
  color: var(--muted-on-night);
  text-align: center;
  position: relative;
}
.apps-diagram .apps { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.apps-diagram .app {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border-top: 3px solid var(--tyba-blue);
  text-align: center;
}
.apps-diagram .app:nth-child(2) { border-top-color: var(--gold); }
.apps-diagram .app:nth-child(3) { border-top-color: var(--copper); }
.apps-diagram .app strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.apps-diagram .app span { font-size: .8rem; color: var(--muted-on-night); }
.apps-diagram .lines { height: 22px; color: rgba(200, 150, 62, .7); }
.apps-diagram .lines svg { width: 100%; height: 22px; }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.app-card { border-top: 4px solid var(--tyba-blue); }
.app-card:nth-child(2) { border-top-color: var(--gold); }
.app-card:nth-child(3) { border-top-color: var(--copper); }
.app-card .area {
  display: block;
  margin-bottom: 6px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper-ink);
}

.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

.case {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
@media (min-width: 900px) { .case { grid-template-columns: 1fr 2fr; } }
.case h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; }
.case dl { margin: 0; display: grid; gap: 18px; }
.case dt { font-weight: 600; margin-bottom: 4px; }
.case dd { margin: 0; color: var(--muted); }

.details { display: grid; gap: 16px; margin: 0; }
@media (min-width: 720px) { .details { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.details > div { padding-top: 14px; border-top: 1px solid var(--line); }
.details dt { font-weight: 600; margin-bottom: 4px; }
.details dd { margin: 0; color: var(--muted); }

/* ---------- Albumy: identidad propia dentro del marco Tybasoft ---------- */

.theme-albumy {
  --al-blue: #24609F;
  --al-sky: #A8D8EC;
  --al-sky-soft: #E6F4FB;
  --al-yellow: #F7E6A6;
  --al-yellow-soft: #FDF6E3;
  --al-pink: #F4A6AC;
  --al-ink: #1B3A5E;
}
.theme-albumy .al-section { padding-block: var(--section-y); }
.theme-albumy .al-sky { background: var(--al-sky-soft); }
.theme-albumy .al-cream { background: var(--al-yellow-soft); }
.theme-albumy .al-white { background: var(--white); }
.theme-albumy .eyebrow { color: var(--al-blue); }
.theme-albumy h1, .theme-albumy h2 { color: var(--al-ink); }
.theme-albumy .card { border-radius: 20px; }

.al-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
  text-align: center;
  padding-block: clamp(48px, 8vw, 96px) 0;
}
.al-hero .al-logo { width: clamp(120px, 16vw, 168px); margin: 0 auto 18px; }
.al-hero h1 { max-width: 20ch; margin-inline: auto; }
.al-hero .lead { margin-inline: auto; margin-bottom: 28px; }
.al-hero .btn-row { justify-content: center; }
.al-hero-art { margin-top: 32px; }
.al-hero-art img { width: 100%; max-width: 760px; margin-inline: auto; }
@media (min-width: 980px) {
  .al-hero { padding-block: 0; min-height: 600px; display: grid; align-items: center; }
  .al-hero-art { margin: 0; position: absolute; inset: 0; z-index: -1; }
  .al-hero-art img { max-width: none; width: 100%; height: 100%; object-fit: cover; }
  .al-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 34% 62% at 50% 50%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .8) 60%, rgba(255, 255, 255, 0) 100%);
  }
  .al-hero-content { max-width: 600px; margin-inline: auto; padding-block: 48px; }
}
.al-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }

.btn-albumy { background: var(--al-blue); color: var(--white); }
.btn-albumy:hover { background: #1B4C80; }
.btn-albumy-outline { background: var(--white); color: var(--al-blue); border-color: var(--al-blue); }
.btn-albumy-outline:hover { background: var(--al-blue); color: var(--white); }

.al-steps { display: grid; gap: 18px; counter-reset: paso; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .al-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .al-steps { grid-template-columns: repeat(4, 1fr); } }
.al-steps li {
  counter-increment: paso;
  padding: 24px;
  background: var(--white);
  border-radius: 20px;
  border: 2px solid var(--al-sky);
}
.al-steps li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--al-yellow);
  color: var(--al-ink);
  font-family: var(--font-display);
  font-weight: 700;
}
.al-steps h3 { color: var(--al-ink); }
.al-steps p { color: var(--muted); margin: 0; }

/* Dos caminos, lado a lado */
.paths { display: grid; gap: 24px; }
@media (min-width: 900px) { .paths { grid-template-columns: 1fr 1fr; } }
.path {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: 24px;
  border: 2px solid var(--al-sky);
}
.path--fans { border-color: var(--al-pink); }
.path-head { padding: 28px 28px 0; }
.path-head .path-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--al-sky-soft);
  color: var(--al-blue);
}
.path--fans .path-head .path-icon { background: #FDE8EA; color: #B23A4A; }
.path-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--al-ink); }
.path-head .tag { background: var(--al-sky-soft); color: var(--al-ink); }
.path--fans .path-head .tag { background: #FDE8EA; }
.path-shot { margin: 20px 28px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.path-shot figcaption { padding: 8px 12px; font-size: .85rem; color: var(--muted); background: var(--ivory); }
.path-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.path-body dl { margin: 0; display: grid; gap: 16px; }
.path-body dt { font-weight: 600; color: var(--al-ink); margin-bottom: 2px; }
.path-body dd { margin: 0; color: var(--muted); }
.path-body .btn { margin-top: auto; align-self: flex-start; }

.al-feature { background: var(--white); border-radius: 20px; padding: 24px; border: 1px solid #D6E9F3; }
.al-feature h3 { color: var(--al-ink); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.al-feature p { color: var(--muted); margin: 0; }

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.phones figure { margin: 0; }
.phones img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(27, 58, 94, .18);
}
.phones figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }

.al-cta { background: var(--al-ink); color: var(--white); text-align: center; }
.al-cta h2 { color: var(--white); }
.al-cta p { color: #D6E4F2; max-width: 56ch; margin-inline: auto; }
.al-cta .btn-row { justify-content: center; margin-top: 28px; }
.al-cta .btn-albumy { background: var(--al-yellow); color: var(--al-ink); }
.al-cta .btn-albumy:hover { background: #FBEFC3; }
.al-cta a:not(.btn) { color: var(--al-sky); }
.al-cta .small { font-size: .95rem; margin-top: 24px; }

/* ---------- Nosotros ---------- */

/* "El origen de nuestro nombre": personaje a un lado y texto al otro, sobre el
   fondo 03 muy suavizado (se ve como textura; el texto va sobre marfil casi plano). */
.origin {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ivory);
}
.origin-bg { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.origin-bg img { width: 100%; height: 100%; object-fit: cover; }
.origin-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 243, 234, .55), rgba(247, 243, 234, .9) 55%);
}
.origin-content {
  display: grid;
  gap: 32px;
  padding-block: var(--section-y);
}
.origin-figure img { display: block; width: 240px; height: auto; margin-inline: auto; }
.origin-text { max-width: 60ch; }
@media (min-width: 900px) {
  .origin-content {
    grid-template-columns: minmax(360px, 420px) 1fr;
    align-items: center;
    gap: clamp(48px, 6vw, 88px);
  }
  .origin-figure img { width: 100%; max-width: 420px; }
}
.origin blockquote {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.note { font-size: .9rem; color: var(--muted); }

.prose { max-width: 68ch; }
.prose p { font-size: 1.1rem; }

/* ---------- Contacto ---------- */

.contact-card { display: flex; flex-direction: column; gap: 8px; }
.contact-card h2 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.contact-card .mail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  word-break: break-word;
}

/* ---------- Política de privacidad ---------- */

.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2em; }
.legal p, .legal li { max-width: 72ch; }
.legal li + li { margin-top: 6px; }
.legal .updated { color: var(--muted); }

/* Datos pendientes: visibles a propósito para que no se publique sin completarlos */
.todo {
  background: #FFF1B8;
  color: #5A4300;
  padding: 0 4px;
  border-radius: 4px;
  outline: 1px dashed #B58900;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--muted-on-night);
  padding-top: clamp(48px, 7vw, 80px);
  font-size: .95rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer-brand .logo { --logo-h: 44px; margin-bottom: 16px; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-mails span { display: block; font-size: .85rem; }
.footer-mails a { word-break: break-word; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.notfound .btn-row { justify-content: center; margin-top: 24px; }
