:root {
    --csif-green: #0a8a4a;
    --csif-green-dark: #066437;
    --csif-green-light: #20b76a;
    --ink: #07131f;
    --ink-2: #0b1d2f;
    --blue: #13b7ff;
    --blue-soft: #6ad9ff;
    --paper: #f5f8fa;
    --white: #ffffff;
    --muted: #66717c;
    --border: rgba(7, 19, 31, .12);
    --shadow: 0 22px 60px rgba(5, 21, 36, .14);
    --radius: 1.35rem;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-x: hidden;
}


button, input, select, textarea, .btn, .form-control, .form-select, .navbar, .nav-link {
    font-family: "Roboto", Arial, sans-serif;
}

a { text-underline-offset: .2em; }

.skip-link {
    position: fixed;
    top: -80px;
    left: 1rem;
    z-index: 9999;
    padding: .8rem 1rem;
    color: #fff;
    background: #000;
    border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(7, 19, 31, .08);
}

.navbar {
    min-height: 64px;
    padding-top: .3rem;
    padding-bottom: .3rem;
}
.navbar-brand { padding: 0; }
.brand-logo {
    width: clamp(128px, 15vw, 175px);
    height: auto;
    display: block;
}

.nav-link {
    color: var(--ink) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: .55rem .8rem !important;
    border-radius: .7rem;
}
.nav-link:hover, .nav-link:focus { background: rgba(10, 138, 74, .08); color: var(--csif-green-dark) !important; }

.btn {
    min-height: 50px;
    padding: .78rem 1.15rem;
    border-radius: .85rem;
    font-weight: 800;
    font-size: 1rem;
}
.btn-lg { min-height: 56px; padding-inline: 1.35rem; font-size: 1.08rem; }
.btn-sm-nav { min-height: 40px; padding: .5rem .9rem; }
.btn-csif {
    color: #fff;
    background: linear-gradient(135deg, var(--csif-green), var(--csif-green-dark));
    border: 0;
    box-shadow: 0 10px 24px rgba(10, 138, 74, .25);
}
.btn-csif:hover, .btn-csif:focus { color: #fff; background: linear-gradient(135deg, #0ba257, #08713f); transform: translateY(-1px); }

.section-pad { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-light { background: var(--paper); }

.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 72% 28%, rgba(19, 183, 255, .18), transparent 26rem),
        radial-gradient(circle at 18% 72%, rgba(10, 138, 74, .18), transparent 28rem),
        linear-gradient(145deg, #06111c 0%, #0a1b2a 48%, #06111c 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 92%);
}
.hero-glow { position: absolute; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(70px); opacity: .16; }
.hero-glow-1 { background: var(--blue); top: 8%; right: -10%; }
.hero-glow-2 { background: var(--csif-green-light); bottom: -15%; left: -10%; }

.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--csif-green-light);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
}
.hero h1 {
    max-width: 760px;
    margin: 0;
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.045em;
    font-size: clamp(3rem, 7vw, 6.3rem);
}
.hero h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(180deg, #fff 5%, var(--blue-soft) 45%, #08aaf4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 20px rgba(19,183,255,.36));

    /*
     * Roboto + background-clip + letter-spacing negativo puede hacer que
     * el límite visual del span termine justo sobre el último glifo.
     * Este pequeño espacio interno evita que se recorte el lado derecho
     * de la A de "IA" sin alterar el tamaño ni la composición del título.
     */
    padding-right: .08em;
    margin-right: -.02em;
    overflow: visible;
}
.hero-lead {
    max-width: 760px;
    margin: 1.4rem 0 0;
    color: #dbe6ef;
    font-size: clamp(1.12rem, 2.3vw, 1.38rem);
    line-height: 1.55;
}

.hero-meta { display: grid; gap: .9rem; margin-top: 1.5rem; }
.hero-meta > div { display: flex; gap: .85rem; align-items: center; }
.hero-meta i { color: var(--blue-soft); font-size: 1.35rem; width: 1.8rem; text-align: center; }
.hero-meta span { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.06rem; }
.hero-meta small { color: #afc0cf; font-size: .92rem; }

.poster-card {
    position: relative;
    max-width: 430px;
    margin-inline: auto;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05);
    box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(19,183,255,.08);
    transform: rotate(1deg);
}
.poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(19,183,255,.07);
}
.poster-card img { display: block; width: 100%; height: auto; }
.poster-card figcaption {
    position: absolute;
    left: .8rem;
    bottom: .8rem;
    padding: .45rem .7rem;
    border-radius: .55rem;
    color: #fff;
    background: rgba(0,0,0,.72);
    font-size: .78rem;
    font-weight: 700;
}

.availability-card {
    max-width: 650px;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1.1rem;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
}
.availability-icon {
    width: 52px; height: 52px; flex: 0 0 52px;
    display: grid; place-items: center;
    border-radius: 1rem;
    color: #07131f;
    background: var(--blue-soft);
    font-size: 1.35rem;
}
.availability-label { color: #c5d5e2; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.availability-number { line-height: 1.1; }
.availability-number strong { color: #fff; font-size: 2rem; }
.availability-number span { color: #aec0cf; font-size: .95rem; }
.availability-card small { color: #b9c8d5; }
.badge-free { color: #fff; background: var(--csif-green); padding: .55rem .7rem; font-weight: 900; }
.progress { height: 8px; background: rgba(255,255,255,.12); }
.progress-bar { background: linear-gradient(90deg, var(--csif-green-light), var(--blue)); }

.quick-strip { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 34px rgba(7,19,31,.05); }
.quick-item { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: 1rem; border-right: 1px solid var(--border); font-weight: 850; }
.quick-item:last-child { border-right: 0; }
.quick-item i { color: var(--csif-green); font-size: 1.35rem; }

.section-heading { max-width: 820px; }
.section-heading h2, .signup-section h2 {
    margin: .45rem 0 .8rem;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.05;
    font-size: clamp(2.25rem, 4.6vw, 4rem);
}
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-heading-dark h2 { color: #fff; }
.section-heading-dark p { color: #b7c8d5; }

.timeline { max-width: 980px; margin-inline: auto; position: relative; }
.timeline::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 185px; width: 2px; background: linear-gradient(var(--csif-green), var(--blue)); }
.timeline-item { display: grid; grid-template-columns: 150px 70px 1fr; align-items: start; margin-bottom: 1.35rem; }
.timeline-time { padding-top: 1rem; font-weight: 900; font-size: 1.05rem; text-align: right; }
.timeline-marker { position: relative; z-index: 1; width: 46px; height: 46px; margin: .55rem auto 0; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--csif-green), #0875a4); box-shadow: 0 0 0 7px var(--paper), 0 8px 22px rgba(10,138,74,.22); }
.timeline-card { padding: 1.2rem 1.35rem; border: 1px solid var(--border); border-radius: 1.1rem; background: #fff; box-shadow: 0 14px 36px rgba(7,19,31,.06); }
.timeline-card h3 { margin: 0 0 .35rem; font-size: 1.16rem; font-weight: 900; }
.timeline-card p { margin: 0; color: var(--muted); }

.workshops-section {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(10,138,74,.18), transparent 24rem),
        radial-gradient(circle at 80% 30%, rgba(19,183,255,.18), transparent 28rem),
        linear-gradient(150deg, #06111c, #0a1a2a 55%, #06111c);
}
.workshops-section::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(106,217,255,.5) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent); }
.workshops-section .container-xl { position: relative; }
.workshop-card {
    position: relative;
    padding: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 1.2rem;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.workshop-card:hover { transform: translateY(-5px); border-color: rgba(106,217,255,.45); background: rgba(255,255,255,.085); }
.workshop-number { position: absolute; top: .8rem; right: 1rem; color: rgba(255,255,255,.14); font-size: 2.4rem; font-weight: 950; }
.workshop-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 1rem; color: #06111c; background: linear-gradient(135deg, var(--blue-soft), #fff); font-size: 1.55rem; box-shadow: 0 0 30px rgba(19,183,255,.18); }
.workshop-card h3 { min-height: 2.6em; margin: 0 0 .65rem; font-size: 1.28rem; font-weight: 900; }
.workshop-card p { color: #b9c9d6; }
.workshop-speaker { display: flex; gap: .5rem; align-items: flex-start; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); color: #eaf4fb; font-size: .92rem; font-weight: 700; }
.workshop-speaker i { color: var(--csif-green-light); margin-top: .1rem; }

.speaker-card {
    padding: 1.55rem;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 14px 38px rgba(7,19,31,.06);
}
.speaker-avatar { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--csif-green), #0d7ea9); font-size: 1.8rem; }
.speaker-sector { display: inline-flex; margin-bottom: .55rem; color: var(--csif-green-dark); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.speaker-card h3 { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 900; }
.speaker-card p { color: var(--muted); }
.speaker-status { display: inline-flex; gap: .4rem; align-items: center; padding: .38rem .55rem; border-radius: .5rem; color: #7b5a00; background: #fff1be; font-size: .8rem; font-weight: 800; }
.speaker-status-ok { color: #075f35; background: #dff5e9; }
.speaker-pending { background: linear-gradient(180deg, #fff, #fbfcfd); }

.signup-section {
    color: #fff;
    background: linear-gradient(145deg, #07131f, #0a1c2c);
}
.signup-section h2 { color: #fff; }
.signup-intro { color: #bdcad5; font-size: 1.08rem; }
.signup-features { display: grid; gap: .9rem; margin-top: 1.5rem; }
.signup-features > div { display: flex; gap: .8rem; align-items: flex-start; }
.signup-features i { color: var(--csif-green-light); font-size: 1.35rem; margin-top: .12rem; }
.signup-features span { display: flex; flex-direction: column; }
.signup-features strong { color: #fff; }
.signup-features small { color: #aebfcb; }
.free-badge-img { width: min(220px, 60vw); margin-top: 1.7rem; border-radius: 1rem; box-shadow: 0 15px 45px rgba(19,183,255,.18); }

.signup-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid rgba(255,255,255,.13); border-radius: 1.35rem; background: #fff; color: var(--ink); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.signup-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.signup-card-head span { color: var(--csif-green-dark); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.signup-card-head h3 { margin: .15rem 0 0; font-size: 1.6rem; font-weight: 950; }
.signup-card-head > i { color: var(--csif-green); font-size: 2.2rem; }
.prototype-alert { border: 0; border-radius: .8rem; font-size: .9rem; }
.form-label { font-weight: 800; }
.form-control, .form-select { min-height: 54px; border-radius: .8rem; border-color: #cbd4da; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--csif-green); box-shadow: 0 0 0 .23rem rgba(10,138,74,.13); }
.form-note { margin-top: .8rem; color: #6b7780; font-size: .8rem; text-align: center; }

.site-footer { padding: 2rem 0 5.5rem; color: #c8d3dc; background: #03090e; border-top: 1px solid rgba(255,255,255,.08); }
.footer-logo { width: min(230px, 68vw); height: auto; filter: brightness(0) invert(1); opacity: .92; }
.site-footer p { font-size: .9rem; }

.mobile-cta {
    position: fixed;
    z-index: 1040;
    left: .7rem; right: .7rem; bottom: .7rem;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--csif-green), var(--csif-green-dark));
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    font-weight: 900;
}
.mobile-cta strong { margin-left: auto; padding-left: .75rem; border-left: 1px solid rgba(255,255,255,.28); font-size: .78rem; }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: .85rem 0 1rem; }
    .navbar-nav { gap: .25rem; }
    .nav-link { font-size: 1.05rem; }
    .hero { min-height: auto; }
    .poster-card { max-width: 340px; transform: none; }
    .hero h1 { text-align: left; }
    .quick-item:nth-child(2) { border-right: 0; }
    .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .site-footer { padding-bottom: 6.8rem; }
}

@media (max-width: 767.98px) {
    body { font-size: 1rem; }
    .section-pad { padding: 4rem 0; }
    .hero { padding-top: 2.3rem; }
    .hero-lead { font-size: 1.1rem; }
    .poster-card { max-width: 285px; }
    .quick-item { min-height: 92px; flex-direction: column; gap: .2rem; font-size: .88rem; }
    .quick-item i { font-size: 1.25rem; }
    .timeline::before { left: 23px; }
    .timeline-item { grid-template-columns: 48px 1fr; gap: .7rem; }
    .timeline-time { grid-column: 2; grid-row: 1; padding: 0 0 .35rem; text-align: left; color: var(--csif-green-dark); font-size: .93rem; }
    .timeline-marker { grid-column: 1; grid-row: 1 / span 2; width: 46px; height: 46px; margin-top: 0; }
    .timeline-card { grid-column: 2; grid-row: 2; padding: 1rem; }
    .workshop-card h3 { min-height: 0; }
}

@media (max-width: 575.98px) {
    .container-xl { padding-inline: 1rem; }
    .brand-logo { width: 138px; }
    .navbar { min-height: 58px; padding-top: .2rem; padding-bottom: .2rem; }
    .navbar-toggler { padding: .3rem .5rem; }
    .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
    .hero-meta strong { font-size: .98rem; }
    .hero-meta small { font-size: .84rem; }
    .availability-card { padding: .9rem; gap: .75rem; }
    .availability-icon { width: 46px; height: 46px; flex-basis: 46px; }
    .availability-number strong { font-size: 1.65rem; }
    .section-heading h2, .signup-section h2 { font-size: 2.15rem; }
    .signup-card { border-radius: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
