﻿/* ==========================================================================
   Talleres Manza — hoja de estilos
   Bootstrap 5.3 se carga antes; aquí solo va el tema y los componentes propios.
   ========================================================================== */

:root {
  /* Verde corporativo (logo #006D04): color estructural, fondos y enlaces.
     Sobre él siempre va texto blanco. */
  --verde-900: #0b3317;
  --verde-800: #11441f;
  --verde-700: #175a28;
  --verde-600: #1b7031;
  --verde-500: #229443;

  /* Rojo corporativo (logo #9D0305): acento.
     Solo como relleno sólido con texto blanco, o como texto sobre fondo claro.
     Ningún rojo puro llega al contraste AA sobre fondo oscuro: ahí va blanco. */
  --rojo:      #c1121c;
  --rojo-osc:  #9d0305;
  --rojo-claro:#fdecec;

  /* Neutros, con una pizca de verde para que no desentonen */
  --gris-50:  #fafcfa;
  --gris-100: #f2f6f2;
  --gris-200: #e4ebe5;
  --gris-300: #ccd8ce;
  --texto:       #1a2620;
  --texto-suave: #5a6b60;

  --radio:    14px;
  --radio-sm: 8px;
  --sombra:    0 2px 8px rgba(9, 40, 20, .07);
  --sombra-md: 0 10px 30px rgba(9, 40, 20, .12);
  --sombra-lg: 0 22px 50px rgba(9, 40, 20, .18);

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --texto-ff: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--texto-ff);
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
}

a { color: var(--verde-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rojo-osc); }

/* Compensa la navbar fija al saltar a un ancla. */
section[id], div[id], h2[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Doble anillo: el rojo destaca sobre fondo claro y el halo blanco sobre el
   verde oscuro, así el foco siempre llega al 3:1 que pide la WCAG. */
:focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .85);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: .5rem; left: .5rem;
  z-index: 2000;
  background: var(--verde-900);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radio-sm);
}

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

.btn {
  font-weight: 600;
  border-radius: var(--radio-sm);
  padding: .7rem 1.4rem;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn i { margin-right: .4rem; }

.btn-acento {
  background: var(--rojo);
  border: 1px solid var(--rojo);
  color: #fff;
  box-shadow: 0 4px 14px rgba(193, 18, 28, .28);
}
.btn-acento:hover,
.btn-acento:focus {
  background: var(--rojo-osc);
  border-color: var(--rojo-osc);
  color: #fff;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover,
.btn-hero-outline:focus {
  background: #fff;
  color: var(--verde-900);
  border-color: #fff;
}

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--verde-600);
  text-decoration: none;
}
.enlace-flecha i { transition: transform .18s ease; }
.enlace-flecha:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------- Topbar ---- */

.topbar {
  background: var(--verde-900);
  color: rgba(255, 255, 255, .78);
  font-size: .85rem;
  padding: .5rem 0;
}
.topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar i { color: rgba(255, 255, 255, .55); margin-right: .35rem; }
.topbar__datos li + li { margin-left: 1.75rem; }

/* -------------------------------------------------------------- Navbar --- */

.navbar-principal {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-200);
  padding: .6rem 0;
  min-height: var(--nav-h);
  transition: box-shadow .2s ease, padding .2s ease;
}
.navbar-principal.is-scrolled {
  box-shadow: var(--sombra-md);
  padding: .35rem 0;
}
.navbar-brand img {
  height: 46px;
  width: auto;
  transition: height .2s ease;
}
.navbar-principal.is-scrolled .navbar-brand img { height: 38px; }

.navbar-principal .nav-link {
  font-weight: 600;
  font-size: .95rem;
  color: var(--verde-900);
  padding: .55rem .85rem;
  border-radius: var(--radio-sm);
  position: relative;
}
.navbar-principal .nav-link:hover,
.navbar-principal .nav-link:focus { color: var(--rojo-osc); }

.navbar-principal .nav-link.activo { color: var(--rojo-osc); }
.navbar-principal .nav-link.activo::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .25rem;
  height: 2px;
  background: var(--rojo);
  border-radius: 2px;
}

.navbar-toggler { border-color: var(--gris-300); }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: .75rem 0 1rem;
    margin-top: .6rem;
    border-top: 1px solid var(--gris-200);
  }
  .navbar-principal .nav-link.activo::after { display: none; }
}

/* ---------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 78vh, 680px);
  padding: 4.5rem 0;
  color: #fff;
  overflow: hidden;
  background: var(--verde-900);
}

.hero__media { position: absolute; inset: 0; }
/* La foto de soldadura tiene chispas azules que enturbian el velo verde:
   se desatura para que el verde corporativo mande y las chispas queden plata. */
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(.8) contrast(1.1);
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 40, 20, .95) 0%, rgba(9, 40, 20, .82) 45%, rgba(9, 40, 20, .45) 100%),
    linear-gradient(to top, rgba(9, 40, 20, .85), transparent 55%);
}

.hero__contenido { position: relative; max-width: 720px; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 100px;
  padding: .45rem 1rem;
  margin-bottom: 1.5rem;
}
.hero__punto {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rojo);
  box-shadow: 0 0 0 4px rgba(193, 18, 28, .3);
}

.hero__titulo {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
/* Sobre el verde oscuro el rojo no llegaría al contraste mínimo como texto,
   así que se invierte: bloque rojo con el texto en blanco. */
.hero__titulo .acento {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  padding: 0 .28em .06em;
  border-radius: 6px;
  text-shadow: none;
}

.hero__texto {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
  max-width: 58ch;
  margin-bottom: 1.25rem;
}

.hero__claim {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  border-left: 4px solid var(--rojo);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.hero__acciones { display: flex; flex-wrap: wrap; gap: .85rem; }

/* -------------------------------------------------------------- Avales --- */

.avales {
  background: var(--verde-800);
  padding: 1.5rem 0;
  border-top: 3px solid var(--rojo);
}
.avales__lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
}
.avales__item {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
}
/* Icono blanco sobre pastilla roja: mantiene el acento de marca sin depender
   del contraste entre rojo y verde. */
.avales__item i {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  background: var(--rojo);
  border-radius: var(--radio-sm);
}
.avales__item strong { display: block; font-size: 1rem; line-height: 1.3; }
.avales__item small { color: rgba(255, 255, 255, .68); font-size: .82rem; }

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

.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion--gris   { background: var(--gris-100); }
.seccion--oscura { background: var(--verde-900); color: rgba(255, 255, 255, .85); }

.seccion__cabecera {
  max-width: 760px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
}

.seccion__kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rojo-osc);
  margin-bottom: .6rem;
}
.seccion__kicker--claro { color: rgba(255, 255, 255, .8); }

.seccion__titulo {
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
  color: var(--verde-900);
  margin-bottom: 1rem;
}
.seccion__titulo--claro { color: #fff; }

.seccion__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texto-suave);
  margin-bottom: 0;
}

/* ----------------------------------------------------------- Servicios --- */

.tarjeta-servicio {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tarjeta-servicio:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-lg);
  border-color: var(--gris-300);
}

.tarjeta-servicio__media {
  aspect-ratio: 16 / 9;
  background: var(--gris-100);
  overflow: hidden;
}
.tarjeta-servicio__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tarjeta-servicio:hover .tarjeta-servicio__media img { transform: scale(1.06); }

.tarjeta-servicio__cuerpo {
  position: relative;
  padding: 2.25rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tarjeta-servicio__icono {
  position: absolute;
  top: -26px; left: 1.5rem;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--rojo);
  color: #fff;
  font-size: 1.35rem;
  border-radius: var(--radio-sm);
  box-shadow: 0 6px 18px rgba(193, 18, 28, .35);
}
.tarjeta-servicio__icono i { margin: 0; }

.tarjeta-servicio__titulo {
  font-size: 1.5rem;
  color: var(--verde-900);
  margin-bottom: .65rem;
}
.tarjeta-servicio__texto {
  color: var(--texto-suave);
  line-height: 1.65;
  font-size: .96rem;
  flex-grow: 1;
}

/* ----------------------------------------------------------- Depósitos --- */

.pestanas-deposito {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}
.pestanas-deposito .nav-item { display: flex; }

.pestanas-deposito__btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--gris-200);
  border-radius: var(--radio-sm);
  padding: .95rem 1.15rem;
  cursor: pointer;
  transition: all .18s ease;
  border-left: 3px solid transparent;
}
.pestanas-deposito__btn:hover {
  border-color: var(--gris-300);
  border-left-color: var(--rojo);
}
.pestanas-deposito__btn.active {
  background: var(--verde-900);
  border-color: var(--verde-900);
  border-left-color: var(--rojo);
  box-shadow: var(--sombra-md);
}
.pestanas-deposito__nombre {
  display: block;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--verde-900);
  line-height: 1.15;
}
.pestanas-deposito__resumen {
  display: block;
  font-size: .82rem;
  color: var(--texto-suave);
  margin-top: .15rem;
}
.pestanas-deposito__btn.active .pestanas-deposito__nombre { color: #fff; }
.pestanas-deposito__btn.active .pestanas-deposito__resumen { color: rgba(255, 255, 255, .75); }

.panel-deposito {
  background: #fff;
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sombra);
}

.panel-deposito__figura {
  margin: 0;
  border-radius: var(--radio-sm);
  overflow: hidden;
  background: var(--gris-100);
  border: 1px solid var(--gris-200);
}
.panel-deposito__figura img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.panel-deposito__titulo {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  text-transform: uppercase;
  color: var(--verde-900);
  margin-bottom: .75rem;
}
.panel-deposito__intro {
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.lista-check { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.lista-check li {
  display: flex;
  gap: .7rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--gris-200);
  font-size: .95rem;
  line-height: 1.55;
}
.lista-check li:last-child { border-bottom: 0; }
.lista-check i {
  color: var(--rojo);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .15rem;
}

.tabla-medidas {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gris-200);
}
.tabla-medidas__titulo {
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--verde-900);
  margin-bottom: 1rem;
}
.tabla-medidas .table { font-size: .92rem; }
.tabla-medidas thead th {
  background: var(--verde-900);
  color: #fff;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-color: var(--verde-700);
  white-space: nowrap;
}
.tabla-medidas thead tr:first-child th[colspan] {
  background: var(--rojo);
  border-color: var(--rojo-osc);
}
.tabla-medidas tbody td {
  border-color: var(--gris-200);
  white-space: nowrap;
}
.tabla-medidas tbody tr:nth-child(odd) { background: var(--gris-50); }
.tabla-medidas tbody td:first-child { font-weight: 600; color: var(--verde-900); }
.tabla-medidas__nota {
  margin: 1rem 0 0;
  font-size: .88rem;
  color: var(--texto-suave);
  font-style: italic;
}

.depositos__otros {
  margin: 1.75rem 0 0;
  text-align: center;
  color: var(--texto-suave);
  font-size: .96rem;
}
.depositos__otros i { color: var(--rojo); margin-right: .4rem; }
.depositos__otros strong { color: var(--verde-900); }

/* ------------------------------------------------------------ Gasóleos --- */

.gasoleos__texto {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 1.75rem;
}

.gasoleos__tipos { display: grid; gap: .85rem; margin-bottom: 1.75rem; }
.gasoleos__tipo {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radio-sm);
  padding: .9rem 1.15rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .88);
}
.gasoleos__letra {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--rojo);
  color: #fff;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: var(--radio-sm);
}

.gasoleos__cta { color: rgba(255, 255, 255, .8); font-size: .98rem; }
.gasoleos__cta a { color: #fff; font-weight: 600; text-decoration: underline; }
.gasoleos__cta a:hover { text-decoration-thickness: 2px; }

.gasoleos__figura {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-lg);
}
.gasoleos__figura img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ------------------------------------------------------------- Empresa --- */

.empresa__figura { position: relative; }
.empresa__figura img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra-lg);
}
.empresa__sello {
  position: absolute;
  right: -12px; bottom: -20px;
  background: var(--rojo);
  color: #fff;
  border-radius: var(--radio);
  padding: 1.15rem 1.4rem;
  box-shadow: var(--sombra-lg);
  text-align: center;
  max-width: 190px;
}
.empresa__sello strong {
  display: block;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
}
.empresa__sello span { font-size: .82rem; line-height: 1.35; display: block; }

.empresa__texto { color: var(--texto-suave); line-height: 1.75; margin-bottom: 1rem; }

.empresa__datos { margin-top: 2rem; }
.empresa__dato {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--verde-900);
  line-height: 1.1;
}
.empresa__dato-txt {
  display: block;
  font-size: .8rem;
  color: var(--texto-suave);
  border-top: 2px solid var(--rojo);
  padding-top: .35rem;
  margin-top: .25rem;
}

@media (max-width: 991.98px) {
  .empresa__figura { margin-bottom: 2.5rem; }
  .empresa__sello { right: 12px; bottom: -18px; }
}

/* ------------------------------------------------------------- Galería --- */

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.galeria__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--gris-200);
  border-radius: var(--radio-sm);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform .2s ease, box-shadow .2s ease;
}
.galeria__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.galeria__item:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }
.galeria__item:hover img { transform: scale(1.08); }

.galeria__lupa {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 40, 20, .55);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.galeria__item:hover .galeria__lupa,
.galeria__item:focus-visible .galeria__lupa { opacity: 1; }

/* Visor modal */
.visor .modal-content {
  background: var(--verde-900);
  color: #fff;
  border: 0;
  border-radius: var(--radio);
}
.visor .modal-header,
.visor .modal-footer { border-color: rgba(255, 255, 255, .12); }
.visor .modal-body {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
  min-height: 50vh;
}
.visor .modal-body img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radio-sm);
}
.visor__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .18s ease;
  z-index: 2;
}
.visor__nav:hover { background: var(--rojo); }
.visor__nav--prev { left: 1rem; }
.visor__nav--next { right: 1rem; }
.visor__pie { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------ Contacto --- */

.ficha-contacto {
  background: var(--verde-900);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radio);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--sombra-md);
}
.ficha-contacto__titulo {
  font-size: 1.6rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: .85rem;
  border-bottom: 3px solid var(--rojo);
}
.ficha-contacto__bloque {
  display: flex;
  gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: .94rem;
  line-height: 1.6;
}
.ficha-contacto__bloque:last-child { border-bottom: 0; padding-bottom: 0; }
.ficha-contacto__bloque > i {
  color: rgba(255, 255, 255, .6);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: .15rem;
}
.ficha-contacto address { font-style: normal; }
.ficha-contacto a {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.ficha-contacto a:hover { color: #fff; text-decoration: underline; }
.ficha-contacto__telefonos p {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0 0 .35rem;
}
.ficha-contacto__etiqueta {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .45);
}
.ficha-contacto__fax {
  display: block;
  font-size: .86rem;
  color: rgba(255, 255, 255, .55);
  margin-top: .35rem;
}

.ficha-contacto__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.ficha-contacto__acciones .btn { flex: 1 1 auto; }

.btn-ficha-outline {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}
.btn-ficha-outline:hover,
.btn-ficha-outline:focus {
  background: #fff;
  border-color: #fff;
  color: var(--verde-900);
}

.mapa {
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--gris-200);
  box-shadow: var(--sombra);
  line-height: 0;
}
.mapa iframe { width: 100%; border: 0; display: block; }

/* En la sección de contacto el mapa ocupa el alto de la ficha de al lado. */
.mapa--grande { height: calc(100% - 3rem); min-height: 460px; }
.mapa--grande iframe { height: 100%; min-height: 460px; }

.mapa__pie {
  margin: .9rem 0 0;
  font-size: .93rem;
  color: var(--texto-suave);
}
.mapa__pie i { color: var(--rojo); margin-right: .4rem; }
.mapa__pie a { color: var(--verde-600); font-weight: 600; text-decoration: none; }
.mapa__pie a:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
  .mapa--grande { height: auto; min-height: 360px; }
  .mapa--grande iframe { min-height: 360px; }
}

/* ---------------------------------------------------------------- Pie ---- */

.pie {
  background: var(--verde-900);
  color: rgba(255, 255, 255, .68);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  font-size: .93rem;
}
.pie__logo {
  background: #fff;
  border-radius: var(--radio-sm);
  padding: .5rem .75rem;
  height: auto;
  max-width: 200px;
}
.pie__texto { line-height: 1.7; font-style: normal; }
.pie__claim {
  font-family: var(--display);
  font-size: 1.2rem;
  color: #fff;
  border-left: 4px solid var(--rojo);
  padding-left: .85rem;
  margin-top: 1rem;
}
.pie__titulo {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.pie__lista li { margin-bottom: .5rem; }
.pie__lista a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.pie__lista a:hover { color: #fff; text-decoration: underline; }
.pie__lista i { color: rgba(255, 255, 255, .5); margin-right: .45rem; }

.pie__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}
.pie__legal ul { gap: 1.25rem; }
.pie__legal a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.pie__legal a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------ Acciones fijas --- */

.acciones-movil {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1030;
  display: flex;
  background: var(--verde-900);
  box-shadow: 0 -4px 20px rgba(9, 40, 20, .25);
}
.acciones-movil__btn {
  flex: 1;
  padding: .85rem .5rem;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
}
.acciones-movil__btn i { margin-right: .35rem; }
.acciones-movil__btn--acento { background: var(--rojo); }

@media (max-width: 991.98px) {
  body { padding-bottom: 56px; }
}

.volver-arriba {
  position: fixed;
  right: 1rem;
  bottom: 4.5rem;
  z-index: 1020;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--verde-900);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: var(--sombra-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .22s ease;
}
.volver-arriba.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.volver-arriba:hover { background: var(--rojo); }

@media (min-width: 992px) {
  .volver-arriba { bottom: 1.5rem; }
}

/* --------------------------------------------- Aparición al hacer scroll -- */

.revelar {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; }
}

/* ---------------------------------------------------- Páginas interiores -- */

/* Solo padding vertical: si se usa el atajo `padding: X 0` se anula el padding
   horizontal que trae .container y el texto se desalinea de la cabecera. */
.pagina-interior .contenido-legal {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.pagina-interior .contenido-legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  text-transform: uppercase;
  color: var(--verde-900);
  margin-bottom: 1.5rem;
}
.pagina-interior .contenido-legal h2 {
  font-size: 1.5rem;
  color: var(--verde-900);
  margin: 2rem 0 .75rem;
}
.pagina-interior .contenido-legal h3 {
  font-size: 1.2rem;
  color: var(--verde-700);
  margin: 1.75rem 0 .6rem;
}
.pagina-interior .contenido-legal p,
.pagina-interior .contenido-legal li {
  color: var(--texto-suave);
  line-height: 1.75;
}
.pagina-interior .contenido-legal li { margin-bottom: .4rem; }
.pagina-interior .contenido-legal table { font-size: .93rem; }
.pagina-interior .contenido-legal thead th {
  background: var(--verde-900);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
  border-color: var(--verde-700);
}

/* --------------------------------------- Lateral de las páginas legales --- */

.indice-legal {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: var(--gris-100);
  border: 1px solid var(--gris-200);
  border-left: 3px solid var(--rojo);
  border-radius: var(--radio);
  padding: 1.5rem;
}
.indice-legal__bloque + .indice-legal__bloque { margin-top: 1.75rem; }

.indice-legal__titulo {
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--verde-900);
  margin: 0 0 .85rem;
}

.indice-legal__lista { list-style: none; padding: 0; margin: 0; }
.indice-legal__lista li { margin-bottom: .5rem; }
.indice-legal__lista a {
  display: block;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--texto-suave);
  text-decoration: none;
  padding-left: .85rem;
  border-left: 2px solid var(--gris-300);
}
.indice-legal__lista a:hover,
.indice-legal__lista a:focus {
  color: var(--verde-600);
  border-left-color: var(--verde-600);
}
.indice-legal__lista a.es-actual,
.indice-legal__lista a.activo {
  color: var(--verde-900);
  font-weight: 600;
  border-left-color: var(--rojo);
}

.indice-legal__contacto {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gris-300);
  font-size: .9rem;
  line-height: 1.7;
  color: var(--texto-suave);
}
.indice-legal__contacto a { color: var(--verde-600); font-weight: 600; text-decoration: none; }
.indice-legal__contacto a:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
  .indice-legal { position: static; margin-top: 2.5rem; }
  /* Un índice por debajo del texto ya no ayuda a navegar. */
  #indiceLegal { display: none !important; }
}
