/* ============================================
   12 en 12 — Shared Styles
   Usado por: index-vsl-svg.html, gracias.html,
              terminos.html, privacidad.html
   ============================================ */

/* ── Variables ─────────────────────────────── */
:root {
  --bg: #FDFCF7;
  --surface: #FFFFFF;
  --border: #E8E5DD;
  --text: #262626;
  --text-muted: #6B6B6B;
  --yellow: #FFD043;
  --yellow-dim: #FFF9E6;
  --yellow-text: #8F6B00;
  --pink: #F6A6B2;
  --pink-dim: #FFF0F2;
  --pink-text: #9E3F4D;
  --green: #A0D39B;
  --green-dim: #EFF9EE;
  --green-text: #3C6339;
  --blue: #89C4D7;
  --blue-dim: #EEF8FC;
  --blue-text: #2C5B67;
  --dark-btn: #262626;
}

/* ── Reset base ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
}

/* ── Navegación ─────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(253, 252, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--pink); font-size: 1.15rem; margin: 0 1px; }
.logo-icon  { width: 26px; height: 26px; fill: var(--pink); }
.logo-img   { height: 38px; width: auto; max-width: 120px; display: block; }

@media (max-width: 600px) {
  nav { height: 62px; padding: 0 4%; }
  .logo-img { height: 26px; max-width: 92px; }
  .nav-cta { font-size: 0.82rem; padding: 9px 16px; }
  .nav-back { font-size: 0.82rem; }
}

.nav-cta {
  background: var(--dark-btn);
  color: #FFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: #404040; }

.nav-back {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-back:hover { color: var(--text); }

/* ── Decor rope + mosquetón ─────────────────── */
.decor-rope {
  position: absolute;
  transform-origin: top center;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.14));
}
.decor-rope .line {
  width: 6px;
  border-radius: 4px;
  border: 1.5px solid var(--rope-stroke);
  background-color: var(--rope-fill);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    var(--rope-stroke) 3px,
    var(--rope-stroke) 5px
  );
}
.decor-rope svg { margin-top: -3px; display: block; }

.rope-pink   { --rope-fill: var(--pink);   --rope-stroke: var(--pink-text); }
.rope-yellow { --rope-fill: var(--yellow); --rope-stroke: var(--yellow-text); }
.rope-green  { --rope-fill: var(--green);  --rope-stroke: var(--green-text); }
.rope-blue   { --rope-fill: var(--blue);   --rope-stroke: var(--blue-text); }

.swing-1 { animation: swing 4.5s infinite ease-in-out; }
.swing-2 { animation: swing 5.5s infinite ease-in-out; }

@keyframes swing {
  0%, 100% { transform: rotate(-12deg); }
  50%       { transform: rotate(12deg); }
}

/* ── Climbing holds (decor de fondo) ────────── */
.climbing-hold {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .climbing-hold { display: none !important; }
}

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer .logo-img { height: 30px; }
footer p { font-size: 0.85rem; color: var(--text-muted); }
footer a { color: var(--text); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--pink-text); }

/* ── Policy pages (terminos + privacidad) ───── */
.policy-container {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 0 24px;
  position: relative;
}
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  position: relative;
  z-index: 2;
}
.policy-header { margin-bottom: 36px; text-align: center; }
.policy-header h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.policy-header p { color: var(--text-muted); font-size: 1.05rem; }
.policy-content h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 16px;
  border-bottom: 2px solid var(--yellow-dim);
  padding-bottom: 6px;
  display: inline-block;
}
.policy-content p       { font-size: 1.02rem; color: #4A4A4A; margin-bottom: 20px; }
.policy-content ul      { margin-left: 24px; margin-bottom: 24px; color: #4A4A4A; }
.policy-content li      { margin-bottom: 8px; font-size: 1rem; }
.policy-content strong  { color: var(--text); font-weight: 600; }
.legal-alert {
  background: var(--pink-dim);
  border: 1px solid var(--pink);
  border-radius: 12px;
  padding: 20px;
  color: var(--pink-text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 28px;
}
.legal-alert-green {
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 20px;
  color: var(--green-text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .policy-card       { padding: 32px 20px; border-radius: 16px; }
  .policy-header h1  { font-size: 2rem; }
}

/* ── Mountain and Cactus backgrounds ────────── */
.mountain-bg, .cactus-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0 !important;
}

@media (max-width: 768px) {
  .mountain-bg {
    opacity: 0.45 !important;
    width: 60vw !important;
  }
  .cactus-bg {
    opacity: 0.65 !important;
    width: 32vw !important;
  }
}

/* ── Gracias Page Specific Styles ───────────── */
main.thanks-page {
  min-height: calc(100vh - 152px); /* 100vh minus nav & footer height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.thanks-container {
  max-width: 620px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.success-icon {
  width: 96px; height: 96px;
  background: var(--green-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
  animation: thanks-popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.success-icon svg {
  width: 48px; height: 48px;
  stroke: var(--green-text);
}
@keyframes thanks-popIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.thanks-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-dim); color: var(--green-text);
  border: 1px solid var(--green); border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 14px; margin-bottom: 24px;
  text-transform: uppercase;
}
.thanks-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-text);
  animation: thanks-pulse 2s infinite;
}
@keyframes thanks-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.thanks-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.thanks-title .hl-yellow {
  background: var(--yellow);
  border-radius: 6px;
  padding: 0 6px;
  display: inline;
}

.thanks-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.thanks-subtitle strong { color: var(--text); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  animation: thanks-slideUp 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes thanks-slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.info-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-step:last-child { border-bottom: none; padding-bottom: 0; }
.info-step:first-child { padding-top: 0; }

.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.step-num.green  { background: var(--green-dim);  color: var(--green-text); }
.step-num.yellow { background: var(--yellow-dim); color: var(--yellow-text); }
.step-num.pink   { background: var(--pink-dim);   color: var(--pink-text); }

.step-text strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  font-size: 1rem;
}
.step-text span {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.error-section {
  background: var(--pink-dim);
  border: 1px solid var(--pink);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 32px;
  animation: thanks-slideUp 0.5s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.error-section p {
  font-size: 0.95rem;
  color: var(--pink-text);
  margin-bottom: 12px;
}
.error-section p strong { color: var(--pink-text); }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.wa-btn:hover { background: #1ebe5a; transform: translateY(-1px); }
.wa-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  animation: thanks-slideUp 0.5s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.back-home:hover { color: var(--text); }

@media (max-width: 600px) {
  .info-card { padding: 24px 20px; }
  .error-section { padding: 20px; }
}

/* Hero sky decorations — más grandes y visibles en móvil */
@media (max-width: 768px) {
  .hero-decor-sol  { width: 32vw !important; opacity: 0.9 !important; }
  .hero-decor-nube { width: 44vw !important; opacity: 0.8 !important; }
  .hero-decor-bird { width: 10vw !important; opacity: 0.7 !important; }
  .hero-decor-nopal { width: 28vw !important; opacity: 0.85 !important; }
}
