/* ==========================================================================
   Arlomont Seguridad — estilos del sitio
   Orden: variables, base, componentes, encabezado, secciones, pie, utilidades
   ========================================================================== */

/* Fuentes de Google (licencia OFL) servidas desde el propio sitio: un archivo variable por familia */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* Colores de marca */
  --black: #0A0A0A;
  --surface: #101010;
  --line: #262626;
  --yellow: #F5B700;
  --yellow-light: #FFC929;
  --text: #F2F2F2;
  --muted: #A6A6A6;

  /* Sección clara (contacto y pie) */
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --ink-muted: #555555;
  --line-light: #E2E2E2;

  --whatsapp: #25D366;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --header-h: 72px;
  --container: 1180px;
  --gutter: 20px;
  --section-space: clamp(72px, 11vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.accent {
  color: var(--yellow);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--yellow-light);
}

.btn-outline {
  border-color: var(--yellow);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--black);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- Encabezado ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}

.site-header.is-scrolled {
  background: var(--black);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-shield {
  flex: none;
  width: 30px;
  height: 35px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tag {
  margin-top: 5px;
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menú en celular: pantalla completa */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-open .nav {
  opacity: 1;
  visibility: visible;
}

.nav-open {
  overflow: hidden;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--yellow);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

@media (min-width: 960px) {
  :root {
    --header-h: 84px;
    --gutter: 32px;
  }

  .brand-shield {
    width: 34px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.4375rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    gap: 36px;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: row;
    gap: 30px;
  }

  .nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
  }

  .nav-cta {
    min-height: 44px;
    padding: 10px 22px;
  }
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 clamp(64px, 12vh, 120px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.2) 34%, rgba(10, 10, 10, 0.55) 68%, var(--black) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0) 72%);
}

/* En celular el texto queda sobre la foto: se oscurece más la mitad inferior */
@media (max-width: 700px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.15) 24%, rgba(10, 10, 10, 0.74) 50%, var(--black) 94%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Entrada breve: el contenido principal queda visible en medio segundo */
.hero-content > * {
  animation: fade-up 0.45s var(--ease) both;
}

.hero-content > :nth-child(2) {
  animation-delay: 0.04s;
}

.hero-content > :nth-child(3) {
  animation-delay: 0.08s;
}

.hero-content > :nth-child(4) {
  animation-delay: 0.12s;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  display: block;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 24px;
  color: #D4D4D4;
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 2. Cifras ---------- */

.stats {
  border-block: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  padding: 36px 8px 36px 20px;
  border-left: 1px solid var(--line);
}

.stat:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.stat:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.stat-number {
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 800px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat,
  .stat:nth-child(odd) {
    padding: 56px 16px 56px 36px;
    border-left: 1px solid var(--line);
    border-bottom: 0;
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding-block: var(--section-space);
}

.section-bordered {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- 3. Servicios ---------- */

.services-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  position: relative;
  height: 100%;
  padding: 36px 28px 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
}

.service-index {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #5C5C5C;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 0.3s;
}

.service-card:hover .service-index {
  color: var(--yellow);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 32px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid > :last-child {
    grid-column: auto;
  }
}

/* Íconos animados: solo se mueven mientras la sección está en pantalla (clase is-live, js/main.js) */
.service-icon {
  overflow: visible;
}

.ico-road {
  stroke-dasharray: 3 3;
}

.is-live .ico-road {
  animation: ico-road 0.9s linear infinite;
}

.is-live .ico-truck {
  animation: ico-bump 1.8s ease-in-out infinite;
}

.is-live .ico-shackle {
  animation: ico-shackle 4.5s var(--ease) infinite;
}

.is-live .ico-keyhole {
  animation: ico-keyhole 4.5s ease-in-out infinite;
}

.ico-pulse {
  stroke-dasharray: 1;
}

.is-live .ico-pulse {
  animation: ico-pulse 3.2s ease-in-out infinite;
}

@keyframes ico-road {
  to {
    stroke-dashoffset: 6;
  }
}

@keyframes ico-bump {
  50% {
    transform: translateY(-0.5px);
  }
}

/* El candado se abre un momento y vuelve a cerrarse */
@keyframes ico-shackle {
  0%,
  52%,
  88%,
  100% {
    transform: none;
  }

  62%,
  78% {
    transform: translateY(-2.4px);
  }
}

@keyframes ico-keyhole {
  0%,
  52%,
  88%,
  100% {
    fill: transparent;
  }

  62%,
  78% {
    fill: var(--yellow);
  }
}

/* La señal del monitor se dibuja, se mantiene y se desvanece */
@keyframes ico-pulse {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }

  45%,
  85% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* ---------- Franja con el lema ---------- */

.band {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 46vw, 620px);
  padding: 48px 0;
  overflow: hidden;
}

.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 6%;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.12) 14%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0) 70%);
}

.band-content {
  position: relative;
  z-index: 1;
}

.band-title {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.band-text {
  max-width: 30rem;
  margin-top: 14px;
  color: #D4D4D4;
}

/* ---------- 4. Cómo funciona (línea de tiempo) ---------- */

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 20px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.timeline-dot:hover,
.timeline-step.is-done .timeline-dot {
  border-color: var(--yellow);
  color: var(--yellow);
}

.timeline-step.is-active .timeline-dot {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}

.timeline-line {
  position: relative;
  flex: 1;
  width: 2px;
  min-height: 28px;
  margin-block: 8px;
  background: var(--line);
  overflow: hidden;
}

.timeline-fill {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top;
}

.timeline-step.is-done .timeline-fill {
  transform: none;
}

.timeline-step.is-active .timeline-fill {
  animation: timeline-fill-y var(--step-duration, 5s) linear forwards;
}

/* En pausa o fuera de pantalla, el avance se detiene */
.timeline.is-paused .timeline-fill,
.timeline.is-offscreen .timeline-fill {
  animation-play-state: paused;
}

.timeline-body {
  padding: 10px 0 36px;
  opacity: 0.5;
  transition: opacity 0.4s;
}

.timeline-step.is-active .timeline-body {
  opacity: 1;
}

.timeline-body p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.timeline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.timeline-toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.timeline-toggle .icon {
  width: 14px;
  height: 14px;
}

.timeline-toggle .icon-play,
.timeline.is-paused .timeline-toggle .icon-pause {
  display: none;
}

.timeline.is-paused .timeline-toggle .icon-play {
  display: block;
}

@keyframes timeline-fill-y {
  to {
    transform: scaleY(1);
  }
}

@keyframes timeline-fill-x {
  to {
    transform: scaleX(1);
  }
}

@media (min-width: 900px) {
  .timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline-step {
    display: block;
  }

  .timeline-marker {
    flex-direction: row;
  }

  .timeline-line {
    width: auto;
    height: 2px;
    min-height: 0;
    margin: 0 12px;
  }

  .timeline-fill {
    transform: scaleX(0);
    transform-origin: left;
  }

  .timeline-step.is-active .timeline-fill {
    animation-name: timeline-fill-x;
  }

  .timeline-body {
    padding: 28px 32px 0 0;
  }

  .timeline-toggle {
    margin-top: 48px;
  }
}

/* ---------- 5. Nosotros ---------- */

.about-grid {
  display: grid;
  gap: 56px;
}

.about-media {
  position: relative;
  padding-bottom: 12%;
}

.about-img-main {
  width: 86%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  padding: 6px;
  border: 1px solid var(--yellow);
  background: var(--black);
  object-fit: cover;
}

.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--yellow);
  background: rgba(10, 10, 10, 0.86);
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
}

.is-live .live-dot::after {
  animation: live-ping 2s ease-out infinite;
}

@keyframes live-ping {
  from {
    opacity: 0.7;
    transform: none;
  }

  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

.about-text > p:not(.eyebrow) {
  margin-top: 20px;
  color: #C9C9C9;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 14px;
  height: 1px;
  background: var(--yellow);
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 88px;
  }
}

/* ---------- 6. Clientes ---------- */

.clients-grid {
  display: grid;
  gap: 16px;
}

/* Placas blancas del mismo tamaño: cada logo se ve con sus colores reales */
.client-tile {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  padding: 20px;
  background: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

/* Línea amarilla que crece al pasar el mouse */
.client-tile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.client-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(245, 183, 0, 0.45);
}

.client-tile:hover::after {
  transform: scaleX(1);
}

.client-logo {
  width: auto;
  max-width: 78%;
  height: auto;
  max-height: 104px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .client-tile {
    height: 180px;
  }

  .client-logo {
    max-height: 120px;
  }
}

/* ---------- 7. Contacto (fondo blanco) ---------- */

.contact {
  background: var(--white);
  color: var(--ink);
}

.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--ink);
}

.contact .eyebrow {
  color: var(--ink);
}

.contact .eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 12px;
  background: var(--yellow);
  vertical-align: middle;
}

.contact .section-lead {
  color: var(--ink-muted);
}

.contact-grid {
  display: grid;
  gap: 56px;
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #BDBDBD;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: #9A9A9A;
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.55);
}

/* Trampa antispam: invisible para personas */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form-note {
  flex: 1 1 200px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.form-status {
  padding: 14px 16px;
  border-left: 3px solid var(--ink);
  background: #F4F4F4;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status.is-success {
  border-left-color: #1E8E3E;
}

.form-status.is-error {
  border-left-color: #C62828;
}

.contact-list {
  display: grid;
  gap: 24px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--ink);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list address {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-list a:hover {
  border-bottom-color: var(--yellow);
}

.map {
  margin-top: 36px;
  border: 1px solid var(--line-light);
  background: #EFEFEF;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid var(--yellow);
  font-size: 0.875rem;
  font-weight: 600;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  filter: grayscale(1);
}

@media (min-width: 560px) {
  .contact-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 88px;
  }

  .contact-info {
    padding-top: 8px;
  }
}

/* ---------- 8. Pie de página (fondo blanco) ---------- */

.site-footer {
  border-top: 1px solid var(--line-light);
  background: var(--white);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: 56px;
}

.footer-brand img {
  width: auto;
  height: 84px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.footer-title {
  margin-bottom: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-hours {
  display: grid;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.footer-hours span {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.social-list {
  display: flex;
  gap: 10px;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  transition: background-color 0.25s, color 0.25s;
}

.social-list a:hover {
  background: var(--ink);
  color: var(--yellow);
}

.social-list svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  padding-block: 20px 96px;
  border-top: 1px solid var(--line-light);
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr auto;
    gap: 64px;
  }

  .footer-bottom {
    padding-bottom: 20px;
  }
}

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--whatsapp);
  opacity: 0;
  /* Tres pulsos al cargar y se detiene: una animación infinita gasta batería */
  animation: wa-pulse 2.8s ease-out 1s 3;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float .icon {
  width: 30px;
  height: 30px;
}

@keyframes wa-pulse {
  from {
    opacity: 0.8;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@media (min-width: 960px) {
  .wa-float {
    right: 28px;
    bottom: 28px;
  }
}

/* ---------- Animaciones al hacer scroll ---------- */
/* Solo se ocultan si el JavaScript cargó (clase .js en <html>) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--d, 0) * 60ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-content > *,
  .wa-float::before {
    animation: none;
  }

  .btn:hover,
  .service-card:hover,
  .client-tile:hover,
  .wa-float:hover {
    transform: none;
  }
}

/* ---------- Página 404 ---------- */

.not-found {
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 24px;
  min-height: 100vh;
  padding: var(--gutter);
}

.not-found h1 {
  font-size: clamp(2.25rem, 8vw, 4rem);
}

.not-found p {
  color: var(--muted);
}
