/* =============================================
   AYUDEMOS A MARTÍN · style.css (v2 — conversion)
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --teal-500: #14b8a6;
  --green-500:#22c55e;
  --red-500:  #ef4444;
  --red-600:  #dc2626;
  --amber-400:#fbbf24;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white:    #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-cta {
  background: rgb(37, 99, 235);
  color: var(--white);
  font-size: 1.125rem;
  padding: 18px 40px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55);
  background: var(--blue-700);
}
.btn-xl { font-size: 1.2rem; padding: 20px 44px; }

/* Pulse animation */
.pulse-btn { position: relative; overflow: hidden; }
.pulse-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse-ring 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-size: 1rem; font-weight: 800; color: var(--blue-700); letter-spacing:-0.02em; }

/* =============================================
   HERO — split layout (photo + text)
   ============================================= */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, #f0f9ff 50%, #ffffff 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--gray-100);
}

.hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-photo-wrap { display: flex; justify-content: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
}

/* Photo card */

.hero-photo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.10);
  position: relative;
  max-width: 340px;
  border: 4px solid var(--white);
}

.hero-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 24px 16px 12px;
  text-align: center;
}

/* Text side */

.hero-badge {
  display: inline-block;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--gray-600);
  margin-bottom: 4px;
  line-height: 1.65;
}
.hero-subtitle strong { color: var(--gray-900); }
.hero-subtitle em {
  font-style: normal;
  color: var(--red-500);
  font-weight: 700;
  display: block;
  margin-top: 4px;
  font-size: 1.05em;
}
.btn-cta.pulse-btn { margin-top: 28px; }

.hero-micro {
  color: var(--gray-400);
  font-size: 0.78rem;
  margin-top: 12px;
  line-height: 1.5;
}

/* =============================================
   PROGRESS
   ============================================= */
.progress-section {
  background: var(--white);
  position: relative;
  z-index: 3;
}
.progress-card {
  padding: 28px 36px 20px;
  border-top: 4px solid var(--blue-600);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) { .progress-card { padding: 22px 18px 16px; } }

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-center { text-align: center; }
.stat-right  { text-align: right; }
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-value {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-value.green { color: #16a34a; }

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress-bar-track {
  flex: 1;
  height: 18px;
  background: var(--gray-100);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  background: rgba(255,255,255,0.5);
  border-radius: 50px;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer { 0%,100%{opacity:0} 50%{opacity:1} }
.progress-pct {
  font-size: 1rem;
  font-weight: 800;
  color: #16a34a;
  min-width: 46px;
  text-align: right;
}

.progress-urgency {
  text-align: center;
  margin-top: 14px;
}
.urgency-pill {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
}

/* =============================================
   STORY
   ============================================= */
.story-section {
  padding: 64px 0 56px;
  background: var(--gray-50);
}
.story-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.18rem);
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 20px;
}
.story-lead strong { color: var(--gray-900); }
.story-emotional p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}
.story-emotional p strong { color: var(--gray-900); }

.story-quote {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--blue-800);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 28px;
}
.story-quote strong { font-style: normal; color: var(--blue-700); }

.story-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-pill {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}

/* =============================================
   DONATE (single dominant card)
   ============================================= */
.donate-section {
  padding: 60px 0;
  background: var(--white);
}
.donate-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 6px;
  text-align: center;
}
.donate-subtitle {
  color: var(--gray-500);
  font-size: 0.97rem;
  text-align: center;
  margin-bottom: 36px;
}

.donate-main-card {
  background: linear-gradient(145deg, #eff6ff, #ffffff);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) { .donate-main-card { padding: 24px 18px; } }

.donate-card-header {
  margin-bottom: 28px;
  text-align: center;
}
.donate-method-badge {
  display: inline-block;
  background: var(--blue-700);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.bank-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.bank-detail label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.label-sub {
  font-size: 0.65rem;
  color: var(--blue-600);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.copy-field span {
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-900);
  flex: 1;
  word-break: break-all;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--blue-700); transform: scale(1.03); }
.btn-copy.copied { background: #16a34a; }

.donate-reassurance {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--blue-800);
  line-height: 1.5;
}
.reassurance-item svg { flex-shrink: 0; margin-top: 2px; color: var(--blue-600); }

/* =============================================
   SOCIAL PROOF (horizontal scroll strip)
   ============================================= */
.social-proof-section {
  padding: 56px 0 48px;
  background: var(--gray-50);
}
.social-title {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 6px;
  text-align: center;
}
.social-subtitle {
  color: var(--gray-500);
  font-size: 0.92rem;
  text-align: center;
  margin-bottom: 28px;
}

.messages-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 20px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.messages-strip::-webkit-scrollbar { display: none; }

.message-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  min-width: 260px;
  max-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.message-card::before {
  content: '"';
  position: absolute;
  top: 8px; left: 16px;
  font-size: 3rem;
  color: var(--blue-100);
  line-height: 1;
  font-family: Georgia, serif;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.message-meta { flex: 1; }
.message-name { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1px; }
.message-amount { font-size: 0.78rem; font-weight: 600; color: var(--blue-600); }
.message-time { font-size: 0.68rem; color: var(--gray-400); white-space: nowrap; }
.message-text { font-size: 0.85rem; color: var(--gray-600); line-height: 1.55; }

/* =============================================
   FAQ
   ============================================= */
.faq-section {
  padding: 60px 0;
  background: var(--white);
}
.faq-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 28px;
  text-align: center;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.faq-item.open { border-color: var(--blue-200); background: var(--blue-50); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: background 0.15s;
}
.faq-icon { flex-shrink:0; color:var(--blue-500); transition: transform 0.25s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height:0; overflow:hidden; transition:max-height 0.35s ease,padding 0.35s ease; padding:0 22px; }
.faq-item.open .faq-answer { max-height:300px; padding:0 22px 18px; }
.faq-answer p { color:var(--gray-600); font-size:0.92rem; line-height:1.7; }
.faq-answer p strong { color:var(--gray-900); }

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.final-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.heart-beat {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 20px;
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,100%{transform:scale(1)}
  14%{transform:scale(1.25)}
  28%{transform:scale(1)}
  42%{transform:scale(1.15)}
  70%{transform:scale(1)}
}
.final-cta h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}
.final-cta > .container > .final-cta-inner > p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* Share block */
.share-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.share-label {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.88rem !important;
  margin-bottom: 12px !important;
}
.share-buttons { display: flex; justify-content: center; gap: 12px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn.whatsapp { background: #25D366; color: var(--white); }
.share-btn.whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.78rem !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--gray-900); padding: 32px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-logo { font-size: 1rem; font-weight: 800; color: var(--white); }
.footer-copy { font-size: 0.78rem; color: var(--gray-500); }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgb(37, 99, 235);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .hero-content { padding: 60px 20px; }
  .progress-stats { flex-direction: column; align-items: flex-start; }
  .stat-center, .stat-right { text-align: left; }
  .copy-field { flex-direction: column; align-items: flex-start; }
  .btn-copy { width: 100%; justify-content: center; }
  .story-trust-pills { flex-direction: column; }
  .faq-question { padding: 16px 18px; font-size: 0.9rem; }
  .faq-answer, .faq-item.open .faq-answer { padding-left: 18px; padding-right: 18px; }
}
