/* ============================================================
   custom.css — Customizaciones de las landings de actividades
   vulnerables. Carga después de main.css.

   Reglas: ningún inline style en el HTML. Usar clases.
   El alineamiento de columnas en .about se hace con la utility
   Bootstrap .align-items-start (en HTML), no con CSS — porque
   las utilities .align-items-* usan !important.
   ============================================================ */

/* About section: la imagen se renderiza en su ratio natural
   (600×400, landscape 3:2). El balance vertical con la columna
   derecha se logra con position: sticky para que la imagen
   acompañe al lector mientras scrollea. NO se fuerza
   aspect-ratio ni object-fit cover — eso provoca zoom y crop. */
@media (min-width: 992px) {
  .about .row > .col-lg-6:has(.about-image) {
    align-self: stretch;
  }
  .about .about-image {
    position: sticky;
    top: 100px;
  }
}

/* Meta E-E-A-T (actualizado / revisado por / fuente) */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #64748b;
  font-size: 0.85rem;
  margin: 8px 0 16px;
}
.article-meta strong { color: #475569; font-weight: 600; }

/* Passage destacado (información clave / dato legal) */
.lead-passage {
  background: #eff6ff;
  border-left: 4px solid #1e3a8a;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 16px 0;
  font-weight: 500;
  color: #1e293b;
}
.lead-passage strong { color: #1e3a8a; }

/* Passage alerta (obligación nueva / aviso normativo) */
.alert-passage {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 16px 0;
  color: #1e293b;
}
.alert-passage strong { color: #92400e; }
.alert-passage a { color: #1e40af; text-decoration: underline; }

/* Tarjeta de precio público dentro de .costo-card
   El padre .costo-card ya tiene gradiente; este card es translúcido. */
.costo-pricing {
  margin: 24px 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.costo-pricing__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.costo-pricing__from { font-size: 0.95rem; opacity: 0.9; color: #fff; }
.costo-pricing__price { font-size: 2.6rem; font-weight: 800; line-height: 1; color: #fff; }
.costo-pricing__currency { font-size: 1.1rem; font-weight: 600; color: #fff; }
.costo-pricing__period { font-size: 0.95rem; opacity: 0.9; color: #fff; }
.costo-pricing__note {
  margin: 6px 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
  color: #fff;
}

@media (max-width: 767px) {
  .costo-pricing__price { font-size: 2rem; }
  .costo-pricing { padding: 18px 20px; }
}

/* Tabla de umbrales / featured-snippet ready */
.threshold-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}
.threshold-table thead th {
  background: #1e3a8a;
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}
.threshold-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}
.threshold-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.threshold-table tbody tr:last-child td {
  border-bottom: none;
}
.threshold-table tbody td strong {
  color: #1e3a8a;
}

@media (max-width: 640px) {
  .threshold-table { font-size: 0.85rem; }
  .threshold-table thead th,
  .threshold-table tbody td { padding: 8px 10px; }
}

/* ============================================================
   Card de costo: contraste botón WhatsApp + texto Respuesta
   ============================================================ */

/* Botón Solicitar Cotización: forzar texto blanco sobre verde sólido
   (la regla Bootstrap .btn-lg sobrescribía el color #fff de .btn-whatsapp) */
.costo-card .btn-whatsapp,
.costo-card a.btn-whatsapp,
.btn.btn-whatsapp {
  background: #16a34a !important;        /* verde más sólido (WCAG AA con #fff) */
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.costo-card .btn-whatsapp:hover,
.costo-card a.btn-whatsapp:hover,
.btn.btn-whatsapp:hover {
  background: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 12px 25px rgba(22, 163, 74, 0.45);
}

.costo-card .btn-whatsapp i {
  color: #ffffff !important;
}

/* "Respuesta inmediata": legible sobre el gradiente violeta */
.costo-card .costo-note {
  color: #ffffff !important;
  opacity: 0.95;
  font-weight: 500;
  font-style: normal;
  font-size: 0.92rem;
  margin-top: 14px;
  letter-spacing: 0.3px;
}
