body {
    font-family: "Roboto", sans-serif;
}

img {
    max-width: 100%;
}

p {
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.btn.btnKibernum {
    background: #01424C;
    color: #FFFFFF;
    font-size: 0.8669rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-style: normal;
    min-width: 10rem;
    border-radius: 5px;
    text-transform: uppercase;
}

.btn.btnKibernum:hover {
    background: #FFFFFF;
    color: #01424C;
}

header {
    position: absolute;
    width: 100%;
    padding: 10px 0;
    z-index: 20;
}

.section {
    padding: 80px 0;
}

.logo {
    max-width: 220px;
}

/* ==================================================
   HERO
   ================================================== */
.ppal {
    padding: 0;
    background: linear-gradient(to top, #0a0a0ad9, #0a0a0a73), url(../img/bg-microsoft-week.jpg) no-repeat center center;
    background-size: cover;
    min-height: 90vh;
}

.ppal>.container>.row {
    height: 100%;
}

h1 {
    color: #fff;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
}

h1 .mi-subtitulo {
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: #CADCD8;
}

.img_partner {
    width: 100%;
}

.img_partner img {
    max-width: 200px;
    margin-top: 2%;
}

.ppal p {
    color: #fff;
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
}

.iconos_ppal {
    justify-content: center;
    gap: 10px;
    flex-direction: column;
}

.icono_ppal {
    color: #fff;
    text-align: center;
    gap: 10px;
    align-items: center;
}

.icono_ppal i {
    color: #CADCD8;
}

/* ==================================================
   CONTADOR
   ================================================== */
.contador {
    background: linear-gradient(to left, #01424C, #7d0f9e);
    padding: 30px 0;
    color: #fff;
}

#countdown {
    display: flex;
    justify-content: center;
}

.contador ul {
    padding: 0;
}

.contador li {
    display: inline-block;
    font-size: 1em;
    list-style-type: none;
    padding: 1em;
    text-transform: uppercase;
    text-align: center;
}

.contador li span {
    display: block;
    font-size: 4rem;
}

.emoji {
    display: none;
    padding: 1rem;
}

.emoji span {
    font-size: 4rem;
    padding: 0 .5rem;
}

@media all and (max-width: 768px) {
    .contador li {
        font-size: 15px;
    }

    .contador li span {
        font-size: 35px;
    }
}

/* ==================================================
   INTRO / VIDEO SECTION
   ================================================== */
.video_webinar {
    padding: 120px 0;
    background: #000;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.texto_bg {
    font-size: 180px;
    line-height: 150px;
    width: 60%;
    color: #000;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 30px;
    -webkit-text-stroke: 3px #ffffff24;
    text-transform: uppercase;
    z-index: -1;
}

.text_destacado {
    color: #fff;
    font-size: 30px;
    line-height: 30px;
}

.text_destacado span {
    display: block;
    font-size: 40px;
    line-height: 50px;
}

.video_webinar p {
    color: #fff;
    font-size: 15px;
}

/* ==================================================
   TIMETABLE (resumen de calendario)
   ================================================== */
.timetable {
    background: #0f0f0f;
    padding: 40px 0 100px;
}

.timetable table {
    width: 100%;
    border-collapse: collapse;
    color: #F3F4F6;
}

.timetable th {
    text-align: left;
    color: #CADCD8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.timetable td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.timetable tr:last-child td {
    border-bottom: none;
}

.timetable .day-cell {
    font-weight: 700;
    color: #fff;
}

.timetable .day-cell small {
    display: block;
    font-weight: 400;
    color: #9CA3AF;
    font-size: 0.8rem;
}

/* ==================================================
   VARIABLES (PALETA KIBERNUM)
   ================================================== */
:root {
    --kib-dark: #282828;
    --kib-teal: #01424C;
    --kib-light-teal: #CADCD8;
    --kib-purple: #B9AAD4;
    --kib-green: #B2D5AD;
    --kib-silver: #B8BCC2;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
}

/* ==================================================
   SECCIÓN DE CURSOS
   ================================================== */
.ai-week-courses {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    padding: 100px 20px;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.4), rgba(20, 20, 20, 0.9)), url('../img/bg-kibernum.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-align: center;
    color: #F3F4F6;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 60px;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==================================================
   GRID DE CURSOS
   ================================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.course-card {
    border-radius: 24px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    background: var(--card-color, var(--kib-teal));
}

/* Franja superior con el día / fecha */
.course-day {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 22px;
    font-weight: 700;
    color: var(--card-text, #0a0a0a);
}

.course-day .day-name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-day .day-date {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Panel oscuro interior (estilo tarjetas MS Week originales) */
.course-panel {
    background: #141414;
    border-radius: 20px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.course-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.course-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Sello circular con el código de certificación */
.cert-badge {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.cert-badge svg {
    width: 100%;
    height: 100%;
}

.cert-badge .cert-ring-text {
    fill: var(--card-accent, var(--card-color));
    font-size: 6.3px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.cert-badge circle.cert-ring {
    fill: none;
    stroke: var(--card-accent, var(--card-color));
    stroke-width: 1.2;
}

.cert-badge .cert-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--card-accent, var(--card-color));
    text-align: center;
    line-height: 1.1;
}

.course-heading h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.course-heading .course-code {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--card-accent, var(--card-color));
    letter-spacing: 0.5px;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.course-audience {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #E5E7EB;
    margin: 0;
    display: flex;
    gap: 8px;
}

.course-audience .audience-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    background: var(--card-accent, var(--card-color));
    border-radius: 3px;
}

.course-audience strong {
    color: #fff;
}

/* Instructor: foto + nombre */
.course-instructor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.course-instructor img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 2px solid var(--card-accent, var(--card-color));
    flex-shrink: 0;
}

.course-instructor .instructor-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--card-accent, var(--card-color));
    margin-bottom: 2px;
}

.course-instructor .instructor-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

/* Info: fecha / hora / duración */
.course-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    margin-top: auto;
}

.course-info .info-item {
    text-align: center;
}

.course-info .info-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--card-accent, var(--card-color));
    margin-bottom: 4px;
}

.course-info .info-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

/* ==================================================
   BOTÓN INSCRIPCIÓN
   ================================================== */
.btn-enroll {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-enroll:hover {
    background: var(--card-accent, var(--card-color));
    color: #0a0a0a;
    border-color: var(--card-accent, var(--card-color));
    box-shadow: 0 0 15px rgba(1, 66, 76, 0.5);
}

/* Glow dinámico al mover el mouse sobre la tarjeta */
.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.course-card:hover::after {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-6px);
    transition: transform 0.4s ease;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 991px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .course-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .timetable {
        overflow-x: auto;
    }

    .timetable table {
        min-width: 560px;
    }
}

/* ==================================================
   MODAL DE INSCRIPCIÓN
   ================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-registro {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 30px 30px;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-registro {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.modal-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--kib-light-teal);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.modal-registro h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.modal-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 22px 0;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    color: #E5E7EB;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row input,
.form-row select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--kib-light-teal);
}

.form-row textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
    resize: vertical;
    min-height: 80px;
}

.form-row textarea:focus {
    outline: none;
    border-color: var(--kib-light-teal);
}

.form-row select option {
    color: #0a0a0a;
}

.form-row input::placeholder {
    color: #6B7280;
}

/* Honeypot: oculto para personas, presente para bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-feedback {
    min-height: 20px;
    font-size: 0.85rem;
    margin: 0 0 14px 0;
    color: #F87171;
}

.form-feedback.is-success {
    color: var(--kib-green);
}

/* Consentimiento protección de datos + imagen */
.consent-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 16px;
    padding: 14px 14px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    color: #E5E7EB !important;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
}

.consent-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--kib-light-teal, #CADCD8);
    cursor: pointer;
}

.consent-item span {
    flex: 1;
    color: #E5E7EB !important;
    font-weight: 600;
}

#registroSubmit {
    width: 100%;
}

#registroSubmit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.registro-success {
    text-align: center;
    padding: 20px 6px 6px;
}

.registro-success .success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--kib-green);
    color: #0a0a0a;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registro-success h4 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
}

.registro-success p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 22px 0;
}

.registro-success .btn-enroll {
    max-width: 220px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .modal-registro {
        padding: 30px 20px 24px;
    }
}

/* ==================================================
   FOOTER
   ================================================== */
footer.site-footer {
    background: #0a0a0a;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.site-footer .footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

footer.site-footer .footer-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

footer.site-footer .footer-label {
    color: #9CA3AF;
    font-size: 0.85rem;
    font-weight: 500;
}

footer.site-footer img {
    max-height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

footer.site-footer .footer-divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
}

/* ==================================================
   ANIMACIÓN DE ENTRADA
   ================================================== */
@keyframes techReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================================================
   ANIMATIONS & LENIS & CUSTOM CURSOR (GSAP)
   ================================================== */
html.lenis,
html.lenis body {
    height: auto;
    width: 100vw;
    overflow-x: hidden;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #CADCD8, #01424C);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 99999;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

@media (hover: hover) and (pointer: fine) {

    body,
    a,
    button,
    label,
    .btn,
    .btn-enroll,
    .course-card,
    input {
        cursor: none !important;
    }
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #CADCD8;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100010;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(202, 220, 216, 0.5);
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100009;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.ppal>.container {
    position: relative;
    z-index: 1;
}

.btnKibernum,
.btn-enroll {
    position: relative;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #01424C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CADCD8;
}

.char,
.word {
    display: inline-block;
    will-change: transform, opacity;
}

.line {
    overflow: hidden;
    padding-bottom: 5px;
    display: block;
}

/* Subtle Volumetric Noise overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ppal>.container>.row>.col-sm {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    margin-right: auto;
    max-width: 60%;
}

.ppal h2.mi-subtitulo {
    font-size: 20px;
    font-weight: 400;
    color: #CADCD8;
    text-align: left;
    margin-bottom: 10px;
}

.ppal h1 {
    text-align: left;
    padding: 0;
    width: 100%;
}

.ppal p {
    text-align: left;
    padding: 0;
}

.ppal .img_partner {
    display: flex;
    justify-content: flex-start;
}

.ppal .iconos_ppal,
.ppal .btn_cta {
    justify-content: flex-start !important;
}

@media (max-width: 991px) {
    .ppal {
        padding-top: 180px;
    }

    .ppal>.container>.row>.col-sm {
        max-width: 100%;
        align-items: center;
        margin: 0 auto;
    }

    .ppal h2.mi-subtitulo,
    .ppal h1,
    .ppal p {
        text-align: center;
    }

    .ppal h1 {
        font-size: 42px !important;
    }

    .ppal h1 .line,
    .ppal h1 .word,
    .ppal h1 .char {
        text-align: center !important;
        justify-content: center !important;
    }

    .ppal .img_partner,
    .ppal .iconos_ppal,
    .ppal .btn_cta {
        justify-content: center !important;
    }

    .ppal .img_partner img {
        margin: 20px auto 0 auto !important;
    }
}

@media (max-width: 576px) {
    .ppal {
        padding-top: 130px;
    }

    .ppal>.container>.row>.col-sm {
        max-width: 100%;
        padding: 0 15px;
    }

    .ppal h1 {
        font-size: 28px !important;
        line-height: 1.2;
        text-align: center !important;
    }

    .ppal h1 .line,
    .ppal h1 .word,
    .ppal h1 .char {
        text-align: center !important;
        justify-content: center !important;
    }

    .ppal h2.mi-subtitulo,
    .ppal p {
        text-align: center !important;
    }

    .ppal .iconos_ppal {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .ppal .img_partner img {
        max-width: 150px;
        margin-top: 20px !important;
    }

    #countdown ul {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 0;
        margin: 0;
    }

    .contador li {
        padding: 5px;
        font-size: 10px;
    }

    .contador li span {
        font-size: 24px !important;
    }
}
