@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root{
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html{
    font-size: 62.5%;


    scroll-behavior: smooth;
}

body{
    background: var(--bg-color);
    color: var(--text-color);

}


.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: #1e2a47;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}


.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

/* Estilo especial para el botón de login */
.btn-login {
    background: #00b4d8;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 16px;
    transition: background 0.3s, transform 0.2s;
}

.btn-login:hover {
    background: #0096c7;
    transform: scale(1.05);
}


#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;

    
}

.bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%; /* Ocupa la mitad derecha */
    height: 100%;
    background: url('imagenes/pngwing.com.png') no-repeat right center;
    background-size: contain;
}
 
.btn-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn{
    position:relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover{
    color: var(--main-color);
}

.btn-box .btn:nth-child(2){
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover{
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before{
    background: var(--main-color);
}

.btn-box .btn::before{
    content:' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before{
    width: 100%;

}

.heading{
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

span{
    color: var(--main-color);
}

.btn-box.btns{
    display: inline-block;
    width: 15rem;
}

.btn-box.btns a::before{
    background: var(--second-bg-color);
}


/* --- Sección de Cursos --- */
.cursos {
  background: #0d1b2a;
  color: white;
  padding: 60px 40px;
  margin-top: 40px; /* separación del navbar */
  text-align: center;
}

.titulo-cursos {
  font-size: 28px;
  margin-bottom: 30px;
  color: #00b4d8;
}

/* --- Grid de Cursos --- */
.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.curso {
  background: #1e2a47;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso img {
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.curso h3 {
  color: #00b4d8;
  margin: 15px 0 10px;
}

.curso p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: #00b4d8;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #0096c7;
  transform: scale(1.05);
}

.curso:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 15px rgba(0,0,0,0.3);
}