/* Global Styles */
:root {
    --bg-color: #000000;
    /* Light grayish/pinkish tint like reference */
    --text-color: hsl(0, 0%, 100%);
    --accent-pink: #ffffff;
    /* Matched from screenshot roughly */
    --card-bg: rgba(0, 0, 0, 0.4);
    /* Glass effect */
    --card-border: #ccc;
    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    /* For the numbers */
}

/* Materialize Overrides for Dark Theme */
.z-depth-1,
nav,
.card-panel,
.card,
.toast,
.btn,
.btn-large,
.btn-small,
.btn-floating,
.dropdown-content,
.collapsible,
.sidenav {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

img {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.card,
.feature-card {
    background-color: transparent !important;
}

/* Fix for Materialize Select Icon Visibility */
.select-wrapper i {
    font-weight: 600 !important;
    color: black !important;
}

.select-dropdown li.disabled,
.select-dropdown li.disabled>span,
.select-dropdown li.optgroup {
    font-weight: 600 !important;
    color: rgb(255, 255, 255) !important;
}

.select-dropdown.dropdown-content li:hover {
    background-color: #5ddcff !important;
}

form.soft input[type="text"],
form.soft input[type="password"],
form.soft input[type="email"],
form.soft input[type="url"],
form.soft input[type="tel"],
form.soft input[type="number"],
form.soft textarea,
form.soft select {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    /* Slightly squarer for "pro" look */

    font-family: 'Montserrat',
        sans-serif !important;
    font-size: 0.95rem !important;
    padding: 0 20px !important;
    height: 50px !important;
    /* Fixed comfortable height */
    box-shadow: none !important;
    transition: border-color 0.3s ease,
        background 0.3s ease;
}

form.soft input:focus,
form.soft textarea:focus,
form.soft select:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: #5ddcff !important;
    box-shadow: none !important;
    /* Clean, no glow shadow, just border */
}

form.soft ::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    /* Hide scrollbar for layout */
}

/* SECTION 0: Hero */
.hero-section {
    width: 100%;
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
}

.hero-section2 {
    width: 100%;
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
}

.unicorn-embed {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
    /* Below logo */
}

.hero-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    /* Above unicorn */
    pointer-events: none;
    /* Crucial: allows hover to pass through to iframe */
    max-width: 40%;
    /* Responsive sizing */
    height: auto;
    filter: drop-shadow(0 0px 60px rgba(0, 0, 0, 0.98));
}

/* SECTION 1: Course Info */
.course-info {
    padding: 0px 20px;
    background: #000000;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.course-temario {

    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.course-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.course-temario h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.course-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.detail-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* SECTION 2: Lenis "Brings the Heat" Clone */
.lenis-section {
    position: relative;
    width: 100%;
    /* No defined height here, height comes from pin spacing or content */
    background: linear-gradient(to bottom, #000000, #000000);
    /* Subtle pink gradient at bottom */
    overflow: hidden;
}

.sticky-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.unicorn-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but inside wrapper */
    /* Interact through if needed, or allow if interactive? Usually backgrounds are passive. Unique embed might be interactive. User said 'fondo' so likely passive. but usually better to let scroll pass. */
}

/* Video Background Styles */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }
}

/* Layout Grid for the Content */
.content-grid {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Left (Hand/Cards) - Right (Title) mostly */
    align-items: center;
    z-index: 5;
    /* Ensure above bg */
}

/* Hand Image (Centered relative to grid mostly, but technically sits in middle) */
.hand-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 100%;
    /* Adjust based on image aspect ratio */
    height: auto;
}

.hand-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Title */
.title-container {
    position: absolute;
    top: 15%;
    /* Higher up */
    text-align: center;
    z-index: 5;
}

.lenis-title {
    font-family: 'Inter', sans-serif;
    /* Try to match the wide sans in screenshot */
    font-weight: 900;
    text-align: center;
    font-size: 3rem;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 0;
}

.light-text {
    color: #ccc;
    /* "THE HEAT" is lighter/grayer in some frames, or solid in others. Doing gray for contrast.*/
    color: #aaa;
}

/* Cards Stack */
.cards-stack {
    margin-left: 10%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.card {
    position: absolute;
    width: 400px;
    height: 400px;
    /* Square cards */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;


    /* Layout First: Center them */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Let GSAP handle opacity and initial position */
    opacity: 1;
}

.card-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent-pink);
    line-height: 1;
}

.card-text {
    font-family: var(--font-display);
    /* Using Impact/Display font for the text too to match "RUN SCROLL..." look */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.card-circle {
    /* The little circle on card 05 */
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.lenis-cta-container {
    position: absolute;
    bottom: 20%;
    /* Position below the center cards */
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    /* Above cards (z-index 20) */
    width: 100%;
    text-align: center;
    pointer-events: auto;
}

/* Spacer */
.footer-spacer {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #333;
}

/* Responsive Styles for Lenis Section */
@media (max-width: 1024px) {
    .card {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        width: 100%;
        height: 70vh;
        background: #000;
        position: relative;
        overflow: hidden;
    }

    .hero-section2 {
        width: 100%;
        height: 50vh;
        background: #000;
        position: relative;
        overflow: hidden;
    }

    .hero-logo {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        /* Above unicorn */
        pointer-events: none;
        /* Crucial: allows hover to pass through to iframe */
        max-width: 80%;
        /* Responsive sizing */
        height: auto;
        filter: drop-shadow(0 0px 60px rgba(0, 0, 0, 0.98));
    }

    .cards-stack {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        /* Ensure vertical center too if needed, though they are absolute */
    }

    .card {
        /* User set these small sizes, keeping them but ensuring centering works */
        width: 60vw;
        /* Increased a bit from 20vw/150px that seemed too small for main content? */
        height: 60vw;
        max-width: 250px;
        max-height: 250px;

        /* Ensure distinct stacking */
        left: 50%;
        top: 50%;
        /* Transform handled by GSAP + CSS base */
    }
}

.shadow {
    filter: drop-shadow(-10px 10px 50px rgba(0, 0, 0, 0.9));
}

/* Horizontes Content Section */
.horizontes-countdown {
    background: #000;
    color: #fff;
    padding: 0px 60px 60px 60px;
    text-align: center;
    z-index: 1000;
}

.hero-countdown-container {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 15;
    text-align: center;
}

#countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}


.countdown-pre,
.countdown-post {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #fff;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-timer {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin: -10px 0;
    background: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .horizontes-countdown {
        padding: 40px 15px;
    }

    .countdown-timer {
        margin: 0;
    }

    .header-img-outside {
        margin-bottom: -50px !important;
        width: 80% !important;
    }
}

@media (max-width: 1024px) {
    .header-img-outside {
        margin-bottom: -50px !important;
        width: 70% !important;
    }
}

.header-outside-container {

    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    padding-bottom: 80px;
}

.header-img-outside {
    margin-bottom: -80px;
    padding-top: 60px;
    width: 40%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.8));
}

@media (max-width: 768px) {


    .countdown-timer {
        margin: 0;
    }

    .header-img-outside {
        width: 80% !important;
    }

    .hero-countdown-container {
        top: 80%;
    }
}


.horizontes-content {
    background: #000;
    color: #fff;
    padding: 0px 20px;
    text-align: center;
}

.horizontes-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.gradient-text {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 50px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on one line */
    gap: 30px;
    perspective: 1000px;
    margin-top: 20px;
}

/* Fallback for mobile */
@media (max-width: 768px) {
    .sticky-wrapper {
        height: 120vh;
        /* Increase height for mobile to give more breathing room */
    }

    .lenis-cta-container {

        position: absolute;
        bottom: 2%;
        /* Position below the center cards */
        left: 50%;
        transform: translateX(-50%);
        z-index: 300;
        /* Above cards (z-index 20) */
        width: 100%;
        text-align: center;
        pointer-events: auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 10px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Animation initial state managed by GSAP, but good to have defaults */
    opacity: 0;
    transform: translateY(30px);

    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card .icon {
    font-size: 6rem;
    display: block;
    margin-bottom: 15px;
}

.icon {
    width: 100%;
    margin: 0 auto;
}

.extra-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
}

.styled-list li {
    background: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>') no-repeat left center;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ddd;
}

.cta-text {
    font-size: 1.2rem;
    margin: 40px 0;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #ccc;
    transform: scale(1.05);
}

/* btn style */

@property --rotate {
    syntax: "<angle>";
    initial-value: 130deg;
    inherits: false;
}

.space_btn {
    text-decoration: none;
    display: inline-block;
    background: #000000;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1.5em;
    color: #fff;
    position: relative;
    z-index: 1;
}

.space_btn:hover {
    background: #5ddcff;
    color: #000;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

.space_btn:hover:before,
.space_btn:hover:after {
    animation: none;
    opacity: 0;
}

.space_btn::before {
    content: "";
    width: 101.5%;
    height: 104%;
    border-radius: 30px;
    background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
    position: absolute;
    z-index: -1;
    top: -1px;
    left: -1px;
    animation: spin-rotate 2.5s linear infinite;
}

.space_btn::after {
    position: absolute;
    content: "";
    top: 0;
    left: -15px;
    z-index: -1;
    height: 100%;
    width: 120%;
    margin: 0 auto;
    transform: scale(0.8);
    filter: blur(10px);
    background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
    opacity: 1;
    transition: opacity .3s;
    animation: spin-rotate 2.5s linear infinite;
}



@keyframes spin-rotate {
    0% {
        --rotate: 0deg;
    }

    100% {
        --rotate: 360deg;
    }
}

/* =========================================
   FEATURE CARD GLOW (Duplicated & Modified)
   ========================================= */

.feature-glow {
    position: relative;
    /* Restore glass background */
    background: rgba(255, 255, 255, 0.03) !important;
    border: 0.5px solid transparent;
    background-clip: padding-box;
    overflow: visible;
    /* Needed for glow to show outside */
}


/* The Border / Glow Element */
.feature-glow::after,
.feature-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 1;
    /* Bring to front to ensure visibility */
    pointer-events: none;
    /* Let clicks pass through */
    background-image: conic-gradient(from var(--angle), transparent 20%, #45f3ff, #4727ff, #ca45ff 80%, transparent 100%);
    border-radius: 20px;
    /* Match feature-card radius (20px) vs elite (26px) */
    animation: spin 3s linear infinite;

    /* MASK: Turn the solid gradient square into a hollow border */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

/* Fix for conflict with .feature-card:hover::before which moves left: 100% */
.feature-glow:hover::before,
.feature-glow:hover::after {
    left: -1px !important;
    inset: -1px !important;
    transition: none !important;
}

/* The Blur / Glow Effect */
.feature-glow::before {
    filter: blur(1.5rem);
    opacity: 0.5;
    /* Mask the glow center too */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* =========================================
   TEMARIO PAGE STYLES
   ========================================= */

.temario-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: transparent;
    /* Transparent to show fixed background */
    color: #fff;
    position: relative;
    z-index: 1;
}

.temario-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.gradient-center {
    text-align: center;
}

.levels-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.level-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    transition: all 0.4s ease;
    backdrop-filter: blur(30px);
}

.level-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.card-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.level-card:hover .card-image img {
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    flex: 1;
}

.card-content h2 {
    font-size: 2rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-weight: 800;
}

.level-tag {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ddd;
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    font-size: 1rem;
    color: #ccc;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.topic-list li::before {
    content: "•";
    color: var(--accent-pink);
    position: absolute;
    left: 0;
    top: 0px;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Responsive Styles for Temario */
@media (max-width: 768px) {
    .level-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }

    .card-image {
        width: 160px;
        height: 160px;
        margin-bottom: 20px;
    }

    .card-content h2 {
        flex-direction: column;
        justify-content: center;
        margin-bottom: 25px;
    }

    .topic-list {
        grid-template-columns: 1fr;
        text-align: left;
        /* Keep list left aligned for readability */
    }
}

/* =========================================
   ELITE CARD BORDER ANIMATION
   ========================================= */

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.elite-card {
    position: relative;
    /* Restore glass background */
    background: rgba(255, 255, 255, 0.03) !important;
    border: 0.5px solid transparent;
    background-clip: padding-box;
    overflow: visible;
}

.elite-card:hover {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* The Border / Glow Element */
.elite-card::after,
.elite-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    background-image: conic-gradient(from var(--angle), transparent 20%, #45f3ff, #4727ff, #ca45ff 80%, transparent 100%);
    border-radius: 26px;
    animation: spin 3s linear infinite;

    /* MASK: Turn the solid gradient square into a hollow border */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;

}

/* The Blur / Glow Effect */
.elite-card::before {
    filter: blur(1.5rem);
    opacity: 0.5;
    /* Mask the glow center too */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

/* =========================================
   FORM STYLES REFINED (Minimalist & Aligned)
   ========================================= */

.container {
    width: 90%;
    max-width: 1000px;
    /* Slightly narrower for focus */
    margin: 0 auto;
}

.formulario {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    color: #fff;
    background: #000;
}

#formulario-inscripcioncursosgratuitos {
    background: rgba(20, 20, 20, 0.6);
    /* Darker, more solid background for readability */
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px 10px 10px 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

/* Force everything inside the form to align nicely */
#formulario-inscripcioncursosgratuitos .row {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    /* Top align inputs */
}

/* Override inline styles/classes from PHP file that force center */
#formulario-inscripcioncursosgratuitos .col {
    /* Force left alignment for cleanliness */
    margin-bottom: 25px;
    /* Consistent vertical spacing */
}

/* Specific fix for the centered radio buttons section */
#formulario-inscripcioncursosgratuitos .center,
#formulario-inscripcioncursosgratuitos .center-align {
    text-align: left !important;
}

#formulario-inscripcioncursosgratuitos hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inputs & Selects - Clean & Uniform */
/* Inputs & Selects - Clean & Uniform - Dark Mode */
form.soft input[type="text"],
form.soft input[type="password"],
form.soft input[type="email"],
form.soft input[type="url"],
form.soft input[type="tel"],
form.soft input[type="number"],
form.soft textarea,
form.soft select {
    width: 100% !important;
    background: #1A1A1A !important;
    /* Solid dark grey to match autofill */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    /* Force White Text */
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 0 20px !important;
    height: 50px !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

form.soft input:focus,
form.soft textarea:focus,
form.soft select:focus {
    background: #222 !important;
    /* Slightly lighter on focus */
    border-color: #5ddcff !important;
    /* Brand Blue */
    color: #fff !important;
}

form.soft ::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    /* Visible Placeholder */
    font-weight: 300;
    font-size: 0.9rem;
}

/* Fix Browser Autofill Styles - Force Dark Background */
form.soft input:-webkit-autofill,
form.soft input:-webkit-autofill:hover,
form.soft input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1A1A1A inset !important;
    /* Matches input bg */
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
    border: 1px solid #333 !important;
    /* Dark grey border instead of white rgba */
    border-radius: 8px !important;
    transition: none !important;
}

form.soft input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #222 inset !important;
    /* Slightly lighter on focus */
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
    border: 1px solid #5ddcff !important;
    /* Brand Blue Border on Focus */
    border-radius: 8px !important;
    transition: none !important;
}

/* Ensure labels and other text in form are white */
form.soft label,
form.soft p,
form.soft span {
    color: #fff !important;
}

/* Fix standard Materialize Label positioning if used, though here it seems placeholder-based */
form.soft label.active {
    color: #5ddcff !important;
}

#recaptcha {
    display: flex;
    justify-content: center;
    margin: 0;
    width: auto;
    /* Let layout handle width */
}

/* Submit Button Override - Clean up to allow space_btn to work */
form.soft .btn-enviar,
form.soft button.Enviar {
    margin: 0 auto;
    /* Reset restrictive styles so space_btn works */
    border: none !important;
    background: #000;
}

form.soft button.Enviar:hover {
    transform: none;
    box-shadow: none;
    background: #5ddcff !important;
    color: #000 !important;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Ensure the space_btn animation works on the button element */
form.soft button.Enviar.space_btn::before,
form.soft button.Enviar.space_btn::after {
    display: block !important;
}

/* Remove the previous gradient pseudo-element for a cleaner look */
form.soft button.Enviar::before {
    display: none;
}

/* Radio/Checkbox Alignment Fixes */
.DivInsignias p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem !important;
}

form.soft [type="radio"]+label,
form.soft [type="checkbox"]+label {
    color: #ccc !important;
    font-weight: 400;
    margin-bottom: 10px;
}

/* Override the push classes to just be full width or grid based for cleaner flow */
@media only screen and (min-width: 601px) {
    .row .col.push-m3 {
        left: auto;
        margin-left: 0;
        width: 100%;
        /* Make the 'como enteraste' full width or normal grid */
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Remove white background from dividers/hr */
form.soft hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   MINIMAL GRID SYSTEM (Materialize Clone)
   ========================================= */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row .col {
    box-sizing: border-box;
    padding: 0 0.75rem;
    min-height: 1px;
}

/* Base s12 (Mobile / Default) */
.row .col.s12 {
    width: 100%;
    margin-left: auto;
    left: auto;
    right: auto;
}

/* Medium Screens (Tablet/Desktop) */
@media only screen and (min-width: 601px) {
    .row .col.m6 {
        width: 50%;
        margin-left: auto;
        left: auto;
        right: auto;
    }

    .row .col.m4 {
        width: 33.3333333333%;
    }

    .row .col.m8 {
        width: 66.6666666667%;
    }

    .row .col.push-m3 {
        left: 25%;
        position: relative;
        /* push uses positioning in materialize usually, or margin */
    }

    /* Better implementation for flex push if not using full library */
    /* Materialize uses left/right with relative position. */
}

/* Adjustments for the form specifically to ensure vertical spacing */
.row .col {
    margin-bottom: 20px;
}

/* Hide the ugly old form title/paragraphs if needed, or style them */
.formulario p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 10px 0;
}

/* Error messages */
form.soft label.error {
    color: #ff6b6b !important;
    font-size: 0.8rem !important;
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

/* =========================================
   JQUERY UI DATEPICKER DARK THEME
   ========================================= */

#ui-datepicker-div {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    font-family: 'Inter', sans-serif !important;
}

.ui-datepicker-header {
    background: #111 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.ui-datepicker-title {
    color: #fff !important;
    font-weight: 700 !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    background: #222 !important;
    border: 1px solid #333 !important;
    border-radius: 5px !important;
    cursor: pointer;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #333 !important;
}

.ui-datepicker-calendar th {
    color: #888 !important;
}

.ui-datepicker-calendar td a {
    background: #111 !important;
    border: 1px solid #222 !important;
    color: #eee !important;
    text-align: center !important;
    border-radius: 4px !important;
    transition: all 0.2s;
}

.ui-datepicker-calendar td a:hover {
    background: #333 !important;
    color: #fff !important;
    border-color: #444 !important;
}

.ui-datepicker-calendar td.ui-datepicker-current-day a {
    background: #45f3ff !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: 0 0 10px rgba(69, 243, 255, 0.4) !important;
}

/* Fix dropdowns in datepicker if enabled */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    border-radius: 4px;
    padding: 2px;
}

/* Dark Mode Dropdown Styles (Materialize Select) */
.dropdown-content {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.dropdown-content li {
    background-color: #1a1a1a !important;
    min-height: 50px;
    /* Comfortable touch target */
}

.dropdown-content li>a,
.dropdown-content li>span {
    color: #fff !important;
    font-size: 16px !important;
    padding: 14px 20px !important;
    display: block;
    line-height: 22px;
}

.dropdown-content li:hover,
.dropdown-content li.active,
.dropdown-content li.selected {
    background-color: rgba(93, 220, 255, 0.15) !important;
    /* Brand Blue with opacity */
}

.dropdown-content li:hover>span,
.dropdown-content li.active>span,
.dropdown-content li.selected>span {
    color: #183b45;
    /* Brand Blue Text */
}

/* =========================================
   JQUERY UI AUTOCOMPLETE DARK THEME
   ========================================= */

.ui-autocomplete {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;
    /* Ensure it floats above other elements */
}

.ui-menu-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ui-menu-item-wrapper,
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 20px !important;
    display: block !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Hover State */
.ui-menu-item-wrapper:hover,
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
    background: rgba(93, 220, 255, 0.15) !important;
    /* Brand Blue with opacity */
    color: #5ddcff !important;
    border: none !important;
    margin: 0 !important;
}

/* =========================================
   TEMARIO MODAL / LIGHTBOX
   ========================================= */

.temario-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
}

.temario-modal.show {
    opacity: 1;
}

.temario-modal-content {
    background-color: transparent;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: modalSlideUp 0.4s ease-out;
}

.temario-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 10001;
    cursor: pointer;
    transition: color 0.3s;
}

.temario-close:hover,
.temario-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.temario-modal .temario-section {
    min-height: auto;
    padding: 0 0 60px 0;
    background: transparent;
}