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

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#02040b;
    color:#ffffff;
    overflow-x:hidden;
    position:relative;
}

/* BACKGROUND */
.background-overlay{
    position:fixed;
    inset:0;
    background:
        linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.88)),
        url('/IA/global-assets/img/fotoIni.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    z-index:-3;
}

.blue-lights{
    position:fixed;
    inset:0;
    background:url('/IA/global-assets/img/blue-lights.png');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    opacity:0.85;
    z-index:-2;
    pointer-events:none;
}

/* HEADER */
.main-header{
    width:100%;
    padding:22px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid rgba(0,180,255,0.15);
    position:sticky;
    top:0;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(12px);
    z-index:50;
}

/* LOGO */
.header-logo img{
    width:260px;
}

/* NAV */
.main-nav > ul{
    list-style:none;
    display:flex;
    align-items:center;
    gap:35px;
}

.main-nav ul li{
    position:relative;
}

.main-nav ul li a{
    text-decoration:none;
    color:#ffffff;
    font-size:15px;
    transition:0.3s;
}

.main-nav ul li a:hover{
    color:#00d9ff;
}

/* DROPDOWN */
.dropdown{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;
    padding:18px;
    border-radius:18px;
    background:rgba(5,10,20,0.96);
    border:1px solid rgba(0,180,255,0.25);
    display:none;
    flex-direction:column;
    gap:14px;
    z-index:999;
    list-style:none;
}

.dropdown:hover .dropdown-menu{
    display:flex;
}

/* BUTTON */
.header-button a{
    text-decoration:none;
    padding:14px 24px;
    border-radius:10px;
    border:1px solid #00d9ff;
    color:#ffffff;
    transition:0.3s;
}

.header-button a:hover{
    background:#00d9ff;
    color:#000000;
}

/* HERO */
.hero-section{
    width:100%;
    max-width:1500px;
    margin:auto;
    padding:70px 40px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
}

.hero-mini-title{
    color:#00d9ff;
    font-size:20px;
    display:block;
    margin-bottom:25px;
}

.hero-left h1{
    font-size:68px;
    line-height:1.08;
    margin-bottom:30px;
}

.hero-left h1 span{
    color:#00d9ff;
}

.hero-left p{
    font-size:22px;
    line-height:1.8;
    color:#dddddd;
    margin-bottom:35px;
}

/* HERO FEATURES */
.hero-features{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:35px;
}

.hero-features div{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px;
    border-radius:12px;
    border:1px solid rgba(0,180,255,0.20);
    background:rgba(0,0,0,0.30);
    color:#00d9ff;
    font-size:15px;
}

.hero-buttons{
    display:flex;
    gap:20px;
}

.hero-buttons a{
    text-decoration:none;
    padding:18px 28px;
    border-radius:12px;
    border:2px solid #00d9ff;
    color:#ffffff;
    font-weight:bold;
    transition:0.3s;
}

.hero-buttons a:hover{
    background:#00d9ff;
    color:#000000;
}

.hero-right{
    text-align:center;
}

.hero-right img{
    width:100%;
    max-width:760px;
    filter:drop-shadow(0 0 30px rgba(0,220,255,0.25));
}

/* TOOLS */
.tools-section{
    width:100%;
    max-width:1500px;
    margin:auto;
    padding:40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 30px;
    max-width: 1200px;       /* ancho máximo de todo el grid */
    margin: auto;            /* centrar horizontal */
}

.tool-card {
    width: 100%;             /* cada card ocupa el espacio de su columna */
    max-width: 360px;        /* opcional, limita el tamaño de la imagen */
    box-sizing: border-box;
}

.tool-card img{
    width:100%;
}

/* CONTENT */
.tool-content h3{
    font-size:42px;
    margin-bottom:10px;
}

.tool-content h4{
    color:#00d9ff;
    font-size:24px;
    margin-bottom:25px;
}

.tool-content ul{
    padding-left:20px;
    margin-bottom:35px;
}

.tool-content ul li{
    margin-bottom:15px;
    color:#dddddd;
    line-height:1.6;
}

.tool-content a{
    text-decoration:none;
    padding:14px 26px;
    border-radius:10px;
    border:1px solid #00d9ff;
    color:#00d9ff;
    transition:0.3s;
}

.tool-content a:hover{
    background:#00d9ff;
    color:#000000;
}

/* VIDEOS */
.videos-section{
    width:100%;
    max-width:1500px;
    margin:auto;
    padding:40px;
}

.videos-section h2{
    text-align:center;
    font-size:40px;
    margin-bottom:40px;
}

.videos-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:30px;
}

.video-card{
    padding:18px;
    border-radius:20px;
    border:1px solid rgba(0,180,255,0.20);
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(12px);
    cursor:pointer;
}

.video-card img{
    width:100%;
    border-radius:14px;
    margin-bottom:20px;
}

.video-card h3{
    font-size:24px;
    line-height:1.4;
    margin-bottom:10px;
}

.video-card p.video-desc{
    font-size:16px;
    color:#dddddd;
    margin-bottom:15px;
}

/* VIDEO POPUP */
.video-popup{
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background:rgba(0,0,0,0.88);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.video-popup-content{
    position:relative;
    width:80%;
    max-width:900px;
    aspect-ratio:16/9;
    background:#000000;
    border-radius:18px;
    overflow:hidden;
    border:2px solid rgba(0,180,255,0.35);
    box-shadow:0 0 35px rgba(0,180,255,0.25);
    display:flex;
    justify-content:center;
    align-items:center;
}

.video-popup-content video{
    width:100%;
    height:100%;
    object-fit:cover;
}

.close-video{
    position:absolute;
    top:12px;
    right:18px;
    color:#ffffff;
    font-size:34px;
    cursor:pointer;
    z-index:2;
}

/* FOOTER */
.main-footer{
    width:100%;
    margin-top:60px;
    padding:50px 40px 20px;
    border-top:1px solid rgba(0,180,255,0.20);
    background:rgba(0,0,0,0.40);
}

.footer-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
    gap:35px;
    margin-bottom:35px;
}

.footer-box h3{
    color:#00d9ff;
    margin-bottom:20px;
}

.footer-box p,
.footer-box li{
    color:#dddddd;
    line-height:1.8;
    list-style:none;
}

.footer-logo img{
    width:240px;
}

.footer-bottom{
    text-align:center;
    padding-top:20px;
    border-top:1px solid rgba(0,180,255,0.10);
    color:#aaaaaa;
    font-size:14px;
}

/* SOCIAL */
.social-box ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.social-box ul li{
    display:flex;
    align-items:center;
    gap:14px;
    color:#ffffff;
    font-size:18px;
}

.social-box ul li img{
    width:38px;
    height:38px;
    object-fit:contain;
}

/* RESPONSIVE */
@media(max-width:1200px){
    .hero-section,
    .tools-grid,
    .videos-grid,
    .footer-grid{
        grid-template-columns:1fr;
    }
    .tool-card{
        grid-template-columns:1fr;
    }
    .hero-left h1{
        font-size:48px;
    }
}

@media(max-width:850px){
    .main-header{
        flex-direction:column;
        gap:25px;
    }
    .main-nav > ul{
        flex-wrap:wrap;
        justify-content:center;
    }
    .hero-buttons{
        flex-direction:column;
    }
}