/* Site TC Junior - estilos. Base accesible arriba, componentes debajo. */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/bevietnam-500.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bevietnam-700.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--color-noche); color: #fff;
  font-family: var(--fuente-texto); font-size: var(--texto-base); font-weight: 500; line-height: var(--interlineado);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--fuente-titulos); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; max-width: var(--ancho-lectura); }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--color-foco); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salto { position: absolute; left: -999px; top: 0; background: #fff; color: var(--color-tinta); padding: 0.75rem 1rem; z-index: 100; }
.salto:focus { left: 0.5rem; top: 0.5rem; }
.contenedor { width: min(100% - 2 * var(--margen), var(--ancho-pagina)); margin-inline: auto; }
.icono { width: 1.5rem; height: 1.5rem; flex: none; }

/* ===== Botones y enlaces ===== */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 1.7rem; border-radius: 999px; border: 0;
  background: var(--color-naranja); color: var(--color-tinta);
  font: inherit; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(255, 149, 0, 0.7);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.boton:hover { background: #ffa733; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255, 149, 0, 0.8); }
.boton:active { transform: translateY(0); }
.boton--chico { min-height: 46px; padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.boton--contorno { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(210, 190, 255, 0.55); }
.boton--contorno:hover { background: rgba(210, 190, 255, 0.12); box-shadow: inset 0 0 0 2px #fff; }
.seccion--clara .boton--contorno { color: var(--color-tinta); box-shadow: inset 0 0 0 2px var(--color-tinta); }
.seccion--clara .boton--contorno:hover { background: rgba(27, 16, 51, 0.06); }
.enlace { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; text-underline-offset: 0.3em; text-decoration-thickness: 1px; padding-block: 0.6rem; }
.enlace:hover { text-decoration-thickness: 2px; }
.enlace .icono { width: 1.1rem; height: 1.1rem; transition: transform 0.2s ease; }
.enlace:hover .icono { transform: translateX(4px); }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

/* ===== Encabezado fijo ===== */
.cabecera { position: sticky; top: 0; z-index: 50; padding-block: 0.7rem; transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.cabecera--baja { background: rgba(21, 10, 51, 0.88); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.inicio .cabecera:not(.cabecera--baja) { background: linear-gradient(180deg, rgba(21, 10, 51, 0.75), transparent); }
.cabecera .contenedor { display: flex; align-items: center; gap: 1rem; }
.cabecera__logo { display: block; line-height: 0; border-radius: 6px; margin-right: auto; }
.cabecera__logo img { height: 52px; width: auto; }
.menu-boton {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(210, 190, 255, 0.12); color: #fff; border: 0; cursor: pointer;
}
.menu-boton .cerrar { display: none; }
.menu-abierto .menu-boton .abrir { display: none; }
.menu-abierto .menu-boton .cerrar { display: block; }
.menu { display: none; }
.menu ul { list-style: none; }
.menu a { text-decoration: none; }
.menu a[aria-current="page"] { color: #fff; }
.menu-abierto .menu {
  display: block; position: fixed; inset: 72px 0 auto 0; max-height: calc(100dvh - 72px); overflow: auto;
  background: var(--color-noche); padding: 1rem var(--margen) 2rem; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.8);
  animation: bajar 0.25s ease both;
}
.menu-abierto .menu li a { display: block; padding: 0.95rem 0; font-size: 1.25rem; font-weight: 700; border-bottom: 1px solid var(--color-filete-oscuro); color: var(--color-lavanda); }
.menu-abierto .menu .boton { margin-top: 1.5rem; width: 100%; }
.menu-abierto body { overflow: hidden; }
@keyframes bajar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cabecera__cta { display: none; }
@media (min-width: 60rem) {
  .menu-boton { display: none; }
  .menu { display: flex; align-items: center; gap: 2rem; }
  .menu ul { display: flex; gap: 1.75rem; }
  .menu li a { color: var(--color-lavanda); padding: 0.6rem 0; position: relative; }
  .menu li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px; background: var(--color-naranja); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
  .menu li a:hover, .menu li a[aria-current="page"] { color: #fff; }
  .menu li a:hover::after, .menu li a[aria-current="page"]::after { transform: scaleX(1); }
}
.js .menu-boton { display: inline-flex; }
@media (min-width: 60rem) { .js .menu-boton { display: none; } }
html:not(.js) .menu { display: block; width: 100%; }
html:not(.js) .menu-boton { display: none; }

/* ===== Hero con carrusel ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(600px, 92svh, 880px); margin-top: -72px; padding: 9rem 0 2.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
@media (min-width: 60rem) { .hero { justify-content: center; padding: 8rem 0 6.5rem; } }
.carrusel { position: absolute; inset: 0; z-index: -1; background: var(--color-noche); }
.carrusel__slide {
  position: absolute; inset: 0; margin: 0; visibility: hidden;
  clip-path: circle(0% at 76% 46%);
  transition: clip-path 1.25s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear 1.25s;
}
.carrusel__slide.activa { visibility: visible; z-index: 2; clip-path: circle(150% at 76% 46%); transition: clip-path 1.25s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s; }
.carrusel__slide.saliendo { visibility: visible; z-index: 1; clip-path: circle(150% at 76% 46%); transition: none; }
.carrusel__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 74% center; transform: scale(1.14); transition: transform 8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.carrusel__slide.activa img { transform: scale(1); }
.carrusel::after {
  content: ""; position: absolute; inset: -10% -70%; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(123, 53, 255, 0.55) 47%, rgba(255, 149, 0, 0.4) 52%, transparent 61%);
}
.carrusel.barriendo::after { animation: barrer 1.25s cubic-bezier(0.77, 0, 0.18, 1); }
@keyframes barrer { 0% { transform: translateX(-60%); opacity: 1; } 100% { transform: translateX(60%); opacity: 0; } }
.carrusel::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 10, 51, 0.55) 0%, rgba(21, 10, 51, 0.5) 30%, rgba(21, 10, 51, 0.92) 62%, var(--color-noche) 100%);
}
@media (min-width: 60rem) {
  .carrusel::before { background: linear-gradient(90deg, rgba(21, 10, 51, 0.95) 0%, rgba(21, 10, 51, 0.84) 34%, rgba(21, 10, 51, 0.25) 66%, rgba(21, 10, 51, 0.05) 100%), linear-gradient(0deg, rgba(21, 10, 51, 0.9) 0%, transparent 28%); }
}
.hero h1 { font-size: clamp(2.45rem, 6.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero h1 span { display: block; }
.hero__sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e6dcff; max-width: 34rem; }
.hero .acciones { margin-top: 1.9rem; }
.hero__entrada > * { animation: subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__entrada > :nth-child(2) { animation-delay: 0.12s; }
.hero__entrada > :nth-child(3) { animation-delay: 0.24s; }
@keyframes subir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.carrusel__controles { margin-top: 2rem; }
.carrusel__controles .contenedor { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; align-items: center; gap: 0.75rem 0.5rem; }
.carrusel__controles .carrusel__leyenda { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 60rem) {
  .carrusel__controles { position: absolute; left: 0; right: 0; bottom: 2rem; margin: 0; }
  .carrusel__controles .contenedor { display: flex; justify-content: flex-end; gap: 1rem; }
}
.carrusel__leyenda {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(21, 10, 51, 0.6); color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(210, 190, 255, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.carrusel__leyenda::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--color-naranja); flex: none; }
.carrusel__leyenda:hover { box-shadow: inset 0 0 0 1px #fff; }
.carrusel__puntos { display: flex; align-items: center; list-style: none; }
.carrusel__punto { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.carrusel__punto::before { content: ""; width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.45); transition: width 0.3s ease, background-color 0.3s ease; }
.carrusel__punto[aria-current="true"]::before { width: 26px; background: var(--color-naranja); }
.carrusel__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(21, 10, 51, 0.55); color: #fff; box-shadow: inset 0 0 0 1px rgba(210, 190, 255, 0.35);
}
.carrusel__btn:hover { background: rgba(123, 53, 255, 0.55); }
.carrusel__btn .icono { width: 1.2rem; height: 1.2rem; }
.carrusel__pausa .reanudar { display: none; }
.carrusel__pausa.en-pausa .pausar { display: none; }
.carrusel__pausa.en-pausa .reanudar { display: block; }
html:not(.js) .carrusel__btn, html:not(.js) .carrusel__puntos { display: none; }

/* ===== Secciones ===== */
.seccion { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.seccion--clara { background: var(--color-papel); color: var(--color-tinta); --color-foco: #5b21d9; }
.seccion--clara p, .seccion--clara li { color: var(--color-tinta-suave); }
.seccion--clara h2, .seccion--clara h3 { color: var(--color-tinta); }
.seccion--violeta { background: radial-gradient(50rem 30rem at 0% 0%, rgba(123, 53, 255, 0.35), transparent 60%), #1c0d45; }
.titulo-seccion { display: grid; gap: 0.9rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.titulo-seccion h2, .seccion h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -0.025em; max-width: 22ch; }
.titulo-seccion p { font-size: 1.125rem; color: var(--color-lavanda); }
.seccion--clara .titulo-seccion p { color: var(--color-tinta-suave); }
.titulo-seccion--fila { align-items: end; }
@media (min-width: 56rem) { .titulo-seccion--fila { grid-template-columns: 1fr auto; } }
.dos-col { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .dos-col { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; } }

/* Aparición al bajar (solo con JS y sin "reducir movimiento") */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--retraso, 0s); }
.js .revelar.visible { opacity: 1; transform: none; }

/* ===== Servicios (mosaico) ===== */
.servicios { display: grid; gap: 1rem; list-style: none; }
@media (min-width: 40rem) { .servicios { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .servicios { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.servicio {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; border-radius: 22px;
  background: #fff; color: var(--color-tinta); text-decoration: none; overflow: hidden;
  box-shadow: 0 1px 0 rgba(27, 16, 51, 0.06), 0 18px 40px -28px rgba(27, 16, 51, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.servicio::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--color-violeta), var(--color-naranja)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.servicio:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(27, 16, 51, 0.06), 0 28px 50px -26px rgba(91, 33, 217, 0.55); }
.servicio:hover::before { transform: scaleX(1); }
.servicio__icono { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #efe7ff; color: #5b21d9; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.servicio:hover .servicio__icono { background: var(--color-violeta); color: #fff; transform: rotate(-6deg) scale(1.05); }
.servicio h3 { font-size: 1.3rem; }
.servicio p { color: var(--color-tinta-suave); }
.servicio .enlace { margin-top: auto; color: #5b21d9; padding-bottom: 0; }

/* Lista editorial con filetes */
.lista-filetes { list-style: none; }
.lista-filetes li { padding-block: 1.6rem; border-top: 1px solid var(--color-filete-oscuro); }
.lista-filetes li:last-child { border-bottom: 1px solid var(--color-filete-oscuro); }
.lista-filetes h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 0.4rem; }
.lista-filetes p { color: var(--color-lavanda); }

/* Pasos (secuencia real) */
.pasos { list-style: none; display: grid; gap: 2.25rem; counter-reset: paso; }
@media (min-width: 56rem) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.pasos li { counter-increment: paso; border-top: 2px solid var(--color-tinta); padding-top: 1.25rem; }
.pasos li::before { content: counter(paso); display: block; font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--color-violeta); margin-bottom: 0.5rem; }
.pasos h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 0.5rem; }
.seccion:not(.seccion--clara) .pasos li { border-color: rgba(210, 190, 255, 0.4); }
.seccion:not(.seccion--clara) .pasos p { color: var(--color-lavanda); }

/* ===== Trabajos ===== */
.trabajos { display: grid; gap: 1.5rem; list-style: none; }
@media (min-width: 52rem) { .trabajos { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.trabajo { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: #22104f; box-shadow: inset 0 0 0 1px rgba(210, 190, 255, 0.16); }
.trabajo__marco { position: relative; overflow: hidden; background: #ece6fa; aspect-ratio: 16 / 10; }
.trabajo__marco img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.trabajo:hover .trabajo__marco img { transform: scale(1.04); }
.trabajo__cuerpo { padding: 1.5rem 1.6rem 1.75rem; display: grid; gap: 0.7rem; flex: 1; align-content: start; }
.trabajo__tipo { font-size: 0.9rem; color: var(--color-naranja); font-weight: 700; }
.trabajo h3 { font-size: 1.5rem; }
.trabajo p { color: var(--color-lavanda); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.etiquetas li { font-size: 0.85rem; padding: 0.3rem 0.75rem; border-radius: 99px; background: rgba(210, 190, 255, 0.12); color: #e6dcff; }
.trabajo .enlace { color: #fff; justify-self: start; }
.trabajo--siguiente { justify-content: center; padding: 2.25rem; background: linear-gradient(135deg, #3a1a85, #24105a); gap: 1rem; }
.trabajo--siguiente h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ===== Preguntas ===== */
.faq details { border-top: 1px solid var(--color-filete-oscuro); }
.faq details:last-child { border-bottom: 1px solid var(--color-filete-oscuro); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 48px; padding-block: 1.2rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.7rem; line-height: 1; color: var(--color-lavanda); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--color-lavanda); }

/* ===== Banda de llamada a la acción ===== */
.cierre { padding-block: clamp(3rem, 8vw, 6rem); }
.cierre__panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: 1.25rem; justify-items: start;
  background: radial-gradient(40rem 24rem at 100% 0%, rgba(255, 149, 0, 0.18), transparent 60%), linear-gradient(135deg, #3a1a85, #24105a);
}
.cierre__panel::after { content: ""; position: absolute; width: 22rem; height: 22rem; right: -6rem; bottom: -9rem; border-radius: 50%; border: 2px solid rgba(255, 149, 0, 0.35); animation: flotar 9s ease-in-out infinite; }
@keyframes flotar { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-18px, -14px); } }
.cierre h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 20ch; position: relative; z-index: 1; }
.cierre p { color: #e6dcff; position: relative; z-index: 1; }
.cierre .acciones { position: relative; z-index: 1; margin-top: 0.5rem; }

/* ===== Páginas internas ===== */
.portada { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem); background: radial-gradient(55rem 35rem at 100% 0%, rgba(123, 53, 255, 0.35), transparent 62%), var(--color-noche); }
.portada .contenedor { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .portada--con-foto .contenedor { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.portada h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch; }
.portada__sub { margin-top: 1.1rem; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: #e6dcff; max-width: 36rem; }
.portada .acciones { margin-top: 1.75rem; }
.portada__tipo { display: inline-block; margin-bottom: 1rem; color: var(--color-naranja); font-weight: 700; }
.portada__foto { position: relative; margin: 0; }
.portada__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% center; border-radius: 26px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.portada__foto::before { content: ""; position: absolute; inset: 14% -4% -5% 12%; z-index: -1; border-radius: 30px; background: linear-gradient(135deg, var(--color-violeta), rgba(255, 149, 0, 0.7)); filter: blur(28px); opacity: 0.55; }
.migas { margin-bottom: 1.5rem; font-size: 0.92rem; color: var(--color-lavanda); }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.migas li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.migas a { text-underline-offset: 0.25em; }
.migas [aria-current] { color: #fff; }
.texto-largo { display: grid; gap: 1.1rem; font-size: 1.125rem; }
.prosa { display: grid; gap: 1rem; max-width: 46rem; font-size: 1.0625rem; }
.prosa h2 { font-size: 1.4rem; margin-top: 1.25rem; }
.prosa a, .formulario__nota a { color: inherit; text-underline-offset: 0.25em; }
.listas { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 52rem) { .listas { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.listas h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.lista-check { list-style: none; display: grid; gap: 0.8rem; }
.lista-check li { display: flex; gap: 0.75rem; align-items: flex-start; }
.lista-check .icono { color: #5b21d9; width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; }
.nota { margin-top: 1.5rem; font-size: 0.98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 99px; text-decoration: none; background: rgba(210, 190, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(210, 190, 255, 0.3); transition: background-color 0.2s ease; }
.chips a:hover { background: rgba(123, 53, 255, 0.4); }

/* Filas de servicios con foto (página Servicios) */
.filas { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.fila { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 56rem) { .fila { grid-template-columns: 1fr 1fr; gap: 4rem; } .fila:nth-child(even) .fila__foto { order: 2; } }
.fila__foto { margin: 0; overflow: hidden; border-radius: 24px; }
.fila__foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% center; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fila:hover .fila__foto img { transform: scale(1.05); }
.fila h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.fila p { margin-top: 0.9rem; color: var(--color-tinta-suave); }
.fila .acciones { margin-top: 1.25rem; }

/* Panel "estado del sitio" (Mantenimiento) */
.estado { border-radius: 22px; padding: 1.5rem; background: #fff; color: var(--color-tinta); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); transform: rotate(1deg); }
.estado__barra { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #ece6fa; font-weight: 700; }
.estado__luz { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #1b7a3a; }
.estado__luz::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #22a04b; animation: latido 1.8s ease-in-out infinite; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 160, 75, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(34, 160, 75, 0); } }
.estado ul { list-style: none; display: grid; gap: 0.25rem; margin-top: 0.75rem; }
.estado li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed #e4dcf6; }
.estado li:last-child { border-bottom: 0; }
.estado li .icono { color: #22a04b; width: 1.3rem; height: 1.3rem; animation: marcar 0.5s ease both; }
.estado li:nth-child(1) .icono { animation-delay: 0.5s; }
.estado li:nth-child(2) .icono { animation-delay: 0.9s; }
.estado li:nth-child(3) .icono { animation-delay: 1.3s; }
.estado li:nth-child(4) .icono { animation-delay: 1.7s; }
.estado li:nth-child(5) .icono { animation-delay: 2.1s; }
@keyframes marcar { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }

/* ===== Formulario ===== */
.contacto { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .contacto { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; } }
.formulario { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: #fff; color: var(--color-tinta); --color-foco: #5b21d9; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.campo { display: grid; gap: 0.45rem; }
.campo label { font-weight: 700; }
.campo .opcional { font-weight: 500; color: var(--color-tinta-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--color-tinta); background: var(--color-papel);
  border: 2px solid #d9cff2; border-radius: 14px; padding: 0.8rem 1rem; min-height: 48px; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #b9a6ec; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: #5b21d9; background: #fff; box-shadow: 0 0 0 4px rgba(91, 33, 217, 0.18); }
.campo [aria-invalid="true"] { border-color: #b3261e; }
.campo__error { color: #b3261e; font-size: 0.95rem; font-weight: 700; }
.formulario .boton { justify-self: start; }
.formulario__nota { font-size: 0.92rem; color: var(--color-tinta-suave); }
.formulario__estado { font-weight: 700; color: #5b21d9; min-height: 1.5em; }
.formulario__estado--ok { color: #1b7a3a; }
.formulario__estado--error { color: #b3261e; }
.formulario__estado a { color: inherit; text-underline-offset: 0.25em; }
.formulario .boton[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lateral { display: grid; gap: 2rem; }
.lateral h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.lateral p { color: var(--color-lavanda); }
.lateral .pasos { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1rem; }
.lateral .pasos li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding-top: 1rem; }
.lateral .pasos li::before { grid-row: span 2; font-size: 2.5rem; margin: 0; }
.lateral .pasos h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.numero { font-size: 1.35rem; font-weight: 700; text-decoration: none; }

/* ===== Pie ===== */
.pie { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--color-filete-oscuro); color: var(--color-lavanda); font-size: 0.97rem; }
.pie__rejilla { display: grid; gap: 2.25rem; }
@media (min-width: 52rem) { .pie__rejilla { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; } }
.pie img { height: 64px; width: auto; margin-bottom: 1rem; }
.pie h2 { font-size: 1rem; color: #fff; margin-bottom: 0.9rem; letter-spacing: 0; }
.pie ul { list-style: none; display: grid; gap: 0.15rem; }
.pie ul a { display: inline-block; padding: 0.4rem 0; text-decoration: none; }
.pie ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.3em; }
.pie__final { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-filete-oscuro); font-size: 0.9rem; }

/* ===== WhatsApp en computador: enlace en el encabezado (siempre a la vista, el encabezado es fijo) ===== */
.wa-escritorio { display: none; }
.wa-escritorio svg { width: 1.3rem; height: 1.3rem; color: #25d366; flex: none; }
@media (min-width: 60rem) { .wa-escritorio { display: inline-flex; } }
.menu .boton { white-space: nowrap; }
@media (min-width: 60rem) and (max-width: 71.99rem) { .menu { gap: 1rem; } .menu ul { gap: 1.1rem; } .cabecera .contenedor { gap: 1rem; } }

/* ===== Botón flotante de WhatsApp: solo celulares ===== */
.wa-flotante {
  display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center;
  background: #1da851; color: #fff; box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.55);
}
.wa-flotante svg { width: 32px; height: 32px; }
.wa-flotante::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(29, 168, 81, 0.6); animation: anillo 2.4s ease-out 1.5s 3; }
@keyframes anillo { 0% { box-shadow: 0 0 0 0 rgba(29, 168, 81, 0.6); } 100% { box-shadow: 0 0 0 18px rgba(29, 168, 81, 0); } }
@media (hover: none) and (pointer: coarse) and (max-width: 46rem), (hover: none) and (pointer: coarse) and (max-height: 32rem) {
  .wa-flotante { display: flex; }
  .pie { padding-bottom: 6.5rem; }
  .hero { padding-bottom: 5.5rem; }
}
.wa-aviso {
  position: fixed; left: 16px; right: 90px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 61;
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: 16px;
  background: #fff; color: var(--color-tinta); font-size: 0.95rem; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}
.wa-aviso[hidden] { display: none; }
.wa-aviso a { font-weight: 700; color: #5b21d9; white-space: nowrap; }
.wa-aviso button { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1ecfb; color: var(--color-tinta); font-size: 1.3rem; cursor: pointer; }

/* ===== Error 404 ===== */
.error404 { min-height: 70vh; display: grid; align-content: center; gap: 1.25rem; }
.error404 strong { font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--color-violeta); letter-spacing: -0.05em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .carrusel__slide img { transform: none !important; }
}
