@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --bg-deep: #1E0E33;
  --bg-deep2: #2A1547;
  --violet-main: #8B5CF6;
  --violet-bright: #A684F2;
  --violet-pale: #E7DDFB;
  --gold: #D9B36C;
  --ink: #150A26;
  --paper: #F7F4FC;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

a { text-decoration: none; }

/* =====================================================================
   NAVBAR — Base: móvil (< 480px)
   Barra fija con logo y botón hamburguesa. Nav links ocultos.
   ===================================================================== */
.pt-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  padding: 0 16px;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.pt-navbar.scrolled {
  background: var(--bg-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.pt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.pt-nav-left { display: flex; align-items: center; gap: 14px; }
.pt-nav-logo { width: 70px; flex-shrink: 0; object-fit: contain; }

/* Botón hamburguesa — visible solo en móvil/tablet pequeña */
.pt-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 101;
}
.pt-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animación a X cuando el menú está abierto */
.pt-nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pt-nav-toggle.open span:nth-child(2) { opacity: 0; }
.pt-nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú desplegable — oculto por defecto en móvil */
.pt-nav-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--bg-deep);
  padding: 8px 16px 16px;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 99;
}
.pt-nav-links.open { display: flex; }
.pt-nav-links a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px !important;
  color: #eee !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px;
}
.pt-nav-links a:last-child { border-bottom: none; }
.pt-nav-links a:hover { color: var(--violet-pale) !important; }
.pt-nav-links a.active { color: var(--white); border-bottom: 2px solid var(--gold); }

/* =====================================================================
   HERO — Base: móvil
   Padding reducido y logo más pequeño para pantallas chicas.
   ===================================================================== */
.pt-hero {
  position: relative;
  background: radial-gradient(ellipse at 50% -10%, #4A2778 0%, var(--bg-deep) 55%, var(--ink) 100%);
  padding: 90px 16px 50px;
  text-align: center;
  overflow: hidden;
}
.pt-hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(166,132,242,0.35) 0%, rgba(166,132,242,0) 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.pt-hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(166,132,242,0.15);
  border: 1px solid rgba(166,132,242,0.4);
  color: var(--violet-pale);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
}
.pt-hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.pt-hero-logo {
  position: relative;
  width: 160px;
  max-width: 100%;
  margin: 0 auto 20px;
  display: block;
  padding-top: 16px;
}
.pt-hero-headline {
  position: relative;
  max-width: 100%;
  margin: 24px auto 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}
.pt-hero-headline em { color: #a37ff2; font-style: normal; }
.pt-hero-arrow {
  position: relative;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: arrowPulse 1.6s ease-in-out infinite;
}
.pt-hero-arrow i { display: block; font-size: 40px; color: white; line-height: 1; }
@keyframes arrowPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* =====================================================================
   STATS — Base: móvil (columna vertical)
   Los 3 stats se apilan con separadores horizontales.
   ===================================================================== */
.pt-stats {
  background: var(--ink);
  position: relative;
  padding: 36px 16px;
}
.pt-stats::before,
.pt-stats::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-main) 30%, var(--violet-main) 70%, transparent);
}
.pt-stats::before { top: 0; opacity: 0.5; }
.pt-stats::after  { bottom: 0; opacity: 0.25; }

.pt-stats-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.pt-stat {
  text-align: center;
  width: 100%;
  padding: 16px 20px;
  position: relative;
}
/* Separador horizontal entre stats en móvil */
.pt-stat + .pt-stat::before {
  content: '';
  position: absolute;
  left: 20%; right: 20%;
  top: 0;
  height: 1px;
  width: auto;
  background: linear-gradient(to right, transparent, rgba(139,92,246,.4) 30%, rgba(139,92,246,.4) 70%, transparent);
}
.pt-stat-icon {
  display: block;
  font-size: 24px;
  margin: 0 auto 10px;
  color: var(--violet-main);
  opacity: 0.85;
}
.pt-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 1;
  color: var(--violet-bright);
  letter-spacing: 2px;
}
.pt-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--violet-pale);
  opacity: 0.65;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}

/* =====================================================================
   SECCIÓN CURSOS — Base: móvil
   Cards en una sola columna, tabs a ancho completo.
   ===================================================================== */
.pt-section { padding: 48px 16px 24px; background: var(--paper); }
.pt-section-head { text-align: center; max-width: 600px; margin: 0 auto 32px; }
.pt-eyebrow { color: var(--violet-main); font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.pt-section-head h2 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: #4a2778; margin-top: 8px; }

/* 1 columna en móvil */
.pt-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1170px;
  margin: 0 auto;
}
.pt-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(30,14,51,0.08);
  border: 1px solid rgba(139,92,246,0.12);
}
.pt-card-media {
  position: relative;
  height: 180px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: linear-gradient(135deg, #5B3393, #8B5CF6);
}
.pt-ph { background-size: cover; background-position: center; background-color: rgba(0,0,0,0.05); }
.pt-ph-a { background-color: #4A2778; }
.pt-ph-b { background-color: #7C4FD8; border-left: 3px solid rgba(255,255,255,0.2); }
.pt-ph-a.alt { background-color: #3D2466; }
.pt-ph-b.alt { background-color: #6B3FB8; }
.pt-card-media--full { display: block; }
.pt-card-media-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 12%;
}
.pt-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(21,10,38,0.55);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.pt-card-tag.soon { background: rgba(217,179,108,0.9); color: var(--ink); }
.pt-card-body { padding: 20px 20px 22px; }
.pt-card-body h3 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }

/* Tabs a ancho completo en móvil */
.pt-tabs {
  display: flex;
  gap: 4px;
  background: var(--violet-pale);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
  width: 100%;
}
.pt-tab {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  color: #6B5C92;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.pt-tab.active { background: #4A2778; color: var(--white); }
.pt-tab:not(.active):hover { color: var(--ink); }

.pt-tab-panel { display: none; }
.pt-tab-panel.active { display: block; }
.pt-desc { font-size: 13px; color: #4A4259; line-height: 1.6; margin-bottom: 4px; }

.pt-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 10px; }
/* Botón de descarga ocupa todo el ancho en móvil */
.pt-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  width: 100%;
  justify-content: center;
}
.pt-btn-download.disabled { background: #E8E2F5; color: #9B8FC4; cursor: not-allowed; }
.pt-status-pill { font-size: 11px; font-weight: 600; color: var(--violet-main); }

/* =====================================================================
   FOOTER — Base: móvil (columna única, centrado)
   Todos los bloques apilados y centrados.
   ===================================================================== */
.pt-footer { background: var(--bg-deep); padding: 40px 16px 24px; margin-top: 24px; }
.pt-footer-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pt-footer-brand { display: flex; align-items: center; gap: 14px; }
.pt-footer-brand-logo { height: 50px; width: auto; object-fit: contain; }
.pt-ftitle { font-family: 'Bebas Neue', sans-serif; color: var(--white); font-size: 15px; letter-spacing: 0.5px; }
.pt-fsub { color: var(--violet-pale); opacity: 0.65; font-size: 11px; margin-top: 2px; }

/* Logos institucionales: fluidos y centrados */
.pt-footer-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.pt-badge-img { height: 44px; width: auto; object-fit: contain; max-width: 100%; }

/* Columnas apiladas en móvil */
.pt-footer-cols {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pt-fcol { width: 100%; }
.pt-fcol h4 { color: var(--violet-bright); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.pt-fcol p { color: var(--violet-pale); opacity: 0.8; font-size: 13px; line-height: 1.8; }
.pt-fcol a { color: var(--violet-pale); }
.pt-social-row { display: flex; gap: 12px; margin-top: 12px; justify-content: center; }
.pt-social-dot {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-pale);
  font-size: 20px;
}
.pt-footer-bottom {
  text-align: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--violet-pale);
  opacity: 0.5;
  font-size: 10px;
  letter-spacing: 1px;
}

/* =====================================================================
   FADE-UP SCROLL ANIMATION
   ===================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* =====================================================================
   BREAKPOINT 480px — Móvil grande
   Aumenta logo, tipografía del hero y stats.
   ===================================================================== */
@media (min-width: 480px) {
  .pt-nav-logo { width: 80px; }

  .pt-hero { padding: 100px 20px 60px; }
  .pt-hero-logo { width: 180px; }
  .pt-hero-eyebrow { font-size: 10px; }
  .pt-hero-headline { font-size: 18px; margin-top: 28px; }
  .pt-hero-arrow i { font-size: 44px; }

  .pt-num { font-size: 50px; }
  .pt-stat-icon { font-size: 26px; }
  .pt-label { font-size: 11px; }

  .pt-section { padding: 56px 20px 28px; }
  .pt-section-head h2 { font-size: 32px; }
  .pt-card-body { padding: 22px 22px 24px; }
  .pt-card-body h3 { font-size: 16px; }
  .pt-card-media { height: 200px; }
  .pt-desc { font-size: 13.5px; }

  .pt-footer { padding: 44px 20px 28px; }
  .pt-badge-img { height: 48px; }
}

/* =====================================================================
   BREAKPOINT 768px — Tablet
   Navbar en fila, stats horizontales, footer 2 columnas.
   ===================================================================== */
@media (min-width: 768px) {
  /* Ocultar hamburguesa, mostrar nav links en fila */
  .pt-nav-toggle { display: none; }
  .pt-nav-inner { height: 68px; }
  .pt-nav-logo { width: 85px; }
  .pt-nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 18px;
    box-shadow: none;
    flex-wrap: wrap;
  }
  .pt-nav-links a {
    display: inline;
    padding-bottom: 4px;
    border-bottom: none;
    font-size: 16px !important;
  }
  .pt-nav-links a.active { border-bottom: 2px solid var(--gold); }

  .pt-hero { padding: 120px 24px 75px; }
  .pt-hero-logo { width: 200px; margin-bottom: 22px; }
  .pt-hero-eyebrow { font-size: 11px; }
  .pt-hero-headline { font-size: 19px; max-width: 520px; margin-top: 32px; }
  .pt-hero::before { width: 750px; height: 450px; }

  /* Stats en fila con separadores verticales */
  .pt-stats { padding: 48px 24px; }
  .pt-stats-inner { flex-direction: row; justify-content: center; }
  .pt-stat { flex: 1; width: auto; padding: 16px 24px; }
  .pt-stat + .pt-stat::before {
    left: 0; top: 10%;
    right: auto;
    width: 1px; height: 80%;
    background: linear-gradient(to bottom, transparent, rgba(139,92,246,.4) 30%, rgba(139,92,246,.4) 70%, transparent);
  }
  .pt-num { font-size: 54px; }
  .pt-stat-icon { font-size: 28px; margin-bottom: 12px; }

  .pt-section { padding: 64px 24px 30px; }
  .pt-section-head { margin-bottom: 40px; }
  .pt-section-head h2 { font-size: 36px; }

  /* Tabs: ancho automático en tablet */
  .pt-tabs { width: fit-content; }
  .pt-tab { flex: none; padding: 8px 14px; font-size: 12px; }

  .pt-card-body { padding: 24px 24px 26px; }
  .pt-card-body h3 { font-size: 17px; }
  .pt-desc { min-height: 60px; }

  /* Botón descarga a ancho automático */
  .pt-btn-download { width: auto; justify-content: flex-start; }

  /* Footer: 2 columnas */
  .pt-footer { padding: 48px 24px 30px; margin-top: 28px; }
  .pt-footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  .pt-footer-badges { justify-content: center; gap: 24px; }
  .pt-badge-img { height: 52px; }
  .pt-footer-cols {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    gap: 32px;
    padding-top: 28px;
  }
  .pt-fcol { width: calc(50% - 16px); }
  .pt-social-row { justify-content: flex-start; }
}

/* =====================================================================
   BREAKPOINT 1024px — Escritorio
   Layout original completo: cards 2 columnas, footer 3 columnas.
   ===================================================================== */
@media (min-width: 1024px) {
  .pt-navbar { padding: 0 24px; }
  .pt-nav-inner { height: auto; padding: 0; }
  .pt-nav-logo { width: 85px; }
  .pt-nav-links { gap: 28px; flex-wrap: nowrap; }
  .pt-nav-links a { font-size: 18px !important; }

  .pt-hero { padding: 140px 24px 90px; }
  .pt-hero-logo { width: 220px; margin-bottom: 24px; padding-top: 20px; }
  .pt-hero-headline { font-size: 21px; max-width: 580px; margin-top: 38px; }
  .pt-hero::before { width: 900px; height: 500px; }
  .pt-hero-arrow i { font-size: 48px; }

  .pt-stats { padding: 52px 24px; }
  .pt-stat { padding: 16px 32px; }

  /* Cards en 2 columnas */
  .pt-section { padding: 70px 24px 30px; }
  .pt-section-head { margin-bottom: 48px; }
  .pt-cards { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .pt-card { border-radius: 22px; }
  .pt-card-body { padding: 26px 26px 28px; }
  .pt-card-body h3 { font-size: 17px; }
  .pt-tab { padding: 8px 16px; font-size: 12px; }

  /* Footer: 3 columnas en fila */
  .pt-footer { padding: 50px 24px 32px; margin-top: 30px; }
  .pt-footer-top { padding-bottom: 36px; }
  .pt-footer-cols { gap: 32px; padding-top: 32px; }
  .pt-fcol { width: auto; flex: 1; }
  .pt-fcol h4 { font-size: 12px; margin-bottom: 12px; }
  .pt-fcol p { font-size: 13px; }
  .pt-footer-bottom { margin-top: 36px; padding-top: 22px; font-size: 10.5px; }
}
