/* --- LIMPIEZA INICIAL --- */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: auto; 
}
.logo-area h2 {
    color: #020066; /* Tu azul profesional */
    font-size: 24px; /* Ajusta este tamaño si lo ves muy grande o pequeño */
    font-weight: bold;
    margin: 0;
}
/* --- NAVBAR --- */
.navbar {
    position: sticky; 
    top: 0;
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 5px solid #ff7a00;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 15px; }

/* ANIMACIÓN LOGO */
.logo-wrapper { position: relative; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; }
.logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; z-index: 10; }
.logo-wrapper::before {
    content: ""; position: absolute; inset: -3px; border-radius: 70%;
    background: var(--ring); z-index: 1;
    filter: drop-shadow(0 0 5px #020066) drop-shadow(0 0 10px #ff7a00);
}
.logo-wrapper::after {
    content: ""; position: absolute; width: 86px; height: 86px;
    border-radius: 50%; background: #ffffff; z-index: 2;
}

/* MENÚ */
.menu { display: flex; gap: 20px; }
.menu a { color: #020066; text-decoration: none; font-weight: 600; padding: 5px 10px; border-radius: 5px; transition: all 0.3s ease; }
.menu a:hover { background: #ff7a00; color: white; }
.navbar p { color: #ff7a00; font-size: 1.2rem; }

/* --- HERO (VIDEO) --- */
.hero { position: relative; width: 100%; height: 80vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 100px; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; }

/* --- SECCIÓN CURSOS --- */
.section-cursos {
    padding: 20px 0;
    /* Aquí llamamos a tu imagen */
    background-image: url('../img/fondo1.png');
    
    /* Propiedades para que la imagen se vea profesional */
    background-size: cover;          /* Cubre todo el espacio sin deformarse */
    background-position: center;     /* Centra la imagen */
    background-attachment: fixed;    /* Efecto parallax: la imagen se queda fija al hacer scroll */
    background-repeat: no-repeat;
    
    /* Esto es muy importante: */
    position: relative;
}

/* Esta capa oscura asegura que el texto blanco de las tarjetas sea legible */
.section-cursos::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* El 0.6 es la intensidad de la sombra (de 0 a 1) */
    pointer-events: none;
}

/* Aseguramos que el contenido esté por encima de la capa oscura */
.section-cursos .container {
    position: relative;
    z-index: 1;
}
.section-cursos h2 { text-align: center; font-size: 2.5rem; color: #d4af37; margin-bottom: 10px; }
.subtitle { text-align: center; color: #d4af37; margin-bottom: 10px; }

.cards-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    gap: 80px;
    justify-content: center;
    max-width: 1600px;
    margin: 30px auto 0 auto; /* <-- aquí */
}

.curso-card {
    /* Fondo blanco con transparencia (0.1 = 10% opacidad) */
    background: rgba(255, 255, 255, 0.1); 
    
    /* El toque moderno: desenfoca lo que hay detrás */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Borde sutil para definir la tarjeta */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    padding: 20px 15px; 
    border-radius: 15px;
    text-align: center;
    
    /* Sombra más sutil para que no opaque el fondo */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    transition: all 0.4s ease;
}

/* IMPORTANTE: Ajuste de textos para que se lean sobre el vidrio */
.curso-card h3 {
    color: #ffffff; /* Título blanco */
}

.curso-card p {
    color: #e0e0e0; /* Texto gris muy claro */
}

.curso-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.curso-card i {
    font-size: 1.8rem;
    /* Ícono más pequeño para que no domine la tarjeta */
    width: 55px; 
    height: 55px;
    margin-bottom: 15px;
    background: rgba(255, 122, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.curso-card:hover i { 
    /* Dorado elegante */
    color: #d4af37; 
    /* Ajusté el fondo a un tono más oscuro para que combine mejor con el oro */
    background: rgba(212, 175, 55, 0.2); 
    transform: scale(1.1); 
}



/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar .container { flex-direction: column; text-align: center; }
    .menu { margin-top: 15px; gap: 10px; }
    .hero { height: 60vh; }
    .hero-content h1 { font-size: 2rem !important; }
}

/* --- TERCERA PARTE (METODOLOGÍA) --- */

.section-metodologia{
    color:#fff;
    padding:100px 20px;
    background-image:url('../img/fondo2.png');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    position:relative;
}

.section-metodologia::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
    pointer-events:none;
}

.section-metodologia .container{
    position:relative;
    z-index:1;
}

.pretitle{
    display:block;
    text-align:center;
    color:#d4af37;
    font-size:22px;
    font-weight:700;
}

.titulo{
    text-align:center;
    font-size:51px;
    font-weight:500;
    margin:10px 0;
}

.titulo span{
    color:#d4af37;
}

.subtitle{
    max-width:700px;
    margin:auto;
    text-align:center;
    color:#d0d0d0;
    font-size:18px;
}

.linea-luz{
    width:300px;
    height:3px;
    margin:40px auto 80px;
    background:#d4af37;
    box-shadow:0 0 20px #d4af37;
}












/* ===========================
   PASOS
=========================== */

.pasos-grid{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:20px;
}

.paso{
    width:260px;
}

.fila1{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:15px;
}

.num{
    width:40px;
    height:40px;

    background:#f2b720;
    color:#000;

    border-radius:8px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-weight:800;
    font-size:20px;
}

.fila1 h3{
    margin:0;
    color:#fff;
    font-size:14px;
    font-weight:800;
}

.fila2{
    display:flex;
    align-items:flex-start;
    gap:12px;
    min-height:110px;
}

.icono{
    width:30px;
    height:30px;

    border:2px solid #f2b720;
    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#f2b720;
    font-size:22px;

    flex-shrink:0;
}

.fila2 p{
    margin:0;
    color:#d6d6d6;
    line-height:1.6;
    font-size:11px;
}

.img-box{
    width:170px;
    height:170px;

    border:2px solid #f2b720;
    border-radius:22px;
    overflow:hidden;
}

.img-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.arrow{
    display:flex;
    align-items:center;
    justify-content:center;

    color:#f2b720;
    font-size:42px;

    height:220px; /* misma altura que la imagen */
    margin-top:150px; /* ajusta según tu texto */
}


/* ===========================
   diferentes
=========================== */

.diferentes-titulo{
    text-align:center;
    font-size:30px;
    font-weight:600;
    color:#d4af37;
    margin:80px 0 40px;
}

.diferentes{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border:1px solid rgba(212,175,55,.4);
    border-radius:25px;
}

.feature{
    text-align:center;
    padding:20px;
}

.feature i{
    font-size:40px;
    color:#d4af37;
    margin-bottom:20px;
}

.feature h4{
    font-size:15px;
    margin-bottom:10px;
}

.feature p{
    color:#d0d0d0;
    line-height:1.6;
}

.cta-box{
    margin-top:40px;
    border:1px solid rgba(212,175,55,.5);
    border-radius:25px;
    padding:40px;
    display:grid;
    grid-template-columns:3.2fr 2fr 1.8fr;
    gap:30px;
    align-items:center;
}

.cta-left{
    display:flex;
    align-items:center;
    gap:25px;
}

.robot-icon{
    font-size:50px;
    color:#d4af37;
}

.cta-left h3{
    font-size:23px;
    line-height:1.5;
    font-weight:350;
}

.cta-left span{
    color:#d4af37;
}

.cta-center{
    color:#d0d0d0;
    line-height:1.7;
    font-size:13px;
    max-width:270px;

    margin-left:10px;
}

.btn-proyectos{
    background:#d4af37;
    color:#000;
    padding:20px 25px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    font-size:11px;
    display:inline-block;

    transition:.3s;
    box-shadow:0 0 20px rgba(212,175,55,.3);
    margin-left:10px;
}

.btn-proyectos:hover{
    transform:translateY(-3px);
    box-shadow:0 0 30px rgba(212,175,55,.5);
}


/* ===========================
   SECCIÓN PROYECTOS
=========================== */

.section-proyectos {
    padding: 100px 20px;
    background-image: url('../img/fondo2.png'); /* Cambia si tienes otro fondo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
}

.section-proyectos::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.section-proyectos .container {
    position: relative;
    z-index: 1;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.proyecto-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.proyecto-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.proyecto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.proyecto-card:hover .proyecto-img img {
    transform: scale(1.05);
}

.proyecto-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.proyecto-categoria {
    background: #d4af37;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proyecto-info {
    padding: 20px;
}

.proyecto-info h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 10px;
}

.proyecto-info p {
    color: #c0c0c0;
    font-size: 13px;
    line-height: 1.6;
}

/* ===========================
   SECCIÓN CONTACTO
=========================== */

.section-contacto {
    padding: 100px 20px;
    background-image: url('../img/fondo2.png'); /* Cambia si quieres otro */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
}

.section-contacto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 20, 0.75);
    pointer-events: none;
}

.section-contacto .container {
    position: relative;
    z-index: 1;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
    margin-top: 20px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contacto-icono {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d4af37;
}

.contacto-item h4 {
    color: #d4af37;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto-item p,
.contacto-item a {
    color: #c0c0c0;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.contacto-item a:hover {
    color: #d4af37;
}

.contacto-redes h4 {
    color: #d4af37;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redes-iconos {
    display: flex;
    gap: 15px;
}

.redes-iconos a {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s;
}

.redes-iconos a:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-3px);
}

.contacto-mapa {
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
}

/* FOOTER */
.footer {
    background: #080735;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 25px;
    font-size: 13px;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulso 2s infinite;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

@keyframes pulso {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===========================
   RESPONSIVE PROYECTOS Y CONTACTO
=========================== */

@media (max-width: 900px) {
    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .contacto-mapa {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
    }
}


/* Mejoras responsivas */
img{max-width:100%;height:auto;}
html{scroll-behavior:smooth;}

@media (max-width:1024px){
.cards-grid,.pasos-grid,.proyectos-grid,.contacto-grid{grid-template-columns:1fr 1fr !important;display:grid !important;}
.hero h1{font-size:2.7rem !important;}
}

@media (max-width:768px){
.navbar .container,.menu,.logo-area{flex-direction:column !important;text-align:center;}
.menu{gap:12px !important;}
.cards-grid,.pasos-grid,.proyectos-grid,.contacto-grid{grid-template-columns:1fr !important;}
.hero{padding:120px 20px !important;}
.hero h1{font-size:2rem !important;}
.hero p{font-size:1.1rem !important;}
iframe{min-height:300px;}
}

.whatsapp-flotante{
position:fixed!important;
right:20px!important;
bottom:20px!important;
z-index:9999!important;
}
