/* =========================================
   DESPIERTA DÉBORA — Landing privada
   Paleta marca: morado profundo + dorado + crema
   ========================================= */

:root {
  --purple-deep: #4a1e6e;
  --purple: #6b2d8b;
  --purple-light: #a47cc4;
  --purple-pale: #f3ecf9;
  --gold: #d4af37;
  --gold-light: #e8c968;
  --cream: #faf6ef;
  --ink: #2a1640;
  --muted: #6b5680;
  --error: #b3261e;
}

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

html, body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.hidden { display: none !important; }

/* =========================================
   PUERTA DE ACCESO
   ========================================= */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top, rgba(212,175,55,0.15), transparent 50%),
    linear-gradient(135deg, #2a1640 0%, #4a1e6e 50%, #6b2d8b 100%);
  position: relative;
  overflow: hidden;
}

.gate::before, .gate::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.08), transparent 70%);
  pointer-events: none;
}
.gate::before { top: -150px; left: -100px; }
.gate::after { bottom: -150px; right: -100px; }

.gate-card {
  background: rgba(250, 246, 239, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 56px 44px;
  max-width: 460px;
  width: 100%;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(212,175,55,0.3);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: cardIn 0.7s cubic-bezier(.2,.8,.2,1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-crown {
  font-size: 52px;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(212,175,55,0.4);
  line-height: 1;
  margin-bottom: 8px;
}

.gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--purple-deep);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gate-title .script {
  font-family: 'Great Vibes', cursive;
  font-size: 62px;
  font-weight: 400;
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0;
  display: inline-block;
  margin-left: 4px;
  text-shadow: 0 2px 8px rgba(212,175,55,0.25);
}

.gate-sub {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.gate-verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--purple);
  margin: 24px 0 32px;
  line-height: 1.4;
}

#gateForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#gateForm input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid rgba(107, 45, 139, 0.15);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#gateForm input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

#gateForm button {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  margin-top: 4px;
}

#gateForm button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(74, 30, 110, 0.35);
}

#gateForm button:active { transform: translateY(0); }

.gate-error {
  color: var(--error);
  font-size: 14px;
  margin-top: 16px;
  min-height: 20px;
}

.gate-card.shake { animation: shake 0.5s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.gate-footer {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================
   CONTENIDO PROTEGIDO
   ========================================= */
.content {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero {
  width: 100%;
  background: linear-gradient(180deg, #2a1640 0%, #4a1e6e 100%);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 100vh;
  object-fit: contain;
}

section {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.welcome { text-align: center; max-width: 760px; }

.welcome h2,
.modules h2,
.method h2,
.status h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--purple-deep);
  text-align: center;
  margin-bottom: 16px;
}

.welcome h2::after,
.modules h2::after,
.method h2::after,
.status h2::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

.lead {
  font-size: 18px;
  color: var(--ink);
  margin: 24px 0;
}

.verse {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--purple);
  margin-top: 32px;
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: var(--purple-pale);
  border-radius: 8px;
  text-align: left;
}

.verse .ref {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 2px;
  font-family: 'Montserrat', sans-serif;
}

/* PILARES */
.pillars { max-width: 1100px; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pillar {
  text-align: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, white 0%, var(--purple-pale) 100%);
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.2);
  transition: transform 0.2s;
}

.pillar:hover { transform: translateY(-4px); }

.pillar-icon {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}

.pillar h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--purple-deep);
  margin-bottom: 4px;
}

.pillar p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

.pillars h2::after,
.welcome h2::after,
.modules h2::after,
.method h2::after,
.status h2::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

@media (max-width: 720px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* MÓDULOS */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.module-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(74, 30, 110, 0.08);
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(74, 30, 110, 0.15);
}

.module-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--purple-pale);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}

.module-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--purple-deep);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.module-card p {
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* METODOLOGÍA */
.method-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.method-pill {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ESTADO */
.status { max-width: 720px; }

.status-list {
  list-style: none;
  margin-top: 32px;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #ddd;
  font-size: 15px;
}

.status-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.status-list .done { border-left-color: #2e7d32; }
.status-list .done span { background: #e8f5e9; color: #2e7d32; }

.status-list .in-progress { border-left-color: var(--gold); background: #fffbe6; }
.status-list .in-progress span { background: var(--gold); color: white; }

.status-list .pending { border-left-color: #ccc; opacity: 0.7; }
.status-list .pending span { background: #f0f0f0; color: #999; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 56px 24px;
  background: linear-gradient(180deg, var(--purple-deep), #2a1640);
  color: white;
  max-width: none;
  margin: 64px 0 0;
}

.footer .crown {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.footer-url {
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.logout {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(212,175,55,0.4);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.logout:hover {
  background: var(--gold);
  color: var(--purple-deep);
  border-color: var(--gold);
}

/* MOBILE */
@media (max-width: 640px) {
  .gate-card { padding: 40px 28px; }
  .gate-title { font-size: 30px; }
  .gate-title .script { font-size: 48px; }
  section { padding: 48px 20px; }
  .welcome h2, .modules h2, .method h2, .status h2 { font-size: 30px; }
  .module-num { font-size: 44px; }
}
