/* ===== Hero / Encabezado de sección ===== */
.aliados-fsi {
  padding: 56px 0 70px;
  background: linear-gradient(180deg, #f7fbf9 0%, #ffffff 100%);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.aliados-fsi .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.aliados-header {
  text-align: center;
  margin-bottom: 28px;
}

.aliados-header .pill {
  display: inline-block;
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e9f9f0;
  color: #0f5132;
  border: 1px solid #b7efcf;
}

.aliados-header h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 8px;
}

.aliados-header .lead {
  max-width: 760px;
  margin: 0 auto;
  color: #475569;
  font-size: 1rem;
}

/* ===== Cards de aliados ===== */
.aliados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 24px;
}

@media (max-width: 820px) {
  .aliados-grid {
    grid-template-columns: 1fr;
  }
}

.aliado-card {
  background: #fff;
  border: 1px solid #e7eee9;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  align-items: center;
  min-height: 150px;
  box-shadow: 0 8px 24px rgba(2, 8, 23, .06);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.aliado-card:hover {
  transform: translateY(-3px);
  border-color: #dfe7e2;
  box-shadow: 0 12px 26px rgba(2, 8, 23, .10);
}

@media (max-width: 600px) {
  .aliado-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.aliado-media {
  padding: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
}

.aliado-media img {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.aliado-body {
  padding: 16px 18px;
}

.aliado-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.aliado-body p {
  margin: 0;
  color: #425466;
  line-height: 1.5;
  font-size: .98rem;
}

/* ===== Créditos (fundador & dev) ===== */
.creditos-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}

@media (max-width: 700px) {
  .creditos-wrap {
    grid-template-columns: 1fr;
  }
}

.credit-card {
  background: #fff;
  border: 1px solid #e7eee9;
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(2,8,23,.05);
}

.credit-card i {
  font-size: 1.3rem;
  color: #00c853;
  display: grid;
  place-items: center;
}

.credit-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #0f172a;
}

.credit-card p {
  margin: 0;
  color: #475569;
  font-size: .98rem;
}

.credit-card a {
  color: #d63384;
  font-weight: 700;
  text-decoration: none;
}

.credit-card a:hover {
  text-decoration: underline;
}

/* Pequeños ajustes de consistencia con el sitio */
footer .redes a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* --- Dev line (alineación limpia del icono de Instagram) --- */
.dev-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;         /* por si en móviles se corta la línea */
  line-height: 1.4;
}

.dev-insta {
  display: inline-flex;    /* mantiene icono y texto alineados verticalmente */
  align-items: center;
  gap: 6px;
  color: #E1306C;          /* color Instagram */
  font-weight: 700;
  text-decoration: none;   /* sin subrayado por defecto */
}

.dev-insta i {
  font-size: 18px;         /* tamaño del icono */
  line-height: 1;          /* evita “salto” vertical */
}

.dev-insta:hover {
  text-decoration: underline;  /* subrayado solo al pasar el mouse */
}

/* Opcional: si notas que el <strong> hace saltos bruscos, suaviza la línea */
.dev-line strong { line-height: 1.2; }

/* ===== WhatsApp flotante ===== */
.wapp-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  z-index: 99999;
  text-decoration: none;
  overflow: hidden;
  transition: all .25s ease;
  animation: wappPulse 2.8s ease-out infinite;
}
.wapp-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  margin-left: 0;
  transition: max-width .25s ease, opacity .18s ease, margin-left .18s ease;
}
.wapp-float:hover {
  background: #1ebe5d;
  width: 220px;
  border-radius: 999px;
}
.wapp-float:hover .wapp-label {
  max-width: 160px;
  opacity: 1;
  margin-left: 10px;
}
@keyframes wappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.35); }
  70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Instagram flotante ===== */
.insta-float {
  position: fixed;
  bottom: 100px; /* arriba de WhatsApp */
  right: 20px;
  background-color: #E1306C;
  color: #fff;
  border-radius: 50px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 9999;
}
.insta-float:hover { background-color: #C13584; padding: 10px 20px; }
.insta-float i { font-size: 28px; }
.insta-label {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  margin-left: 0;
  transition: max-width .25s ease, opacity .18s ease, margin-left .18s ease;
}
.insta-float:hover .insta-label {
  max-width: 200px;
  opacity: 1;
  margin-left: 10px;
}

/* ===== Facebook flotante ===== */
.fb-float {
  position: fixed;
  bottom: 160px; /* arriba de Instagram */
  right: 20px;
  background: #1877f2;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.fb-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.fb-label { display: none; }

/* ===== Responsive: botones más chicos en móvil ===== */
@media (max-width: 600px) {
  .wapp-float, .fb-float {
    width: 50px;
    height: 50px;
    font-size: 22px;
    right: 16px;
  }
  .wapp-float { bottom: 20px; }
  .insta-float { bottom: 80px; padding: 10px; font-size: 20px; }
  .fb-float { bottom: 140px; }
}

