/* =================== QUIÉNES SOMOS – versión refinada =================== */
:root {
  --brand-600: var(--brand-600, #2f409a);
  --ink-900:   var(--ink-900, #111827);
  --ink-700:   var(--ink-700, #374151);
  --bg-soft:   var(--bg-soft, #f6f7fb);
  --surface:   #f2f5ff;
  --card-radius: 22px;
  --shadow-1: 0 6px 18px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
  --shadow-2: 0 14px 30px rgba(16,24,40,.18), 0 6px 16px rgba(16,24,40,.10);
}

.why-choose-us {
  position: relative;
  overflow: hidden;
  padding: 64px 0 108px 0;
  background: linear-gradient(to bottom, var(--surface) 0 58%, var(--brand-600) 58% 100%);
}

.why-choose-us::before {
  content: "";
  position: absolute;
  left: -220px;
  top: 50%;
  width: 560px;
  height: 460px;
  transform: translateY(-50%);
  opacity: .14;
  filter: blur(14px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.why-choose-us > .content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

.why-choose-us h2 {
  margin: 0 0 12px 0;
  font-size: 2.6rem;
  line-height: 1.12;
  font-weight: 850;
  color: #2f409a;
  text-align: center;
  letter-spacing: .01em;
}

.why-choose-us > .content-wrap > p {
  margin: 0 auto 40px auto;
  max-width: 860px;
  color: var(--ink-700);
  font-size: 1.06rem;
  line-height: 1.65;
  text-align: center;
}

/* =================== GRID en 2 columnas =================== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ============================ TARJETA ============================ */
.feature-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 160px; /* Menos alto */
}

/* Barra de acento */
.feature-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  height: 40px;
  width: 5px;
  background: var(--accent);
  border-radius: 5px;
  box-shadow: 0 6px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}

.feature-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Contenedor circular del icono (fondo de color para que el png blanco se vea) */
.feature-card .icon{
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bullet, #0b3bff);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 20px rgba(1,51,250,.22), 0 3px 8px rgba(1,51,250,.16);
}
.feature-card .icon img{
  width: 34px; height: 34px; object-fit: contain; display:block;
}

/* Texto a la derecha del icono */
.feature-card .card-text{
  display:flex; flex-direction:column; gap:6px;
}
.feature-card h3{ margin:0; }
.feature-card p{ margin:0; }

/* Colores del círculo por tarjeta (reusa tus utilidades o los nth-child) */
.feature-card.is-blue  { --bullet:#0b3bff; --accent:#4c66ff; }
.feature-card.is-purple{ --bullet:#7c3aed; --accent:#8a56d6; }
.feature-card.is-gold  { --bullet:#e7b23a; --accent:#d7a425; }
.feature-card.is-red   { --bullet:#e11d2e; --accent:#e0483a; }

/* Colores automáticos por posición */
.cards-container .feature-card:nth-child(6n+1){ --accent:#4c66ff; --bullet:#0b3bff; }
.cards-container .feature-card:nth-child(6n+2){ --accent:#8a56d6; --bullet:#7c3aed; }
.cards-container .feature-card:nth-child(6n+3){ --accent:#d7a425; --bullet:#e7b23a; }
.cards-container .feature-card:nth-child(6n+4){ --accent:#e0483a; --bullet:#e11d2e; }
.cards-container .feature-card:nth-child(6n+5){ --accent:#4c66ff; --bullet:#0b3bff; }
.cards-container .feature-card:nth-child(6n+6){ --accent:#8a56d6; --bullet:#7c3aed; }

/* ============================ BREAKPOINTS ============================ */
@media (max-width: 1100px) {
  .cards-container { grid-template-columns: repeat(2, minmax(260px, 1fr)); gap:28px; }
}

@media (max-width: 980px) {
  .cards-container { grid-template-columns: repeat(2, minmax(260px, 1fr)); gap:24px; }
  .why-choose-us { padding-bottom: 96px; }
}

@media (max-width: 620px) {
  .why-choose-us { padding: 40px 0 68px 0; }
  .why-choose-us > .content-wrap { padding: 0 18px; }
  .cards-container { grid-template-columns: 1fr; gap:18px; }
  .feature-card {
    min-height: 0;
    padding: 22px 18px;
    border-radius: 18px;
    height: auto;
  }
  .feature-card img { width:56px; height:56px; padding:8px; }
  .why-choose-us h2 { font-size: 2rem; }
}


.wa-float{
  position: fixed;
  right: 48px;
  bottom: 48px;
  width: clamp(56px, 7vw, 84px);
  z-index: 3000;
  animation: wa-pulse 1.4s infinite ease-in-out;
  transform-origin: center;
  cursor: pointer;
}
.wa-float:hover{ animation-play-state: paused; transform: scale(1.06); }
.wa-float img{ width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.main-footer{
  background: #06048e !important;
  color: #fff;
  padding: 38px 0;
  text-align: center;
  box-sizing: border-box;
}

/* HOTFIX para que Home no cambie los tokens globales */
:root{
  --brand-600:#06048e;   /* el mismo azul del header */
  --brand-700:#28378a;
  --ink-900:#111827;
  --ink-700:#374151;
}

/* WhatsApp floating button (común a todas las vistas) */
.wa-float{
  position: fixed;
  right: clamp(16px, 4vw, 48px);
  bottom: calc(clamp(16px, 4vw, 48px) + env(safe-area-inset-bottom));
  width: clamp(48px, 7vw, 84px);
  z-index: 3000;
  animation: wa-pulse 1.4s ease-in-out infinite;
  transform-origin: center;
  cursor: pointer;
}
.wa-float:hover{ animation-play-state: paused; transform: scale(1.06); }
.wa-float img{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

/* Accesibilidad: respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce){
  .wa-float{ animation: none; }
}

/* Breakpoints: evitar solaparse con UI móvil / toasts */
@media (max-width: 768px){
  .wa-float{
    right: clamp(12px, 4vw, 24px);
    bottom: calc(clamp(12px, 4vw, 24px) + env(safe-area-inset-bottom));
    width: clamp(44px, 12vw, 64px);
  }
}
@media (max-width: 420px){
  .wa-float{
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 56px; /* tamaño cómodo para pulgar */
  }
}

@keyframes wa-pulse{
  0%,100%{ transform: scale(1) }
  50%{ transform: scale(1.08) }
}
