/* =========================================
   Tarjeta Compacta Infonavit (Premium UI)
========================================= */
.compact-infonavit-card {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #fdf5f6 100%);
  border: 1px solid #fae1e4;
  border-radius: 16px;
  padding: 16px 24px; /* Padding más ajustado */
  box-shadow:
    0 10px 25px rgba(227, 24, 55, 0.04),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  gap: 20px; /* Espacio interno reducido */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* CONTROL DE ANCHO Y CENTRADO */
  max-width: 700px;
  margin: 0 auto 50px auto;
}

/* Línea de acento lateral */
.compact-infonavit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #e31837;
}

.compact-infonavit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(227, 24, 55, 0.1);
  border-color: #f7c8ce;
}

/* Contenedor del Logo Reducido */
.cic-logo-container {
  width: 75px; /* Más pequeño y estético */
  height: 75px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.cic-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Cuerpo del texto */
.cic-body {
  flex-grow: 1;
}

.cic-badge {
  display: inline-block;
  background: #ffe8eb;
  color: #e31837;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.cic-title {
  margin: 0 0 4px 0;
  font-size: 1.2rem; /* Tamaño de fuente más balanceado */
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.cic-text {
  margin: 0;
  color: #555555;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Botón estilizado y compacto */
.cic-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cic-btn svg {
  transition: transform 0.3s ease;
}

.cic-btn:hover {
  background: #e31837;
  box-shadow: 0 6px 20px rgba(227, 24, 55, 0.3);
}

.cic-btn:hover svg {
  transform: translateX(4px);
}

/* Movil Responsivo */
@media (max-width: 600px) {
  .compact-infonavit-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px 20px 20px;
    margin-left: 15px;
    margin-right: 15px; /* Margen para pantallas muy chicas */
  }

  .compact-infonavit-card::before {
    width: 100%;
    height: 5px;
    border-radius: 16px 16px 0 0;
  }

  .cic-btn {
    width: 100%;
    justify-content: center;
  }
}

/* WHATS APP */

/* Contenedor circular flotante */
.btn-whatsapp-flotante {
  position: fixed;
  bottom: 90px; /* Se eleva para no chocar con tu indicador de scroll */
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50% !important;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999 !important; /* Siempre arriba */

  /* Centrado perfecto e inquebrantable */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

/* Efecto Hover para Escritorio */
.btn-whatsapp-flotante:hover {
  background-color: #128c7e;
  transform: scale(1.07);
  box-shadow: 0px 6px 16px rgba(37, 211, 102, 0.4);
}

/* === Blindaje Absoluto del Ícono SVG === */
.whatsapp-icon-svg {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  aspect-ratio: 1 / 1 !important; /* Obliga a mantener proporción cuadrada */
  fill: #ffffff !important; /* Blanco puro */
  stroke: none !important; /* Elimina bordes fantasma del tema */
  stroke-width: 0 !important;
  transform: none !important; /* Evita distorsiones de escala globales */
  display: block !important;
}

/* === Adaptación Perfecta para Celulares === */
@media screen and (max-width: 768px) {
  .btn-whatsapp-flotante {
    width: 54px;
    height: 54px;
    bottom: 85px; /* Ajuste sutil sobre el botón de scroll en móvil */
    right: 15px;
  }
  .whatsapp-icon-svg {
    width: 28px !important;
    height: 28px !important;
  }
}
