/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* =========================
   VARIABLES
========================= */
:root{
  --white:#ffffff;
  --text:#111111;
  --line-blue:#2b2db7;

  --hero-left:#05050b;
  --hero-mid:#0b0c2e;
  --hero-right:#2d2fbf;

  --header-h:104px;
  --hero-pad-x:50px;
}

/* =========================
   BASE
========================= */
body{
  font-family:"Poppins", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
}

/* =========================
   CONTAINER GLOBAL (FIX)
========================= */
.container{
  width: min(1400px, 100%);
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
}

@media (max-width: 980px){
  .container{
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* =========================
   HEADER
========================= */
.header{
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.header .container{
  width:100%;
  max-width:100%;
  padding-left:12px;
  padding-right:30px;
  margin:0 auto;
}

.header__inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

/* LOGO */
.brand{
  display:inline-flex;
  align-items:center;
}

.brand__logo{
  height:80px;
  width:auto;
  object-fit:contain;
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap:50px;
  margin-left:auto;
  margin-right:140px;
}

.nav__link{
  text-decoration:none;
  color:var(--text);
  font-size:22px;
  font-weight:400;
  position:relative;
  padding:6px 0;
}

.nav__link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:0%;
  height:2px;
  background: rgba(43,45,183,0.9);
  transition: width .18s ease;
}

.nav__link:hover::after{
  width:100%;
}

/* BOTÓN MENÚ */
.menu-btn{
  display:none;
  width:46px;
  height:46px;
  border:0;
  background:transparent;
  cursor:pointer;
}

.menu-btn span{
  display:block;
  height:3px;
  margin:8px 0;
  background:#111;
  border-radius:10px;
}

/* =========================
   OVERLAY (para menú móvil)
========================= */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 19;
}

.nav-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   HERO
========================= */
.hero{
  min-height: calc(100vh - var(--header-h));
  border-top:4px solid var(--line-blue);
  background: linear-gradient(90deg,
    var(--hero-left) 0%,
    #070717 22%,
    var(--hero-mid) 52%,
    var(--hero-right) 100%
  );
  display:flex;
  align-items:center;
}

.hero .container{
  width:min(1400px, 100%);
  margin:0 auto;
  padding-left: var(--hero-pad-x);
  padding-right: var(--hero-pad-x);
}

/* GRID HERO (PC) */
.hero__inner{
  padding:70px 0;
  display:grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap:40px;
}

/* CONTENIDO */
.hero__content{
  max-width:720px;
}

.pill{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,0.10);
  color:#fff;
  font-size:14px;
  letter-spacing:0.8px;
  margin-bottom:16px;
}

.hero__title{
  color:#fff;
  font-weight:600;
  font-size:clamp(34px, 4.2vw, 52px);
  line-height:1.08;
  margin-bottom:14px;
}

.hero__text{
  color: rgba(255,255,255,0.82);
  font-weight:300;
  font-size:18px;
  line-height:1.6;
  margin-bottom:0;
  max-width:620px;
}

/* IMAGEN HERO */
.hero__media{
  justify-self: end;
  align-self: center;
  display:flex;
  justify-content:center;
  align-items:center;
  padding-right: 10px;
}

.hero__media img{
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.35));
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  :root{
    --hero-pad-x:16px;
  }

  .header .container{
    padding-left:16px;
    padding-right:16px;
  }

  .nav{
    position:fixed;
    top:var(--header-h);
    right:0;
    width:280px;
    height:calc(100vh - var(--header-h));
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    padding:18px;
    transform:translateX(100%);
    transition:transform .2s ease;
    box-shadow:-10px 0 30px rgba(0,0,0,.10);
    z-index:20;
    margin-right:0;
  }

  .nav.is-open{
    transform:translateX(0);
  }

  .nav__link{
    font-size:18px;
  }

  .menu-btn{
    display:block;
  }

  .hero__inner{
    grid-template-columns:1fr;
    align-items: start;
  }

  .hero__media{
    display:none;
  }

  .hero__text{
    font-size:16px;
  }
}

/* =========================
   CURSOS - INICIO
========================= */
.courses{
  background:#000;
  padding:80px 0;
}

.courses__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:24px;
}

/* Card base (pro) */
.course-card{
  position: relative;
  border-radius: 18px;
  padding: 22px 22px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.course-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 200px at 15% 10%, rgba(43,45,183,.55), transparent 60%);
  opacity: .55;
  pointer-events:none;
}

.course-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  pointer-events:none;
  transition: border-color .22s ease;
}

.course-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 22px 55px rgba(0,0,0,.70);
}

.course-top{
  display:flex;
  align-items:center;
  gap:14px;
  position: relative;
  z-index: 1;
}

.course-title{
  color:#fff;
  font-weight:600;
  font-size:20px;
  letter-spacing:.2px;
}

.course-badge{
  width:54px;
  height:54px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
  color: var(--accent, #2b2db7);
}

.course-badge svg{
  width:30px;
  height:30px;
  opacity: .95;
}

.course-bottom{
  width:100%;
  margin-top: 16px;
  padding: 12px 0 0;
  background: transparent;
  border: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.course-bottom::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background: rgba(255,255,255,0.08);
}

.course-meta{
  display:block;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  color: rgba(90, 255, 170, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.course-chev{
  color: rgba(90, 255, 170, 0.9);
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .2s ease;
}

.course-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  position: relative;
  z-index: 1;
}

.course-panel ul{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.course-panel li{
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  text-align:left;
}

.course-panel li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255,255,255,0.75);
}

.course-card.is-expanded .course-panel{
  max-height: 220px;
}
.course-card.is-expanded .course-chev{
  transform: rotate(180deg);
}

.course-card{ --accent:#2b2db7; }

.course-card.will-reveal{
  opacity: 0;
  transform: translateY(14px);
}
.course-card.reveal{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s ease, box-shadow .22s ease, border-color .22s ease;
}

/* =========================
   EMPRESA
========================= */
.company{
  background: #fff;
  padding: 90px 0;
}

.company .container{
  width: min(1400px, 100%);
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
}

.company__inner{
  display: grid;
  gap: 26px;
}

.company__head{
  max-width: 920px;
}

.company__pill{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(43,45,183,0.10);
  color: rgba(43,45,183,0.95);
  font-size: 14px;
  letter-spacing: .6px;
  margin-bottom: 14px;
}

.company__title{
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.15;
}

.company__text{
  font-size: 16px;
  line-height: 1.75;
  color: rgba(17,17,17,0.78);
  font-weight: 400;
}

.company__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.company-card{
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  padding: 22px 22px 20px;
}

.company-card__title{
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.company-card__text{
  font-size: 15px;
  line-height: 1.7;
  color: rgba(17,17,17,0.78);
}

.company-card__list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-card__list li{
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
  font-size: 15px;
  color: rgba(17,17,17,0.78);
}

.company-card__list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(43,45,183,0.9);
}

.company__differential{
  margin-top: 10px;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(90deg, rgba(5,5,11,0.03), rgba(11,12,46,0.03), rgba(45,47,191,0.03));
}

.company__differentialTitle{
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.company__differentialText{
  font-size: 15px;
  line-height: 1.7;
  color: rgba(17,17,17,0.78);
}

@media (max-width: 980px){
  .company{
    padding: 70px 0;
  }
  .company .container{
    padding-left: 16px;
    padding-right: 16px;
  }
  .company__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   CONTACTO PAGE (contacto.html)
========================= */
.contact-page{
  background:#fff;
}

.pill--dark{
  background: rgba(255,255,255,0.10);
  color:#fff;
}

.contact-hero{
  min-height: 55vh;
  border-top:4px solid var(--line-blue);
  background: linear-gradient(90deg,
    var(--hero-left) 0%,
    #070717 22%,
    var(--hero-mid) 52%,
    var(--hero-right) 100%
  );
  display:flex;
  align-items:center;
}

.contact-hero__inner{
  padding: 90px 0;     /* padding vertical */
  max-width: 900px;
  margin: 0 auto;
}

.contact-hero__title{
  color:#fff;
  font-weight:600;
  font-size:clamp(34px, 4.2vw, 52px);
  line-height:1.08;
  margin-bottom:14px;
}

.contact-hero__text{
  color: rgba(255,255,255,0.82);
  font-weight:300;
  font-size:18px;
  line-height:1.6;
  max-width: 760px;
}

.contact-hero__actions{
  margin-top: 22px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn-primary{
  display:inline-block;
  background:#2b2db7;
  color:#fff;
  padding:12px 18px;
  border-radius:10px;
  text-decoration:none;
  border:0;
  cursor:pointer;
  font-size:14px;
  transition:.2s ease;
}

.btn-primary:hover{
  background:#1f218f;
}

.btn-outline{
  display:inline-block;
  background: transparent;
  color:#fff;
  padding:12px 18px;
  border-radius:10px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.25);
  font-size:14px;
}

.btn-outline:hover{
  border-color: rgba(255,255,255,0.45);
}

/* contenido */
.contact-content{
  padding: 70px 0 90px;
}

.contact-content__inner{
  display:grid;
  gap: 28px;
}

.contact-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card2{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  padding:20px;
  box-shadow:0 18px 40px rgba(0,0,0,0.06);
}

.contact-card2 h3{
  margin-bottom: 6px;
}

.contact-card2 p{
  color: rgba(0,0,0,0.65);
  margin-bottom: 10px;
}

.link{
  color:#2b2db7;
  text-decoration:none;
  font-weight:500;
}

.section-title{
  font-size: 22px;
  font-weight: 600;
  margin-top: 12px;
}

/* equipo */
.team-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.team-img{
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.team-name{
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111;
}

.team-role{
  font-size: 14px;
  color: rgba(0,0,0,0.60);
  margin-bottom: 12px;
}

.team-links{
  display: grid;
  gap: 8px;
}

.team-links a{
  text-decoration: none;
  font-size: 14px;
  color: #2b2db7;
  transition: .2s ease;
}

.team-links a:hover{
  opacity: .75;
}

/* formulario */
.contact-form{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  padding:20px;
  box-shadow:0 18px 40px rgba(0,0,0,0.06);
}

.contact-form label{
  display:block;
  font-size:14px;
  font-weight:500;
  color:#111;
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.12);
  outline:none;
  font-family: inherit;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

@media(max-width:980px){
  .contact-cards{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

/* ✅ FIX: padding correcto en Contacto (evita que quede pegado) */
.contact-hero .container{
  width: min(1400px, 100%);
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
}

@media (max-width: 980px){
  .contact-hero .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-hero__inner{
    padding: 70px 0; /* mantiene altura sin pegar texto */
  }
}

/* ===== EFECTO PREMIUM TEAM LINKS ===== */

.social-link{
  display:flex;
  align-items:center;
  gap:8px;
  line-height:1.2;
  color:#2b2db7;
  text-decoration:none;
  transition: transform .25s ease, color .25s ease;
}

.social-link:hover{
  transform: translateX(4px);
  color:#000;
}

.social-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
  transition: transform .25s ease;
}

.social-link:hover .social-icon{
  transform: scale(1.12);
}

/* =========================
   TITULO ARRIBA DE LAS CARDS (COURSES)
========================= */
.courses-titlewrap{
  text-align:center;
  margin-bottom: 38px;
}

.courses-titletext{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  background: rgba(255,255,255,0.08);
  color:#fff;
  font-size:14px;
  letter-spacing:.6px;
}

/* =========================
   HERO RESPONSIVE FIX
========================= */

@media (max-width: 768px) {

  .hero__inner {
    flex-direction: column;
    text-align: left; /* 👈 CAMBIO IMPORTANTE */
    align-items: flex-start; /* 👈 Alinea todo a la izquierda */
  }

  .hero__content {
    width: 100%;
  }

  .hero__title {
    text-align: left;
  }

  .hero__text {
    text-align: left;
  }

  .hero__media {
    display: block;
    margin-top: 25px;
    width: 100%;
  }

  .hero__media img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
  }

}