:root {
  --negro: #212426;
  --grafito: #43484E;
  --plata: #757C84;
  --plata-clara: #C5CAD0;
  --oliva: #BAC148;
  --hueso: #F3F4EA;
  --fondo: #F3F5F6;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--negro);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif; font-size: 18px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--oliva); text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--oliva); outline-offset: 3px; border-radius: 4px; }
.envoltura { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Barra superior */
.barra {
  position: sticky; top: 0; z-index: 5;
  background: rgba(243, 245, 246, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--plata-clara);
}
.barra .envoltura { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; }
.marca { font-weight: 700; letter-spacing: .14em; text-decoration: none; font-size: 20px; }
.barra nav { display: flex; gap: 22px; font-size: 16px; align-items: center; }
.barra nav a { text-decoration: none; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 17px;
  transition: transform .15s ease, background .15s ease;
}
.boton:hover { transform: translateY(-1px); text-decoration: none; }
.boton.oliva { background: var(--oliva); color: var(--negro); }
.boton.oscuro { background: var(--negro); color: var(--fondo); }
.boton.oscuro:hover { background: var(--grafito); }
.boton.chico { min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 600; }

/* Portada */
.portada { padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(40px, 6vw, 72px); }
.antetitulo { margin: 0 0 20px; font-size: 15px; color: var(--grafito); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.antetitulo::before { content: ""; width: 28px; height: 4px; background: var(--oliva); }
h1 {
  margin: 0; font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; font-weight: 700;
  font-size: clamp(52px, 9vw, 128px); line-height: .9; letter-spacing: -.01em; max-width: 12ch;
}
.bajada { max-width: 34em; font-size: clamp(18px, 2vw, 22px); margin: 28px 0 32px; color: var(--grafito); }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.servicio { background: var(--negro); color: var(--hueso); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.servicio .foto {
  aspect-ratio: 16 / 10; background: var(--grafito) repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.03) 22px 44px);
  position: relative;
}
.servicio .foto img { width: 100%; height: 100%; object-fit: cover; }
.servicio .numero {
  position: absolute; left: 16px; top: 16px; color: var(--oliva); background: var(--negro);
  font-family: "IBM Plex Sans Condensed", sans-serif; font-weight: 700; font-size: 22px; line-height: 1;
  padding: 10px 14px; border-radius: 12px; letter-spacing: .04em;
}
.servicio .cuerpo { padding: 28px 32px 34px; }
.servicio h2 {
  margin: 0 0 10px; font-weight: 700;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08;
}
.servicio p { margin: 0; color: var(--plata-clara); max-width: 32em; }

/* Contacto */
.contacto { padding-top: clamp(64px, 10vw, 120px); }
.contacto .caja {
  background: var(--oliva); color: var(--negro); border-radius: 32px; padding: clamp(32px, 6vw, 80px);
  display: flex; flex-direction: column; gap: 18px;
}
.contacto h2 {
  margin: 0; font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; font-weight: 700;
  font-size: clamp(44px, 6.5vw, 96px); line-height: .92; max-width: 13ch;
}
.contacto p { margin: 0; max-width: 34em; font-size: 20px; }
.contacto .acciones { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 8px; }
.contacto .mail { font-weight: 700; font-size: 20px; }
.datos { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 16px; }
.datos div { display: flex; gap: 6px; }
.datos dt { font-weight: 700; }
.datos dd { margin: 0; }

/* Pie */
.pie { margin-top: clamp(56px, 8vw, 96px); background: var(--negro); border-top: 4px solid var(--oliva); }
.pie .envoltura {
  padding-top: 24px; padding-bottom: 36px; font-size: 15px; color: var(--plata-clara);
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
}
.pie p { margin: 0; }

/* Página de texto (política de privacidad) */
.texto { padding-top: clamp(32px, 6vw, 72px); max-width: 880px; margin-left: 0; }
@media (min-width: 1240px) { .texto { margin-left: calc((100vw - 1240px) / 2); } }
.texto h1 { font-size: clamp(40px, 6vw, 68px); max-width: none; line-height: .95; }
.texto h2 { font-size: 24px; margin: 40px 0 10px; line-height: 1.2; }
.texto p, .texto li { max-width: 40em; color: var(--grafito); }
.texto li::marker { color: var(--plata); }
.texto ul { padding-left: 1.2em; }
.texto li { margin-bottom: 6px; }
.fecha { color: var(--grafito); font-size: 16px; margin-top: 16px; }

@media (max-width: 820px) {
  .servicios { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .barra nav .ocultable { display: none; }
  .servicio .cuerpo { padding: 24px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}
