/* CONFIGURACIÓN GENERAL */
:root {
  --fondo: #f8f9fc;
  --blanco: #ffffff;
  --texto: #18243b;
  --secundario: #5b667b;
  --azul: #2855d9;
  --borde: #e2e6ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;

  background: var(--fondo);
  color: var(--texto);

  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ENCABEZADO */
.encabezado {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.marca {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marca-nombre {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1px;
}

.marca-nombre span {
  color: var(--azul);
}

.marca-descripcion {
  color: var(--secundario);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.boton-contacto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 44px;
  padding: 10px 16px;

  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;

  font-size: 13px;
  font-weight: 600;
  text-align: center;

  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.boton-contacto span {
  font-size: 19px;
}

/* PRESENTACIÓN */
.contenedor {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 32px 40px;
  flex: 1;
}

.introduccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  margin-bottom: 32px;
  padding: 32px 36px;

  background: #edf2fc;
  border: 1px solid #dfe7f7;
  border-radius: 24px;
}

.introduccion-texto {
  max-width: 650px;
  min-width: 0;
}

.etiqueta {
  color: #254dae;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 1.6px;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.6px;
  text-wrap: balance;
}

h1 span {
  color: var(--azul);
}

.introduccion p {
  max-width: 520px;
  margin: 0;

  color: var(--secundario);
  font-size: 16px;
  line-height: 1.8;
}

.logo-contenedor {
  display: grid;
  place-items: center;

  width: 160px;
  min-height: 150px;
  flex-shrink: 0;
  padding: 16px;

  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 20px;
}

.logo {
  display: block;
  width: 128px;
  max-width: 100%;
  height: auto;
}

/* CUADRÍCULA DEL MENÚ */
.menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* TARJETAS */
.tarjeta {
  --acento: #2855d9;
  --suave: #edf2ff;

  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px;

  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgb(24 36 59 / 3%);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.tarjeta-superior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.icono {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;
  flex-shrink: 0;

  background: var(--suave);
  color: var(--acento);
  border-radius: 15px;
}

/* ICONOS SVG INCLUIDOS EN EL HTML */
.icono svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.numero {
  color: #748096;
  font-size: 12px;
  font-weight: 600;
}

.tarjeta h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.tarjeta p {
  margin: 0 0 24px;
  color: var(--secundario);
  font-size: 14px;
  line-height: 1.75;
}

.tarjeta-accion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--borde);

  color: var(--acento);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.flecha {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  flex-shrink: 0;

  background: var(--suave);
  border-radius: 50%;
  font-size: 19px;

  transition: transform 180ms ease;
}

/* COLOR DE CADA CATEGORÍA */
.tramite {
  --acento: #2855d9;
  --suave: #edf2ff;
}

.servicio {
  --acento: #a45112;
  --suave: #fff1e4;
}

.productos {
  --acento: #21744f;
  --suave: #eaf6ef;
}

.ubicacion {
  --acento: #89620a;
  --suave: #fcf4db;
}

.contacto {
  --acento: #b03869;
  --suave: #fcecf3;
}

.creador {
  --acento: #6950b5;
  --suave: #f0ecfb;
}

/* INTERACCIÓN */
a:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 5px;
}

@media (hover: hover) {
  .tarjeta:hover {
    transform: translateY(-5px);
    border-color: var(--acento);
    box-shadow: 0 14px 28px rgb(24 36 59 / 8%);
  }

  .tarjeta:hover .flecha {
    transform: translate(2px, -2px);
  }

  .boton-contacto:hover {
    background: #edf2ff;
    border-color: #c4d3f7;
  }
}

/* MENSAJE INFERIOR */
.nota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top: 30px;
  color: var(--secundario);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.punto {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: #2c8862;
  border-radius: 50%;
}

/* PIE DE PÁGINA */
.footer {
  width: min(1116px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  border-top: 1px solid var(--borde);
}

.footer-marca {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer p {
  margin: 0;
  color: var(--secundario);
  font-size: 12px;
  line-height: 1.6;
}

/* TEXTO PARA LECTORES DE PANTALLA */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* TABLETAS */
@media (max-width: 900px) {
  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .introduccion {
    padding: 28px;
  }

  .logo-contenedor {
    width: 135px;
    min-height: 130px;
  }
}

/* CELULARES */
@media (max-width: 600px) {
  .encabezado {
    padding: 20px 18px;
    gap: 12px;
  }

  .marca-nombre {
    font-size: 25px;
  }

  .marca-descripcion {
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .boton-contacto {
    max-width: 145px;
    gap: 8px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .contenedor {
    padding: 14px 18px 30px;
  }

  .introduccion {
    flex-direction: column;
    gap: 22px;
    padding: 26px 20px;
    margin-bottom: 22px;
    text-align: center;
  }

  .logo-contenedor {
    order: -1;
    width: 115px;
    min-height: 105px;
    padding: 10px;
    border-radius: 16px;
  }

  .logo {
    width: 95px;
  }

  .etiqueta {
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .introduccion p {
    font-size: 14px;
  }

  .menu {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tarjeta {
    padding: 22px;
    border-radius: 18px;
  }

  .tarjeta-superior {
    margin-bottom: 16px;
  }

  .tarjeta h2 {
    font-size: 21px;
  }

  .tarjeta p {
    margin-bottom: 18px;
  }

  .footer {
    width: calc(100% - 36px);
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* RESPETA LA PREFERENCIA DE MOVIMIENTO */
@media (prefers-reduced-motion: reduce) {
  .tarjeta,
  .flecha,
  .boton-contacto {
    transition: none;
  }

  .tarjeta:hover,
  .tarjeta:hover .flecha {
    transform: none;
  }
}