/* =========================================================
   REALPE · Thanks Page
   Identidad visual heredada de la landing principal
   ========================================================= */

:root {
  /* Colores de marca */
  --navy:        #1F193B;   /* azul oscuro / títulos */
  --navy-deep:   #17122c;   /* footer */
  --purple:      #694086;   /* morado profundo */
  --orange:      #F18500;   /* naranja principal (CTA) */
  --gold:        #FBBC17;   /* dorado / acento cálido */
  --peach:       #F3CEB9;   /* durazno suave */

  --text:        #423b5c;   /* texto principal */
  --muted:       #6b6480;   /* texto secundario */
  --muted-soft:  #9e97b3;

  --bg:          #FFFFFF;   /* fondo general */
  --bg-alt:      #FAF8F5;   /* marfil muy claro */
  --card:        #FFFFFF;
  --card-alt:    #F7F7F9;
  --border:      #ece9f2;

  /* Tipografías */
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  /* Formas y sombras */
  --radius:      20px;
  --radius-pill: 999px;
  --shadow-sm:   0 6px 16px rgba(31,25,59,0.08);
  --shadow-md:   0 14px 34px rgba(31,25,59,0.10);
  --glow:        0 8px 28px rgba(241,133,0,0.30);

  /* Degradado de marca (botones) */
  --grad: linear-gradient(90deg, var(--orange), var(--purple));

  --maxw: 1160px;
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

/* Utilidad de ancho */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Foco visible accesible en todos los interactivos */
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(105,64,134,0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================================================
   1. BARRA SUPERIOR
   ========================================================= */
.topbar {
  background: var(--peach);
  color: var(--navy);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
}

/* =========================================================
   2. ENCABEZADO
   ========================================================= */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px 24px 6px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.10em;
  color: var(--navy);
  text-decoration: none;
}
.logo-img { display: block; height: 40px; width: auto; }

/* =========================================================
   3. HERO
   ========================================================= */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 8px;
  text-align: center;
}
.hero-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
}
.hero-icon svg { width: 100%; height: 100%; display: block; }
.hero-icon__circle {
  fill: rgba(241,133,0,0.10);
  stroke: var(--orange);
  stroke-width: 1.5;
  transform-origin: center;
  animation: pop .5s ease-out both;
}
.hero-icon__check {
  stroke: var(--purple);
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: draw .5s ease-out .25s forwards;
}
@keyframes pop  { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 12px;
}
.eyebrow--orange { color: var(--orange); }

.hero h1 {
  font-size: clamp(28px, 5.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.lead {
  font-size: 17px;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 20px;
}
.lead--muted { color: var(--muted); font-size: 15.5px; }

.highlight-pill {
  display: inline-block;
  background: rgba(241,133,0,0.10);
  color: #9a4d00;
  border: 1px solid rgba(241,133,0,0.30);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  margin: 4px auto 22px;
}

/* =========================================================
   4. TARJETA DE CONFIRMACIÓN
   ========================================================= */
.confirm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 620px;
  margin: 32px auto 0;
  padding: 34px 32px;
  text-align: center;
}
.confirm-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(105,64,134,0.10);
  color: var(--purple);
  margin-bottom: 16px;
}
.confirm-card__badge svg { width: 24px; height: 24px; stroke: currentColor; }
.confirm-card h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.confirm-card p  { color: var(--muted); font-size: 15px; }

/* =========================================================
   5. SECCIÓN DEL OBSEQUIO
   ========================================================= */
.gift-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF7FF 100%);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  max-width: 980px;
  margin: 46px auto 0;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.gift-card::before { /* resplandor sutil de marca */
  content: "";
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 240px;
  background: radial-gradient(closest-side, rgba(241,133,0,0.14), transparent 70%);
  pointer-events: none;
}
.gift-card__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

/* Visual genérico del obsequio */
.gift-visual { display: flex; justify-content: center; }
.gift-visual__doc {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy), var(--purple));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(31,25,59,0.22);
}
.gift-visual__doc svg { width: 60px; height: 60px; stroke: var(--gold); }
.gift-visual__tag { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.gift-visual__ai {
  font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--peach);
  border: 1px solid rgba(243,206,185,0.4);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

.gift-content h2 { font-size: clamp(22px, 3.5vw, 28px); font-weight: 800; margin-bottom: 12px; }
.gift-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.gift-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}
.gift-desc { color: var(--text); font-size: 15px; margin-bottom: 24px; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn__icon { width: 20px; height: 20px; stroke: currentColor; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
}
.btn--primary:hover  { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(241,133,0,0.42); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 12px 22px;
  font-size: 14px;
  width: 100%;
}
.btn--ghost:hover  { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.btn--ghost:active { transform: translateY(0); }

.btn-note { font-size: 13px; color: var(--muted-soft); margin-top: 12px; }

/* =========================================================
   6. REDES SOCIALES
   ========================================================= */
.social { padding-top: 64px; }
.social-head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.social-head h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin-bottom: 14px; }
.social-intro { color: var(--muted); font-size: 15px; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.social-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  transition: transform .18s ease, box-shadow .2s ease;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.social-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
}
.social-card__icon svg { width: 26px; height: 26px; }
.social-card__icon--fb  { background: rgba(24,119,242,0.12);  color: #1877F2; }
.social-card__icon--ig  { background: rgba(214,41,118,0.12);  color: #D62976; }
.social-card__icon--tk  { background: rgba(31,25,59,0.10);    color: var(--navy); }
.social-card__icon--web { background: rgba(241,133,0,0.14);   color: var(--orange); }
.social-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.social-card p  { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; flex: 1; }

/* =========================================================
   7. MENSAJE FINAL
   ========================================================= */
.closing {
  max-width: 680px;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 20px;
}
.closing h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin-bottom: 16px; }
.closing p  { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.closing__highlight {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--orange) !important;
  font-size: 18px !important;
}
.closing__sign { font-family: var(--font-head); font-weight: 700; color: var(--navy) !important; }

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: #cfc9df;
  text-align: center;
  padding: 48px 24px;
  margin-top: 60px;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.10em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-tagline { font-size: 14px; color: #b7b0cc; max-width: 460px; margin: 0 auto 22px; }

.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  transition: background .2s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--orange); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }

.footer-legal-links { font-size: 13px; margin-bottom: 14px; color: #8f88a6; }
.footer-legal-links a { color: #cfc9df; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { font-size: 12px; color: #7b7492; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Tableta */
@media (max-width: 900px) {
  .gift-card { padding: 32px; }
  .gift-card__grid { grid-template-columns: 1fr; gap: 28px; }
  .gift-visual__doc { max-width: 220px; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Celular */
@media (max-width: 600px) {
  .site-header { padding-top: 20px; }
  .hero { padding-top: 20px; }
  .hero-icon { width: 72px; height: 72px; }
  .confirm-card, .gift-card { padding: 26px 20px; }
  .social-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }              /* botones a todo el ancho */
  .btn--primary { padding: 16px 24px; }
  .wrap { padding: 0 18px; }
}

/* =========================================================
   PREFERENCIAS DE MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-icon__check { stroke-dashoffset: 0; }
  .hero-icon__circle { opacity: 1; transform: none; }
}
