:root {
    --bg-dark: #0a0f1d;
    --bg-card: #131a30;
    --primary: #00f2fe;
    --secondary: #4facfe;
    --text-main: #ffffff;
    --text-muted: #8fa0dd;
    --accent: #7f00ff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
}

.dropdown{
    position: relative;
    list-style: none;
}

/* Botón */
.dropdown-btn{
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 0;
}

/* Menú desplegable */
.submenu{
    position: absolute;
    top: 100%;
    left: 0;

    width: 230px;

    background: #34495e;
    border-radius: 10px;

    list-style: none;
    padding: 10px 0;
    margin: 10px 0 0;

    display: none;

    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    z-index: 999;
}

.submenu li{
    width:100%;
}

.submenu li a{
    display:block;
    padding:15px 20px;
    color:white;
    text-decoration:none;
}

.submenu li a:hover{
    background:#1abc9c;
}

.dropdown.active .submenu{
    display:block;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo .tech-text {
    color: var(--primary);
}

.logo .sub-text {
    color: var(--text-main);
    font-weight: 300;
}
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 60px;
    background: #0a0f1d;
    z-index: 1000;
}

/* Logo */
.logo{
    flex: 0 0 250px;
    font-size: 24px;
    font-weight: bold;
}

/* Contenedor del menú */
nav{
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Menú */
.nav-links{
    display: flex;
    align-items: center;
    gap: 45px;   /* Espacio uniforme entre opciones */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Botón */
.nav-btn{
    flex: 0 0 250px;
    display: flex;
    justify-content: flex-end;
}
/* Enlaces del menú */
.nav-links a,
.nav-links a:visited {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #00f2fe;
}

.nav-links a.active {
    color: #00f2fe;
}
/* --- Botones --- */
.btn-primary {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #000;
}

.btn-video {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.btn-video:hover {
    color: var(--primary);
}


/* --- Sección Hero --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    padding-top: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(127, 0, 255, 0.15), transparent 50%);
}

.hero-content {
    max-width: 600px;
}
.badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    margin:45px 0 70px;
    flex-wrap:wrap;
}

/* Gráfico abstracto en el Hero */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-sphere {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.6;
      animation: pulse 6s infinite alternate;
}
.iot-hero{
    min-height:100vh;
    padding:160px 8% 100px;
    position:relative;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* --- Sección de Características --- */
.features-section {
    padding: 100px 8%;
    background-color: rgba(255, 255, 255, 0.01);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.3);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.icon-wrapper i {
    font-size: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/*==========================================================
                    FOOTER
==========================================================*/

.footer{

    margin-top:80px;

    background:#081120;

    border-top:1px solid rgba(255,255,255,.05);

    padding:70px 5%;

}

.footer-content{

    max-width:1200px;

    margin:auto;

    text-align:center;

}

.footer h2{

    margin-bottom:20px;

    font-size:34px;

}

.footer p{

    color:var(--text-muted);

    max-width:700px;

    margin:auto;

    line-height:1.8;

}

.footer-social{

    display:flex;

    justify-content:center;

    gap:20px;

    margin:35px 0;

}

.footer-social a{

    width:55px;

    height:55px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:var(--bg-card);

    transition:.35s;

    font-size:22px;

}

.footer-social a:hover{

    background:var(--primary);

    color:#081120;

    transform:translateY(-5px);

}

.copy{

    margin-top:25px;

    font-size:14px;

}

/* --- Responsividad básica --- */
@media (max-width: 968px) {
    .navbar { padding: 20px 5%; }
    .nav-links, .nav-btn { display: none; } /* Idealmente aquí añadirías un menú hamburguesa */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 140px 5% 60px 5%;
    }
    .hero-buttons { justify-content: center; }
    .tech-sphere { margin-top: 50px; width: 200px; height: 200px; }
    .hero-content h1 { font-size: 36px; }
}
.academy-stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:25px;
    margin-top:80px;
}

.stat{
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(12px);
    border:1px solid rgba(0,242,254,.2);
    border-radius:20px;
    padding:35px;
    text-align:center;
    transition:.4s;
}

.stat:hover{
    transform:translateY(-8px);
    border-color:#00f2fe;
    box-shadow:0 0 30px rgba(0,242,254,.3);
}

.stat h2{
    color:#00f2fe;
    font-size:2.3rem;
    margin-bottom:10px;
}

.stat p{
    color:#cfd8ff;
}
.hero-container{
    max-width:1300px;
    margin:auto;
}