/* ====================================================================
   1. PALETA OFICIAL Y VARIABLES GENERALES
   Los colores principales proceden directamente de puertoplaga.svg.
   ==================================================================== */
:root {
  --navy: #1c3181;
  --navy-dark: #101d56;
  --purple: #30237d;
  --blue: #008bd2;
  --blue-dark: #266297;
  --lime: #9ec416;
  --green: #639826;
  --grey: #989898;
  --ice: #dde7ee;
  --white: #ffffff;
  --ink: #14213d;
  --muted: #5d687c;
  --surface: #f5f8fb;
  --border: #d9e2ea;
  --shadow-sm: 0 12px 35px rgba(16, 29, 86, 0.08);
  --shadow-lg: 0 28px 70px rgba(16, 29, 86, 0.16);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --container: 75rem;
  --transition: 220ms ease;
}

/* ====================================================================
   2. NORMALIZACIÓN Y ESTILOS BASE
   Se eliminan diferencias entre navegadores y se fija una tipografía
   del sistema para no depender de servicios externos.
   ==================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-dark);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.65rem, 5vw, 5.15rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.5vw, 3.45rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  color: var(--navy-dark);
  background: var(--lime);
}

/* Contenedor central reutilizado en todas las secciones. */
.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-dark);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Etiqueta pequeña situada encima de los títulos de sección. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 0.2rem;
  background: var(--lime);
  border-radius: 1rem;
  content: "";
}

.eyebrow--light {
  color: var(--ice);
}

/* ====================================================================
   3. BOTONES Y ENLACES DESTACADOS
   ==================================================================== */
.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(28, 49, 129, 0.2);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button:hover {
  color: var(--navy-dark);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 14px 28px rgba(99, 152, 38, 0.22);
  transform: translateY(-2px);
}

.button--small {
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  font-size: 1rem;
}

.button--lime {
  color: var(--navy-dark);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: none;
}

.button--lime:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.button--ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.button--ghost:hover {
  color: var(--navy-dark);
  background: var(--white);
  border-color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 750;
}

.text-link:hover {
  color: var(--blue-dark);
}

.text-link__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}

.text-link--dark {
  margin-top: 0.5rem;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35rem;
}

/* ====================================================================
   4. CABECERA Y NAVEGACIÓN
   ==================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
}

.contact-strip {
  color: var(--white);
  background: var(--navy-dark);
  font-size: 1rem;
}

.contact-strip__inner {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-strip p {
  margin: 0;
}

.contact-strip__links {
  display: flex;
  gap: 0.75rem;
}

.contact-strip a:hover {
  color: var(--lime);
}

.main-nav {
  display: flex;
  min-height: 6.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 850;
}

.brand__text small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2rem);
  color: var(--navy-dark);
  font-size: 1rem;
  font-weight: 700;
}

.main-menu > a:not(.button) {
  position: relative;
  padding-block: 0.5rem;
}

.main-menu > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.18rem;
  background: var(--lime);
  border-radius: 1rem;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-menu > a:not(.button):hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  color: var(--navy-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before {
  position: absolute;
  transform: translateY(-0.38rem);
}

.menu-toggle__icon::after {
  position: absolute;
  transform: translateY(0.38rem);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  transform: rotate(-45deg);
}

/* ====================================================================
   5. HERO Y CARRUSEL PRINCIPAL
   ==================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.75rem, 7vw, 6.5rem);
  background:
    radial-gradient(circle at 5% 15%, rgba(158, 196, 22, 0.15), transparent 26rem),
    linear-gradient(145deg, var(--surface), var(--white));
}

.hero::after {
  position: absolute;
  right: -9rem;
  bottom: -14rem;
  width: 32rem;
  height: 32rem;
  background: url("../puertoplaga.svg") center / contain no-repeat;
  content: "";
  opacity: 0.035;
  transform: rotate(-8deg);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero__content h1 span {
  color: var(--blue);
}

.hero__lead {
  max-width: 39rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.hero__checks li::before {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.4rem;
  place-items: center;
  color: var(--navy-dark);
  background: var(--lime);
  border-radius: 50%;
  content: "✓";
  font-size: 0.72rem;
}

.hero-card {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 65, 0.94), rgba(10, 22, 65, 0.03) 70%);
  content: "";
}

.hero-card > img {
  width: 100%;
  height: 34rem;
  object-fit: cover;
  transition: opacity 180ms ease, transform 6s ease;
}

.hero-card:hover > img {
  transform: scale(1.035);
}

.hero-card > img.is-changing {
  opacity: 0;
}

.hero-card__overlay {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
}

.hero-card__overlay h2 {
  margin-bottom: 0.55rem;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.hero-card__overlay p {
  max-width: 31rem;
  margin-bottom: 0;
  color: var(--ice);
}

.hero-card__overlay #hero-kicker {
  margin-bottom: 0.45rem;
  color: var(--lime);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.slider-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
}

.slider-controls button {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.slider-controls button:hover {
  color: var(--navy-dark);
  background: var(--lime);
}

.slider-controls span {
  min-width: 4.4rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ====================================================================
   6. FRANJA DE CONFIANZA
   ==================================================================== */
.trust-bar {
  color: var(--white);
  background: var(--navy);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-bar article {
  display: flex;
  min-height: 7.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-bar article:last-child {
  border-right: 0;
}

.trust-bar img {
  flex: 0 0 auto;
}

.trust-bar article div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.trust-bar strong {
  font-size: 1.05rem;
}

.trust-bar span {
  margin-top: 0.2rem;
  color: var(--ice);
  font-size: 1rem;
}

/* ====================================================================
   7. SECCIÓN Y TARJETAS DE SERVICIOS
   ==================================================================== */
.services {
  background: var(--white);
}

.section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.7fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  max-width: 47rem;
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.service-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 139, 210, 0.55);
  box-shadow: 0 20px 48px rgba(16, 29, 86, 0.14);
  transform: translateY(-0.45rem);
}

.service-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.75 / 1;
  background: linear-gradient(135deg, var(--ice), var(--surface));
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.06);
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.45rem;
}

.service-card__number {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.2rem 0.65rem;
  color: var(--navy);
  background: rgba(158, 196, 22, 0.22);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 850;
}

.service-card p {
  flex: 1;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.card-link span {
  color: var(--blue);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.card-link:hover span {
  transform: translateX(0.3rem);
}

/* ====================================================================
   8. BLOQUE SOBRE LA EMPRESA
   ==================================================================== */
.about {
  background: var(--surface);
}

.about__grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.about__image {
  position: relative;
  display: grid;
  min-height: 31rem;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98), rgba(221, 231, 238, 0.7)),
    var(--ice);
  border-radius: var(--radius-lg);
}

.about__image > img {
  width: min(86%, 35rem);
  height: auto;
}

.about__badge {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  color: var(--navy-dark);
  background: var(--lime);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  line-height: 1.2;
}

.about__badge strong {
  font-size: 2rem;
}

.about__badge span {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about__content > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.about__features {
  display: grid;
  gap: 0.85rem;
  margin-block: 2rem;
}

.about__features > div {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.about__features > div > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--navy-dark);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 900;
}

.about__features p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.about__features strong {
  color: var(--navy-dark);
}

/* ====================================================================
   9. LLAMADA A LA ACCIÓN
   ==================================================================== */
.cta {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(16, 29, 86, 0.97), rgba(48, 35, 125, 0.93)),
    url("../imagenes/carrusel/1920px_desinfeccion.webp") center / cover;
}

.cta__inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.55fr);
  gap: 3rem;
}

.cta h2 {
  max-width: 48rem;
  margin: 0;
  color: var(--white);
}

.cta__actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.cta__actions > a:last-child {
  color: var(--ice);
  font-size: 1rem;
}

.cta__actions > a:last-child:hover {
  color: var(--lime);
}

/* ====================================================================
   10. PIE DE PÁGINA
   ==================================================================== */
.site-footer {
  padding-top: 4.5rem;
  color: var(--ice);
  background: #0b153d;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.7fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: 3.5rem;
}

.footer__brand img {
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.footer__brand p {
  max-width: 18rem;
  color: rgba(221, 231, 238, 0.75);
}

.site-footer h2 {
  margin-bottom: 1.15rem;
  color: var(--white);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  color: rgba(221, 231, 238, 0.78);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--lime);
}

.footer__contact address {
  font-style: normal;
}

.footer__contact p {
  margin-bottom: 1rem;
  color: rgba(221, 231, 238, 0.72);
  font-size: 1rem;
}

.footer__bottom {
  display: grid;
  min-height: 5.5rem;
  align-items: center;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-links a {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 850;
}

.social-links a:hover {
  color: var(--navy-dark);
  background: var(--lime);
}

/* ====================================================================
   11. CABECERAS Y CONTENIDO DE LAS PÁGINAS INTERIORES
   Estas clases forman el sistema común de servicios, empresa, recursos,
   blog, contacto, legales y páginas de error.
   ==================================================================== */
.inner-hero {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy-dark);
  isolation: isolate;
}

.inner-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--hero-image, none);
  background-position: center;
  background-size: cover;
  content: "";
  transform: scale(1.02);
}

.inner-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 21, 61, 0.97) 0%, rgba(28, 49, 129, 0.88) 48%, rgba(16, 29, 86, 0.35) 100%);
  content: "";
}

.inner-hero__content {
  max-width: 53rem;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.inner-hero h1 {
  margin-bottom: 1.15rem;
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.inner-hero__lead {
  max-width: 47rem;
  margin: 0;
  color: var(--ice);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.breadcrumbs {
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  min-height: 3.8rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* Conserva el centrado y el margen lateral definido por .container. */
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.breadcrumbs li + li::before {
  margin-right: 0.5rem;
  color: var(--grey);
  content: "/";
}

.breadcrumbs a {
  color: var(--navy);
  font-weight: 750;
}

.breadcrumbs a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* La primera sección debe comenzar cerca de las migas de pan.
   El resto de secciones conserva su separación amplia habitual. */
.breadcrumbs + .section {
  padding-top: clamp(1.5rem, 2vw, 2rem);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(3rem, 6vw, 6rem);
}

.page-shell--single {
  display: block;
}

.prose {
  max-width: 52rem;
}

.prose--wide {
  max-width: none;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #3f4d63;
  font-size: 1.08rem;
}

.prose p {
  margin-bottom: 1.35rem;
}

.prose h2 {
  margin-top: 3.2rem;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
}

.prose h3 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.7rem;
}

.prose a:not(.button):not(.card-link) {
  color: var(--blue-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(158, 196, 22, 0.85);
  text-decoration-thickness: 0.16rem;
  text-underline-offset: 0.22rem;
}

.lead-copy {
  margin-bottom: 2rem;
  color: var(--navy-dark) !important;
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  font-weight: 650;
  line-height: 1.65;
}

.content-section {
  margin-top: 3.5rem;
  padding-top: 0.25rem;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0 !important;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 1.15rem 1.2rem 1.15rem 3.7rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.feature-list li::before {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: var(--navy-dark);
  background: var(--lime);
  border-radius: 50%;
  content: "✓";
  font-size: 0.82rem;
  font-weight: 900;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-block: 2rem;
}

.process-card {
  padding: 1.55rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.process-card span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--navy-dark);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 900;
}

.process-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.info-note,
.humor-note,
.warning-note {
  position: relative;
  margin-block: 2rem;
  padding: 1.4rem 1.5rem 1.4rem 4.3rem;
  border-radius: var(--radius-md);
}

.info-note {
  color: var(--navy-dark);
  background: rgba(0, 139, 210, 0.1);
  border: 1px solid rgba(0, 139, 210, 0.3);
}

.humor-note {
  color: var(--navy-dark);
  background: rgba(158, 196, 22, 0.16);
  border: 1px solid rgba(99, 152, 38, 0.3);
}

.warning-note {
  color: #5d3700;
  background: #fff4df;
  border: 1px solid #edc57d;
}

.info-note::before,
.humor-note::before,
.warning-note::before {
  position: absolute;
  top: 1.3rem;
  left: 1.35rem;
  font-size: 1.55rem;
}

.info-note::before {
  content: "i";
  font-weight: 900;
}

.humor-note::before {
  content: "☺";
}

.warning-note::before {
  content: "!";
  font-weight: 900;
}

.info-note p,
.humor-note p,
.warning-note p {
  margin: 0;
  color: inherit;
}

.page-aside {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.page-aside h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.page-aside p {
  margin-bottom: 1.25rem;
  color: var(--ice);
  font-size: 1rem;
}

.page-aside .button {
  width: 100%;
  color: var(--navy-dark);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: none;
}

.page-aside__phone {
  display: block;
  margin-top: 1rem;
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

/* Rejillas reutilizables de subservicios, recursos y noticias. */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 2rem;
}

.content-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.35rem);
}

.content-card__media {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ice), var(--surface));
}

.content-card__media img {
  display: block;
  width: 100%;
  height: auto;
  /* Respeta la proporción original: ninguna zona de la fotografía se recorta. */
  object-fit: contain;
  transition: filter 300ms ease;
}

.content-card:hover .content-card__media img {
  /* El efecto visual no modifica el tamaño ni el encuadre de la fotografía. */
  filter: brightness(1.04);
}

.content-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.content-card__body h2,
.content-card__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.content-card__body p {
  flex: 1;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.content-card__meta {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.content-card--retired {
  background: var(--surface);
  box-shadow: none;
}

/* Recursos descargables. */
.resource-card__preview {
  display: grid;
  min-height: 15rem;
  place-items: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--ice), var(--white));
}

.resource-card__preview img {
  max-height: 13rem;
  object-fit: contain;
}

/* Contacto y horarios. */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.contact-method {
  padding: 1.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-method__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--navy-dark);
  background: var(--lime);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
}

.contact-method h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.contact-method p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact-method > a:not(.button) {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 850;
}

.map-card {
  display: grid;
  min-height: 23rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(2rem, 6vw, 4rem);
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(16, 29, 86, 0.96), rgba(28, 49, 129, 0.62)),
    url("../imagenes/banner/1140px_banner_Contacto.webp") center / cover;
  border-radius: var(--radius-lg);
}

.map-card h2 {
  max-width: 38rem;
  color: var(--white);
}

.map-card address {
  margin-bottom: 1.5rem;
  color: var(--ice);
  font-style: normal;
}

/* Artículos del blog y contenido multimedia. */
.article-header {
  max-width: 52rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header time {
  color: var(--blue-dark);
  font-weight: 800;
}

.article-media {
  overflow: hidden;
  margin-block: 2rem;
  background: var(--navy-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-media img,
.article-media video {
  display: block;
  width: 100%;
  max-height: 40rem;
  object-fit: cover;
}

.article-media figcaption {
  padding: 0.75rem 1rem;
  color: var(--ice);
  font-size: 1rem;
}

.article-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  color: var(--navy-dark);
  background: var(--surface);
  border-left: 0.35rem solid var(--lime);
  font-size: 1.22rem;
  font-weight: 700;
}

/* Documentos legales: lectura cómoda y navegación lateral. */
.legal-nav {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-copy {
  max-width: 58rem;
}

.legal-copy h1 {
  display: none;
}

.legal-copy h2,
.legal-copy h3,
.legal-copy h4,
.legal-copy h5 {
  margin-top: 2.8rem;
  color: var(--navy-dark);
  line-height: 1.2;
}

.legal-copy p,
.legal-copy li,
.legal-copy span,
.legal-copy div {
  color: #3f4d63;
  font-size: 1.125rem;
  line-height: 1.75;
}

.legal-copy a {
  /* Las direcciones web largas heredadas también deben partirse en móvil. */
  overflow-wrap: anywhere;
}

.legal-copy img,
.legal-copy iframe,
.legal-copy .modal,
.legal-copy button {
  display: none !important;
}

.legal-copy table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.legal-copy th,
.legal-copy td {
  padding: 0.8rem;
  border: 1px solid var(--border);
}

/* Páginas de error estáticas. */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(11, 21, 61, 0.97), rgba(48, 35, 125, 0.86)),
    url("../imagenes/banner/1140px_Banner_Error404.webp") center / cover;
}

.error-card {
  width: min(100%, 48rem);
  padding: clamp(2rem, 7vw, 4rem);
  text-align: center;
  background: rgba(11, 21, 61, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.error-card img {
  width: 7rem;
  margin: 0 auto 1rem;
}

.error-code {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--lime);
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-card h1 {
  color: var(--white);
}

.error-card p {
  color: var(--ice);
  font-size: 1.15rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ====================================================================
   12. CONTACTO FLOTANTE Y AVISO DE COOKIES
   ==================================================================== */
.floating-call {
  position: fixed;
  z-index: 90;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  color: var(--navy-dark);
  background: var(--lime);
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(16, 29, 86, 0.28);
  font-size: 1rem;
  font-weight: 850;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.floating-call:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-3px);
}

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  max-width: 57rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
  padding: 1.35rem;
  color: var(--white);
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin-bottom: 0.35rem;
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.cookie-banner p {
  margin: 0;
  color: var(--ice);
  font-size: 1rem;
}

.cookie-banner p a {
  color: var(--lime);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.7rem;
}

.cookie-banner .button {
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  font-size: 1rem;
}

/* ====================================================================
   12. VISIBILIDAD DEL CONTENIDO
   Todo se muestra desde el primer instante. Así la página sigue siendo
   fiable en móviles lentos, sin JavaScript o con ahorro de movimiento.
   ==================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================================
   13. DISEÑO RESPONSIVE: TABLETAS
   ==================================================================== */
@media (max-width: 68rem) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 48rem;
  }

  .hero-card {
    min-height: 30rem;
  }

  .hero-card > img {
    height: 30rem;
  }

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

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

  .about__grid {
    gap: 3rem;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 56rem) {
  .contact-strip__inner > p {
    display: none;
  }

  .contact-strip__inner {
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .main-menu.is-open {
    display: flex;
  }

  .main-menu > a:not(.button) {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .main-menu > a:not(.button)::after {
    display: none;
  }

  .main-menu .button {
    margin-top: 1rem;
  }

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

  .trust-bar article:nth-child(2) {
    border-right: 0;
  }

  .trust-bar article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section-heading,
  .about__grid,
  .cta__inner {
    grid-template-columns: 1fr;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
    max-width: 35rem;
  }

  .section-heading {
    gap: 1.25rem;
  }

  .about__content {
    max-width: 45rem;
  }

  .cta__actions {
    align-items: flex-start;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 1.5rem 2rem;
  }
}

/* ====================================================================
   14. DISEÑO RESPONSIVE: TELÉFONOS
   ==================================================================== */
@media (max-width: 38rem) {
  .container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .contact-strip__links span,
  .contact-strip__links a:last-child,
  .brand__text small {
    display: none;
  }

  .main-nav {
    min-height: 5.3rem;
  }

  .brand img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .brand__text strong {
    font-size: 1.05rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .text-link {
    justify-content: center;
  }

  .hero__checks {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card,
  .hero-card > img {
    min-height: 27rem;
    height: 27rem;
  }

  .hero-card__overlay {
    align-items: flex-start;
    flex-direction: column;
  }

  .services-grid,
  .trust-bar__grid,
  .footer__grid,
  .content-grid,
  .contact-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .inner-hero {
    min-height: 22rem;
  }

  .inner-hero::after {
    background: linear-gradient(90deg, rgba(11, 21, 61, 0.96), rgba(28, 49, 129, 0.78));
  }

  .inner-hero__content {
    padding-block: 3.5rem;
  }

  .breadcrumbs ol {
    min-height: 3.4rem;
    font-size: 1rem;
  }

  .prose p,
  .prose li {
    font-size: 1.05rem;
  }

  .info-note,
  .humor-note,
  .warning-note {
    padding: 3.75rem 1.15rem 1.25rem;
  }

  .info-note::before,
  .humor-note::before,
  .warning-note::before {
    top: 1rem;
    left: 1.15rem;
  }

  .trust-bar article {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .trust-bar article:last-child {
    border-bottom: 0;
  }

  .about__image {
    min-height: 22rem;
  }

  .about__badge {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .footer__contact {
    grid-column: auto;
  }

  .footer__bottom nav {
    flex-wrap: wrap;
  }

  .floating-call span:last-child {
    display: none;
  }

  .floating-call {
    width: 3.3rem;
    padding: 0;
    justify-content: center;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-banner__actions .button {
    flex: 1;
  }
}

/* ====================================================================
   15. ACCESIBILIDAD: MENOS MOVIMIENTO Y ALTO CONTRASTE
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media (forced-colors: active) {
  .button,
  .floating-call,
  .slider-controls button {
    border: 2px solid currentColor;
  }
}
