/* ==========================================================================
   Fundación Cardioinfantil - LaCardio | Donaciones 2026
   Diseño Minimalista, Limpio, Intuitivo y Elegante
   ========================================================================== */

:root {
  --navy: #0B1F4B;
  --navy-deep: #071536;
  --navy-light: #163675;
  --cardio-red: #E40046;
  --cardio-red-hover: #C7003B;
  --cardio-pink-soft: #FFF1F4;
  --cardio-pink-mid: #FFE2E8;
  --white: #FFFFFF;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F8FAFC;
  --emerald: #059669;
  --emerald-soft: #ECFDF5;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(11, 31, 75, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 31, 75, 0.08);
  --shadow-card: 0 16px 40px rgba(6, 21, 54, 0.18);
  --shadow-red: 0 6px 20px rgba(228, 0, 70, 0.3);

  --transition: all 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones Generales ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--cardio-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--cardio-red-hover);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-outline-nav {
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

.btn-outline-nav:hover {
  background: var(--slate-100);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   NAVBAR: MINIMALISTA Y LIMPIO
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 0;
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cardio-red);
  display: grid;
  place-items: center;
  color: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-600);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--cardio-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION: LIMPIO CON DONACIÓN ARRIBA
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--navy-deep) url('../assets/img/hero-pedagogia.jpg') center 25% / cover no-repeat;
  padding: 56px 0 68px;
  color: var(--white);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(7, 21, 54, 0.94) 0%, rgba(11, 31, 75, 0.88) 55%, rgba(11, 31, 75, 0.72) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* Columna Izquierda: Mensaje Claro */
.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(228, 0, 70, 0.18);
  border: 1px solid rgba(255, 92, 141, 0.35);
  color: #FFD6E2;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-quick-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-stat {
  display: flex;
  flex-direction: column;
}

.quick-stat strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FF5C8D;
  line-height: 1.1;
}

.quick-stat span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}

.quick-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   DONATE CARD (CHECKOUT MODERNO Y DESPEJADO)
   ========================================================================== */
.hero-card-col {
  width: 100%;
}

.donate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  color: var(--slate-700);
}

.card-header-clean {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-header-clean h2 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.card-header-clean p {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.wompi-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Frecuencia Switch */
.freq-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--slate-100);
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  gap: 4px;
}

.freq-btn {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--slate-500);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.freq-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Montos */
.amounts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.amt-chip {
  padding: 9px 4px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.amt-chip:hover {
  border-color: var(--cardio-red);
}

.amt-chip.active {
  background: var(--cardio-pink-soft);
  border-color: var(--cardio-red);
  color: var(--cardio-red);
}

/* Custom Amount Input */
.custom-amt-field {
  position: relative;
  margin-bottom: 10px;
}

.custom-amt-field span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-400);
}

.custom-amt-field input {
  width: 100%;
  padding: 9px 12px 9px 56px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  transition: var(--transition);
}

.custom-amt-field input:focus {
  border-color: var(--cardio-red);
}

.impact-hint {
  font-size: 0.78rem;
  color: var(--slate-600);
  background: var(--cardio-pink-soft);
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  line-height: 1.4;
}

.impact-hint strong {
  color: var(--cardio-red);
}

.form-row-single {
  margin-bottom: 12px;
}

.clean-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.clean-select:focus {
  border-color: var(--cardio-red);
}

/* Inputs Donante */
.donor-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.clean-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--navy);
  outline: none;
  transition: var(--transition);
}

.clean-input:focus {
  border-color: var(--cardio-red);
}

.doc-input-group {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px;
}

.doc-select {
  padding: 9px 6px;
}

/* Botón de pago */
.btn-pay {
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 800;
  margin-top: 4px;
}

/* Footer de la tarjeta */
.card-footer-clean {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-logos {
  display: flex;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--slate-500);
}

.pm-logos span {
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
}

.sandbox-note-clean {
  font-size: 0.72rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-sandbox {
  background: transparent;
  border: none;
  color: var(--cardio-red);
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ==========================================================================
   FRANJA DE ESTADÍSTICAS
   ========================================================================== */
.strip-stats {
  background: var(--navy);
  color: var(--white);
  padding: 34px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.strip-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FF5C8D;
  line-height: 1.1;
  margin-bottom: 4px;
}

.strip-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section-soft {
  background-color: var(--slate-100);
}

.section-heading-clean {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.sub-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cardio-pink-soft);
  color: var(--cardio-red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.sub-pill.green {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.section-heading-clean h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
}

/* ==========================================================================
   CAUSAS (3 CARDS LIMPIAS)
   ========================================================================== */
.causes-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cause-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.cause-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cause-img-wrap {
  height: 190px;
  overflow: hidden;
}

.cause-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cause-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cause-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.cause-body p {
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-select-cause {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--cardio-red);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.btn-select-cause:hover {
  color: var(--cardio-red-hover);
  transform: translateX(3px);
}

/* ==========================================================================
   TRANSPARENCIA Y BENEFICIO TRIBUTARIO (2 COLUMNAS)
   ========================================================================== */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-card-clean {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 34px 30px;
}

.info-card-clean.highlight-box {
  background: linear-gradient(145deg, #FFFFFF 0%, #F5F9FD 100%);
  border-color: #BFDBFE;
}

.info-card-clean h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.muted-text {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Barras de porcentaje */
.fund-bar-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fund-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.fund-percent {
  color: var(--cardio-red);
  font-weight: 800;
}

.bar-track {
  width: 100%;
  height: 8px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--cardio-red);
  border-radius: 999px;
}

/* Calculadora rápida */
.quick-tax-calc {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-input-wrap label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.calc-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  gap: 6px;
}

.calc-field span {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--slate-400);
}

.calc-field input {
  width: 100%;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  outline: none;
}

.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--slate-600);
}

.calc-result.total {
  padding-top: 8px;
  border-top: 1px solid var(--slate-100);
  font-weight: 700;
}

.calc-result strong {
  color: var(--emerald);
  font-size: 0.95rem;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-narrow {
  max-width: 760px;
}

.faq-list-clean {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-card[open] {
  border-color: var(--cardio-red);
}

.faq-card summary {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--cardio-red);
}

.faq-card[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ==========================================================================
   FOOTER LIMPIO
   ========================================================================== */
.footer-clean {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-clean-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links-row a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links-row a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* ==========================================================================
   MODALES LIMPIOS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 54, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-400);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--navy);
}

.modal-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.test-data-box {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.test-data-box ul {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-data-box code {
  background: var(--white);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  color: var(--navy);
}

.cfg-field {
  margin-bottom: 12px;
}

.cfg-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.modal-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .causes-grid-3 {
    grid-template-columns: 1fr;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .amounts-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .donor-fields-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-section {
    padding: 36px 0 48px;
  }
}
