:root {
  --papel: #f3ecdf;
  --tinta: #1c1612;
  --cobre: #9a3f18;
  --cobre-claro: #e7a27a;
  --linea: rgba(28, 22, 18, 0.14);
  --sombra: 0 24px 60px rgba(20, 14, 8, 0.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 100% -10%, #f6e4cf 0%, transparent 55%),
    radial-gradient(700px 420px at -10% 18%, #e5efe4 0%, transparent 50%),
    var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.35rem); max-width: 12ch; margin: 0.2rem 0 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0.25rem 0 0.8rem; max-width: 16ch; }
h3 { font-size: 1.7rem; margin: 0 0 0.45rem; }
p { margin: 0 0 0.8rem; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; }
.sr, .saltar {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.saltar:focus {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.6rem 0.9rem;
  background: var(--tinta);
  color: var(--papel);
  z-index: 30;
  border-radius: 999px;
}

.ancho { width: min(1120px, calc(100% - 8vw)); margin-inline: auto; }
.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobre);
}
.lead { max-width: 38ch; font-size: 1.15rem; }

.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 236, 223, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.barra { display: flex; align-items: center; justify-content: space-between; min-height: 4.4rem; gap: 1rem; }
.marca {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.menu { display: flex; gap: 1.2rem; }
.menu a { text-decoration: none; font-weight: 500; font-size: 0.98rem; }

.hero { padding: 4.2rem 0 3.6rem; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 3.5rem; align-items: end; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--tinta);
  text-decoration: none;
  font-weight: 600;
}
.btn-lleno { background: var(--tinta); color: #f7f1e6; }
.btn-lleno:hover { background: var(--cobre); border-color: var(--cobre); }
.btn-linea { background: transparent; }
.btn-linea:hover { background: rgba(28, 22, 18, 0.05); }

.indice-titulo { margin-bottom: 0.35rem; }
.indice-trabajos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.indice-trabajos button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--linea);
  text-align: left;
}
.indice-trabajos button:hover,
.indice-trabajos button[aria-current="true"] { color: var(--cobre); }
.indice-trabajos span { font-variant-numeric: tabular-nums; font-size: 0.82rem; color: var(--cobre); }

.teatro {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(154, 63, 24, 0.28), transparent 55%),
    #14110e;
  color: #f6f0e6;
  padding: 4.5rem 0 3.5rem;
}
.teatro h2, .teatro h3 { color: #f6f0e6; }
.teatro h2 { max-width: 18ch; }
.kicker-claro { color: var(--cobre-claro); }
.bajada { max-width: 46ch; color: #d9cbbd; }
.teatro :focus-visible { outline-color: var(--cobre-claro); }
section { scroll-margin-top: 5rem; }

.progreso { height: 2px; background: rgba(255, 255, 255, 0.12); margin: 1.6rem 0 1.2rem; }
.progreso span { display: block; height: 100%; width: 0; background: var(--cobre-claro); }
.is-playing .progreso span { animation: llenar 7s linear; }
@keyframes llenar { to { width: 100%; } }

.escenario { position: relative; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.slide.is-on { opacity: 1; visibility: visible; transform: none; z-index: 1; }
html:not(.no-js) .slide { transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s; }
.no-js .slides { display: flex; flex-direction: column; gap: 3rem; }
.no-js .slide { opacity: 1; visibility: visible; transform: none; position: relative; }

.marco { min-height: 540px; display: grid; place-items: center; }
.device {
  width: min(300px, 86vw);
  height: 560px;
  padding: 12px;
  border-radius: 36px;
  background: #221c17;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.45);
  position: relative;
}
.device:not(.browser)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 18px;
  background: #221c17;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.device.browser { width: min(520px, 100%); height: auto; border-radius: 18px; padding: 0; overflow: hidden; }
.browser .screen { height: auto; }
.screen { height: 100%; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.browser .screen { border-radius: 0; }

.relato { position: relative; padding: 1rem 0 1rem 0.2rem; }
.numeral {
  position: absolute;
  top: -1.4rem;
  right: 0;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.8;
  color: rgba(246, 240, 230, 0.07);
}
.oficio { margin: 0 0 0.35rem; color: var(--cobre-claro); font-weight: 600; font-size: 0.92rem; }
.relato h3 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.relato p:last-of-type { max-width: 36ch; color: #efe4d6; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.etiquetas li {
  border: 1px solid rgba(231, 162, 122, 0.45);
  color: #f3d7c4;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
}

.controles { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.4rem; }
.controles button {
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 230, 0.28);
  background: transparent;
  color: #f6f0e6;
  padding: 0 0.95rem;
}
.controles button:hover { border-color: var(--cobre-claro); color: var(--cobre-claro); }
.puntos { display: flex; justify-content: center; gap: 0.15rem; flex: 1; }
.puntos button { width: 2.4rem; padding: 0; position: relative; }
.puntos button::after {
  content: "";
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin: auto;
  border-radius: 99px;
  background: rgba(246, 240, 230, 0.35);
}
.puntos button[aria-current="true"]::after { width: 1.35rem; background: var(--cobre-claro); }

.am { background: #07140f; color: #f7f1e4; padding: 2.2rem 1.05rem 1rem; font-family: var(--serif); }
.am-marca { font-size: 2rem; font-style: italic; margin: 0.4rem 0 0.35rem; color: #e0c488; }
.am-invite, .am-linea, .am-pie { font-family: var(--sans); font-size: 0.82rem; color: #c9d4cb; }
.am-linea { color: #e0c488; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.am-opcion { display: flex; flex-direction: column; gap: 0.1rem; border-top: 1px solid rgba(224, 196, 136, 0.35); padding: 0.7rem 0; }
.am-opcion b { font-size: 1.15rem; font-weight: 500; }
.am-opcion span, .am-pie { font-family: var(--sans); font-size: 0.78rem; color: #8ea396; }
.am-pie { margin-top: auto; }

.pa { background: #f4fbf6; color: #1b4332; }
.pa-barra { display: flex; justify-content: space-between; align-items: center; background: #1b4332; color: #f4fbf6; padding: 1.5rem 0.9rem 0.7rem; font-weight: 650; }
.pa-barra span { font-weight: 500; font-size: 0.78rem; opacity: 0.8; }
.pa-mapa {
  position: relative;
  height: 168px;
  margin: 0.7rem;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(180deg, #d7e8d8, #8fbf98);
}
.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: #f68620;
  transform: rotate(-45deg);
  box-shadow: 0 4px 0 rgba(27, 67, 50, 0.15);
}
.pin-b { background: #1b4332; }
.pa-comuna {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.pa-ficha { margin: 0 0.7rem 0.55rem; background: #fff; border: 2px solid #1b4332; border-radius: 14px; padding: 0.65rem 0.75rem; }
.pa-ficha b, .pa-ficha span { display: block; }
.pa-ficha span { font-size: 0.78rem; color: #2d6a4f; }
.pa-ficha.suave { background: #e7f5ea; }

.en { background: #f6f1e6; color: #1a2c1e; }
.chrome { display: flex; align-items: center; gap: 0.35rem; height: 34px; padding: 0 0.7rem; background: #efe8d8; color: #6d6458; font-size: 0.75rem; }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: #d9cbb8; display: block; }
.chrome span { margin-left: 0.4rem; }
.en-cuerpo { padding: 0.85rem 0.95rem 1rem; }
.en-sello { display: inline-block; background: #134e2d; color: #f6f1e6; border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.75rem; font-weight: 600; }
.en h4 { margin: 0.55rem 0 0.4rem; font-size: 1.55rem; }
.en ul { list-style: none; margin: 0; padding: 0; }
.en li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.42rem 0; border-bottom: 1px solid #e4d9c6; font-size: 0.92rem; }
.en li b { white-space: nowrap; }
.en small { display: block; color: #6d6458; font-size: 0.72rem; }
.en-corte { margin: 0.7rem 0 0.45rem; font-size: 0.78rem; color: #3d4a3e; }
.en-pago { margin: 0; background: #134e2d; color: #f6f1e6; text-align: center; border-radius: 999px; padding: 0.45rem 0.6rem; font-size: 0.85rem; font-weight: 600; }

.su { background: linear-gradient(180deg, #5aa7ea 0%, #d4e7f8 46%, #e7f6df 100%); color: #0a246a; font-family: Tahoma, "Segoe UI", sans-serif; }
.chrome-su { background: #245edc; color: #fff; }
.chrome-su i { background: rgba(255,255,255,.45); }
.su-cuerpo { padding: 0.8rem 0.9rem; }
.su-marca { font-weight: 700; font-size: 1.25rem; margin: 0 0 0.45rem; }
.su-marca span { color: #1a5c0c; }
.su-tabs { display: flex; gap: 0.4rem; font-size: 0.78rem; margin-bottom: 0.7rem; }
.su-tabs b { background: #268014; color: #fff; border-radius: 8px; padding: 0.2rem 0.5rem; }
.su-tabs span { background: rgba(255,255,255,.7); border-radius: 8px; padding: 0.2rem 0.5rem; }
.su-paso { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.92rem; }
.su-paso em { font-style: normal; background: #f5b800; color: #0a246a; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; }
.su-comuna { background: #fff; border: 1px solid #7aa3d4; border-radius: 8px; padding: 0.35rem 0.55rem; font-size: 0.85rem; }
.su-resultado { background: #fff; border-radius: 10px; padding: 0.5rem 0.65rem; margin-top: 0.45rem; box-shadow: 0 2px 8px rgba(10, 36, 106, 0.12); }
.su-resultado b, .su-resultado span { display: block; }
.su-resultado span { font-size: 0.78rem; color: #1a468c; }
.su-resultado.claro { background: #e3f5d4; }

.cu { background: #f2f2f7; color: #1c1c1e; padding: 1.7rem 0.85rem 0.7rem; font-family: Verdana, Geneva, sans-serif; }
.cu-marca { margin: 0.35rem 0 0; color: #005bbb; font-weight: 700; font-size: 0.95rem; }
.cu h4 { margin: 0.15rem 0 0.7rem; font-family: Verdana, Geneva, sans-serif; font-size: 2rem; letter-spacing: 0; }
.cu-fila { display: flex; gap: 0.7rem; align-items: center; background: #fff; border-radius: 12px; padding: 0.7rem 0.75rem; margin-bottom: 0.45rem; }
.cu-fila b { color: #005bbb; min-width: 3.2rem; font-size: 0.85rem; }
.cu-nota { font-size: 0.78rem; color: #3a3a3c; margin-top: 0.4rem; }
.cu-nav { margin-top: auto; display: flex; justify-content: space-between; background: #fff; border-radius: 14px; padding: 0.65rem 0.8rem; font-size: 0.75rem; }
.cu-nav b { color: #005bbb; }

.je { background: #04120f; color: #e8f4f1; }
.chrome-je { background: #0b4f40; color: #e8f4f1; }
.chrome-je i { background: #2eb388; }
.je-cuerpo { padding: 0.75rem 0.85rem 0.9rem; }
.je header { display: flex; justify-content: space-between; align-items: baseline; color: #2eb388; font-weight: 700; letter-spacing: 0.08em; }
.je header small { color: #8fd4bc; letter-spacing: 0; font-weight: 500; }
.je-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 0.6rem 0; }
.je-grid p { margin: 0; background: #0b4f40; border-radius: 8px; padding: 0.45rem 0.5rem; }
.je-grid b, .je-grid span { display: block; }
.je-grid span { font-size: 0.72rem; color: #8fd4bc; }
.je-grid .alerta { outline: 1px solid #f87171; }
.je-grid .alerta span { color: #fca5a5; }
.je-barra { display: flex; align-items: flex-end; gap: 0.35rem; height: 54px; margin: 0.3rem 0 0.55rem; }
.je-barra i { display: block; flex: 1; background: #2eb388; border-radius: 3px 3px 0 0; }
.je-barra i:nth-child(1) { height: 40%; }
.je-barra i:nth-child(2) { height: 62%; }
.je-barra i:nth-child(3) { height: 90%; background: #f87171; }
.je-barra i:nth-child(4) { height: 48%; }
.je-barra i:nth-child(5) { height: 55%; }
.je-aviso { margin: 0; font-size: 0.8rem; color: #fca5a5; }

.py { background: #0d1230; color: #e7e9ff; }
.chrome-py { background: #1a237e; color: #e7e9ff; }
.chrome-py i { background: #9fa8da; }
.py-cuerpo { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 240px; }
.py aside { padding: 0.7rem 0.65rem; border-right: 1px solid rgba(159, 168, 218, 0.25); }
.py aside b { display: block; margin-bottom: 0.45rem; color: #9fa8da; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.py aside p { margin: 0 0 0.35rem; padding: 0.4rem 0.45rem; border-radius: 8px; font-size: 0.86rem; }
.py aside p.activa { background: rgba(159, 168, 218, 0.18); }
.py small { display: block; color: #b7bee8; font-size: 0.72rem; }
.py-mapa { position: relative; background: radial-gradient(circle at 70% 30%, #24306e, #10163a 70%); }
.py-mapa { overflow: hidden; }
.py-mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.py-mapa path { fill: none; stroke: #9fa8da; stroke-width: 2; }
.py-mapa circle { fill: #f3ecdf; }
.py-mapa span { position: absolute; left: 0.6rem; bottom: 0.6rem; font-size: 0.75rem; color: #d5dbff; }

.bloque { padding: 4.6rem 0; }
.bloque-suave { background: rgba(255, 255, 255, 0.35); border-block: 1px solid var(--linea); }
.oficios { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.oficios article { padding: 1.4rem 1.3rem 1.5rem; border: 1px solid var(--linea); border-radius: 18px; background: rgba(255, 252, 246, 0.55); }
.oficios .num, .pasos span { font-family: var(--serif); font-style: italic; color: var(--cobre); font-size: 1.4rem; }
.pasos { list-style: none; margin: 1.4rem 0 0; padding: 0; max-width: 720px; }
.pasos li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.8rem; padding: 1.1rem 0; border-top: 1px solid var(--linea); }
.pasos li:last-child { border-bottom: 1px solid var(--linea); }
.pasos h3 { font-size: 1.45rem; }

.contacto-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.correo { font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.correo a { color: var(--cobre); }
form { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  border: 1.5px solid rgba(28, 22, 18, 0.25);
  background: rgba(255, 252, 246, 0.8);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font-weight: 400;
}
textarea { resize: vertical; min-height: 8rem; }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--cobre); }
.aviso { font-size: 0.92rem; color: var(--cobre); }

.pie { border-top: 1px solid var(--linea); padding: 1.3rem 0 1.6rem; color: #5c534b; font-size: 0.92rem; }
.pie p { margin: 0; }

@media (max-width: 860px) {
  .hero-grid, .slide, .oficios, .contacto-grid, .py-cuerpo { grid-template-columns: 1fr; }
  .hero { padding-top: 2.4rem; }
  h1 { max-width: 14ch; }
  .indice-trabajos { display: flex; gap: 0.35rem; overflow: auto; border: 0; padding-bottom: 0.4rem; }
  .indice-trabajos li { flex: 0 0 auto; }
  .indice-trabajos button { width: auto; border: 1px solid var(--linea); border-radius: 999px; padding: 0.45rem 0.75rem; background: rgba(255,252,246,.7); }
  .marco { min-height: 0; }
  .device:not(.browser) { height: 520px; }
  .relato { padding-top: 0; }
  .numeral { top: -0.2rem; }
  .controles { flex-wrap: wrap; }
  .puntos { order: -1; flex-basis: 100%; justify-content: flex-start; }
  .py aside { border-right: 0; border-bottom: 1px solid rgba(159, 168, 218, 0.25); }
  .py-mapa { min-height: 140px; }
  .menu { gap: 0.75rem; font-size: 0.92rem; }
}

@media (max-width: 560px) {
  .barra { flex-wrap: wrap; min-height: 3.6rem; padding: 0.45rem 0 0.55rem; }
  .menu { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .is-playing .progreso span { transition: none; animation: none; }
}
