@charset "UTF-8";

/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
  /* Backgrounds */
  --bg-primary:  #0B1026;
  --bg-elevated: #0d1529;
  --bg-card:     #101b36;
  --marino:      #1A3E5C;
  --grafito:     #1C1C1C;

  /* Gold gradient - 5 steps, NEVER flat */
  --gold-1: #F2DCA0;
  --gold-2: #EAD08C;
  --gold-3: #DEB864;
  --gold-4: #D3AB5B;
  --gold-5: #C99E4E;
  --accent: #DEB864;
  --gold-gradient: linear-gradient(135deg, #F2DCA0 0%, #EAD08C 25%, #DEB864 50%, #D3AB5B 75%, #C99E4E 100%);
  --gold-metallic: linear-gradient(180deg, #F2DCA0 0%, #EAD08C 25%, #DEB864 50%, #D3AB5B 75%, #C99E4E 100%);

  /* Text */
  --text-light:     #FAF8F4;
  --text-secondary: #d0cdd6;
  --text-muted:     #b0acb8;

  /* Borders and radii */
  --border-gold: rgba(201,169,106,0.2);
  --border-gold-hover: rgba(201,169,106,0.4);
  --radius-lg: 16px;
  --radius-sm: 10px;

  /* Typography */
  --font-display: 'Jost', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* Accessibility Focus Rings */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-3);
  outline-offset: 2px;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */
.label {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--gold-3);
  display: block;
  margin-bottom: 1rem;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.gold-text {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   3. GLOBAL & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.center-aligned {
  text-align: center;
}

/* Section Background Assignments */
#hero       { background-color: var(--bg-primary); }
#problema   { background-color: var(--bg-elevated); }
#diagnostico{ background-color: var(--bg-primary); }
#contenido  { background-color: var(--bg-elevated); }
#metodo     { background-color: var(--bg-primary); }
#instructor { background-color: var(--bg-elevated); }
#audiencia  { background-color: var(--bg-primary); }
#faq        { background-color: var(--bg-elevated); }
#cierre     { background-color: var(--bg-primary); }

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* --- Glass Card --- */
.glass-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.problem-grid .glass-card:hover,
.planets-grid .planet-card:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--gold-gradient);
  color: #081026;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(222,184,100,0.22);
  transition: transform 0.35s ease, filter 0.35s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary--full {
  width: 100%;
  display: block;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold-3);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  transition: all 0.35s ease;
  text-align: center;
}

.btn-outline:hover {
  border-color: var(--gold-3);
  color: var(--gold-1);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-select {
  background-color: rgba(11,16,38,0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b0acb8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-3);
  box-shadow: 0 0 0 3px rgba(222,184,100,0.1);
}

.form-input.error, .form-select.error { border-color: #e57373; }
.form-input.valid, .form-select.valid { border-color: rgba(129,199,132,0.5); }

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #e57373;
  margin-top: 6px;
}

.whatsapp-group {
  display: flex;
  gap: 8px;
}

.whatsapp-group .form-select {
  width: 115px;
  flex-shrink: 0;
  padding-right: 12px;
  background-image: none;
}

.whatsapp-group .form-input {
  flex: 1;
}

.form-microcopy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.75rem;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Warning & Checkbox */
.form-warn {
  background: rgba(163, 93, 93, 0.1);
  border: 1px solid #a35d5d;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.form-warn__main {
  color: #e57373;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.form-warn__sub {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.checkbox-group {
  margin-top: 8px;
  margin-bottom: 24px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--gold-3);
  width: 16px;
  height: 16px;
}
.checkbox-label span {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}
.checkbox-label a {
  color: var(--gold-3);
  text-decoration: underline;
}

/* Spinner for loading state */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #081026;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(11,16,38,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile: show icon, hide full lockup */
.navbar__logo--full {
  display: none;
  height: 36px;
  width: auto;
}

.navbar__logo--icon {
  display: block;
  height: 32px;
  width: auto;
}

.navbar__cta {
  font-size: 0.8rem;
  padding: 12px 24px;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__shader-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75; /* Permite que el fondo marino oscurezca el efecto para asegurar el contraste del texto */
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__subtitle {
  margin-bottom: 1rem;
}

.hero__body {
  margin-bottom: 1.5rem;
}

.hero__event-data {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.event-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-3);
  stroke: var(--gold-3);
}

.hero__form-wrapper {
  width: 100%;
}

.hero__form-card {
  position: relative;
}

.hero__form-card .h3 {
  text-align: center;
}

.hero__form-card > .body {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Credibility Bar */
.credibility-bar {
  border-top: 1px solid var(--border-gold);
  margin-top: 3rem;
  padding: 1.5rem 0;
}

.credibility-bar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.credibility-bar__separator {
  color: var(--gold-5);
}

/* ==========================================================================
   7. PROBLEM SECTION (§5.2)
   ========================================================================== */
.intro-paragraph {
  margin-bottom: 1rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2.5rem;
}

.problem-grid .glass-card {
  padding: 32px;
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: var(--gold-3);
  stroke: var(--gold-3);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.closing-paragraph {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-top: 3rem;
  font-style: italic;
}

/* ==========================================================================
   8. DIAGNOSIS SECTION (§5.3)
   ========================================================================== */
#diagnostico {
  text-align: center;
  padding: 80px 0;
}

#diagnostico .body {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
}

.diagnosis__anchor {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.3;
  max-width: 800px;
  margin: 2rem auto 0;
}

/* ==========================================================================
   9. CONTENT SECTION (§5.4)
   ========================================================================== */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 3rem;
}

.content-item {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(16,27,54,0.5);
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.content-item:hover {
  border-left-color: var(--gold-3);
  background: rgba(16,27,54,0.8);
}

.item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.item-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.honesty-block {
  margin-top: 3rem;
  border-left: 3px solid var(--gold-3) !important;
  border-color: transparent;
  background-color: rgba(11,16,38,0.6) !important;
}

.honesty-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   10. METHOD / PLANETS SECTION (§5.5)
   ========================================================================== */

/* Orbital decoration — CSS pseudo-elements on sections with this class */
.orbital-decoration::before,
.orbital-decoration::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(222,184,100,0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.orbital-decoration::before {
  width: 650px;
  height: 650px;
  animation: rotateOrbit 120s infinite linear;
}

.orbital-decoration::after {
  width: 420px;
  height: 420px;
  animation: rotateOrbit 80s infinite linear reverse;
}

@keyframes rotateOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.planets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.planet-card {
  text-align: center;
  padding: 32px;
}

.planet-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.75rem;
}

.planet-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.planet-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.planet-card__content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Infinite Gallery --- */
.gallery-scroll {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: scrollGallery 40s linear infinite;
  gap: 16px;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); /* Assuming it's duplicated */ }
}

/* --- Badges & Chips --- */ 
.closing-paragraphs {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.closing-paragraphs p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 1rem;
}

#metodo .btn-primary {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   11. INSTRUCTOR SECTION (§5.6)
   ========================================================================== */
.instructor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 2rem;
}

.instructor__image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.instructor__content .body-lg {
  margin-bottom: 1.5rem;
}

.instructor__content .body {
  margin-bottom: 0.75rem;
}

.instructor__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 2rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat__number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--gold-3);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__plus {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold-3);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.instructor__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(26,62,92,0.2);
  border: 1px solid var(--marino);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* ==========================================================================
   12. AUDIENCE SECTION (§5.7)
   ========================================================================== */
.audience-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 2.5rem;
}

.audience-yes ul,
.audience-no ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audience-yes li,
.audience-no li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.audience-yes li svg,
.audience-no li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.audience-no__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.audience-no {
  opacity: 0.85;
}

/* ==========================================================================
   13. FAQ SECTION (§5.8)
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--gold-3);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 22px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   14. CLOSING SECTION (§5.9)
   ========================================================================== */
.cierre-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.cierre__content .h2 {
  margin-bottom: 1.25rem;
}

.cierre__content .body {
  margin-bottom: 0.75rem;
}

.promise-block {
  margin-top: 2rem;
  border-left: 3px solid var(--gold-3) !important;
  padding: 32px;
}

.promise-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.promise-block p:last-child {
  margin-bottom: 0;
  color: var(--text-light);
  font-weight: 500;
}

.cierre__form-wrapper {
  width: 100%;
}

.cierre-form-card .h3 {
  text-align: center;
}

.cierre-form-card > .body {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.footer {
  padding: 50px 0 30px;
  text-align: center;
  background-color: var(--bg-elevated);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__logo {
  margin: 0 auto 1.25rem;
  opacity: 0.8;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer__sirf {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__links a {
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--gold-3);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  opacity: 0.6;
}

/* ==========================================================================
   16. CONFIRMATION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 48px 36px;
  position: relative;
}

.modal-content:hover {
  transform: none;
}

.modal__icon {
  margin-bottom: 1.5rem;
}

.modal__icon svg {
  margin: 0 auto;
}

.modal__event-details {
  margin: 1.5rem 0;
  padding: 16px;
  background: rgba(11,16,38,0.5);
  border-radius: var(--radius-sm);
}

.modal__event-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-content .btn-primary {
  margin-top: 1rem;
}

/* ==========================================================================
   17. ANIMATIONS & UTILITIES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   18. RESPONSIVE — TABLET (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  section {
    padding: 80px 0;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__event-data {
    flex-direction: row;
    gap: 28px;
  }
}

/* ==========================================================================
   19. RESPONSIVE — DESKTOP (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  section {
    padding: 96px 0;
  }

  /* Navbar: show full lockup, hide icon */
  .navbar__logo--full {
    display: block;
    height: 40px;
  }

  .navbar__logo--icon {
    display: none;
  }

  /* Hero: two-column 60/40 */
  .hero__layout {
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
  }

  /* Planets: three columns */
  .planets-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Instructor: two columns */
  .instructor-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }

  .instructor__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Cierre: two columns */
  .cierre-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

/* ==========================================================================
   20. RESPONSIVE — LARGE DESKTOP (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }
}

/* ==========================================================================
   21. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   LEGACY SUPPORT: SESIONES CLÍNICAS (HTML ORIGINAL)
   ========================================================================== */

/* Header */
.header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; position: absolute; width: 100%; z-index: 1000; box-sizing: border-box; }
.h-lock { display: flex; align-items: center; gap: 12px; }
.h-iso { height: 26px; width: auto; }
.h-name { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.1em; color: var(--text-light); }
.h-name b { color: var(--gold-3); font-weight: 700; margin-left: 4px; }
.h-tag { font-size: 11px; color: var(--text-secondary); max-width: 280px; line-height: 1.3; display: block; }
.h-cta { font-size: 0.8rem; padding: 10px 20px; }

/* Hero */
.hero { position: relative; padding: 140px 0 80px; min-height: 90vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-primary); }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.35; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 0 auto; text-align: center; padding: 0 24px; box-sizing: border-box; }
.deco { position: absolute; pointer-events: none; }
.wrap-narrow { max-width: 800px; margin: 0 auto; }
.txt-c { text-align: center; }
.ey { display: block; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-3); margin-bottom: 12px; font-size: 13px; }

.brandline { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; font-weight: 300; }
.brandline b { font-weight: 600; }
.gt { color: var(--gold-3); font-weight: 600; }
.hero-pos { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; }
.hero-h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; margin-bottom: 16px; }
.hero-sub { color: var(--text-secondary); font-size: 1rem; margin-bottom: 32px; }

/* Info / Chips */
.info { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 48px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(222, 184, 100, 0.08); border: 1px solid rgba(222, 184, 100, 0.2); border-radius: 20px; color: var(--gold-3); font-size: 0.9rem; }
.chip svg { width: 18px; height: 18px; flex-shrink: 0; }

/* CTA Buttons */
.cta { display: inline-block; background: var(--gold-gradient); color: #081026; padding: 16px 32px; border-radius: var(--radius-sm); font-weight: 600; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; transition: transform 0.3s, filter 0.3s; text-decoration: none; border: none; cursor: pointer; text-align: center; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.hero-cta-b { margin-top: 32px; }
.hero-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* Sections */
.wband { background: rgba(229, 115, 115, 0.1); border-top: 1px solid #a35d5d; border-bottom: 1px solid #a35d5d; padding: 24px 0; }
.wband-main { display: flex; justify-content: center; align-items: center; gap: 12px; color: #e57373; font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.wband-main svg { width: 24px; height: 24px; stroke: #e57373; fill: rgba(229, 115, 115, 0.1); }
.wband-sub { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

.strip { padding: 48px 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border-gold); }
.strip h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 300; text-align: center; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.deco-sep { display: flex; justify-content: center; padding: 40px 0; }

.sec { padding: 80px 0; position: relative; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 48px; }
.card { background: var(--bg-card); border: 1px solid var(--border-gold); padding: 32px; border-radius: var(--radius-lg); transition: transform 0.3s; text-align: left; }
.card:hover { transform: translateY(-5px); border-color: var(--border-gold-hover); }
.card-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-3); font-weight: 300; margin-bottom: 16px; opacity: 0.5; }
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; margin: 0; }

.mid-cta { padding: 64px 0; background: radial-gradient(circle at center, rgba(222, 184, 100, 0.05) 0%, transparent 60%); text-align: center; }
.mid-cta h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 16px; font-weight: 300; }
.mid-cta p { color: var(--text-secondary); margin-bottom: 32px; }

/* Speaker */
.spk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spk-photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-gold); aspect-ratio: 4/5; }
.spk-photo img { width: 100%; height: 100%; object-fit: cover; }
.spk-name { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 8px; }
.spk-role { color: var(--gold-3); font-size: 1rem; margin-bottom: 24px; }
.cred-list { padding: 0; margin: 0; }
.cred-list li { display: flex; gap: 12px; margin-bottom: 16px; color: var(--text-secondary); align-items: flex-start; text-align: left; }
.ck svg { width: 20px; height: 20px; stroke: var(--gold-3); flex-shrink: 0; }
.gline { border: 0; height: 1px; background: linear-gradient(to right, transparent, var(--border-gold), transparent); margin: 0; opacity: 0.5; }

/* About Grid */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.about-box { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); padding: 32px; border-radius: var(--radius-lg); text-align: center; }
.about-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(222,184,100,0.05); margin-bottom: 24px; }
.about-icon svg { width: 32px; height: 32px; stroke: var(--gold-3); }
.about-box h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; color: var(--text-light); }
.about-box p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* Form Grid */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; text-align: left; }
.reg-info h2 { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.2; margin-bottom: 16px; }
.rlede { color: var(--text-secondary); font-size: 1.1rem; margin-top: 16px; margin-bottom: 32px; }
.wcomp { display: flex; gap: 16px; background: rgba(222, 184, 100, 0.05); border: 1px solid var(--border-gold); padding: 24px; border-radius: 8px; }
.wcomp-t { font-weight: 600; color: var(--gold-3); font-size: 0.9rem; margin-bottom: 8px; margin-top: 0; }
.wcomp-s { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
.wcomp svg { width: 40px; height: 40px; flex-shrink: 0; stroke: var(--gold-3); }

/* Form Elements */
.fcard { background: var(--bg-elevated); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-gold); box-shadow: 0 10px 40px rgba(0,0,0,0.5); text-align: left; }
.fg { margin-bottom: 20px; text-align: left; }
.fg label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; color: var(--text-light); }
.fg input, .fg select, .fg textarea { width: 100%; background: var(--bg-input); border: 1px solid var(--border-input); color: var(--text-light); padding: 14px 16px; border-radius: var(--radius-sm); box-sizing: border-box; }
.fg input:focus { border-color: var(--gold-3); outline: none; }

.search-select { position: relative; }
.search-select-input { padding-right: 32px; }
.search-select-arrow { position: absolute; right: 16px; top: 18px; width: 12px; height: 12px; pointer-events: none; }
.search-select-list { display: none; position: absolute; top: 100%; left: 0; width: 100%; max-height: 200px; overflow-y: auto; background: var(--bg-elevated); border: 1px solid var(--gold-3); border-radius: var(--radius-sm); z-index: 10; margin: 0; padding: 0; list-style: none; }
.search-select-list li { padding: 12px 16px; cursor: pointer; color: var(--text-light); font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.search-select-list li:hover { background: rgba(222, 184, 100, 0.1); color: var(--gold-3); }

.cbg { margin-bottom: 24px; }
.cbl { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; text-align: left; }
.cbl input { margin-top: 4px; flex-shrink: 0; accent-color: var(--gold-3); width: 16px; height: 16px; }
.cbl span { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.terms-link { color: var(--gold-3); text-decoration: underline; }
.legal { font-size: 0.75rem; color: #a35d5d; margin-top: 8px; margin-left: 28px; text-align: left; }
.cberr { display: none; color: #e57373; font-size: 0.8rem; margin-top: 8px; }
.btn-sub { width: 100%; }
.priv { text-align: center; color: var(--text-muted); font-size: 0.75rem; margin-top: 16px; }

.conf { display: none; text-align: center; padding: 40px 20px; }
.conf-ck { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--gold-3); border-radius: 50%; margin-bottom: 24px; }
.conf-ck svg { width: 32px; height: 32px; stroke: #081026; }
.conf h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 12px; }
.conf p { color: var(--text-secondary); }

/* FAQ details */
.faq-l details { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px; border-radius: var(--radius-lg); overflow: hidden; text-align: left; }
.faq-l summary { padding: 24px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-l summary::-webkit-details-marker { display: none; }
.faq-l summary::after { content: '+'; color: var(--gold-3); font-size: 1.5rem; }
.faq-l details[open] summary::after { content: '−'; }
.faq-l p { padding: 0 24px 24px; color: var(--text-secondary); margin: 0; }

.footer { padding: 48px 0; background: #040813; text-align: center; }
.footer-a { font-weight: 600; margin-bottom: 16px; font-size: 0.9rem; }
.footer-c { color: var(--text-muted); font-size: 0.85rem; }
.footer-c a { color: var(--text-secondary); text-decoration: underline; }

.mob-cta { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-primary); padding: 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.5); z-index: 1000; box-sizing: border-box; text-align: center; }

/* Modals */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-card { background: var(--bg-elevated); padding: 32px; border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; position: relative; border: 1px solid var(--border-gold); text-align: left; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }
.tz-grid { margin-top: 24px; display: grid; gap: 12px; }
.tz-row { display: flex; align-items: center; padding: 12px; background: rgba(255,255,255,0.02); border-radius: 6px; }
.tz-highlight { background: rgba(222, 184, 100, 0.1); border: 1px solid var(--border-gold); }
.tz-flag { font-size: 1.2rem; margin-right: 12px; }
.tz-pais { flex-grow: 1; color: var(--text-secondary); }
.tz-hora { font-weight: 600; color: var(--gold-3); }

.modal-terms h4 { color: var(--gold-3); margin-bottom: 12px; margin-top: 24px; }
.modal-terms p, .modal-terms li { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; line-height: 1.5; }
.modal-terms ul { padding-left: 20px; margin-bottom: 16px; }
.modal-terms li { list-style-type: disc; }
.modal-terms-header { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 24px; margin-bottom: 24px; }
.modal-terms-header h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.modal-terms-accept { width: 100%; margin-top: 24px; }

@media (max-width: 768px) {
  .mob-cta { display: block; }
  .header .cta { display: none; }
  .spk-grid, .reg-grid { grid-template-columns: 1fr; gap: 32px; }
  .brandline { font-size: 2.2rem; }
}
