/* ==========================================================================
   index.css — Página Principal (Home) | Grupo del Sur
   ========================================================================== */

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 5.5rem;
  position: relative;
  background: radial-gradient(circle at top right, rgba(0,179,186,0.12), transparent 60%),
              radial-gradient(circle at bottom left, rgba(201,214,70,0.15), transparent 60%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,179,186,0.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat 8s infinite alternate ease-in-out;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(201,214,70,0.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat 10s infinite alternate-reverse ease-in-out;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Badge animado */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,179,186,0.35);
  box-shadow: var(--shadow-sm);
  animation: pulseGlow 3s infinite alternate;
}

/* Título Hero con efecto typewriter */
.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}
.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, #00b3ba 0%, #008f95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Línea decorativa animada bajo el título */
.hero-title-underline {
  display: block;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
  margin-top: 0.5rem;
  animation: expandWidth 1.4s 0.6s ease-out forwards;
}
@keyframes expandWidth {
  to { width: 80%; }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  animation: fadeInDown 0.9s 0.3s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInDown 0.9s 0.5s ease both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; }

/* Imagen Hero con efecto tilt 3D */
.hero-visual { position: relative; perspective: 1000px; }
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  transition: transform 0.5s ease;
}
.hero-visual:hover .hero-image-wrapper {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.02);
  box-shadow: 0 25px 35px -5px rgba(0,179,186,0.25);
}
.hero-image { width: 100%; height: auto; object-fit: cover; transition: transform 0.7s ease; }

/* Floating Cards sobre imagen */
.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}
.card-top-right { top: 30%; right: -20px; }
.card-bottom-left { bottom: 10%; left: -20px; animation-delay: -2s; }
.floating-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.floating-card-icon.blue { background: var(--primary); }
.floating-card-icon.green { background: var(--accent); color: var(--secondary); }
.floating-card-title { font-size: 0.9rem; font-weight: 700; color: var(--secondary); }
.floating-card-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ── Quick Services Cards ──────────────────────────────────────────────── */
.quick-services {
  margin-top: -3rem;
  position: relative;
  z-index: 20;
}
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

.service-card {
  background: var(--bg-surface);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: 0.65s ease;
  pointer-events: none;
  z-index: 5;
}
.service-card:hover::before { left: 120%; }
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--secondary);
  transform: rotate(6deg) scale(1.1);
}
.service-pill-tag {
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(0, 179, 186, 0.2);
  align-self: flex-start;
}

.service-pill-tag.tag-accent {
  background: var(--accent-light);
  color: var(--secondary);
  border-color: rgba(201, 214, 70, 0.35);
}

.service-pill-tag.tag-danger {
  background: #FEE2E2;
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.25);
}

.service-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.service-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

/* ── Sección Principal de Servicios (Asistencial y Ocupacional) ────────── */
.servicios-main-section {
  padding: 5.5rem 0;
  background: var(--bg-body);
  position: relative;
}

/* Tabs de filtrado interactivo */
.services-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.service-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}

.service-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.service-tab-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-glow-primary);
}

/* 2 Tarjetas Pilares Destacadas */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 0 auto;
  margin-bottom: 3.5rem;
}

/* Cuando solo queda un pilar visible */
.pillars-grid.single-pillar {
  grid-template-columns: minmax(0, 700px);
  justify-content: center;
}

/* Tamaño del pilar */
.pillars-grid .pillar-card {
  width: 100%;
}



.pillar-card {
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.pillar-asistencial {
  background: linear-gradient(145deg, #ffffff 0%, var(--primary-light) 100%);
  border-top: 5px solid var(--primary);
}

.pillar-ocupacional {
  background: linear-gradient(145deg, #ffffff 0%, var(--accent-light) 100%);
  border-top: 5px solid var(--accent);
}

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

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

.pillar-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 179, 186, 0.25);
}

.pillar-badge.badge-accent {
  background: var(--accent-light);
  color: var(--secondary);
  border-color: rgba(201, 214, 70, 0.4);
}

.pillar-icon {
  font-size: 2.75rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.pillar-title {
  font-size: 1.65rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.pillar-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--secondary-light);
}

.pillar-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pillar-check.check-accent {
  background: var(--accent-dark);
  color: white;
}

.pillar-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-asistencial {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 179, 186, 0.3);
}

.btn-asistencial:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 179, 186, 0.45);
}

.btn-ocupacional {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-ocupacional:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4);
}

/* Grilla de Tarjetas Detalladas (6 servicios) */
.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.solucion-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.solucion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background 0.35s ease;
}

.solucion-card[data-category="asistencial"]:hover::before {
  background: var(--primary);
}

.solucion-card[data-category="ocupacional"]:hover::before {
  background: var(--accent);
}

.solucion-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.solucion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.solucion-icon {
  font-size: 2.25rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.solucion-card:hover .solucion-icon {
  transform: scale(1.1) rotate(4deg);
}

.solucion-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.tag-asistencial {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tag-ocupacional {
  background: var(--accent-light);
  color: #647000;
}

.solucion-title {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.65rem;
}

.solucion-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.solucion-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.solucion-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.feat-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.feat-bullet.bullet-accent {
  background: var(--accent-dark);
}

.solucion-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.solucion-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.25s ease;
}

.solucion-link:hover {
  transform: translateX(4px);
  color: var(--primary);
}

.solucion-link.link-accent {
  color: var(--secondary);
}

.solucion-link.link-accent:hover {
  color: var(--accent-dark);
}

/* Banner Corporativo CTA */
.corporate-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.corporate-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 179, 186, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.corporate-badge {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.corporate-title {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.65rem;
  max-width: 680px;
}

.corporate-text {
  font-size: 0.975rem;
  color: var(--text-light);
  max-width: 680px;
  line-height: 1.6;
}

.corporate-banner-action {
  flex-shrink: 0;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

/* ── Sección ¿Por qué Somos tu Mejor Opción? ───────────────────────────── */
.why-us-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, rgba(0, 179, 186, 0.03) 50%, var(--bg-body) 100%);
  position: relative;
}

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

.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
}

.why-card:hover::before {
  width: 100%;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

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

.why-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.15);
  line-height: 1;
  transition: color 0.35s ease;
}

.why-card:hover .why-number {
  color: var(--primary);
}

.why-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover .why-icon-box {
  transform: scale(1.12) rotate(-6deg);
  background: var(--accent);
}

.why-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.why-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.why-highlight {
  margin-top: auto;
}

.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 179, 186, 0.2);
}

/* ── Sección CTA con gradiente ─────────────────────────────────────────── */
.cta-section {
  background: var(--primary-gradient);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  border-radius: 50%;
  animation: orbFloat 9s infinite alternate ease-in-out;
}

/* ── Partículas canvas (JS lo alimenta) ─────────────────────────────────── */
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-content-wrap { position: relative; z-index: 2; }

/* ── Sección Carrusel de Seguros ────────────────────────────────────────── */
.insurance-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, rgba(0, 179, 186, 0.04) 50%, var(--bg-body) 100%);
  position: relative;
  overflow: hidden;
}

.insurance-section .section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.insurance-slider-container {
  position: relative;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.insurance-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.25rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.insurance-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  align-items: center;
  animation: scrollInsurance 35s linear infinite;
  will-change: transform;
}

.insurance-slider-wrapper:hover .insurance-track {
  animation-play-state: paused;
}

@keyframes scrollInsurance {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.875rem));
  }
}

.insurance-card {
  flex: 0 0 210px;
  width: 210px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.card-logo-box {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.card-logo-box img {
  max-width: 85%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: all 0.35s ease;
}

.insurance-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.insurance-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 179, 186, 0.15);
  background: #ffffff;
}

.insurance-card:hover .card-logo-box img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.06);
}

.insurance-card:hover .insurance-name {
  color: var(--primary-dark);
}

/* Botones de navegación (Flechas) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0.85;
}

.slider-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-glow-primary);
}

.slider-arrow.prev {
  left: -15px;
}

.slider-arrow.next {
  right: -15px;
}

/* ── Responsive index ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .soluciones-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .corporate-banner { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
  .corporate-title, .corporate-text { max-width: 100%; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.35rem; }
  .services-grid { grid-template-columns: 1fr; }
  .soluciones-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .pillar-card { padding: 2rem 1.5rem; }
  .services-filter-tabs { flex-direction: column; align-items: stretch; }
  .service-tab-btn { text-align: center; }
  .insurance-card {
    flex: 0 0 170px;
    width: 170px;
    padding: 1rem 0.75rem;
  }
  .card-logo-box {
    height: 50px;
  }
  .card-logo-box img {
    max-height: 42px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
  }
  .slider-arrow.prev { left: -5px; }
  .slider-arrow.next { right: -5px; }
}





/* =========================================================
   AJUSTE FINAL DE PILARES - RESPONSIVE
   ========================================================= */

.pillars-grid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Cuando solo hay un pilar visible */
.pillars-grid.single-pillar {
  display: grid;
  grid-template-columns: minmax(0, 700px);
  justify-content: center;
}

/* El pilar */
.pillars-grid .pillar-card {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

  .pillars-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    width: 100%;
  }

  .pillars-grid.single-pillar {
    grid-template-columns: 1fr !important;
    justify-content: center;
    justify-items: center;
  }

  .pillars-grid .pillar-card {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

  .pillars-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .pillars-grid.single-pillar {
    grid-template-columns: 1fr !important;
    justify-content: center;
    justify-items: center;
  }

  .pillars-grid .pillar-card {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

  .pillars-grid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pillars-grid .pillar-card {
    width: 100%;
    max-width: 100%;
  }

}









