/* XMATI - ESTILOS PRINCIPALES */
:root {
    --xmati-purple: #35184D;
    --xmati-purple-light: #632278;
    --xmati-magenta: #C91663;
    --xmati-magenta-light: #E52B72;
    --xmati-turquoise: #008F8B;
    --xmati-green: #16834B;
    --xmati-yellow: #F4A51C;
    --xmati-cream: #FFF9ED;
    --xmati-cream-dark: #FFF0D8;
    --xmati-text: #302A31;
    --white: #FFFFFF;
    --border: #E9DFD3;
    --shadow:
        0 10px 30px rgba(53, 24, 77, 0.10);
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    background-color:
        var(--xmati-cream);
    color:
        var(--xmati-text);
    line-height: 1.6;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar-xmati {
    width: 100%;
    background-color:
        var(--xmati-cream);
    border-bottom:
        1px solid var(--border);
    position: relative;
    z-index: 100;
}

.navbar-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* LOGO */
.logo-xmati {
    display: flex;
    align-items: center;
    color: var(--xmati-purple);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    white-space: nowrap;
}

/* MENU */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex: 1;
}

.nav-links a {
    color: var(--xmati-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--xmati-magenta);
}

/* ACCIONES */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.btn-login {
    color: var(--xmati-purple);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.btn-login:hover {
    color: var(--xmati-magenta);
}

/* =========================================================
   BOTÓN PRINCIPAL
========================================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--xmati-magenta);
    color: var(--white);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--xmati-magenta-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 22, 99, 0.25);
}

/* BOTÓN SECUNDARIO */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background-color: transparent;
    color: var(--xmati-turquoise);
    border: 2px solid var(--xmati-turquoise);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--xmati-turquoise);
    color: var(--white);
}

/* LOGOUT */
.btn-logout {
    background: transparent;
    border: none;
    color: var(--xmati-purple);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   HERO
========================================================= */
.hero-xmati {
    position: relative;
    width: 100%;
    background:
        linear-gradient(135deg,
            var(--xmati-cream) 0%,
            var(--xmati-cream-dark) 100%);
    padding: 80px 5% 95px;
    /* Espacio inferior para el tejido */
}

.hero-xmati::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -210px;
    width: 100%;
    height: 350px;
    /* Más alto */
    background-image: url("../images/tejido-divider.png");
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 350px;
}

.hero-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

/* CONTENIDO */
.hero-content {
    max-width:
        650px;
}

.hero-tag {
    display: inline-block;
    color: var(--xmati-turquoise);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
}

.hero-content h1 {
    color:
        var(--xmati-purple);

    font-size:
        clamp(2.1rem, 4.5vw, 5rem);

    line-height:
        1.08;

    letter-spacing:
        -2px;

    margin-bottom:
        25px;
}

.hero-content h1 span {
    color:
        var(--xmati-magenta);
}

.hero-content p {
    max-width:
        600px;

    color:
        var(--xmati-text);

    font-size:
        1.15rem;

    line-height:
        1.8;

    margin-bottom:
        35px;
}


/* BOTONES HERO */

.hero-buttons {
    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    flex-wrap:
        wrap;
}

.hero-highlights {

    display: flex;
    gap: 35px;
    margin-top: 40px;
    flex-wrap: wrap;

}

.highlight-item {
    font-size: 32px;
    color: #7B3FA1;
    display: flex;
    align-items: center;
    gap: 12px;

}

.highlight-item i {

    font-size: 28px;
    color: #7A3E9D;

}


.highlight-item strong {

    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: #2B174A;

}

.highlight-item span {

    font-size: .85rem;
    color: #6c6c6c;

}

/* IMAGEN / ILUSTRACIÓN */


.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: var(--xmati-cream);
}

.divider-img {
    display: block;
    width: 100%;
    height: 28px;
    /* Ajusta el grosor */
    object-fit: cover;
}

/* =========================================================
   FEATURES
========================================================= */

.features-xmati {

    margin-top: 0;
    padding: 55px;
    background: #fff;
}

.section-heading {
    max-width:
        800px;

    margin:
        0 auto 50px;

    text-align:
        center;
}

.section-heading h2 {
    color:
        var(--xmati-purple);

    font-size:
        2.5rem;

    line-height:
        1.2;
}

.features-grid {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}


/* TARJETAS */

.feature-card {
    min-height: 270px;
    padding: 35px 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 30px rgba(36, 17, 69, 0.06);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
    position: relative;
    overflow: hidden;

}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(36, 17, 69, .12);
    border-color: #E7D7F8;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,
            #6E3BAA,
            #C2185B);
}

.purple {
    background: linear-gradient(135deg, #8E57B5, #6E3294);
    color: white;
    box-shadow: 0 10px 20px rgba(123, 63, 160, .25);
}

.green {
    background: linear-gradient(135deg, #41B86C, #2E9F52);
    color: white;
    box-shadow: 0 10px 20px rgba(46, 159, 82, .25);
}

.orange {
    background: linear-gradient(135deg, #FDBA3A, #F4A623);
    color: white;
    box-shadow: 0 10px 20px rgba(244, 166, 35, .25);
}

.cyan {
    background: linear-gradient(135deg, #30C5C5, #18A8A8);
    color: white;
    box-shadow: 0 10px 20px rgba(24, 168, 168, .25);
}

.pink {
    background: linear-gradient(135deg, #E83E7D, #D81B60);
    color: white;
    box-shadow: 0 10px 20px rgba(216, 27, 96, .25);
}

.feature-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    transition: all .35s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px) scale(1.08);
}

.feature-card h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2E1A47;
}

.feature-card p {
    line-height: 1.75;
    color: #666;
    font-size: .95rem;
}

.heading-line {
    width: 90px;
    height: 5px;
    margin: 18px auto 0;
    border-radius: 20px;
    background:
        linear-gradient(90deg,
            #00A99D,
            #C2185B,
            #00A99D);
}

/* =========================================================
   FOOTER
========================================================= */
.footer-xmati {
    background: linear-gradient(180deg,
            #F8F5FC 0%,
            #F1EBF8 100%);
}

.footer-pattern img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.footer-wrapper {
    max-width: 1300px;
    margin: auto;
    padding: 0px 20px;
    margin: 0px 80px 50px 80PX;
}

.footer-card {
    background: #fff;
    border-radius: 22px;
    padding: 45px 55px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
    box-shadow: 0 12px 40px rgba(73, 35, 105, .08);
}

.footer-brand h2 {
    color: #35195C;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.footer-brand span {
    color: #2E9F52;
    font-weight: 700;
    display: block;
    margin-bottom: 22px;
}

.footer-brand p {
    color: #666;
    line-height: 1.8;
    max-width: 320px;
}

.footer-column h3 {
    color: #35195C;
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
}

.footer-column h3::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #D81B60;
    margin-top: 10px;
    border-radius: 10px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column a {
    color: #555;
    text-decoration: none;
    margin-bottom: 15px;
    transition: .25s;
}

.footer-column a:hover {
    color: #C2185B;
    transform: translateX(6px);
}

.footer-bottom {
    background: #45205E;
    color: #fff;
    text-align: center;
    padding: 18px;
    font-size: .95rem;
}

/* =========================================================
   LOGIN
========================================================= */

.login-xmati {

    min-height: calc(100vh - 82px);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 65px 20px;

    background: linear-gradient(135deg,
            var(--xmati-cream),
            var(--xmati-cream-dark));

}

.login-box {

    width: 50%;

    max-width: 500px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 28px;

    padding: 20px;

    box-shadow: var(--shadow);

}

.login-box .logo-xmati {
    justify-content: center;
    font-size: 3.4rem;
}

.login-box .hero-tag {
    display: flex;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}


.form-group {

    margin-bottom: 22px;

}

.form-group label {

    display: block;

    margin-bottom: 8px;

    color: var(--xmati-purple);

    font-weight: 700;

}

.form-group input {

    width: 100%;

    height: 56px;

    padding: 0 18px;

    border: 2px solid var(--border);

    border-radius: 12px;

    font-size: 1rem;

    transition: .3s;

    background: #fff;

}

.form-group input:focus {

    outline: none;

    border-color: var(--xmati-turquoise);

    box-shadow: 0 0 0 4px rgba(0, 143, 139, .10);

}

.form-error {

    display: block;

    margin-top: 8px;

    color: var(--xmati-magenta);

    font-size: .9rem;

}

.login-options {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 28px 0;

    font-size: .95rem;

}

.remember {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

}

.remember input {

    accent-color: var(--xmati-magenta);

}

.login-options a {

    color: var(--xmati-turquoise);

    text-decoration: none;

    font-weight: 700;

}

.login-options a:hover {

    color: var(--xmati-magenta);

}

.login-btn {

    width: 100%;

    margin-top: 5px;

}

.login-divider {
    position: relative;
    text-align: center;
}

.login-divider::before {

    content: "";

    position: absolute;

    left: 0;

    top: 50%;

    width: 100%;

    height: 1px;

    background: var(--border);

}

.login-divider span {

    position: relative;

    background: #fff;

    padding: 0 18px;

    color: #888;

}

.back-home {

    display: block;

    margin-top: 28px;

    text-align: center;

    text-decoration: none;

    color: var(--xmati-purple);

    font-weight: 700;

    transition: .3s;

}

.back-home:hover {

    color: var(--xmati-magenta);

}

@media(max-width:600px) {

    .login-box {

        padding: 35px 25px;

    }

    .login-header h2 {

        font-size: 2rem;

    }

    .login-options {

        flex-direction: column;

        gap: 15px;

        align-items: flex-start;

    }

}

/* =========================================================
   STUDENT NAVBAR
========================================================= */

.container {

    width: 90%;

    max-width: 1400px;

    margin: auto;

}

.student-navbar {

    background: var(--xmati-cream);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 100;

}

.student-navbar-container {

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.student-nav-links {

    display: flex;

    align-items: center;

    gap: 35px;

}

.student-nav-links a {

    text-decoration: none;

    color: var(--xmati-text);

    font-weight: 700;

    transition: .3s;

}

.student-nav-links a:hover {

    color: var(--xmati-magenta);

}

/*  MENÚ DESPLEGABLE - APRENDER */

.student-dropdown {
    position: relative;
}

.student-dropdown > .dropdown-toggle {
    display: block;
    text-decoration: none;
    color: var(--xmati-text);
    font-weight: 700;
    cursor: pointer;
}

.student-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(53, 24, 77, 0.15);
    z-index: 1000;
}

.student-dropdown:hover .dropdown-menu {
    display: block;
}

.student-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--xmati-text);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.student-dropdown .dropdown-menu a:hover {
    background: var(--xmati-cream);
    color: var(--xmati-magenta);
}

.student-nav-user {

    display: flex;

    align-items: center;

    gap: 22px;

}

.student-elotitos {

    background: var(--white);

    border: 1px solid var(--border);

    padding: 10px 18px;

    border-radius: 12px;

    font-weight: 700;

    color: var(--xmati-purple);

    box-shadow: var(--shadow);

}

.student-user {

    display: flex;

    align-items: center;

    gap: 12px;

    font-weight: 700;

    color: var(--xmati-purple);

}

.student-avatar {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: linear-gradient(135deg,
            var(--xmati-magenta),
            var(--xmati-purple));

    color: var(--white);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

}

/* =========================================================
   XMATI STUDENT DASHBOARD
========================================================= */

.student-dashboard {
    background: #f7f4ef;
    min-height: 100vh;
    padding: 40px 0 70px;
}

.dashboard-top {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-bottom: 35px;
}

.dashboard-aside {
    flex-direction: column;
    justify-content: center;
}

.dashboard-aside h1 {
    font-size: 2.2rem;
    color: var(--xmati-purple);
    margin: 18px 0;
}

.quote-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    margin: 15px 0;
}

.quote-desc {
    color: var(--xmati-text-light);
    line-height: 1.7;
}

.dashboard-hero {
    display: flex;
    min-height: 430px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #fffdf8, #fdf1e7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    align-items: center;
}

.hero-info {
    padding: 30px 500px 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-badge {
    display: inline-block;
    width: max-content;
    padding: 10px 18px;
    border-radius: 50px;
    background: #efe8fa;
    color: var(--xmati-purple);
    font-weight: 700;
}

.hero-info h2 {
    font-size: 3rem;
    color: var(--xmati-purple);
}

.hero-info p {
    color: var(--xmati-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.progress {
    height: 14px;
    background: #e8e8e8;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--xmati-magenta), var(--xmati-purple));
}

.progress-label {
    display: block;
    margin: 12px 0 20px;
    font-weight: 700;
    color: var(--xmati-purple);
}

.last-lesson {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 25px;
}

.last-lesson small {
    color: var(--xmati-text-light);
}

.last-lesson strong {
    color: var(--xmati-purple);
    font-size: 1.15rem;
}

.dashboard-hero {

    background:
        linear-gradient(90deg,
            rgba(255, 252, 245, .98) 0%,
            rgba(255, 252, 245, .90) 42%,
            rgba(255, 252, 245, .10) 65%,
            rgba(255, 252, 245, 0) 100%),
        url("../images/login-img.png");

    background-size: cover;

    background-position: right center;

}

/*==================================
        DASHBOARD CARDS
==================================*/

.dashboard-cards {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
    margin-bottom: 55px;

}

.dashboard-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 220px;
    padding: 20px 15px 15px 10px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
    transition: .35s;
}

.dashboard-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 30px 55px rgba(0, 0, 0, .12);

}

.card-image {

    width: 42%;

    display: flex;

    justify-content: center;

    align-items: center;

}

.card-image img {

    width: 150px;

    transition: .35s;

}

.dashboard-card:hover .card-image img {

    transform: scale(1.06);

}

.card-content {
    width: 58%;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #7c7c7c;
}

.card-content h2 {
    color: var(--xmati-purple);
}

.card-content p {

    color: var(--xmati-text-light);

    line-height: 1.7;

}

.card-content small {

    display: block;

    color: var(--xmati-text-light);

    font-size: 1rem;

    margin-bottom: 18px;

}

.btn-audio {
    border: none;
    background: #0b8e95;
    color: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn-audio:hover {
    background: #0c757b;
}

.card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    color: var(--xmati-purple);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
    transition: .3s;
}

.dashboard-card:hover .card-arrow {

    transform: translateX(5px);

}

/*==================================
      COLORES DE CADA TARJETA
==================================*/

.card-corn {
    background: linear-gradient(135deg,
            #FFFDF7,
            #FFF3CC);

}

.card-word {

    background: linear-gradient(135deg,
            #FDFEFE,
            #E8FAF9);

}

.card-culture {
    background: linear-gradient(135deg,
            #FDFBFF,
            #F2E9FF);
}

/*==================================
      MARCAS DE AGUA
==================================*/
.card-corn::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 10px;
    width: 180px;
    height: 210px;
    background: url("../images/corn-outline.png") center/contain no-repeat;
    opacity: .08;

}

.card-word::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 20px;
    width: 180px;
    height: 180px;
    background: url("../images/house-outline.png") center/contain no-repeat;
    opacity: .07;
}

.card-culture::after {
    content: "";
    position: absolute;
    right: -25px;
    top: 10px;
    width: 180px;
    height: 180px;
    background: url("../images/greca.png") center/contain no-repeat;
    opacity: .08;
}

/*==================================
        RESPONSIVE
==================================*/
@media(max-width:1200px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 220px;
    }
}

@media(max-width:768px) {
    .dashboard-card {
        flex-direction: column;
        text-align: center;
    }

    .card-image {
        width: 100%;
    }

    .card-content {
        width: 100%;
    }

}


/*=========================================
    CAMINO DE APRENDIZAJE
=========================================*/

.learning-path {
    position: relative;
    padding: 15px 25px;
    background: #FFFDF8;
    border-radius: 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.learning-path::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/dashboard/mountains.png") center 70px no-repeat;
    background-size: 80%;
    opacity: .08;
    pointer-events: none;
}

.learning-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.learning-header h2 {
    font-size: 2.8rem;
    color: var(--xmati-purple);
}

.learning-header p {
    font-size: 1.05rem;
    color: #777;
}

/*===============================
    CAMINO
================================*/

.learning-linee {
    position: relative;
    width: 100%;
    height: 150px;
    background: url("../images/learning-path.svg") center center no-repeat;
    background-size: 100% auto;
}

/*===============================
    CÍRCULOS
================================*/

.learning-circles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    margin-top: -165px;
    position: relative;
    z-index: 5;
}

.learning-circle {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    overflow: hidden;
    background: #FFF;
    border: 6px solid #FFF;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
    transition: .35s;
}

.learning-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learning-circle:hover {
    transform: translateY(-8px) scale(1.05);
}

/*===============================
    INFORMACIÓN
================================*/

.learning-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
    margin-top: 25px;
}

.learning-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.learning-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 1rem;
    font-weight: 700;
    margin-top: -12px;
}

.learning-number.completed {
    background: #39A949;
}

.learning-number.available {
    background: #DCA321;
}

.learning-number.locked {
    background: #A07AD9;
}

.learning-item h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--xmati-purple);
    margin-bottom: 6px;
}

.learning-item small {
    font-size: 1rem;
    color: #777;
}


/*===============================
    RESPONSIVE
================================*/

@media(max-width:992px) {

    .learning-linee {
        display: none;
    }

    .learning-circles {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 20px;
    }

    .learning-info {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

}

/* XMATI - Pantalla Unidad Aprendizaje CSS corregido */

.learning-page{
    background:#f7f4ef;
    min-height:100vh;
    padding:40px 0;
}

.learning-container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

.learning-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:25px;
    align-items:start;
}

.unit-hero{
    height:300px;
    border-radius:30px;
    background-size:cover;
    background-position:center;
    position:relative;
    overflow:hidden;
    padding:40px;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(255,249,237,.65);
}

.unit-hero .hero-content{
    position:relative;
    z-index:2;
}

.hero-content h1{
    color:var(--xmati-purple);
    font-size:4rem;
}

.learning-sidebar,
.learning-side{
    background:white;
    border-radius:30px;
    padding:25px;
    box-shadow:var(--shadow);
}

.learning-header h2{
    color:var(--xmati-purple);
    font-size:2.5rem;
}



@media(max-width:1100px){
    .learning-layout{
        grid-template-columns:1fr;
    }

    .lesson-map{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:700px){
    .lesson-map{
        grid-template-columns:1fr;
    }
}

/* CORRECCION FINAL TARJETAS UNIDAD */

.learning-nodes{
    width:100%;
}


.lesson-grid{

    display:grid !important;

    grid-template-columns:repeat(5,1fr) !important;

    gap:20px !important;

    width:100%;

}


.lesson-grid .lesson-card{

    width:100% !important;

    min-height:180px;

    margin-top:0 !important;

    padding:20px;

    border-radius:20px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}
