/* ================================================
   SISTEMA DE DISEÑO — clases .texto-*, .boton, .link-texto
   Extraído de Figma; escala verificada en Pixel (ago 2026).
   No revertir a los px de Figma sin revisar en móvil.
   Tipografía de sección: estas clases, nunca font-size en px
   (excepción: portada del acto = clamp/vw; pie 12px y “?” 18px, documentadas).
   Line-height solo aquí. Espaciado: gap del padre o padding, no margin del hijo.
   Un breakpoint de layout: 480px. Otras MQ son excepciones puntuales.
   ================================================ */

/* ═══ Estilos de texto del sistema de diseño ═══ */

/* --- Mini --- */
.texto-mini-ligera {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
}

.texto-mini-regular {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.08em;
}

.texto-mini-regular-upper {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.texto-mini-bold {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.08em;
}

/* --- Chico --- */
.texto-chico-ligera {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.texto-chico-regular {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.texto-chico-regular-spaced {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.04em;
}

.texto-chico-bold {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

/* --- Cuerpo --- */
.texto-cuerpo-regular {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
}

.texto-cuerpo-bold {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0;
}

.texto-cuerpo-electro {
  font-family: "nasalization", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* --- Llamada --- */
.texto-llamada-regular {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
}

.texto-llamada-bold {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.03em;
}

.texto-llamada-grande {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
}

.texto-llamada-grande-bold {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.03em;
}

/* --- Título --- */
.texto-titulo-primario {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0;
}

.texto-titulo-primario-electro {
  font-family: "nasalization", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.texto-titulo-secundario {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 40px;
  letter-spacing: 0;
}

.texto-titulo-secundario-electro {
  font-family: "nasalization", sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 40px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.texto-titulo-terciario {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0;
}

.texto-titulo-terciario-electro {
  font-family: "nasalization", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ═══ Componente: Botón ═══ */
.boton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--espacio-extra-corto);
  padding: var(--espacio-corto) var(--espacio-regular);
  border-radius: var(--radio-estandar);
  background: transparent;
  box-sizing: border-box;
  cursor: pointer;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

/* --- Tipos de color --- */
.boton--pliegue {
  border: 1px solid var(--color-primario);
  color: var(--color-primario);
}
.boton--verso {
  border: 1px solid var(--color-secundario);
  color: var(--color-secundario);
}
.boton--rima {
  border: 1px solid var(--color-acento);
  color: var(--color-acento);
}

/* --- Estado Over (hover / focus) --- */
/* El borde visual pasa de 1px a 3px usando box-shadow inset
   para no causar salto de contenido */
.boton--pliegue:hover,
.boton--pliegue:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-primario);
}
.boton--verso:hover,
.boton--verso:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-secundario);
}
.boton--rima:hover,
.boton--rima:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-acento);
}

/* --- Estado Deshabilitado --- */
/* El borde discontinuo exacto (8px trazo, 8px espacio, grosor 1.5px)
   NO se puede lograr con CSS border-style:dashed, por eso se usa
   un <svg> interno con stroke-dasharray exacto. */
.boton--deshabilitado {
  border-color: transparent !important;
  cursor: default;
}
.boton--deshabilitado:hover,
.boton--deshabilitado:focus-visible {
  box-shadow: none;
}

/* SVG que dibuja el borde discontinuo exacto */
.boton__borde-svg {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.boton--deshabilitado .boton__borde-svg {
  display: block;
}
.boton__borde-svg rect {
  x: 0.75px;
  y: 0.75px;
  width: calc(100% - 1.5px);
  height: calc(100% - 1.5px);
  fill: none;
  stroke: var(--color-ornamentos);
  stroke-width: 1.5;
  stroke-dasharray: 8 8;
}

/* ═══ Componente: Textfield ═══ */
.textfield {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Placeholder: color tenue (Colores/texto) */
.textfield::placeholder {
  color: var(--color-principal);
  opacity: 1;
}

/* Error */
.textfield--error {
  color: rgb(183, 0, 42);
}

.textfield--error::placeholder {
  color: rgb(183, 0, 42);
}

/* Degradados en los extremos para efecto inmersivo */
/* Son dos rectángulos posicionados absolutamente a los lados,
   con degradado lineal del color de fondo (sólido) a transparente.
   Deben estar en el contenedor padre del input, no en el input mismo. */

.textfield-contenedor {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.textfield-contenedor::before,
.textfield-contenedor::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.textfield-contenedor::before {
  left: 0;
  background: linear-gradient(to right, var(--color-fondo), transparent);
}

.textfield-contenedor::after {
  right: 0;
  background: linear-gradient(to left, var(--color-fondo), transparent);
}

/* ═══ Componente: Link Texto ═══ */
.link-texto {
  display: inline-block;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-secundario);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}

.link-texto--chico {
  font-size: 16px;
}

/* Over: SOLO texto rosa, SIN subrayado */
.link-texto:hover,
.link-texto:focus-visible {
  color: var(--color-primario);
  border-bottom-color: transparent;
}

/* Variante Verso: hover se queda verde */
.link-texto--verso:hover,
.link-texto--verso:focus-visible {
  color: var(--color-secundario);
}

/* Seleccionado: texto verde + subrayado rosa permanente */
.link-texto--seleccionado {
  border-bottom-color: var(--color-primario);
}

/* Seleccionado + hover: texto rosa, subrayado rosa se mantiene */
.link-texto--seleccionado:hover,
.link-texto--seleccionado:focus-visible {
  color: var(--color-primario);
  border-bottom-color: var(--color-primario);
}

/* Link en línea: subraya el texto y conserva su color.
   El color se define con --color-enlace en el modificador o en el contexto. */
.link-en-linea {
  color: var(--color-enlace);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-en-linea:hover,
.link-en-linea:focus-visible {
  color: var(--color-enlace);
  text-decoration: none;
}

.link-en-linea--acento {
  --color-enlace: var(--color-acento);
}

.link-en-linea--primario {
  --color-enlace: var(--color-primario);
}
