/* ==========================================================
   Landing solidaria · Daniela Parra
   ========================================================== */

:root {
  --pink-900: #6b0f3a;
  --pink-700: #b0185f;
  --pink-500: #e0357f;
  --pink-300: #f5a3c7;
  --pink-100: #fde8f1;
  --pink-50:  #fff6fa;
  --ink:      #2b1a24;
  --muted:    #7a6470;
  --white:    #ffffff;

  --radius:    22px;
  --radius-sm: 12px;
  --shadow:    0 18px 40px -18px rgba(176, 24, 95, .35);
  --shadow-sm: 0 6px 18px -8px rgba(176, 24, 95, .25);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Nunito Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--pink-50);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--pink-900);
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h1 em { color: var(--pink-500); font-style: italic; }

p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow    { width: min(720px, 100% - 32px); }
.center    { text-align: center; }
.muted     { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-700);
  margin-bottom: .9em;
}

.lead { font-size: 1.15rem; color: #4d3642; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .9em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--pink-300); outline-offset: 3px; }

.btn--small { padding: .55em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--pink-700);
  border-color: var(--pink-300);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--pink-100); }

.btn--outline {
  background: var(--white);
  color: var(--accent, var(--pink-700));
  border-color: currentColor;
  box-shadow: none;
}
.btn--outline:hover { background: var(--pink-50); }

.btn--light { background: var(--white); color: var(--pink-700); }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: none;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem max(16px, calc((100% - 1120px) / 2));
  background: rgba(255, 246, 250, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 53, 127, .12);
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pink-900);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}
.hero__blob--1 { width: 420px; height: 420px; background: var(--pink-300); top: -120px; right: -80px; }
.hero__blob--2 { width: 320px; height: 320px; background: #ffd6e7; bottom: -120px; left: -100px; }

.hero__photo { position: relative; margin: 0; }
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--pink-300), var(--pink-700));
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 5rem var(--serif);
  color: rgba(255, 255, 255, .85);
}

.badge-age {
  position: absolute;
  z-index: 2;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.1rem .7rem .8rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.badge-age__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: var(--white);
  font: 700 1.4rem var(--serif);
}
.badge-age__txt { font-size: .85rem; font-weight: 700; line-height: 1.25; color: var(--pink-900); }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--white); }
.section--pink {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-900));
  color: var(--white);
}
.section--pink h2 { color: var(--white); }
.section__head { max-width: 680px; margin-bottom: 2.5rem; }

/* ---------- Tarjetas ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card p { margin: 0; color: #4d3642; }
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--white);
  font-size: 1.6rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Métodos de pago ---------- */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.pay {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border-top: 6px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.pay__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: 1rem;
}
.pay__logo { font: 700 1.3rem var(--serif); color: var(--accent); }
.pay__tag {
  font-size: .75rem;
  font-weight: 700;
  padding: .25em .8em;
  border-radius: 999px;
  background: var(--pink-100);
  color: var(--pink-700);
}
.pay__data { margin: 0 0 1.2rem; flex: 1; }
.pay__data > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--pink-100);
}
.pay__data dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.pay__data dd { margin: 0; text-align: right; font-weight: 700; word-break: break-word; }

.copy {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: .15em .45em;
  margin: -.15em -.45em;
  border-radius: 8px;
  cursor: pointer;
  text-align: right;
  word-break: break-all;
  transition: background .2s ease;
}
.copy::after { content: " ⧉"; font-size: .8em; opacity: .45; }
.copy:hover { background: var(--pink-100); }
.copy.is-copied { background: #dff7e7; }
.copy.is-copied::after { content: " ✓"; opacity: 1; color: #1a8a45; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }

/* ---------- Compartir ---------- */
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.4rem; }

/* ---------- Pie ---------- */
.footer {
  padding: 3rem 16px;
  text-align: center;
  background: var(--pink-900);
  color: var(--pink-100);
}
.footer p { margin: 0 0 .4rem; }
.footer__big { font: 700 1.5rem var(--serif); color: var(--white); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 380px; margin-inline: auto; }
  .cards { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .badge-age { left: 50%; transform: translateX(-50%); bottom: -22px; white-space: nowrap; }
  .hero__actions .btn { flex: 1 1 100%; }
  .pay__data > div { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .pay__data dd, .copy { text-align: left; }
}
