/* Variables de colores para ambos modos */
 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Modo Claro (Default) */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #2563eb; /* Azul corporativo */
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --mountain-color: rgba(30, 41, 59, 0.1);
}

[data-theme='dark'] {
    /* Modo Oscuro */
    --bg-body: #0f172a; /* Azul noche profundo */
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #38bdf8; /* Azul glaciar */
    --accent-hover: #7dd3fc;
    --border: #334155;
    --mountain-color: rgba(56, 189, 248, 0.2);
}

/* Estilos Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    transition: background 0.3s ease;
    line-height: 1.6;
    background-color: #0a0a0f;
            /* Fondo con gradientes sutiles para darle vida al desenfoque de las tarjetas */
            background-image: 
                radial-gradient(circle at 15% 20%, rgba(79, 172, 254, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 40%);
            min-height: 100vh;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Header y Nav */
header { 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border); 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    position: relative;
}

.nav-central {
         position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: none;
    background: linear-gradient(to right, var(--text-main), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2 span{
    color: var(--accent); 
}
.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
}

.logo span { 
    color: var(--accent); 
}
.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-main); font-weight: 500; 
}

/* Landig */
/* --- ESTILOS PARA LA PRESENTACIÓN (HERO SECTION) --- */
.hero-presentacion {
    text-align: center;
    padding: 4rem 2rem 2rem 2rem; /* Mucho aire arriba para separarlo del header */
    max-width: 900px;
    margin: 0 auto;
}

.hero-presentacion h1 {
    font-size: 3rem; /* Título bien grande y llamativo */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    
    /* Le damos el mismo toque de color que usaste en el menú, para que combine */
    background: linear-gradient(to right, var(--text-main), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-presentacion p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-acciones {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primario-hero {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
}

.btn-primario-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-secundario-hero {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secundario-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

  .msg-alerta { padding: 15px; border-radius: 6px; margin-bottom: 20px; text-align: center; }
        .msg-exito { background-color: rgba(56, 189, 248, 0.1); border: 1px solid var(--accent); color: var(--accent); }
        .msg-error { background-color: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; }
        .badge-vacantes {
            display: inline-block;
            background-color: rgba(56, 189, 248, 0.1); 
            border: 1px solid var(--accent);
            color: var(--accent);
            padding: 8px 16px;
            border-radius: 10px;
            font-weight: bold;
            margin-bottom: 20px;
            font-size: 0.9rem;
        } /* ¡Faltaba esta llave de cierre! */
/* Ajuste móvil para el Hero */
@media (max-width: 768px) {
    .hero-presentacion {
        padding: 4rem 1.5rem 1rem 1.5rem;
    }
    .hero-presentacion h1 {
        font-size: 2.2rem;
    }
    .hero-acciones {
        flex-direction: column; /* En celulares los botones se apilan */
        gap: 1rem;
    }
}

.contenedor {
            max-width: 1200px;
            margin: 4rem auto;
            padding: 0 2rem;
        }
 .grilla-servicios {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2.5rem;
        }

        .tarjeta {
            /* Efecto Cristal */
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            
            /* Bordes iluminados direccionales */
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            border-left: 1px solid rgba(255, 255, 255, 0.15);
            
            border-radius: 16px;
            padding: 2.5rem 2rem;
            display: flex;
            flex-direction: column;
            /*transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            padding: 0;
            overflow: hidden;
        }

        .tarjeta:hover {
            transform: translateY(-1px);
            border-color: rgba(79, 172, 254, 0.3);
            box-shadow: 0 15px 40px rgba(79, 172, 254, 0.15);
            background: rgba(255, 255, 255, 0.05);
        }

        .imagen-tarjeta {
            width: 100%;
            height: 200px;
        }

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

        .contenido-tarjeta{
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .contenido-tarjeta p{
            color: #a0a0ab;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .enlace-tarjeta {
            color: #4da6ff;
            text-decoration: none;
            font-weight: bold;
            align-self: flex-start;
        }

        .icono {
            font-size: 2.8rem;
            margin-bottom: 1.5rem;
            filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
        }

        .tarjeta h3 {
            margin: 0 0 1rem 0;
            font-size: 1.4rem;
            font-weight: 600;
        }

        .tarjeta p {
            color: var(--texto-mutado);
            flex-grow: 1;
            margin-bottom: 2rem;
            line-height: 1.7;
            font-size: 0.95rem;
        }

        .enlace-tarjeta {
            color: var(--acento);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: color 0.3s;
        }

        .enlace-tarjeta:hover {
            color: var(--acento-hover);
        }
        
        .enlace-tarjeta::after {
            content: '→';
            transition: transform 0.3s;
        }

        .enlace-tarjeta:hover::after {
            transform: translateX(5px);
        }
/* Hero Section */

.hero { 
    padding: 100px 0; 
    text-align: center; 
    position: relative;
    overflow: hidden; /* Evita que el SVG se salga si la pantalla es muy rara */
    z-index: 1; /* Asegura que el contenido esté por encima */
}

.hero-bg-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 50%; /* Ajusta esto si quieres que sea más alto o bajo */
    z-index: -1; /* LO MÁS IMPORTANTE: Lo envía detrás del texto */
    
    /* Aquí usamos la variable de color que creamos */
    color: var(--mountain-color); 
    
    /* Evita que el SVG interfiera con los clicks en los botones */
    pointer-events: none; 
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.highlight { color: var(--accent); }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

/* Botones */
.btn-primary { 
    background-color: var(--accent); 
    color: #fff; 
    padding: 12px 28px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600;
}
.btn-primary:disabled {
    background-color: #374151 !important; /* Fondo gris oscuro */
    color: #9ca3af !important; /* Texto gris claro */
    cursor: not-allowed !important; /* Cursor de prohibido */
    opacity: 1 !important;
    border: 1px solid #4b5563 !important;
}
.btn-secondary { 
    color: var(--text-main); 
    padding: 12px 28px; 
    text-decoration: none; 
    border: 1px solid var(--border);
    margin-left: 10px;
    border-radius: 6px;
}
.btn-secondary:hover{
    background-color: var(--accent);
    color: black;
}

.botones-recursos {
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    /*margin-top: auto; */
    border-top: 1px solid var(--border);
    margin-top: 20px;   
}

/* Clase extra para los botones apilados (anula el margin-left que los rompía) */
.btn-apilado {
    text-align: center;
    display: block;
    margin-left: 0; /* Anulamos el margen izquierdo de .btn-secondary */
    width: 100%; /* Asegura que todos tengan el mismo ancho */
}

/* Cards de Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.card:hover { 
transform: translateY(-5px);
    border: 2px solid var(--accent); 
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 30%, transparent);
 }
 .card-que-hacer { 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    border: 2px solid var(--accent); 
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 30%, transparent);
     transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
    
}
.card-recursos { 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border);
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
    
}
 .login-card { 
    /*background: var(--bg-card); */
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border);
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);

}


.section-title { 
    text-align: center; 
    margin-bottom: 60px;
    width: 100%;
}

.section-title h2 { 
    font-size: 2.5rem; 
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Reemplazamos .services por .services-grid */
.services-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: stretch;
}

.card-icon { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
}

.card h3 { 
    margin-bottom: 15px; 
    font-size: 1.5rem; 
}

.card-list { 
    list-style: none; 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border); 
}

.card-list li { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
}

.card-list li::before { 
    content: "→"; 
    color: var(--accent); 
    margin-right: 10px; 
    font-weight: bold; 
}

/* Resaltado para IANSEO Cloud */
.highlight-card { 
    border: 2px solid var(--accent); 
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 30%, transparent); 
}
/* Toggle Button */
.btn-toggle {
    background: none;
    border: 2px solid var(--border); /* Borde un poco más grueso */
    color: var(--text-main); /* Asegura que el emoji herede el color del texto */
    cursor: pointer;
    padding: 8px 12px; /* Un poco más grande para que sea fácil de tocar en móviles */
    border-radius: 8px;
    font-size: 1.4rem; /* Emoji más grande */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; /* Suaviza el cambio de color al pasar el mouse */
}

/* Efecto al pasar el mouse por el botón */
.btn-toggle:hover {
    border-color: var(--accent); /* El borde se pone del color de acento */
    color: var(--accent); /* El emoji brilla con el color de acento */
    background-color: color-mix(in srgb, var(--accent) 10%, transparent); /* Un fondo sutil del color de acento */
    transform: translateY(-2px); /* Un pequeño saltito */
}

.benefits { 
    display: flex; 
    justify-content: space-between; 
    gap: 40px; 
    padding: 60px 0; 
    border-top: 1px solid var(--border); 
    text-align: center; 
}

.benefit-item strong { 
    display: block; 
    font-size: 1.2rem; 
    color: var(--accent); 
    margin-bottom: 5px; 
}

.benefit-item p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .benefits { flex-direction: column; gap: 30px; }
    .services-grid{ grid-template-columns:1fr; }
    .hero h1 { font-size: 2.5rem; }
}

/* Estilo para el logo con montaña de fondo */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.logo-bg {
    position: absolute;
    width: 80px; /* Tamaño pequeño para el header */
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 3; /* Muy sutil */
    z-index: -1;
    color: var(--accent);
    pointer-events: none;
}

.logo-bg svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Profesional */
.pie-general {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.grilla-pie {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.info-del-pie p {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-grid h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul { list-style: none; }
.footer-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    display: block; 
    margin-bottom: 10px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contenedor principal del formulario */
.form-inscripcion {
    display: flex;
    flex-direction: column;
    gap: 22px; /* Mucho más aire entre los campos */
}

/* Agrupación de dos columnas para pantallas de escritorio */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Estilo de las etiquetas visibles */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

/* Cajas de texto más amplias y legibles */
.form-inscripcion input, 
.form-inscripcion textarea {
    width: 100%; 
    padding: 14px 16px; 
    background-color: transparent; 
    border: 1px solid var(--border); /* Borde apenas más grueso para dar estructura */
    color: var(--text-main); 
    border-radius: 8px; /* Bordes un poco más suaves */
    font-family: inherit;
    font-size: 1.05rem; /* Tipografía un poco más grande */
    transition: all 0.3s ease; /* Transición suave para el hover y el click */
    outline: none; /* Quitamos el resplandor por defecto del navegador */
}

/* Efecto de iluminación al hacer clic (Focus) */
.form-inscripcion input:focus, 
.form-inscripcion textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .benefits { flex-direction: column; gap: 30px; }
    .services-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    
    /* 1. Solución al Header para que no genere scroll horizontal */
    nav {
        flex-direction: column;
        gap: 15px;
    }
.nav-central {
        position: relative; /* Apaga el absoluto en celulares */
        left: auto;
        transform: none;
        text-align: center;
        margin: 5px 0;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* 2. Solución a los botones del Hero para que se apilen */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .btn-secondary {
        margin-left: 0; /* Quitamos el margen que empujaba hacia la derecha */
    }

    /* 3. Solución al Footer usando la clase correcta */
    .grilla-pie { 
        grid-template-columns: 1fr; 
        gap: 30px;
        text-align: center; /* Centramos el texto para que se vea mejor en móvil */
    }
    .info-del-pie p {
        margin: 15px auto; /* Centramos el párrafo debajo del logo */
    }

    .grilla-servicios {
        grid-template-columns: 1fr; /* En celulares, fuerza 1 sola columna (una tarjeta debajo de otra) */
        gap: 1.5rem; /* Achicamos un poco el espacio entre tarjetas en móvil para que no quede tan separado */
    }
}
@media (max-width: 992px) {
    .grilla-servicios {
        grid-template-columns: repeat(2, 1fr); /* En tablets, muestra 2 tarjetas arriba y 1 centrada abajo */
    }
}
