/* ==========================================================================
   TEMPLADORA DEL BAJÍO — HOJA DE ESTILOS PRINCIPAL (CSS3 PURO)
   Paleta corporativa: #0400aa (Navy) · #0041c4 (Royal) · #00bae5 (Cyan)
   ========================================================================== */

:root {
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --brand-navy: #0400aa;
  --brand-royal: #0041c4;
  --brand-cyan: #00bae5;
  --surface-canvas: #F8FAFC;
  --surface-white: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.8);
  --border-glass: rgba(4, 0, 170, 0.12);

  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --slate-950: #020617;

  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-300: #6EE7B7;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065F46;

  --amber-400: #FBBF24;
  --red-700: #B91C1C;

  --container-wide: 1760px;
  --container-std: 1680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-canvas);
  color: var(--slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

.font-mono-tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
}

.container-std {
  width: 100%;
  max-width: var(--container-std);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   NAVBAR CORPORATIVO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 16px -6px rgba(4, 0, 170, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 4px;
}

.brand-link:focus-visible {
  outline: 2px solid var(--brand-royal);
  outline-offset: 4px;
}

.brand-bar {
  display: inline-block;
  width: 8px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-navy));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}

.nav-link {
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 200ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-cyan);
  transition: width 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-royal);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-nav-cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--brand-navy);
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px -4px rgba(4, 0, 170, 0.45);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.btn-nav-cta:hover {
  background-color: var(--brand-royal);
}

.btn-nav-cta:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: #ffffff;
  border: 1px solid rgba(4, 0, 170, 0.16);
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--brand-navy);
  border-radius: 2px;
}

/* ==========================================================================
   SECCIÓN 1: HERO PRINCIPAL + TARJETAS DE MÉTRICAS
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 1.5rem 4.5rem;
  border-bottom: 1px solid rgba(0, 65, 196, 0.08);
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 58% 62% at 88% 10%, rgba(0, 186, 229, 0.08) 0%, rgba(0, 65, 196, 0.05) 38%, transparent 72%),
    radial-gradient(ellipse 46% 48% at 10% 85%, rgba(0, 186, 229, 0.045) 0%, transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  overflow: hidden;
}

/* Cuadrícula arquitectónica ultra fina tipo plano CAD con desvanecido suave */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(4, 0, 170, 0.036) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4, 0, 170, 0.036) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 84% 78% at 56% 32%, #000000 22%, transparent 86%);
  mask-image: radial-gradient(ellipse 84% 78% at 56% 32%, #000000 22%, transparent 86%);
}

.hero-section > .container-wide {
  position: relative;
  z-index: 1;
}

.hero-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-royal), var(--brand-cyan));
  opacity: 0.9;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  gap: 3.5rem;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 3.45vw, 4.15rem);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}

.hero-paragraph {
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
  color: var(--slate-600);
  line-height: 1.68;
  max-width: 44rem;
  margin-bottom: 1.25rem;
}

.hero-paragraph strong {
  font-weight: 600;
  color: var(--brand-navy);
}

.hero-paragraph--last {
  margin-bottom: 2.5rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--brand-royal);
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 12px 26px -8px rgba(0, 65, 196, 0.55);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.btn-hero-primary:hover {
  background-color: var(--brand-navy);
  box-shadow: 0 14px 30px -6px rgba(4, 0, 170, 0.6);
  transform: translateY(-1px);
}

.btn-hero-primary:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* Carrusel Hero */
.hero-right {
  display: flex;
  flex-direction: column;
}

.hero-carousel {
  position: relative;
  flex: 1;
  min-height: clamp(460px, 34vw, 580px);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(4, 0, 170, 0.15);
  background-color: rgba(4, 0, 170, 0.05);
  box-shadow: 0 28px 56px -18px rgba(4, 0, 170, 0.24);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  z-index: 0;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(2, 6, 23, 0.45);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease, background-color 200ms ease;
}

.hero-carousel:hover .carousel-arrow,
.hero-carousel:focus-within .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background-color: var(--brand-royal);
}

.carousel-arrow:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.carousel-arrow--prev {
  left: 1rem;
}

.carousel-arrow--next {
  right: 1rem;
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

/* Tarjetas inferiores del Hero */
.glass-spec-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 65, 196, 0.1);
  box-shadow:
    0 10px 30px -10px rgba(4, 0, 170, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.glass-spec-card:hover {
  border-color: rgba(0, 186, 229, 0.45);
  box-shadow:
    0 16px 34px -12px rgba(0, 65, 196, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.hero-metrics-grid {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hero-metric-card {
  border-radius: 1rem;
  padding: 1.75rem;
  border-top: 3px solid var(--brand-cyan);
}

.hero-metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 2.6vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.025em;
  line-height: 1;
}

.hero-metric-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 0.75rem;
}

.hero-metric-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-top: 0.375rem;
}

/* ==========================================================================
   SECCIÓN 2: PRODUCTOS PRINCIPALES (#productos)
   ========================================================================== */
.products-section {
  padding: 5.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 65, 196, 0.08);
  background-color: #f4f7fb;
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.section-header-left {
  max-width: 48rem;
}

.eyebrow-cyan {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  margin-bottom: 0.75rem;
}

.section-title-navy {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-header-desc {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.6;
  max-width: 28rem;
  text-align: right;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 65, 196, 0.1);
  box-shadow: 0 10px 30px -10px rgba(4, 0, 170, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 186, 229, 0.65);
  box-shadow: 0 22px 44px -14px rgba(0, 65, 196, 0.16);
}

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background-color: var(--slate-900);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease-out;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.product-card-summary {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.btn-whatsapp-outline {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-royal);
  background-color: #ffffff;
  border: 1.5px solid var(--brand-royal);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}

.btn-whatsapp-outline:hover {
  background-color: var(--brand-royal);
  color: #ffffff;
}

.btn-whatsapp-outline:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.btn-whatsapp-outline svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIÓN 3: QUIÉNES SOMOS (#quienes-somos)
   ========================================================================== */
.about-section {
  padding: 5.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 65, 196, 0.08);
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: 3.5rem;
  align-items: stretch;
}

.about-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.72;
  max-width: 48rem;
}

.about-text--bottom {
  margin-bottom: 2.25rem;
}

.text-hl-navy {
  font-weight: 600;
  color: var(--brand-navy);
}

.text-hl-royal {
  font-weight: 600;
  color: var(--brand-royal);
}

.text-hl-thickness {
  font-weight: 600;
  color: var(--brand-navy);
  border-bottom: 2px solid var(--brand-cyan);
  padding-bottom: 1px;
}

.about-divider {
  margin-block: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.about-divider-bar {
  height: 3px;
  width: 48px;
  border-radius: 9999px;
  background-color: var(--brand-cyan);
}

.about-divider-line {
  height: 1px;
  flex: 1;
  max-width: 180px;
  background-color: var(--slate-200);
}

.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-metric-card {
  background-color: rgba(248, 250, 252, 0.85);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(0, 65, 196, 0.1);
  border-left: 3px solid var(--brand-cyan);
  box-shadow: 0 10px 30px -10px rgba(4, 0, 170, 0.08);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.about-metric-card:hover {
  border-color: rgba(0, 186, 229, 0.55);
  border-left-color: var(--brand-cyan);
  box-shadow: 0 16px 34px -12px rgba(0, 65, 196, 0.15);
  transform: translateY(-2px);
}

.about-metric-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.025em;
  line-height: 1;
}

.about-metric-number--text {
  font-size: 1.85rem;
  line-height: 1.15;
}

.about-metric-symbol {
  color: var(--brand-cyan);
}

.about-metric-unit {
  font-size: 1.6rem;
  font-weight: 700;
}

.about-metric-unit--cyan {
  color: var(--brand-cyan);
  font-weight: 800;
}

.about-metric-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 0.625rem;
}

.about-metric-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.about-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px 0;
}

/* Marco desplazado simulando el canto pulido de una segunda placa de vidrio */
.about-right::before {
  content: '';
  position: absolute;
  inset: 18px 0 0 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 186, 229, 0.34);
  background: linear-gradient(
    135deg,
    rgba(0, 186, 229, 0.08) 0%,
    rgba(0, 65, 196, 0.035) 55%,
    rgba(0, 186, 229, 0.1) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Líneas diagonales sutiles de reflejo cristalino en esquina superior derecha */
.about-right::after {
  content: '';
  position: absolute;
  top: -14px;
  right: 2px;
  width: 148px;
  height: 148px;
  border-radius: 14px;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 186, 229, 0.14) 0px,
    rgba(0, 186, 229, 0.14) 1px,
    transparent 1px,
    transparent 12px
  );
  z-index: 0;
  pointer-events: none;
}

.about-photo-frame {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 460px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 65, 196, 0.14);
  background-color: var(--slate-900);
  box-shadow: 0 24px 50px -18px rgba(4, 0, 170, 0.22);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SECCIÓN 4: MISIÓN, VISIÓN Y VALORES (#mision-vision)
   ========================================================================== */
.mission-section {
  position: relative;
  padding: 5.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 65, 196, 0.08);
  background-color: #f8fafc;
  overflow: hidden;
}

/* Textura geométrica sutil tipo facetas de cristal y líneas diagonales a 45° */
.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(
      135deg,
      rgba(0, 186, 229, 0.045) 0%,
      rgba(0, 186, 229, 0.045) 26%,
      transparent 26.2%,
      transparent 62%,
      rgba(0, 65, 196, 0.035) 62.2%,
      rgba(0, 65, 196, 0.035) 100%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(4, 0, 170, 0.032) 0px,
      rgba(4, 0, 170, 0.032) 1px,
      transparent 1px,
      transparent 30px
    );
}

.mission-section > .container-wide {
  position: relative;
  z-index: 1;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.mission-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(0, 65, 196, 0.1);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 10px 30px -10px rgba(4, 0, 170, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.mission-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 186, 229, 0.65);
  box-shadow: 0 22px 44px -14px rgba(0, 65, 196, 0.16);
}

.mission-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-royal), var(--brand-cyan));
}

.mission-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(0, 186, 229, 0.1);
  border: 1px solid rgba(0, 186, 229, 0.25);
  color: var(--brand-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  transition: background-color 250ms ease, color 250ms ease;
}

.mission-card:hover .mission-card-icon {
  background-color: var(--brand-royal);
  border-color: var(--brand-royal);
  color: #ffffff;
}

.mission-card-icon svg {
  width: 28px;
  height: 28px;
}

.mission-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.mission-card-text {
  font-size: 0.96875rem;
  color: var(--slate-600);
  line-height: 1.72;
}

.mission-card-text strong {
  color: var(--brand-navy);
  font-weight: 600;
}

.mission-values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.mission-value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.58;
}

.mission-value-item strong {
  color: var(--brand-navy);
  font-weight: 600;
}

.mission-value-check {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: rgba(0, 186, 229, 0.12);
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.mission-value-check svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   SECCIÓN 5: TESTIMONIOS Y BANNER DE COTIZACIÓN (#testimonios)
   ========================================================================== */
.testimonials-section {
  padding: 5.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 65, 196, 0.08);
  background-color: #ffffff;
}

.testimonials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.testimonials-header-copy {
  max-width: 46rem;
}

.testimonials-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.btn-carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1.5px solid rgba(4, 0, 170, 0.2);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(4, 0, 170, 0.12);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease,
    transform 200ms ease, box-shadow 200ms ease;
}

.btn-carousel-nav:hover {
  background-color: var(--brand-royal);
  border-color: var(--brand-royal);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(0, 65, 196, 0.35);
}

.btn-carousel-nav:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.btn-carousel-nav svg {
  width: 19px;
  height: 19px;
}

.testimonials-viewport {
  overflow: hidden;
  padding: 6px 2px 18px;
  margin: -6px -2px -6px;
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-card {
  position: relative;
  flex: 0 0 calc((100% - 3.5rem) / 3);
  background-color: #ffffff;
  border: 1px solid rgba(0, 65, 196, 0.1);
  border-radius: 16px;
  padding: 1.875rem 1.75rem 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(4, 0, 170, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-royal));
  opacity: 0.85;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 186, 229, 0.65);
  box-shadow: 0 20px 40px -14px rgba(0, 65, 196, 0.16);
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(4, 0, 170, 0.25);
}

.avatar-navy { background-color: var(--brand-navy); }
.avatar-royal { background-color: var(--brand-royal); }
.avatar-cyan { background-color: #0094b8; }
.avatar-slate { background-color: #1e293b; }

.testimonial-author-info {
  min-width: 0;
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-navy);
  line-height: 1.25;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.4;
  margin-top: 3px;
}

.testimonial-quote-icon {
  color: var(--brand-cyan);
  opacity: 0.85;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonial-quote-icon svg {
  width: 28px;
  height: 28px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}

.testimonial-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.testimonial-glass {
  font-weight: 600;
  color: var(--brand-royal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testimonial-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-500);
  flex-shrink: 0;
}

.testimonials-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background-color: rgba(4, 0, 170, 0.18);
  cursor: pointer;
  transition: width 260ms ease, background-color 220ms ease;
}

.testimonial-dot:hover {
  background-color: rgba(0, 65, 196, 0.45);
}

.testimonial-dot.is-active {
  width: 28px;
  background-color: var(--brand-royal);
}

.testimonial-dot:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* Banner de Conversión Post-Testimonios */
.cta-banner {
  position: relative;
  margin-top: 3.25rem;
  padding: 2.5rem 2.75rem;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-royal) 100%);
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  box-shadow: 0 22px 46px -18px rgba(4, 0, 170, 0.42);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), rgba(0, 186, 229, 0.15));
  pointer-events: none;
}

.cta-banner-content {
  max-width: 44rem;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cta-banner-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-navy);
  background-color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(2, 6, 23, 0.35);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease,
    transform 200ms ease, box-shadow 200ms ease;
}

.btn-cta-white:hover {
  background-color: #f0f9ff;
  border-color: var(--brand-cyan);
  color: var(--brand-royal);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(0, 186, 229, 0.4);
}

.btn-cta-white svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms ease;
}

.btn-cta-white:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   SECCIÓN 6: CONTACTO Y COTIZACIÓN (#contacto)
   ========================================================================== */
.contact-section {
  position: relative;
  padding: 6rem 1.5rem;
  background-color: #f4f7fb;
  background-image: radial-gradient(
    ellipse 52% 60% at 92% 14%,
    rgba(0, 186, 229, 0.08) 0%,
    rgba(0, 65, 196, 0.04) 40%,
    transparent 74%
  );
  overflow: hidden;
}

/* Cuadrícula arquitectónica sutil en esquina superior derecha */
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(4, 0, 170, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4, 0, 170, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 64% 72% at 92% 14%, #000000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 64% 72% at 92% 14%, #000000 18%, transparent 78%);
}

.contact-section > .container-wide {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 4rem;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.contact-lead {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.72;
  margin-top: 1.125rem;
  max-width: 34rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(0, 186, 229, 0.1);
  border: 1px solid rgba(0, 186, 229, 0.22);
  color: var(--brand-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-icon svg {
  width: 22px;
  height: 22px;
}

.contact-channel-body {
  min-width: 0;
}

.contact-channel-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.2rem;
}

.contact-channel-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
}

.contact-channel-link {
  transition: color 180ms ease;
}

.contact-channel-link:hover {
  color: var(--brand-royal);
}

.contact-channel-note {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
  line-height: 1.5;
}

/* Tarjeta de Formulario (Columna Derecha 55%) */
.contact-form-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid rgba(0, 65, 196, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px -10px rgba(4, 0, 170, 0.08);
  overflow: hidden;
}

.contact-form-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-royal), var(--brand-cyan));
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-form[hidden],
.contact-confirmation[hidden] {
  display: none;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.field-label svg {
  width: 15px;
  height: 15px;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.field-required {
  color: var(--brand-cyan);
}

.field-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  color: var(--slate-900);
  background-color: var(--surface-canvas);
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.field-control::placeholder {
  color: var(--slate-400);
}

.field-control:hover {
  border-color: var(--slate-300);
}

.field-control:focus {
  background-color: #ffffff;
  outline: none;
  border-color: var(--brand-royal);
  box-shadow: 0 0 0 3px rgba(0, 186, 229, 0.22);
}

.field-control.is-invalid {
  border-color: var(--red-700);
  background-color: #fffafb;
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--red-700);
  margin-top: 0.35rem;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.form-submit-wrap {
  margin-top: 0.35rem;
}

.btn-contact-submit {
  width: 100%;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--brand-royal);
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(0, 65, 196, 0.55);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-contact-submit:hover {
  background-color: var(--brand-navy);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(4, 0, 170, 0.55);
}

.btn-contact-submit:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.btn-contact-submit svg {
  width: 18px;
  height: 18px;
}

/* Estado Elegante de Confirmación */
.contact-confirmation {
  padding: 1.5rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.confirm-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background-color: rgba(0, 186, 229, 0.14);
  border: 1.5px solid rgba(0, 186, 229, 0.35);
  color: var(--brand-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.confirm-badge-icon svg {
  width: 30px;
  height: 30px;
}

.confirm-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
}

.confirm-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.confirm-text {
  font-size: 0.96875rem;
  color: var(--slate-600);
  line-height: 1.7;
  max-width: 32rem;
}

.confirm-text strong {
  color: var(--brand-navy);
}

.btn-reset-contact {
  margin-top: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-royal);
  background-color: rgba(0, 186, 229, 0.1);
  border: 1.5px solid rgba(0, 65, 196, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-reset-contact:hover {
  background-color: var(--brand-royal);
  border-color: var(--brand-royal);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER CORPORATIVO (4 COLUMNAS + FIRMA DE AGENCIA)
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: #020059;
  padding: 4rem 1.5rem 2rem;
  color: rgba(226, 232, 240, 0.82);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-royal) 45%, var(--brand-cyan) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr 1.2fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.footer-col--brand {
  max-width: 26rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-brand-bar {
  width: 6px;
  height: 24px;
  border-radius: 9999px;
  background-color: var(--brand-cyan);
  display: inline-block;
  flex-shrink: 0;
}

.footer-description {
  margin-top: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: #94a3b8;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 1.125rem;
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-nav-list a {
  color: #cbd5e1;
  transition: color 180ms ease, transform 180ms ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--brand-cyan);
  transform: translateX(2px);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-contact-list a {
  color: #cbd5e1;
  transition: color 180ms ease;
  word-break: break-word;
}

.footer-contact-list a:hover {
  color: var(--brand-cyan);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
}

/* Barra Inferior: Copyright y Firma Genicrea */
.footer-bottom {
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: #94a3b8;
}

.agency-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.agency-label {
  color: #94a3b8;
  font-weight: 500;
}

.agency-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 180ms ease, opacity 180ms ease;
}

.agency-link img {
  display: block;
  width: 67px;
  height: 22px;
  object-fit: contain;
}

.agency-domain {
  color: #e2e8f0;
  transition: color 180ms ease;
}

.agency-link:hover .agency-domain {
  color: var(--brand-cyan);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 1024px) {
  .site-header,
  .hero-section,
  .products-section,
  .about-section,
  .mission-section,
  .testimonials-section,
  .contact-section,
  .site-footer {
    padding-inline: clamp(2rem, 3.2vw, 3.5rem);
  }

  .hero-section {
    padding-block: clamp(3.25rem, 4vw, 4.75rem);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-carousel {
    min-height: 440px;
  }

  .carousel-arrow {
    opacity: 0.92;
  }

  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header-desc {
    text-align: left;
  }

  .products-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex: 0 0 calc((100% - 1.75rem) / 2);
  }

  .about-photo-frame {
    min-height: 380px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2.5rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 14px 28px -12px rgba(4, 0, 170, 0.16);
    display: none;
  }

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

  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-header,
  .cta-banner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 640px) {
  .hero-carousel {
    min-height: 360px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-metrics-grid,
  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .btn-cta-white {
    width: 100%;
  }

  .contact-form-card {
    padding: 1.75rem 1.35rem;
  }

  .btn-nav-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background-color: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -4px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(2, 6, 23, 0.16);
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px -4px rgba(37, 211, 102, 0.65), 0 6px 16px rgba(2, 6, 23, 0.2);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  display: block;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 18px;
    bottom: 18px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   VENTANAS EMERGENTES LEGALES (PRIVACIDAD Y COOKIES)
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(2, 0, 89, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal-dialog {
  width: 100%;
  max-width: 660px;
  max-height: 86vh;
  background-color: var(--surface-white);
  border: 1px solid rgba(4, 0, 170, 0.14);
  border-radius: 16px;
  box-shadow: 0 28px 64px -12px rgba(2, 0, 89, 0.45), 0 8px 24px -6px rgba(4, 0, 170, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: legalModalIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes legalModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.legal-modal-accent {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-royal), var(--brand-cyan));
}

.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--slate-200);
  flex-shrink: 0;
}

.legal-modal-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 4px;
}

.legal-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-navy);
}

.legal-modal-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
  color: var(--slate-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.legal-modal-close:hover {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.legal-modal-close:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.legal-modal-body {
  padding: 22px 28px 26px;
  overflow-y: auto;
  color: var(--slate-600);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-modal-intro {
  margin-bottom: 18px;
  color: var(--slate-700);
}

.legal-modal-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 18px;
  margin-bottom: 6px;
}

.legal-modal-body p {
  margin-bottom: 10px;
}

.legal-modal-body a {
  color: var(--brand-royal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-modal-body a:hover {
  color: var(--brand-cyan);
}

.legal-modal-list {
  margin: 8px 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-modal-list strong {
  color: var(--slate-800);
}

.legal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  flex-shrink: 0;
}

.legal-modal-meta {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.btn-modal-close {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--brand-royal);
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.btn-modal-close:hover {
  background-color: var(--brand-navy);
}

.btn-modal-close:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .legal-modal {
    padding: 14px;
  }

  .legal-modal-dialog {
    max-height: 90vh;
  }

  .legal-modal-header {
    padding: 18px 20px 14px;
  }

  .legal-modal-title {
    font-size: 1.25rem;
  }

  .legal-modal-body {
    padding: 18px 20px 20px;
    font-size: 0.9rem;
  }

  .legal-modal-footer {
    padding: 14px 20px;
  }
}

