:root {
    --color-primary: #6441a4;
    --color-secondary: #29bec5;
    --color-warning: #fb7719;
    --color-alert: #fbb336;
    --color-danger: #d93275;
    --color-bg: #392e5c;
    --color-green: #67ca85;

    --color-warning-hover: #e36a02;
    --color-light: #e4daf2;

    /* --- Fuentes --- */
    --width-limit: 1200px;
    --font-fam: "Figtree", sans-serif;
    --font-script: "Fasthand", cursive;
}
.text-primary {
    color: var(--color-primary) !important;
}
.text-secondary {
    color: var(--color-secondary) !important;
}
.text-success {
    color: var(--color-green) !important;
}
.text-danger {
    color: var(--color-danger) !important;
}
.fc-alert {
    color: var(--color-alert) !important;
}
.fc-warning {
    color: var(--color-warning) !important;
}
body {
    color: #4b4b4b !important;
    font-family: var(--font-fam);
    font-weight: 500 !important;
    overflow-x: hidden;
}
.container-limited {
    max-width: var(--width-limit);
    margin: 0 auto;
    padding: 0 20px;
}
.section-pd {
    padding-top: 7% !important;
    padding-bottom: 7% !important;
}
.bg {
    background-color: var(--color-bg);
    color: white !important;
}
.bg-primary {
    background-color: var(--color-primary) !important;
}
.bg-success {
    background-color: var(--color-green) !important;
    color: white !important;
}
.bg-light {
    background-color: var(--color-light) !important;
}
.bg-prefooter{
    background: url("../img/orl-bg.svg") no-repeat center center;
    background-size: cover;
    margin-top: 5%;
    padding: 120px 15% 60px;
    z-index: 100;
}

.ft-fasthand {
    font-family: var(--font-script);
}
.fw-light {
    font-weight: 300 !important;
}
.fw-bold {
    font-weight: 900 !important;
}
.fw-semibold {
    font-weight: 600 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-fam);
}

/* --- NAVBAR OVERLAY --- */
.navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(
        180deg,
        var(--color-light) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    padding-bottom: 20px;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 0;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}
.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: none;
    text-shadow: -3px 3px 6px rgba(57, 46, 92, 0.4);
}
.hero-subtitle {
    font-size: 6rem;
    font-weight: 500;
    display: inline-block !important;
    transform-origin: center center;
    transform: rotate(-5deg);
    line-height: 1;
    margin-top: -4rem;
}
.hero-description {
    margin: 4% 0 1% 0 !important;
}
.bg-course{
    background-image: url("../img/estudiante-2.png");
    background-position: 17% bottom;
    background-repeat: no-repeat;
    background-size: 14% auto
}
.bg-course-detail{
    background-image: url("../img/estudiante-1.png");
    background-position: 80% bottom;
    background-repeat: no-repeat;
    background-size: 14% auto
}

/* --- PAPEL RASGADO --- */
.torn-paper-overlay {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 4;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
}
.torn-paper-img {
    display: block;
    height: auto;
    transition: width 0.3s ease, margin-left 0.3s ease;
}

@media (min-width: 992px) {
    .torn-paper-img {
        width: 100%;
    }
}
@media (max-width: 991px) {
    .torn-paper-img {
        width: 200%;
        margin-left: -50%;
    }
}

/* --- BOTONES --- */
.btn {
    background-color: var(--color-warning);
    color: white;
    border: none;
    padding: 12px 36px !important;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: var(--color-warning-hover);
    box-shadow: 0 10px 20px rgba(253, 126, 20, 0.4);
    color: white;
    transform: translateX(6px);
}
.btn-sm {
    padding: 9px 25px !important;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 10px;
}
.btn-purple, .btn-sky {
    background-color: var(--color-primary);
    color: white;
    border: none;
    display: inline-block;
    padding: 9px 25px !important;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 10px;
    text-decoration: none;
}
.btn-purple.btn-lg{
    font-size: 1.2rem;
    padding: 12px 28px !important;
}
.btn-sky {
    background-color: var(--color-secondary);
    font-size: .9rem;
    font-weight: 300 !important;
    padding: 7px 20px !important;
}

/* --- LISTAS DE BENEFICIOS --- */

.benefit-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.benefit-list li::before {
    content: "•";
    color: var(--color-warning);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5rem;
}

/* --- MENÚ MÓVIL (NUEVO) --- */
#mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1050;
    transform: translateX(100%); /* Oculto por defecto */
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Esta clase 'active' la pone tu main.js */
#mobileMenu.active {
    transform: translateX(0) !important;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-link-custom {
    color: var(--color-primary);
    text-decoration: none;
    padding: 0 15px;
    font-weight: 700;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.nav-link-custom:hover {
    opacity: 1;
}

/* --- ALERTS --- */
.alertsPr{
 pointer-events: none; max-width: 800px; width: auto;
 top: 100px; z-index: 2000;
}

/* --- SWIPER GENERAL --- */
.swiper {
    width: 100%;
}
.swiper-slide {
    min-height: 150px;
    min-width: 100px;
    display: flex;
}
.swiper-slide figure {
    transition: transform 0.3s ease;
}
.swiper-slide figure:hover {
    transform: translateY(-6px);
}
.swiper-pagination-bullet {
    background-color: var(--color-secondary) !important;
    opacity: 0.8 !important;
}
.swiper-pagination-bullet-active {
    background-color: var(--color-warning) !important;
    width: 25px;
    border-radius: 10px;
}

.university-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.course-card-hover:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Wrapper del contenido derecho */
.content-wrapper {
    max-width: 750px; /* Limita el ancho del texto en pantallas muy grandes */
    margin: 0 auto; /* Centra el contenido si sobra espacio */
}

/* --- SECCIÓN 3 (FONDO POR CSS) --- */

.section-test-vocacional {
    padding: 6% 0;
    width: 100%;
    position: relative;

    background-image: url("../img/bg-white-3rd-section.png");
    background-repeat: no-repeat;
    background-position: bottom center;

    /* MÓVIL (Default): 
       La imagen se pega arriba (top) y ocupa el 100% del ancho. 
       La altura es automática (auto) para no deformarse. 
    */
    /*
     background-size: 100% auto;
    background-size: contain !important; */
}
.section-test-vocacional img {
    max-height: 480px;
}

@media (max-width: 767px) {
    .section-test-vocacional {
        background-position: 24% top;
        background-size: 240% auto;
    }
    .section-test-vocacional img {
        padding-bottom: none !important;
        padding-right: none !important;
        width: 75%;
    }
    .university-carousel-container {
        margin-top: 10px !important;
    }
}
/* @media (min-width: 768px) {
    .section-test-vocacional {
        background-position: left center;
        background-size: 60% 100%;
    }
}*/
@media (min-width: 992px) {
    .section-test-vocacional {
        background-position: 80% center;
        background-size: 140% auto;
    }
    .section-test-vocacional img {
        max-height: 430px;
        margin-top: -35px;
        padding-bottom: 35px;
        padding-right: 2%;
    }
    .university-carousel-container {
        margin-top: -70px !important;
    }
}
@media (min-width: 1300px) {
    .section-test-vocacional {
        background-position: center;
        background-size: 130% auto;
    }
    .section-test-vocacional img {
        max-height: 500px;
        margin-top: -100px;
        padding-bottom: 100px;
        padding-right: 6%;
    }
    /* .university-carousel-container {
        margin-top: -70px !important;
    } */
}

/* Footer */
.modern-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: -80px;
    padding-top: 12% !important;
    position: relative;
    overflow: hidden;
    z-index: 1 !important;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3436;
    text-decoration: none;
}

.footer-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6c5ce7, transparent);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #6c5ce7;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3436;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #6c5ce7;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.quick-links a {
    color: #2d3436;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-links a:hover {
    color: #6c5ce7;
    transform: translateX(5px);
}

.quick-links a::before {
    content: '→';
    opacity: 0;
    transition: all 0.3s ease;
}

.quick-links a:hover::before {
    opacity: 1;
}

.newsletter-input {
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-subscribe {
    background: linear-gradient(45deg, #6c5ce7, #a363d9);
    border: none;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.footer-bottom {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom small {
    margin: 0;
    color: #6c757d;
}

.footer-bottom a {
    color: #6c5ce7;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quick-links {
        grid-template-columns: 1fr;
    }
}
/* End Footer */

.brd {
    border: 1px solid red;
}
.brd2 {
    border: 1px solid blue;
}
.brd3 {
    border: 1px solid greenyellow;
}

.btn-cart{
    text-decoration: none;
    background-color: transparent !important;
    line-height: 0 !important;
    padding-left: 10px !important;
    padding-right: 8px !important;
}
.btn-cart:hover{
    background-color: rgba(255, 255, 255, 0.2) !important;
}
.cart-count {
    font-size: 1.1rem;
    font-weight: 600;
}

#mobileMenu .cart-count {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.lh-0 {
    line-height: 0 !important;
}