:root{
  --primario:#0b3d91;
  --secundario:#ff7a00;
  --fondo:#f4f8ff;
  --texto:#0e1b2b;
  --blanco:#ffffff;
  --gris:#e8eefc;
}

*{ box-sizing:border-box; margin:0; padding:0; font-family: "Poppins", system-ui, Arial; }

body{
  background: radial-gradient(circle at top, #ffffff 0%, var(--fondo) 60%);
  color: var(--texto);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* HEADER */
header{
  background: linear-gradient(135deg, var(--primario), #06285f);
  color: var(--blanco);
  padding: 22px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.header-wrap{
  max-width:1200px;
  margin:auto;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.logo{
  width:54px;
  height:54px;
  border-radius:16px;
  background: linear-gradient(135deg, var(--secundario), #ffd000);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  font-weight:800;
  color:#19263a;
}

.brand h1{
  font-size: 20px;
  line-height:1.1;
}

.brand p{
  opacity:.9;
  font-size: 13px;
}

/* BOTONES MENU */
nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.menu-btn{
  border:none;
  cursor:pointer;
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 700;
  color: var(--blanco);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  position:relative;
  overflow:hidden;
}

.menu-btn::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 55%);
  opacity:.85;
  pointer-events:none;
}

.menu-btn:hover{
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 16px 28px rgba(0,0,0,.22);
}

.menu-btn:active{
  transform: translateY(0px) scale(.99);
}

.btn-moodle{ background: linear-gradient(135deg, #19a974, #0b6b46); }
.btn-simuladores{ background: linear-gradient(135deg, #ff7a00, #ff3d00); }
.btn-videos{ background: linear-gradient(135deg, #6d28d9, #3b82f6); }
.btn-presentaciones{ background: linear-gradient(135deg, #111827, #374151); }

/* MAIN */
main{
  width:100%;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 26px 16px 40px;
}

.container{
  width:min(1100px, 100%);
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:stretch;
}

@media (max-width: 980px){
  .container{
    grid-template-columns: 1fr;
  }
}

/* HERO TEXTO */
.hero{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--gris);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(8,21,52,.08);
}

.hero h2{
  font-size: 26px;
  margin-bottom: 10px;
}

.hero ul{
  margin-top: 14px;
  margin-left: 18px;
  line-height: 1.7;
  font-size: 15px;
}

.badges{
  margin-top: 16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.badge{
  background: #eef5ff;
  border:1px solid #d7e6ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight:700;
}

/* CARRUSEL */
.carousel-card{
  background: rgba(255,255,255,.88);
  border: 1px solid var(--gris);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(8,21,52,.08);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}

.carousel{
  position:relative;
  width:100%;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow:hidden;
  background: #eaf1ff;
  border: 1px solid #d7e6ff;
}

.carousel img{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity .45s ease;
}

.carousel img.active{
  opacity:1;
}

.carousel-controls{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
}

.ctrl-btn{
  border:none;
  cursor:pointer;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0b3d91;
  color: #fff;
  font-weight:800;
  box-shadow: 0 10px 18px rgba(0,0,0,.16);
  transition: transform .15s ease, filter .15s ease;
}

.ctrl-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.dots{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:center;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#c7d8ff;
  border:1px solid #a9c2ff;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}

.dot.active{
  background: var(--secundario);
  border-color: #ffb37b;
  transform: scale(1.25);
}

/* FOOTER */
footer{
  padding: 14px 16px;
  background: #0a1e45;
  color:#cfe0ff;
  text-align:center;
  font-size: 13px;
}