/* Solo existe la cara Regular: la cursiva la sintetiza el navegador */
@font-face {
  font-family: "Times New Roman Condensed";
  src: url("../assets/fonts/Times-New-Roman-MT-Condensed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Open Sauce Sans en los cuatro pesos que usa el sitio: 300, 400, 500 y 600; sin cursivas porque el cuerpo no las usa */
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/Open-Sauce-Sans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/Open-Sauce-Sans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/Open-Sauce-Sans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/Open-Sauce-Sans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta del manual de identidad de Imperia */
  --gris-claro: #E2E2E2;
  --morado:     #3F0165;
  --lavanda:    #B4A0D2;
  --grafito:    #2E2E2E;
  --negro:      #1A1A1A;
  --claro:      #F3F1F5;
  --blanco:     #FFFFFF;

  /* Lavanda aclarada para títulos sobre bandas oscuras */
  --lavanda-claro: #E2D6F3;

  /* Gris neutro para estados apagados: más oscuro que --gris-claro, que es el propio fondo */
  --gris-medio: #B5B5B5;

  /* Verde WhatsApp algo más oscuro que el original (#25D366) para el texto blanco del botón (3.7:1) y su variante de hover (5.3:1) */
  --whatsapp: #129A44;
  --whatsapp-oscuro: #0C7C34;

  /* Rojo de error: solo para avisos de validación del formulario */
  --error: #B3261E;

  /* Derivados del morado para filetes, velos y fondos suaves */
  --morado-filete: rgba(63, 1, 101, 0.28);
  --morado-velo:   rgba(63, 1, 101, 0.55);
  --morado-tenue:  rgba(63, 1, 101, 0.07);

  /* Títulos en Times New Roman MT Condensed y cuerpo en Open Sauce Sans, como en el manual */
  --fuente-titulos: "Times New Roman Condensed", "Times New Roman", Times, serif;
  --fuente-cuerpo: "Open Sauce Sans", system-ui, sans-serif;

  --esp-sm: 0.75rem;
  --esp-md: 1.5rem;
  --esp-lg: 2.5rem;
  --esp-xl: clamp(4rem, 8vw, 7rem);

  --radio: 4px;
  --radio-pill: 999px;

  --ancho: 1440px;
  --pad: clamp(1rem, 3.5vw, 2rem);

  --transicion: 200ms ease;

  /* Color del anillo de foco: las secciones oscuras lo redefinen */
  --foco: var(--morado);
}

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

/* clip y no hidden: hidden rompería el header sticky */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grafito);
  background: var(--gris-claro);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* anywhere parte palabras largas en vez de ensanchar la rejilla */
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fuente-titulos);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--morado);
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transicion);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

::selection {
  background: var(--morado);
  color: var(--gris-claro);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
