:root {
  --bg-main: #f8f8f8;
  --bg-soft: #ffffff;  
  --border: #e5e5e5;  
  --text-main: #000;
  --text-muted: rgb(68, 68, 68);
  --accent: rgb(0, 200, 150);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header strong {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
}

nav a {
  margin-left: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--text-main);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 28px;
}

.logo strong {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary {
  border: 1.5px solid #000;
  background: transparent;
}

/* COURSE */
.course-highlight {
  padding: 64px 32px;
}

.course-card {
  max-width: 1250px;
  margin: auto;
  background: #fff;
  border-radius: 28px;
  padding: 56px 64px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

/* Tag */
.course-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,200,150,0.08);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.course-left h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.course-lead {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Modules */
.course-modules {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.course-module {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.course-module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.module-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.course-module-title strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}

.course-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-points li {
  font-size: 0.87rem;
  color: #555;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.course-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #bbb;
}

/* Purchase card */
.course-right {
  position: sticky;
  top: 100px;
}

.course-purchase-card {
  border: 1.5px solid #e8e8e8;
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.course-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.course-price-note {
  font-size: 0.82rem;
  color: #888;
}

.course-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.course-perks li {
  font-size: 0.87rem;
  color: #444;
  padding-left: 20px;
  position: relative;
}

.course-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.course-lang-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.course-lang-block label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #888;
}

.course-lang-block select {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.course-lang-block select:focus {
  border-color: var(--accent);
}

.course-buy-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  text-align: center;
}

/* ================= MENTORSHIP (redesign) ================= */

.mentorship-highlight {
  padding: 64px 32px;
}

.mentorship-new-card {
  max-width: 1250px;
  margin: auto;
  background: #fff;
  border-radius: 28px;
  padding: 56px 64px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.05);
}

/* Header */
.mentorship-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,200,150,0.08);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.mentorship-new-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.mentorship-lead {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 0;
}

/* How it works steps */
.mentorship-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 40px 0 48px;
  background: #f8f8f8;
  border-radius: 16px;
  padding: 24px 32px;
  flex-wrap: wrap;
  gap: 0;
}

.mentorship-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 180px;
}

.mentorship-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.mentorship-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
}

.mentorship-step span {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

.mentorship-step-sep {
  width: 32px;
  height: 1px;
  background: #ddd;
  margin: 0 8px;
  margin-top: -8px;
  flex-shrink: 0;
}

/* Tier cards */
.mentorship-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.mentorship-tier {
  border: 1.5px solid #e8e8e8;
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mentorship-tier-featured {
  border-color: var(--accent);
  background: rgba(0,200,150,0.03);
}

.mentorship-tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.tier-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
}

.mentorship-tier h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.mentorship-tier p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tier-list li {
  font-size: 0.82rem;
  color: #444;
  padding-left: 18px;
  position: relative;
}

.tier-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CTA */
.mentorship-cta {
  border-top: 1px solid #eee;
  padding-top: 36px;
}

.mentorship-cta-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.mentorship-cta-divider {
  width: 1px;
  background: #eee;
  align-self: stretch;
  margin-top: 8px;
}

.mentorship-cta-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111;
  margin-bottom: 6px !important;
}

.mentorship-cta-sub {
  font-size: 0.87rem;
  color: #666;
  margin-bottom: 16px !important;
  line-height: 1.55;
}

/* Purchase row */
.mentorship-buy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mentorship-buy-row select {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid #ddd;
  border-radius: 14px;
  font-size: 0.88rem;
  background: #fff;
  cursor: pointer;
  outline: none;
  min-width: 0;
}

.mentorship-buy-row .btn-primary {
  white-space: nowrap;
  padding: 13px 24px;
  font-size: 0.9rem;
}

.mentorship-email-row {
  display: flex;
  gap: 10px;
}

.mentorship-email-row input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.mentorship-email-row input:focus {
  border-color: var(--accent);
}

.mentorship-email-row button {
  padding: 13px 26px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.mentorship-email-row button:hover { opacity: 0.8; }

#mentorship-email-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 18px;
}

.mentorship-email-ok    { color: #0a7a3d; }
.mentorship-email-error { color: #c0392b; }

/* ================= FOOTER ================= */
.footer { width: 100%; font-size: 0.9rem; }

.footer-top {
  background: #2f3a44;
  color: #eaeaea;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  color: #d6dbe0;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.7; }

.footer-tagline {
  font-size: 0.8rem;
  color: #8a9ba8;
  margin: 0;
}

.footer-email {
  font-size: 0.82rem;
  color: #00c896;
  text-decoration: none;
}

.footer-email:hover { text-decoration: underline; }

.footer-bottom {
  background: #f5f5f5;
  padding: 24px 20px;
  border-top: 1px solid #ddd;
}

.footer-legal {
  max-width: 1200px;
  margin: auto;
}

.footer-legal .copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.footer-legal .legal-text p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
  text-align: justify;
}


/* ================= RESPONSIVE TABLET ================= */
@media (max-width: 1000px) {
  .course-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 32px;
  }
  .course-right {
    position: static;
  }
  .mentorship-tiers {
    grid-template-columns: 1fr;
  }
  .mentorship-step-sep {
    display: none;
  }
  .mentorship-steps {
    flex-direction: column;
    gap: 20px;
  }
  .mentorship-cta-cols {
    grid-template-columns: 1fr;
  }
  .mentorship-cta-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
}

/* ================= RESPONSIVE MOBILE ================= */
@media (max-width: 768px) {

  /* Course section */
  .course-highlight {
    padding: 24px 16px;
  }
  .course-card {
    padding: 28px 20px;
    gap: 28px;
    border-radius: 20px;
  }
  .course-left h2 {
    font-size: 1.6rem;
  }
  .course-tag {
    font-size: 0.65rem;
  }
  .course-modules {
    margin-top: 24px;
    gap: 20px;
  }
  .course-purchase-card {
    padding: 24px 20px;
    gap: 18px;
  }
  .course-price {
    font-size: 2rem;
  }
  .course-buy-btn {
    padding: 14px;
    font-size: 0.95rem;
  }

  /* Mentorship section */
  .mentorship-highlight {
    padding: 24px 16px;
  }
  .mentorship-new-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .mentorship-new-card h2 {
    font-size: 1.6rem;
  }
  .mentorship-steps {
    padding: 20px 18px;
    gap: 16px;
  }
  .mentorship-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.75rem;
  }
  .mentorship-tiers {
    gap: 14px;
    margin-bottom: 32px;
  }
  .mentorship-tier {
    padding: 20px 18px;
  }

  /* CTA columns → stack vertically */
  .mentorship-cta-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mentorship-cta-divider {
    width: 100%;
    height: 1px;
  }

  /* Email row → stack on very small screens */
  .mentorship-email-row {
    flex-direction: column;
    gap: 10px;
  }
  .mentorship-email-row input {
    width: 100%;
  }
  .mentorship-email-row button {
    width: 100%;
    text-align: center;
  }

  /* Buy row → stack select + button */
  .mentorship-buy-row {
    flex-direction: column;
    gap: 10px;
  }
  .mentorship-buy-row select {
    width: 100%;
  }
  .mentorship-buy-row .btn-primary {
    width: 100%;
    text-align: center;
    display: block;
    padding: 14px;
  }

  /* Footer */
  .footer .legal-text {
    padding: 0 16px;
    text-align: left;
  }
}

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.auth-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 22px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: fadeInScale 0.25s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auth-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-box input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.auth-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-buttons button {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-buttons button:hover {
  opacity: 0.85;
}

.auth-toggle-text {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 8px;
}

.register-pill {
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 6px;
}

.close-btn {
  background: transparent;
  border: none;
  color: #666;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
}

/* ================= MOBILE FIXES ================= */

@media (max-width: 768px) {

  /* NAVBAR */
  nav {
    display: none;
  }

  header {
    padding: 14px 16px;
    position: relative;
  }

  /* COURSE CARD */
  .course-highlight {
    padding: 40px 16px;
  }

  .course-left h2 {
    font-size: 1.8rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  /* MENTORSHIP */
  .mentorship-highlight {
    padding: 40px 16px;
  }

  .mentorship-card {
    padding: 32px 20px;
    gap: 24px;
  }

  .mentorship-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  /* FOOTER */
  .footer .legal-text {
    padding: 0 16px;
    text-align: left; /* evitar justificado raro en móvil */
  }

  /* TEXTO GLOBAL */
  body {
    font-size: 14px;
  }
}

/* AUTH MODAL SMALL SCREENS */
@media (max-width: 480px) {
  .auth-box {
    width: 90%;
    padding: 24px;
  }
}
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.auth-box {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 20px;
  width: 320px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.auth-box h3 {
  margin-bottom: 20px;
  text-align: left;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  margin-bottom: 10px;
}

.auth-actions button {
  background: #00c896;
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.forgot-link {
  font-size: 13px;
  color: #777;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: underline;
  color: black;
}

.auth-toggle-text {
  margin-top: 15px;
  font-size: 14px;
}

.register-pill {
  background: black;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 5px;
}

.close-btn {
  margin-top: 15px;
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
}
.recover-btn {
  width: 100%;
  background: black;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
}