/* ============================================================
   GELSSA — Public Stylesheet
   Colors: #B22222 / #DC143C (crimson), #0a0a0a (black), #fff, grises
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --crimson:        #DC143C;
  --crimson-dark:   #B22222;
  --crimson-deeper: #8B0000;
  --black:          #0a0a0a;
  --black-soft:     #0d0d0d;
  --black-card:     #141414;
  --black-mid:      #0f0f0f;
  --border-subtle:  #2a2a2a;
  --text-muted:     #b8b8b8;
  --text-faint:     #6e6e6e;
  --white:          #ffffff;
  --font-main:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.75;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.gelssa-preloader-active {
  overflow: hidden;
}

/* ── Preloader ─────────────────────────────────────────────
   Escudo bajo un barrido de radar, el nombre revelándose letra
   a letra y una línea de avance. La idea es que el primer
   segundo ya diga a qué se dedica la empresa.
   ────────────────────────────────────────────────────────── */
.gelssa-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, #1c0b0d 0%, #0b0708 55%, #050505 100%);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1),
              visibility .7s cubic-bezier(.4, 0, .2, 1);
}

/* Retícula tenue: da profundidad sin llamar la atención */
.gelssa-preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 20, 60, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 20, 60, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
  pointer-events: none;
}

.gelssa-preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gelssa-preloader--hide .gelssa-preloader-inner {
  transform: translateY(-14px) scale(.985);
}

.gelssa-preloader-inner {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

/* ── El escudo y su barrido ── */
.pl-escudo {
  position: relative;
  width: 208px;
  height: 208px;
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
}

.pl-logo {
  position: relative;
  z-index: 3;
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(220, 20, 60, .42));
  opacity: 0;
  animation: plEntraEscudo 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}

/* El haz que gira, como el de un radar */
.pl-barrido {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
              rgba(220, 20, 60, .55) 0deg,
              rgba(220, 20, 60, .16) 26deg,
              transparent 62deg,
              transparent 360deg);
  mask-image: radial-gradient(circle, transparent 46%, #000 49%, #000 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 46%, #000 49%, #000 100%);
  animation: plGira 2.6s linear infinite;
}

.pl-anillo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(220, 20, 60, .22);
  z-index: 2;
}
.pl-anillo-1 { inset: 0; }
.pl-anillo-2 {
  inset: 26px;
  border-color: rgba(255, 255, 255, .07);
  animation: plLatido 3.4s ease-in-out infinite;
}

@keyframes plGira   { to { transform: rotate(360deg); } }
@keyframes plLatido {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.05); opacity: 1; }
}
@keyframes plEntraEscudo {
  0%   { opacity: 0; transform: scale(.82); filter: drop-shadow(0 0 0 rgba(220, 20, 60, 0)); }
  100% { opacity: 1; transform: scale(1);   filter: drop-shadow(0 0 26px rgba(220, 20, 60, .42)); }
}

/* ── El nombre, letra por letra ── */
.pl-marca {
  margin: 0 0 .55rem;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: .42em;
  text-indent: .42em;            /* compensa el espaciado de la última letra */
  line-height: 1;
  color: #fff;
}
.pl-marca span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: plEntraLetra .5s cubic-bezier(.2, .8, .2, 1) forwards;
}
.pl-marca span:nth-child(1) { animation-delay: .34s; }
.pl-marca span:nth-child(2) { animation-delay: .42s; }
.pl-marca span:nth-child(3) { animation-delay: .50s; }
.pl-marca span:nth-child(4) { animation-delay: .58s; }
.pl-marca span:nth-child(5) { animation-delay: .66s; }
.pl-marca span:nth-child(6) { animation-delay: .74s; }

@keyframes plEntraLetra {
  to { opacity: 1; transform: none; }
}

.pl-razon {
  margin: 0 0 2rem;
  font-size: clamp(.66rem, 1.9vw, .78rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  opacity: 0;
  animation: plEntraLetra .6s ease .86s forwards;
}

/* ── La línea de avance ── */
.pl-linea {
  width: min(330px, 74vw);
  height: 2px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, .09);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: plEntraLetra .6s ease .96s forwards;
}
.pl-linea span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--crimson-deeper), var(--crimson) 60%, #ff5b78);
  box-shadow: 0 0 12px rgba(220, 20, 60, .7);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.pl-frase {
  margin: 0 auto;
  max-width: 30rem;
  font-size: clamp(.82rem, 2.2vw, .95rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  min-height: 3em;
  opacity: 0;
  animation: plEntraLetra .7s ease 1.1s forwards;
}

@media (max-width: 480px) {
  .pl-escudo { width: 168px; height: 168px; margin-bottom: 1.5rem; }
  .pl-logo   { width: 104px; height: 104px; }
  .pl-anillo-2 { inset: 21px; }
}

/* Quien pidió menos movimiento ve la misma pantalla, quieta */
@media (prefers-reduced-motion: reduce) {
  .pl-barrido, .pl-anillo-2 { animation: none; }
  .pl-logo, .pl-marca span, .pl-razon, .pl-linea, .pl-frase {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Efectos en títulos (entrada + brillo en gradiente) ───── */
.gelssa-title-observe {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gelssa-title-visible {
  opacity: 1;
  transform: none;
}
.hero-title .text-gradient-crimson {
  background-size: 200% auto;
  animation: gelssaGradientShift 5s ease infinite;
}
@keyframes gelssaGradientShift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
.section-title,
.page-hero-title {
  text-shadow: 0 0 40px rgba(220, 20, 60, 0.12);
}

/* Offset para navbar fija (Bootstrap layout) */
.pt-nav-offset {
  padding-top: 5.25rem;
}

@media (min-width: 992px) {
  .pt-nav-offset { padding-top: 5.5rem; }
}

.gelssa-brand-img {
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.45));
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #fff 0%, #DC143C 55%, #B22222 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.letter-spacing { letter-spacing: 0.08em; }
.letter-spacing-wide { letter-spacing: 0.12em; }
.min-vh-hero { min-height: calc(100vh - 6rem); }
@media (min-width: 992px) {
  .min-vh-hero { min-height: calc(100vh - 5.5rem); }
}

a { color: var(--crimson); text-decoration: none; transition: color .2s; }
a:hover { color: var(--crimson-dark); }

img { max-width: 100%; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-soft); }
::-webkit-scrollbar-thumb { background: var(--crimson-dark); border-radius: 3px; }

/* ── Typography helpers ─────────────────────────────────────── */
.text-crimson   { color: var(--crimson) !important; }
.text-muted-gel { color: var(--text-muted); }

.section-title {
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.65;
}

.crimson-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-dark));
  border-radius: 2px;
  margin: .75rem 0 1.5rem;
}

.crimson-divider.center { margin-left: auto; margin-right: auto; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-gelssa {
  background: rgba(10, 10, 10, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 20, 60, .25);
  padding: .75rem 0;
  transition: background .3s, box-shadow .3s;
}

.navbar-gelssa.scrolled {
  background: rgba(8, 8, 8, .98);
  box-shadow: 0 4px 24px rgba(0,0,0,.6);
}

.navbar-brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white) !important;
  text-transform: uppercase;
}

.navbar-brand img { filter: drop-shadow(0 0 6px rgba(220,20,60,.5)); }

.navbar-gelssa .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .08em;
  padding: .55rem 1rem !important;
  border-radius: 999px;
  text-transform: uppercase;
  position: relative;
  isolation: isolate;
  transition: color .28s ease, transform .28s ease, box-shadow .35s ease, text-shadow .28s ease;
}

/* Brillo de fondo al pasar el mouse */
.navbar-gelssa .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 120% 180% at 50% 0%, rgba(220, 20, 60, 0.45) 0%, rgba(220, 20, 60, 0.08) 55%, transparent 75%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .35s ease, transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.navbar-gelssa .nav-link:hover {
  color: #fff !important;
  transform: translateY(-3px);
  text-shadow: 0 0 20px rgba(220, 20, 60, 0.9), 0 0 40px rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(220, 20, 60, 0.35);
}

.navbar-gelssa .nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Ítem activo: anillo y ligera elevación */
.navbar-gelssa .nav-link.active {
  color: #fff !important;
  background: linear-gradient(145deg, rgba(220, 20, 60, 0.35) 0%, rgba(139, 0, 0, 0.55) 100%) !important;
  box-shadow:
    0 0 0 2px rgba(220, 20, 60, 0.85),
    0 6px 22px rgba(220, 20, 60, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.navbar-gelssa .nav-link.active::before {
  opacity: 0.55;
  transform: scale(1);
}

.btn-portal {
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  color: var(--white) !important;
  border: none;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}

.btn-portal:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,20,60,.4);
}

.navbar-toggler {
  border-color: rgba(220,20,60,.5) !important;
  padding: .35rem .65rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28220%2C20%2C60%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-crimson {
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  color: var(--white);
  border: none;
  padding: .7rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .3px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-crimson:hover {
  color: var(--white);
  opacity: .95;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,20,60,.4);
}

/* Botón principal corporativo (compatible con .btn de Bootstrap 5) */
.btn-crimson.btn,
a.btn-crimson {
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  border: none;
  color: var(--white) !important;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn-crimson:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.45);
}

.btn-crimson:disabled,
.btn-crimson.disabled {
  opacity: .55;
  transform: none;
  pointer-events: none;
}

.btn-outline-light:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.btn-outline-gel {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  padding: .68rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-outline-gel:hover {
  color: var(--white);
  border-color: var(--crimson);
  background: rgba(220,20,60,.08);
  transform: translateY(-2px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(160deg, #060606 0%, #0f0f0f 45%, #120808 100%);
  position: relative;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 40%, rgba(178, 34, 34, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(220, 20, 60, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.hero-section .z-2 { z-index: 2; }

.hero-dragon-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: min(55vw, 700px);
  opacity: .055;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 40px rgba(220,20,60,.3));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid rgba(220,20,60,.6);
  color: var(--crimson);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(220,20,60,.07);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,.78);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.2rem;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--crimson);
  line-height: 1.1;
}

/* Escudo corporativo — columna derecha del hero */
.hero-shield-card {
  background: linear-gradient(165deg, rgba(28, 28, 28, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 20, 60, 0.22) !important;
}

.hero-shield-img {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

.hero-shield-ratio {
  max-width: min(100%, 320px);
}

@media (max-width: 991.98px) {
  .hero-shield-showcase {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: .2rem;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* ── Page Hero (sub-pages) ──────────────────────────────────── */
.page-hero {
  min-height: 60vh;
  background: linear-gradient(135deg, #060606 0%, #0e0e0e 60%, #100506 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(178,34,34,.14) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-dragon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(45vw, 500px);
  opacity: .04;
  pointer-events: none;
}

.breadcrumb { --bs-breadcrumb-divider-color: #555; }
.breadcrumb-item a { color: var(--text-muted); font-size: .85rem; }
.breadcrumb-item.active { color: var(--crimson); font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: #444; }

/* ── Service Cards ──────────────────────────────────────────── */
.service-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220,20,60,.4);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(220,20,60,.1);
  border: 1px solid rgba(220,20,60,.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--crimson);
  margin-bottom: 1.25rem;
  transition: background .3s, transform .3s;
}

.service-card:hover .service-icon {
  background: rgba(220,20,60,.18);
  transform: scale(1.08);
}

.service-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.service-card h4,
.service-card h5 {
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  transition: gap .2s;
}

.service-link:hover { gap: .6rem; color: var(--crimson); }

/* ── Stats Banner ───────────────────────────────────────────── */
.stats-banner {
  background: linear-gradient(135deg, var(--crimson-deeper) 0%, var(--crimson-dark) 50%, var(--crimson) 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .4;
}

.stat-counter {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label-banner {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: .4rem;
}

.stat-item { text-align: center; }

.stat-divider-v {
  width: 1px;
  background: rgba(255,255,255,.2);
  align-self: stretch;
  min-height: 60px;
}

/* ── Why Choose Us ──────────────────────────────────────────── */
.check-list { list-style: none; padding: 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .65rem 0;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.check-list li:last-child { border-bottom: none; }

.check-icon {
  width: 26px;
  height: 26px;
  background: rgba(220,20,60,.15);
  border: 1px solid rgba(220,20,60,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--crimson);
  flex-shrink: 0;
  margin-top: .1rem;
}

.why-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-card-dragon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  opacity: .05;
  pointer-events: none;
}

.why-big-stat {
  font-size: 4rem;
  font-weight: 900;
  color: var(--crimson);
  line-height: 1;
  letter-spacing: -2px;
}

.why-big-label {
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Clients / Logos ────────────────────────────────────────── */
.client-logo-box {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--text-faint);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .2s, border-color .2s, transform .2s;
  cursor: default;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-box:hover {
  color: var(--text-muted);
  border-color: rgba(220,20,60,.35);
  transform: translateY(-3px);
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 40%, #0e0202 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(178,34,34,.2) 0%, transparent 65%);
}

.cta-section .section-title { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ── Services Detail Page ───────────────────────────────────── */
.service-detail-section {
  padding: 5rem 0;
  position: relative;
}

.service-detail-section:nth-child(even) { background: var(--black-mid); }

.service-detail-icon-large {
  width: 90px;
  height: 90px;
  background: rgba(220,20,60,.1);
  border: 1px solid rgba(220,20,60,.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--crimson);
  margin-bottom: 1.5rem;
}

.service-feature-list { list-style: none; padding: 0; }

.service-feature-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  color: rgba(255,255,255,.8);
  font-size: .93rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.service-feature-list li:last-child { border-bottom: none; }

.service-feature-list li i {
  color: var(--crimson);
  font-size: .75rem;
  flex-shrink: 0;
}

.service-visual-box {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-visual-box .visual-icon { font-size: 5rem; color: rgba(220,20,60,.15); }

.service-visual-box .visual-bg-text {
  position: absolute;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(220,20,60,.04);
  user-select: none;
  letter-spacing: -3px;
}

/* ── Proposal Box ───────────────────────────────────────────── */
.proposal-box {
  background: var(--black-card);
  border: 1px solid rgba(220,20,60,.25);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.proposal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson));
}

/* ── About / Nosotros ───────────────────────────────────────── */
.mission-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  height: 100%;
  transition: border-color .3s, transform .3s;
  text-align: center;
}

.mission-card:hover {
  border-color: rgba(220,20,60,.4);
  transform: translateY(-4px);
}

.mission-icon {
  width: 64px;
  height: 64px;
  background: rgba(220,20,60,.1);
  border: 1px solid rgba(220,20,60,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--crimson);
  margin: 0 auto 1.25rem;
}

.mission-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.mission-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline { position: relative; padding: 1rem 0; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--crimson-dark) 10%, var(--crimson) 50%, var(--crimson-dark) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2.5rem);
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2.5rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--crimson);
  border: 3px solid var(--black);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(220,20,60,.6);
  z-index: 2;
}

.timeline-content {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 380px;
  position: relative;
  transition: border-color .3s;
}

.timeline-content:hover { border-color: rgba(220,20,60,.35); }

.timeline-year {
  font-size: .78rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .3rem;
}

.timeline-content h6 {
  font-weight: 700;
  margin-bottom: .25rem;
  font-size: .95rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── Team Cards ─────────────────────────────────────────────── */
.team-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: border-color .3s, transform .3s;
}

.team-card:hover {
  border-color: rgba(220,20,60,.4);
  transform: translateY(-5px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 20px rgba(220,20,60,.3);
}

.team-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.team-role {
  font-size: .8rem;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  margin-bottom: .75rem;
}

.team-card p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Certifications ─────────────────────────────────────────── */
.cert-badge {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  transition: border-color .3s, transform .3s;
}

.cert-badge:hover {
  border-color: rgba(220,20,60,.35);
  transform: translateY(-3px);
}

.cert-badge .cert-icon {
  font-size: 2rem;
  color: var(--crimson);
  margin-bottom: .5rem;
}

.cert-badge span {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
}

/* ── Contact Form ───────────────────────────────────────────── */
.contact-form-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.form-control,
.form-select {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: .65rem 1rem !important;
  font-size: .9rem !important;
  transition: border-color .2s, box-shadow .2s !important;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(220,20,60,.6) !important;
  box-shadow: 0 0 0 3px rgba(220,20,60,.12) !important;
  background: #1e1e1e !important;
  outline: none !important;
}

.form-control::placeholder { color: #555 !important; }

.form-select option {
  background: #1a1a1a;
  color: var(--white);
}

textarea.form-control { resize: vertical; min-height: 130px; }

/* ── Contact Info Cards ─────────────────────────────────────── */
.contact-info-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: border-color .3s;
}

.contact-info-card:hover { border-color: rgba(220,20,60,.35); }

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(220,20,60,.1);
  border: 1px solid rgba(220,20,60,.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--crimson);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  margin-bottom: .2rem;
}

.contact-info-value {
  font-size: .93rem;
  font-weight: 600;
  color: var(--white);
}

/* ── Map placeholder ────────────────────────────────────────── */
.map-placeholder {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: .85rem;
  gap: .5rem;
}

.map-placeholder i { font-size: 2.5rem; color: rgba(220,20,60,.25); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 0;
}

.footer-brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .3rem;
  font-style: italic;
}

.footer-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--crimson);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: .55rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: .88rem;
  transition: color .2s, padding-left .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: .3rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: .65rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--crimson);
  font-size: .85rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: .65rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.footer-social a:hover {
  background: rgba(220,20,60,.15);
  border-color: rgba(220,20,60,.4);
  color: var(--crimson);
  transform: translateY(-2px);
}

.footer-bottom {
  background: rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1.25rem 0;
  margin-top: 4rem;
}

.footer-bottom p { font-size: .8rem; color: var(--text-faint); margin: 0; }

.footer-bottom .certified-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--text-faint);
}

.footer-bottom .certified-badge i { color: var(--crimson); }

/* ── Sections ───────────────────────────────────────────────── */
.section-pad    { padding: 5.5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

/* ── Utilities ──────────────────────────────────────────────── */
.bg-black-soft { background: var(--black-soft); }
.bg-black-mid  { background: var(--black-mid); }
.bg-black-card { background: var(--black-card); }
.border-subtle { border-color: var(--border-subtle) !important; }

/* ── Fade-up animation ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .timeline::before { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  .timeline-dot { left: 1rem; }
  .hero-dragon-watermark { opacity: .03; width: 100vw; right: -30vw; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.2rem; }
  .section-pad { padding: 3.5rem 0; }
  .stat-divider-v { display: none; }
  .contact-form-card { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-stat-divider { display: none; }
}

/* ── ADDITIONAL UTILITY CLASSES ─────────────────────────────── */

/* Section backgrounds */
.section-dark    { background-color: #0a0a0a; }
.section-surface { background-color: #0f0f0f; }

/* Legibilidad: Bootstrap `text-muted` es demasiado oscuro sobre fondo negro */
.section-dark .text-muted,
.section-surface .text-muted,
.section-dark p.text-muted,
.section-surface p.text-muted,
.section-dark .lead,
.section-surface .lead {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Divider bar */
.divider-crimson {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, #B22222, #DC143C);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* Outline and white buttons */
.btn-outline-crimson {
  display: inline-flex;
  align-items: center;
  border: 2px solid #B22222;
  color: #DC143C;
  background: transparent;
  border-radius: 8px;
  padding: .75rem 1.75rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: .3s;
  cursor: pointer;
}
.btn-outline-crimson:hover { background: #B22222; color: #fff; }

.btn-white {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #0a0a0a;
  border-radius: 8px;
  padding: .75rem 1.75rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: .3s;
  cursor: pointer;
  border: none;
}
.btn-white:hover { background: #e0e0e0; color: #0a0a0a; }

/* Hero dragon watermark (páginas internas) */
.hero-dragon {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(700px, 55vw);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Stats banner label */
.stats-banner .stat-label {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
}

/* ── Página Nosotros ─────────────────────────────────────── */
.page-nosotros .nosotros-text {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: none !important;
}
.page-nosotros .section-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}
.page-nosotros .nosotros-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #f87171;
  line-height: 1.2;
}
.page-nosotros .nosotros-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}
.page-nosotros .mvv-card.card {
  background: #141414 !important;
  border-color: #2a2a2a !important;
  color: #fff;
}
.page-nosotros .mvv-icon {
  width: 64px;
  height: 64px;
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid rgba(220, 20, 60, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: #fca5a5;
}
.page-nosotros .mvv-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}


/* =============================================================
   BOTONES — un solo sistema
   Había seis clases distintas (.btn-portal, .btn-crimson,
   .btn-outline-light, .btn-outline-gel, .btn-outline-crimson,
   .btn-white) y cada una con su altura y su tipografía. Aquí
   quedan reducidas a tres tratamientos, en rojo, negro y blanco.
   Los nombres viejos siguen valiendo para no romper el HTML.
   ============================================================= */

.btn-gel,
.btn-gel-fantasma,
.btn-gel-blanco,
.btn-portal,
.btn-crimson,
.btn-white,
.btn-outline-gel,
.btn-outline-crimson,
.btn-outline-light {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.75rem;
  border-radius: .55rem;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-position .5s ease, transform .25s ease,
              box-shadow .25s ease, background-color .25s ease,
              border-color .25s ease, color .25s ease;
}

/* ── Primario: rojo, con el barrido de brillo al pasar ── */
.btn-gel,
.btn-portal,
.btn-crimson {
  border: none;
  color: var(--white);
  background: linear-gradient(135deg, #8B0000 0%, #B22222 35%, #DC143C 50%, #B22222 65%, #8B0000 100%);
  background-size: 200% 100%;
  box-shadow: 0 6px 24px rgba(220, 20, 60, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-gel:hover,
.btn-portal:hover,
.btn-crimson:hover {
  background-position: 100% 0;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(220, 20, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-gel::after,
.btn-portal::after,
.btn-crimson::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-22deg);
  transition: left .7s ease;
  pointer-events: none;
}
.btn-gel:hover::after,
.btn-portal:hover::after,
.btn-crimson:hover::after { left: 130%; }

/* ── Fantasma: se apoya en el fondo negro ── */
.btn-gel-fantasma,
.btn-outline-gel,
.btn-outline-crimson,
.btn-outline-light {
  border: 1px solid rgba(220, 20, 60, .5);
  background: rgba(220, 20, 60, .06);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-gel-fantasma:hover,
.btn-outline-gel:hover,
.btn-outline-crimson:hover,
.btn-outline-light:hover {
  background: rgba(220, 20, 60, .16);
  border-color: var(--crimson);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Blanco: para el hero, donde el rojo se pierde sobre la foto ── */
.btn-gel-blanco,
.btn-white {
  border: none;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.btn-gel-blanco:hover,
.btn-white:hover {
  background: #e8e8e8;
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
}

.btn-gel:focus-visible,
.btn-gel-fantasma:focus-visible,
.btn-gel-blanco:focus-visible,
.btn-portal:focus-visible,
.btn-crimson:focus-visible,
.btn-white:focus-visible,
.btn-outline-gel:focus-visible,
.btn-outline-crimson:focus-visible,
.btn-outline-light:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

.btn-gel:disabled, .btn-gel.disabled,
.btn-crimson:disabled, .btn-crimson.disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =============================================================
   REDES SOCIALES
   Círculo neutro en reposo que se enciende con el color de cada
   red al pasar. En reposo no compiten con el rojo de la marca.
   ============================================================= */
.footer-social { display: flex; gap: .6rem; flex-wrap: wrap; }

.footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.12rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1),
              background .28s ease, color .28s ease,
              border-color .28s ease, box-shadow .28s ease;
}
.footer-social a:hover {
  transform: scale(1.14);
  color: #fff;
  border-color: transparent;
}
.footer-social a.red-fb:hover { background: #1877f2; box-shadow: 0 0 18px rgba(24, 119, 242, .6); }
.footer-social a.red-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); box-shadow: 0 0 18px rgba(220, 39, 67, .6); }
.footer-social a.red-in:hover { background: #0a66c2; box-shadow: 0 0 18px rgba(10, 102, 194, .6); }
.footer-social a.red-tk:hover { background: #000; color: #25f4ee; border: 1px solid #25f4ee; box-shadow: 0 0 18px rgba(37, 244, 238, .45); }
.footer-social a.red-wa:hover { background: #25d366; box-shadow: 0 0 18px rgba(37, 211, 102, .6); }

.footer-social a:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

/* =============================================================
   BOTÓN FLOTANTE DE WHATSAPP
   Discreto a propósito. Una empresa de seguridad no se anuncia con
   un botón verde encendido: el círculo va en el negro de la marca,
   con el borde apenas insinuado, y el verde solo aparece cuando el
   visitante ya decidió pulsarlo.
   ============================================================= */
.wa-flotante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(18, 18, 18, .92);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
  font-size: 1.24rem;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
  transition: width .34s cubic-bezier(.2, .8, .2, 1),
              border-radius .34s cubic-bezier(.2, .8, .2, 1),
              background-color .24s ease, border-color .24s ease,
              color .24s ease, box-shadow .24s ease;
}

.wa-flotante:hover,
.wa-flotante:focus-visible {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
  box-shadow: 0 6px 20px rgba(31, 157, 85, .3);
}
.wa-flotante:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* El texto se despliega al pasar, y solo en pantalla amplia */
.wa-globo {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .34s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}
@media (min-width: 992px) {
  .wa-flotante:hover,
  .wa-flotante:focus-visible {
    width: auto;
    padding: 0 20px 0 17px;
    border-radius: 24px;
  }
  .wa-flotante:hover .wa-globo,
  .wa-flotante:focus-visible .wa-globo { max-width: 230px; opacity: 1; }
}

@media (max-width: 575px) {
  .wa-flotante { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-flotante { transition: background-color .2s ease, color .2s ease; }
}

/* Que no tape el pie al llegar abajo del todo. El botón mide 48px
   de alto y va a 22px del borde: 70px ocupados. */
.site-footer { padding-bottom: 5.5rem; }
