@import url('brand-tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap');

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--valora-ink);
  background-color: var(--valora-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   TIPOGRAFÍA Y ENCABEZADOS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--valora-blue-800);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
}

p {
  color: var(--valora-ink-light);
  font-size: 1.05rem;
  line-height: 1.65;
}

.text-muted {
  color: var(--valora-ink-muted);
}

.text-red {
  color: var(--valora-red-600);
}

.text-blue {
  color: var(--valora-blue-600);
}

/* Visibilidad responsive: .desktop-only se oculta en móvil, .mobile-only se muestra solo en móvil */
.mobile-only {
  display: none;
}

/* Subrayado swoosh oficial de Valora con animación de dibujo y resplandor sutil */
.headline-swoosh {
  position: relative;
  display: inline-block;
}

.headline-swoosh::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--valora-red-600) 0%, var(--valora-red-500) 50%, #ff4d5e 80%, transparent 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-pill);
  transform-origin: left center;
  animation: swooshDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both, swooshGlow 4s ease-in-out 1.5s infinite;
}

@keyframes swooshDraw {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes swooshGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 2px 4px rgba(210, 6, 27, 0.25));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 2px 8px rgba(210, 6, 27, 0.45));
  }
}

/* Destello de acento */
.sparkle-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--valora-red-600);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   CONTENEDORES Y ESTRUCTURA
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-bg-celeste {
  background-color: var(--valora-blue-50);
}

.section-bg-light {
  background-color: var(--valora-bg-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
}

/* ==========================================================================
   COMPONENTES ATÓMICOS
   ========================================================================== */

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary-red {
  background-color: var(--valora-red-600);
  color: var(--valora-white);
  box-shadow: var(--shadow-btn-red);
}

.btn-primary-red:hover, .btn-primary-red:focus-visible {
  background-color: var(--valora-red-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 6, 27, 0.45);
}

.btn-secondary-blue {
  background-color: var(--valora-blue-600);
  color: var(--valora-white);
  box-shadow: var(--shadow-btn-blue);
}

.btn-secondary-blue:hover, .btn-secondary-blue:focus-visible {
  background-color: var(--valora-blue-800);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background-color: var(--valora-white);
  color: var(--valora-blue-600);
  border: 2px solid var(--valora-blue-600);
  box-shadow: 0 2px 8px rgba(0, 91, 164, 0.08);
}

.btn-outline-blue:hover, .btn-outline-blue:focus-visible {
  background-color: var(--valora-blue-600);
  color: var(--valora-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 91, 164, 0.25);
}

.btn-white {
  background-color: var(--valora-white);
  color: var(--valora-red-600);
  box-shadow: var(--shadow-md);
}

.btn-white:hover, .btn-white:focus-visible {
  background-color: var(--valora-red-50);
  color: var(--valora-red-700);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* BADGES & PÍLDORAS */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-red {
  background-color: var(--valora-red-600);
  color: var(--valora-white);
}

.badge-blue {
  background-color: var(--valora-blue-600);
  color: var(--valora-white);
}

.badge-celeste {
  background-color: var(--valora-blue-50);
  color: var(--valora-blue-600);
  border: 1px solid var(--valora-blue-100);
}

.badge-white-red {
  background-color: var(--valora-white);
  color: var(--valora-red-600);
}

/* ICONOS EN CÍRCULO */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.icon-circle-blue {
  background-color: var(--valora-blue-50);
  color: var(--valora-blue-600);
}

.icon-circle-red {
  background-color: var(--valora-red-50);
  color: var(--valora-red-600);
}

.icon-circle-white {
  background-color: var(--valora-white);
  color: var(--valora-blue-600);
}

/* CHECK LIST BENEFICIOS (CHECKS ROJOS EN CÍRCULO) */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.check-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--valora-ink);
}

.check-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background-color: var(--valora-red-600);
  color: var(--valora-white);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* REQUISITOS LIST (VIÑETAS AZULES) */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.req-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--valora-ink);
}

.req-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background-color: var(--valora-blue-600);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ==========================================================================
   HEADER Y NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--valora-border);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 60px;
}

.brand-logo img {
  height: 56px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--valora-ink);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--valora-red-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--valora-red-600);
  border-radius: var(--radius-pill);
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botón menú móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--valora-blue-800);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--valora-blue-600);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 680px;
  background-image: url('../assets/images/hero-team.jpg');
  background-position: 80% center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 5.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--valora-border);
}

/* Capa de overlay degradado: protege el bloque de texto en el lado izquierdo y deja la fotografía del equipo 100% nítida y visible hacia el centro y derecha */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 249, 253, 0.98) 0%,
    rgba(240, 247, 253, 0.94) 28%,
    rgba(238, 245, 252, 0.78) 42%,
    rgba(235, 243, 251, 0.38) 54%,
    rgba(230, 241, 251, 0.08) 65%,
    transparent 72%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Patrón sutil de cuadrícula de puntos: concentrado en la zona de texto para no tapar los rostros del equipo */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 91, 164, 0.16) 1.25px,
    transparent 1.25px
  );
  background-size: 18px 18px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 25%,
    rgba(0, 0, 0, 0.20) 42%,
    transparent 54%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 25%,
    rgba(0, 0, 0, 0.20) 42%,
    transparent 54%
  );
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Halo celeste/hielo suave de respaldo para garantizar legibilidad absoluta del texto */
.hero-content::before {
  content: '';
  position: absolute;
  inset: -1.5rem -2.5rem -1.5rem -2rem;
  background: radial-gradient(
    ellipse at 35% 45%,
    rgba(245, 249, 253, 0.95) 0%,
    rgba(238, 245, 252, 0.85) 60%,
    rgba(238, 245, 252, 0) 100%
  );
  border-radius: var(--radius-xl);
  z-index: -1;
  pointer-events: none;
  filter: blur(14px);
}

.hero-badge-container {
  margin-bottom: 1.25rem;
  animation: heroFadeDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--valora-white);
  border: 1px solid var(--valora-blue-100);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--valora-blue-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--valora-red-600);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(210, 6, 27, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(210, 6, 27, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(210, 6, 27, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(210, 6, 27, 0); }
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--valora-blue-800);
  font-size: clamp(2.35rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-title-line {
  display: block;
  color: var(--valora-blue-800);
}

/* ==========================================================================
   ROTADOR DINÁMICO DE TEXTO DEL HERO (TRANSICIÓN VERTICAL CINEMATOGRÁFICA)
   ========================================================================== */
.hero-rotator {
  position: relative;
  display: inline-block;
  min-height: 1.15em;
  color: var(--valora-red-600);
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}

.rotator-item {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  will-change: transform, opacity, filter;
}

.rotator-item.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
  visibility: visible;
}

.rotator-item.is-exiting {
  position: absolute;
  opacity: 0;
  transform: translateY(-28px);
  filter: blur(4px);
  pointer-events: none;
  visibility: hidden;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--valora-ink);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 620px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-ctas .btn {
  padding: 0.95rem 1.85rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.hero-ctas .btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   MÉTRICAS DEL HERO (TARJETAS BLANCAS CON ANIMACIONES Y CONTADORES)
   ========================================================================== */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.metric-item {
  position: relative;
  background-color: var(--valora-white);
  border-radius: 20px;
  padding: 1.45rem 1.25rem 1.5rem;
  box-shadow: 0 12px 28px -4px rgba(0, 63, 115, 0.09), 0 4px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  animation: metricCardEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

/* Entrada escalonada de cada tarjeta */
.metric-item:nth-child(1) {
  animation-delay: 0.65s;
}

.metric-item:nth-child(2) {
  animation-delay: 0.80s;
}

.metric-item:nth-child(3) {
  animation-delay: 0.95s;
}

@keyframes metricCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Línea superior roja con animación de expansión progresiva */
.metric-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: linear-gradient(90deg, var(--valora-red-600) 0%, #E6192E 100%);
  transform-origin: left;
  animation: metricBarExpand 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.metric-item:nth-child(1)::before {
  animation-delay: 0.90s;
}

.metric-item:nth-child(2)::before {
  animation-delay: 1.05s;
}

.metric-item:nth-child(3)::before {
  animation-delay: 1.20s;
}

@keyframes metricBarExpand {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Efecto de destello de luz suave al pasar el cursor */
.metric-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.65) 55%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.metric-item:hover::after {
  transform: translateX(120%);
}

.metric-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px -6px rgba(0, 63, 115, 0.16), 0 8px 18px rgba(210, 6, 27, 0.08);
  border-color: rgba(210, 6, 27, 0.3);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 2.3vw, 2.35rem);
  font-weight: 900;
  color: var(--valora-red-600);
  line-height: 1.1;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
  display: inline-block;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-variant-numeric: tabular-nums;
}

.metric-item:hover .metric-number {
  transform: scale(1.06);
}

/* Pulso elegante al finalizar el conteo */
.metric-number.is-celebrating {
  animation: metricNumberPop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes metricNumberPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.09);
    text-shadow: 0 0 10px rgba(210, 6, 27, 0.25);
  }
  100% {
    transform: scale(1);
    text-shadow: none;
  }
}

.metric-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--valora-blue-800);
  font-weight: 700;
  line-height: 1.38;
}

/* ==========================================================================
   INSIGNIA FLOTANTE DEL HERO (DISEÑO PÍLDORA CON HALO ROJO)
   ========================================================================== */
.hero-floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  background-color: var(--valora-white);
  padding: 0.85rem 1.6rem 0.85rem 1rem;
  border-radius: 28px;
  box-shadow: 0 16px 36px -6px rgba(0, 43, 79, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.7);
  align-self: flex-end;
  margin-bottom: 2.5rem;
  flex-shrink: 0;
  z-index: 3;
  animation: heroFadeLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both,
             heroFloatIdle 6s ease-in-out 1.8s infinite;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-floating-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px -6px rgba(0, 43, 79, 0.18), 0 8px 18px rgba(210, 6, 27, 0.1);
}

.floating-badge-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--valora-red-500) 0%, var(--valora-red-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -2px rgba(210, 6, 27, 0.45);
  flex-shrink: 0;
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.floating-badge-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--valora-blue-800);
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
  margin-bottom: 3px;
}

.floating-badge-desc {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--valora-ink-muted);
  line-height: 1.3;
  white-space: nowrap;
}

/* ==========================================================================
   KEYFRAMES DE ENTRADA Y FLOTACIÓN DEL HERO
   ========================================================================== */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeDown {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeLeft {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroFloatIdle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   PROPUESTA DE VALOR / PILARES
   ========================================================================== */
.pillars-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  z-index: 1;
}

/* Línea punteada que conecta los íconos, a la altura del remate de cada columna */
.pillars-links {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 120px;
  height: 2px;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(0, 91, 164, .35) 50%, transparent 50%);
  background-size: 10px 2px;
}

.pillar-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.pillars-row.in .pillar-col:nth-child(2) { transition-delay: .12s; }
.pillars-row.in .pillar-col:nth-child(3) { transition-delay: .24s; }
.pillars-row.in .pillar-col:nth-child(4) { transition-delay: .36s; }

.pillars-row.in .pillar-col {
  opacity: 1;
  transform: none;
}

/* Capitel de color: azul o rojo según la columna */
.pillar-cap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 118px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, var(--valora-blue-500), var(--valora-blue-600) 55%, var(--valora-blue-800));
}

.pillar-col.is-red .pillar-cap {
  background: linear-gradient(135deg, var(--valora-red-500), var(--valora-red-600) 55%, var(--valora-red-700));
}

.pillar-cap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}

.pillar-cap-number {
  position: absolute;
  left: 18px;
  top: 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, .22);
}

/* Ícono flotante que cruza el borde entre el capitel y el cuerpo */
.pillar-icon {
  position: absolute;
  bottom: -44px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background-color: var(--valora-white);
  display: grid;
  place-items: center;
  color: var(--valora-blue-600);
  box-shadow: 0 0 0 7px var(--valora-bg-light), 0 18px 34px -14px rgba(0, 63, 115, .55);
  transition: transform var(--transition-normal);
}

.pillar-col.is-red .pillar-icon {
  color: var(--valora-red-600);
}

.pillar-col:hover .pillar-icon {
  transform: translateY(-6px) rotate(-6deg);
}

/* Cuerpo blanco con el contenido de cada pilar */
.pillar-shaft {
  position: relative;
  flex: 1;
  width: 100%;
  background-color: var(--valora-white);
  padding: 64px 1.5rem 2rem;
  border: 1px solid var(--valora-border);
  border-top: 0;
  box-shadow: var(--shadow-card);
}

.pillar-col-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--valora-blue-800);
}

.pillar-rule {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--valora-blue-600);
  margin: 0.9rem auto 1rem;
}

.pillar-col.is-red .pillar-rule {
  background-color: var(--valora-red-600);
}

.pillar-shaft p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--valora-ink-light);
}

/* Basa de color al pie de cada columna */
.pillar-base {
  width: 100%;
  height: 12px;
  margin-top: -1px;
  border-radius: 0 0 10px 10px;
  background-color: var(--valora-blue-800);
}

.pillar-col.is-red .pillar-base {
  background-color: var(--valora-red-700);
}

/* Plataforma común que une visualmente las cuatro columnas */
.pillars-plinth {
  position: relative;
  height: 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--valora-blue-800), var(--valora-blue-600) 50%, var(--valora-blue-800));
  box-shadow: 0 22px 38px -20px rgba(0, 63, 115, .6);
}

.pillars-plinth::after {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: -12px;
  height: 12px;
  border-radius: 0 0 12px 12px;
  background-color: var(--valora-blue-100);
}

@media (max-width: 1024px) {
  .pillars-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3.5rem;
  }

  .pillars-links {
    display: none;
  }

  .pillars-plinth {
    margin-top: 2.5rem;
  }
}

@media (max-width: 768px) {
  .pillars-row {
    grid-template-columns: 1fr;
    row-gap: 3rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .pillars-plinth {
    max-width: 400px;
    margin: 2.25rem auto 0;
  }
}

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

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--valora-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--valora-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--valora-blue-200);
}

.service-card-header {
  padding: 2rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--valora-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card-body {
  padding: 1.75rem 2rem 2rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--valora-blue-800);
}

.service-features {
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--valora-ink);
}

.service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--valora-red-600);
  flex-shrink: 0;
}

.service-card-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.75rem 0;
}

.service-card-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--valora-ink);
}

/* ==========================================================================
   SELECTOR DE PESTAÑAS DE SERVICIOS (EMPRESAS / PROFESIONALES)
   ========================================================================== */
.services-nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 3rem auto;
}

.services-tabs-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--valora-blue-50);
  border: 1px solid var(--valora-blue-100);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 48, 87, 0.04);
}

.services-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 1.6rem;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--valora-blue-800);
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
  white-space: nowrap;
}

.services-tab-btn:hover:not(.is-active) {
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--valora-blue-700);
}

.services-tab-btn.is-active {
  background-color: var(--valora-white);
  color: var(--valora-blue-800);
  border-color: rgba(215, 232, 248, 0.8);
  box-shadow: 0 4px 14px -2px rgba(0, 48, 87, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  cursor: default;
}

.tab-btn-icon {
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.tab-icon-blue {
  color: var(--valora-blue-600);
}

.tab-icon-red {
  color: var(--valora-red-600);
}

.services-tab-btn:hover .tab-btn-icon {
  transform: scale(1.1);
}

/* Paneles de servicios */
.service-tab-panel {
  display: none;
}

.service-tab-panel.is-active {
  display: block;
  animation: servicePanelFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes servicePanelFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GRUPOS DE SERVICIOS (EMPRESAS / PERSONAS) */
.service-tab-panel .service-group {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.service-group + .service-group {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--valora-border);
}

.service-group-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto 2.75rem auto;
}

.service-group-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--valora-white);
}

.service-group-number-red {
  background-color: var(--valora-red-600);
  box-shadow: var(--shadow-btn-red);
}

.service-group-number-blue {
  background-color: var(--valora-blue-600);
  box-shadow: var(--shadow-btn-blue);
}

.service-group-title {
  font-size: 1.6rem;
  color: var(--valora-blue-800);
  margin-bottom: 0.4rem;
}

.service-group-desc {
  font-size: 1.05rem;
  color: var(--valora-ink);
}

/* ==========================================================================
   METODOLOGÍA / PROCESO (TIMELINE EN ZIGZAG CON NODOS CONECTADOS)
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto auto auto auto;
  column-gap: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.gc-1 { grid-column: 1; }
.gc-2 { grid-column: 2; }
.gc-3 { grid-column: 3; }
.gc-4 { grid-column: 4; }
.gc-5 { grid-column: 5; }

.process-line {
  grid-row: 3;
  grid-column: 1 / -1;
  align-self: center;
  height: 3px;
  margin: 0 9%;
  background-color: var(--valora-blue-600);
  z-index: 0;
}

.process-card {
  background-color: var(--valora-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--valora-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--valora-blue-600);
}

.process-card-top {
  grid-row: 1;
  align-self: end;
  border-top: 4px solid var(--valora-red-600);
}

.process-card-bottom {
  grid-row: 5;
  align-self: start;
  border-bottom: 4px solid var(--valora-blue-600);
}

.process-connector {
  grid-row: 2;
  width: 2px;
  height: 28px;
  justify-self: center;
  background-image: linear-gradient(to bottom, var(--valora-ink-muted) 50%, transparent 50%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
  z-index: 1;
}

.process-connector-bottom {
  grid-row: 4;
}

.process-node {
  grid-row: 3;
  position: relative;
  z-index: 2;
  justify-self: center;
  align-self: center;
}

.process-node-circle {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-pill);
  background-color: var(--valora-white);
  border: 1px solid var(--valora-border);
  box-shadow: var(--shadow-md);
  color: var(--valora-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-node-number {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background-color: var(--valora-red-600);
  color: var(--valora-white);
  border: 2px solid var(--valora-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn-red);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--valora-blue-800);
}

.process-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--valora-ink);
}

/* ==========================================================================
   CONVOCATORIAS / BOLSA DE EMPLEO (JOB CARDS REPLICANDO AFICHES VALORA)
   ========================================================================== */
.jobs-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--valora-ink);
  background-color: var(--valora-white);
  border: 1px solid var(--valora-border);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--valora-blue-600);
  color: var(--valora-blue-600);
}

.filter-btn.active {
  background-color: var(--valora-blue-600);
  color: var(--valora-white);
  border-color: var(--valora-blue-600);
  box-shadow: var(--shadow-btn-blue);
}

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

/* REPLICA OFICIAL DE AFICHES VALORA */
.job-card {
  background-color: var(--valora-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--valora-border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--valora-red-600);
}

/* Banner rojo superior característico */
.job-card-banner {
  background-color: var(--valora-red-600);
  padding: 1.5rem 1.5rem;
  color: var(--valora-white);
  text-align: center;
  position: relative;
}

.job-icon-circle {
  width: 52px;
  height: 52px;
  background-color: var(--valora-white);
  color: var(--valora-red-600);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}

.job-title-h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--valora-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

/* Píldora blanca con texto rojo dentro de bloque rojo */
.job-area-pill {
  display: inline-block;
  background-color: var(--valora-white);
  color: var(--valora-red-600);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Fila de Ubicación con Icono Pin en Círculo Azul */
.job-location-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--valora-border);
}

.pin-icon-circle {
  width: 32px;
  height: 32px;
  background-color: var(--valora-blue-50);
  color: var(--valora-blue-600);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--valora-blue-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Secciones de Beneficios y Requisitos */
.job-section-block {
  margin-bottom: 1.25rem;
}

.job-section-label {
  margin-bottom: 0.75rem;
}

.job-apply-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--valora-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-email-pill {
  background-color: var(--valora-blue-50);
  color: var(--valora-blue-600);
  border: 1px solid var(--valora-blue-100);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  word-break: break-all;
}

/* ==========================================================================
   SECCIÓN NOSOTROS / FILOSOFÍA
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 4px solid var(--valora-white);
}

.about-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-experience-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--valora-red-600);
  color: var(--valora-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  text-align: center;
}

.about-experience-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.about-experience-text {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.values-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.value-chip {
  background-color: var(--valora-white);
  border: 1px solid var(--valora-blue-200);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--valora-blue-800);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   SECCIÓN MISIÓN Y VISIÓN
   ========================================================================== */
.mission-vision-section {
  background: linear-gradient(180deg, var(--valora-white) 0%, var(--valora-bg-light) 100%);
  border-top: 1px solid var(--valora-border);
  border-bottom: 1px solid var(--valora-border);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.mv-card {
  background-color: var(--valora-white);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--valora-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.mv-card-mision {
  border-top: 5px solid var(--valora-red-600);
}

.mv-card-vision {
  border-top: 5px solid var(--valora-blue-600);
}

.mv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mv-badge-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--valora-red-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.mv-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--valora-blue-800);
}

.mv-card-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--valora-ink);
  margin-bottom: 1.5rem;
}

.mv-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--valora-border);
}

.mv-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
}

.mv-highlight-tag-red {
  background-color: var(--valora-red-50);
  color: var(--valora-red-600);
  border: 1px solid var(--valora-red-100);
}

.mv-highlight-tag-blue {
  background-color: var(--valora-blue-50);
  color: var(--valora-blue-600);
  border: 1px solid var(--valora-blue-100);
}

/* ==========================================================================
   SECTOR SALUD / CLÍNICAS (ESPECIALIZACIÓN DESTACADA)
   ========================================================================== */
.health-section {
  background: var(--valora-blue-50);
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}

.health-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 109, 200, .14), transparent 70%);
  top: -180px;
  right: -120px;
}

.health-card {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 36px;
  padding: 72px 64px;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(0, 109, 200, .55), transparent 65%),
    linear-gradient(135deg, var(--valora-blue-800) 0%, var(--valora-blue-600) 60%, var(--valora-blue-500) 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 63, 115, .65);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.health-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.3px, transparent 1.3px);
  background-size: 20px 20px;
  mask-image: linear-gradient(120deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 75%);
}

.health-cross {
  position: absolute;
  z-index: -1;
  color: rgba(255, 255, 255, .07);
}

.health-cross-1 {
  width: 260px;
  left: -70px;
  bottom: -80px;
}

.health-cross-2 {
  width: 90px;
  right: 44%;
  top: 28px;
  color: rgba(255, 255, 255, .09);
}

.health-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--valora-white);
  color: var(--valora-red-600);
  font: 800 12px/1 var(--font-heading);
  letter-spacing: .06em;
  padding: 11px 18px 11px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
}

.health-tag svg {
  width: 18px;
  height: 18px;
}

.health-card h2 {
  margin: 24px 0 0;
  font: 900 clamp(32px, 3.6vw, 48px) / 1.08 var(--font-heading);
  letter-spacing: -.025em;
  color: var(--valora-white);
}

.health-bar {
  display: block;
  width: 84px;
  height: 5px;
  border-radius: 5px;
  background: var(--valora-white);
  margin: 24px 0 22px;
  position: relative;
}

.health-bar::after {
  content: "";
  position: absolute;
  left: 96px;
  top: 0;
  width: 18px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .45);
}

.health-card p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .88);
  max-width: 560px;
}

.health-card p strong {
  color: var(--valora-white);
  font-weight: 700;
  box-shadow: inset 0 -.42em 0 rgba(255, 255, 255, .14);
}

.health-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.health-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 15.5px/1 var(--font-heading);
  padding: 18px 26px;
  border-radius: var(--radius-pill);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}

.health-btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

/* Rojo separado del azul por un aro blanco (regla de marca) */
.health-btn-red {
  background: linear-gradient(135deg, var(--valora-red-500), var(--valora-red-600) 55%, var(--valora-red-700));
  color: var(--valora-white);
  box-shadow: 0 0 0 3px var(--valora-white), 0 18px 34px -12px rgba(0, 0, 0, .5);
}

.health-btn-red:hover {
  transform: translateY(-3px);
}

.health-btn-ghost {
  color: var(--valora-white);
  border: 2px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.health-btn-ghost:hover {
  background: var(--valora-white);
  color: var(--valora-blue-600);
  transform: translateY(-3px);
}

.health-media {
  position: relative;
  padding: 18px;
}

.health-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 8px solid var(--valora-white);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .6);
  transform: rotate(2deg);
  transition: transform .5s ease;
  aspect-ratio: 389 / 280;
}

.health-media:hover .health-frame {
  transform: rotate(0deg) scale(1.02);
}

.health-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.health-back {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 2px dashed rgba(255, 255, 255, .4);
  transform: rotate(-4deg);
}

.health-pulse {
  position: absolute;
  left: -6px;
  bottom: -4px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--valora-white);
  display: grid;
  place-items: center;
  color: var(--valora-blue-600);
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .5);
  animation: health-bob 4.5s ease-in-out infinite;
}

.health-pulse svg {
  width: 38px;
  height: 38px;
}

.health-ring {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, .9);
}

@keyframes health-bob {
  50% { transform: translateY(-8px); }
}

.health-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.health-reveal.in {
  opacity: 1;
  transform: none;
}

.health-reveal.health-d2 {
  transition-delay: .15s;
}

@media (max-width: 960px) {
  .health-section {
    padding: 64px 16px;
  }

  .health-card {
    grid-template-columns: 1fr;
    padding: 48px 28px;
    gap: 44px;
    border-radius: 28px;
  }

  .health-media {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .health-card {
    padding: 36px 20px;
  }

  .health-tag {
    font-size: 10px;
    padding: 10px 14px 10px 10px;
  }

  .health-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .health-card p {
    font-size: 16px;
  }
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-card {
  background-color: var(--valora-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--valora-border);
  display: flex;
  flex-direction: column;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.direct-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--valora-blue-800);
}

.direct-item-value {
  color: var(--valora-ink);
  font-size: 1rem;
  font-weight: 500;
}

.contact-form-card {
  background-color: var(--valora-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--valora-border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--valora-blue-800);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--valora-border);
  background-color: var(--valora-bg-light);
  color: var(--valora-ink);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--valora-blue-600);
  background-color: var(--valora-white);
  box-shadow: 0 0 0 3px rgba(0, 91, 164, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--valora-ink-light);
  line-height: 1.45;
  margin-top: 0.5rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--valora-red-600);
  width: 16px;
  height: 16px;
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.form-alert.success {
  display: block;
  background-color: #E6F4EA;
  color: #137333;
  border: 1px solid #CEEAD6;
}

/* ==========================================================================
   BARRA ROJA DE CONTACTO A TODO EL ANCHO (BASE DEL FOOTER VALORA)
   ========================================================================== */
.contact-bar-full {
  background-color: var(--valora-red-600);
  color: var(--valora-white);
  padding: 2rem 0;
  position: relative;
}

.contact-bar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-bar-logo {
  height: 48px;
  width: auto;
}

.contact-bar-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--valora-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-bar-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER CORPORATIVO (AZUL PROFUNDO)
   ========================================================================== */
.site-footer {
  background-color: var(--valora-blue-800);
  color: var(--valora-white);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin: 1.25rem 0 1.5rem 0;
  line-height: 1.6;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--valora-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--valora-red-600);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--valora-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 24px;
  height: 3px;
  background-color: var(--valora-red-600);
  border-radius: var(--radius-pill);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link-item a:hover {
  color: var(--valora-white);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-links a:hover {
  color: var(--valora-white);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background-color: #25D366;
  color: var(--valora-white);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
  animation: wa-pulse 3s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float-tooltip {
  background-color: var(--valora-white);
  color: var(--valora-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  border: 1px solid var(--valora-border);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   MODAL DE POSTULACIÓN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: var(--valora-white);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  background-color: var(--valora-red-600);
  color: var(--valora-white);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  color: var(--valora-white);
  font-size: 1.25rem;
}

.modal-close-btn {
  color: var(--valora-white);
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST ADAPTIVE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    padding: 4.5rem 0;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-floating-badge {
    display: none;
  }

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

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

  .process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .process-line {
    display: none;
  }

  .process-connector {
    height: 22px;
    margin: -2px 0;
  }

  .process-card-top,
  .process-card-bottom {
    border-top: none;
    border-bottom: none;
    border-left: 4px solid var(--valora-red-600);
    text-align: left;
  }

  .process-node.gc-1 { order: 1; }
  .process-connector.gc-1 { order: 2; }
  .process-card.gc-1 { order: 3; }

  .process-node.gc-2 { order: 4; }
  .process-connector.gc-2 { order: 5; }
  .process-card.gc-2 { order: 6; }

  .process-node.gc-3 { order: 7; }
  .process-connector.gc-3 { order: 8; }
  .process-card.gc-3 { order: 9; }

  .process-node.gc-4 { order: 10; }
  .process-connector.gc-4 { order: 11; }
  .process-card.gc-4 { order: 12; }

  .process-node.gc-5 { order: 13; }
  .process-connector.gc-5 { order: 14; }
  .process-card.gc-5 { order: 15; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-section-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .site-header .navbar {
    height: 76px;
  }

  .brand-logo img {
    height: 46px;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: var(--valora-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    border-bottom: 2px solid var(--valora-red-600);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    padding: 3.5rem 0;
    background-position: 70% center;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(245, 249, 253, 0.97) 0%,
      rgba(238, 245, 252, 0.90) 45%,
      rgba(230, 241, 251, 0.55) 70%,
      rgba(225, 238, 250, 0.15) 88%,
      transparent 100%
    );
  }

  .hero-overlay::before {
    -webkit-mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.40) 70%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.40) 70%,
      transparent 100%
    );
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-bar-flex {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .contact-bar-left {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    line-height: 1.22;
  }

  .hero-rotator {
    display: inline-block;
    width: auto !important;
  }

  .rotator-item {
    white-space: normal;
  }

  .whatsapp-float-tooltip {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .services-tabs-pill {
    width: 100%;
    max-width: 440px;
    display: flex;
  }

  .services-tab-btn {
    flex: 1;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.45rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-lead {
    font-size: 1rem;
  }
}

/* Soporte prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .rotator-item {
    filter: none !important;
    transform: none !important;
  }

  .health-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
