/* ===========================
   VARIABLES / BASE
=========================== */
:root {
    --mc-bg-dark: #0f172a;
    --mc-bg-card: #ffffff;
    --mc-text-main: #1a1a1a;
    --mc-text-dim: #6b6b6b;
    --mc-primary: #1f5cd6;
    --mc-primary-dark: #1749ac;
    --mc-radius-card: 14px;
    --mc-radius-pill: 999px;
    --mc-shadow-card: 0 14px 30px rgba(0,0,0,0.08);
    --mc-shadow-card-hover: 0 20px 40px rgba(0,0,0,0.12);
}

/* Forzamos centrado del hero por si bootstrap mete left */
section.hero-container,
.hero-container,
.hero-content,
.hero-title,
.hero-subtitle {
    text-align: center !important;
}

/* ===========================
   HERO (sin background-image acá)
=========================== */

.hero-container {
    position: relative;
    width: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
}

/* Animación fade-up suave */
@keyframes fadeUpSoft {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-step-1,
.fade-step-2,
.fade-step-3 {
    opacity: 0;
}
.fade-step-1 { animation: fadeUpSoft .6s ease forwards; animation-delay: .1s; }
.fade-step-2 { animation: fadeUpSoft .6s ease forwards; animation-delay: .3s; }
.fade-step-3 { animation: fadeUpSoft .6s ease forwards; animation-delay: .5s; }

.hero-title {
    font-size: clamp(2.5rem, 1vw + 2rem, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    max-width: 640px;
    margin-bottom: 32px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* Buscador del hero */
.hero-search-form {
    width: 100%;
    max-width: 520px;
    position: relative;
    animation: fadeUpSoft .7s ease forwards;
    animation-delay: .6s;
}
.hero-search-form .input-group {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    background-color: #fff;
}
.hero-search-form input[type="text"] {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
}
.hero-search-form button {
    background-color: var(--mc-primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.hero-search-form button:hover {
    background-color: var(--mc-primary-dark);
}
.hero-search-form i {
    margin-left: 6px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 60px 16px;
        min-height: 420px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}



/* ============================================ */
/*                 SECTION SERVICES              */
/* ============================================ */
.mc-services {
    position: relative;
    background: linear-gradient(180deg, #0f1d3a 0%, #112a5d 100%);
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
}

.mc-services .cs-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.mc-services .cs-topper {
    display: inline-block;
    color: #50aaff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mc-services .cs-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.mc-services .cs-text {
    color: rgba(255, 255, 255, 1);
    line-height: 1.6;
    margin-bottom: 25px;
}

.mc-services .cs-button-solid {
    background-color: #1f5cd6;
    color: #fff;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.mc-services .cs-button-solid:hover {
    background-color: #3979ff;
    
}


/* Forzar que el botón del bloque servicios sea clickeable incluso dentro de .ms-service */
.ms-service .cs-button-solid,
.ms-service .cs-ver-cursos-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

/* Si .ms-service está bloqueando eventos en todo el contenedor, lo revertimos en los hijos interactivos */
.ms-service,
.ms-service * {
    pointer-events: auto;
}

/* Por si el overlay interno tiene más z-index que el botón */
.ms-service .cs-overlay,
.ms-service .cs-background,
.ms-service .cs-bg,
.ms-service .cs-layer {
    pointer-events: none !important;
    z-index: 1;
}

/* Cards */
.mc-services .cs-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    position: relative;
    z-index: 2;
}

.mc-services .cs-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: left;
    transition: all 0.25s ease;
}
.mc-services .cs-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.mc-services .cs-h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.mc-services .cs-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #50aaff;
    margin-bottom: 6px;
    display: inline-block;
}

.mc-services .cs-item-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Background image */
.mc-services .cs-background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

@media (max-width: 768px) {
    .mc-services {
        padding: 60px 0;
    }
    .mc-services .cs-title {
        font-size: 1.8rem;
    }
}

.mc-services .cs-icon {
    filter: invert(47%) sepia(90%) saturate(700%) hue-rotate(190deg) brightness(95%) contrast(98%);
}

/* ===========================
   COURSE CARDS
=========================== */
/* =========== CARD CURSO =========== */
.course-box {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all .18s ease;
    min-height: 100%;
}
.course-box:hover {
    box-shadow: 0 24px 40px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Thumbnail */
.course-box .course-image {
    position: relative;
    background-color: #f5f7fa;
    overflow: hidden;
}
.course-box .course-image img.img-fluid {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.course-box .course-image .price {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0 !important;
    float: none !important;
    background: #111827;
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.course-box .course-image .price small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.6;
    line-height: 1.1;
}
.course-box .course-image .price del {
    text-decoration: line-through;
}

/* Body */
.course-box .course-details {
    padding: 16px 16px 14px;
    color: #1f2937;
}

.course-box .badge.badge-primary.text-11px {
    background-color: #eef2ff;
    color: #4f46e5;
    border-radius: 6px;
    border: 0;
    font-weight: 600;
    font-size: .7rem;
    line-height: 1.2;
    padding: 4px 6px;
}

.course-box h5.title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    margin: 12px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

/* Rating */
.course-box .rating {
    font-size: .8rem;
    line-height: 1.4;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}
.course-box .rating i.fas.fa-star.filled {
    color: #facc15;
    margin-right: 2px;
    font-size: .8rem;
}
.course-box .rating i.fas.fa-star:not(.filled) {
    color: #d1d5db;
    margin-right: 2px;
    font-size: .8rem;
}
.course-box .rating .text-dark.ms-1.text-12px {
    font-weight: 600;
    color: #111827 !important;
}
.course-box .rating .text-dark.text-12px.text-muted.ms-2 {
    color: #6b7280 !important;
    font-weight: 400;
}

/* fila instructor / comparar */
.course-box .btn-compare-sm {
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1f2937;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all .15s ease;
}
.course-box .btn-compare-sm i {
    font-size: .7rem;
}
.course-box .btn-compare-sm:hover {
    background: #e5e7eb;
}

/* avatar profe */
.course-box .floating-user img {
    width: 32px !important;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* duracion / lecciones */
.course-box .w-100.d-flex.text-dark.border-top.py-1 {
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    color: #4b5563 !important;
    font-size: .8rem;
    line-height: 1.4;
    margin-top: 14px;
}
.course-box .w-100.d-flex .text-muted.text-12px {
    color: #4b5563 !important;
    font-size: .8rem;
}
.course-box .text-danger.far.fa-clock.text-14px,
.course-box .text-primary.far.fa-list-alt.text-14px {
    color: #1f5cd6 !important;
    font-size: .8rem;
    margin-right: 6px;
}

/* =========== POPOVER =========== */
.webui-popover {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 32px 64px rgba(0,0,0,0.15) !important;
    background: #ffffff !important;
    max-width: 340px;
    color: #1f2937;
    padding: 0 !important;
    font-family: inherit;
}
.webui-popover-inner {
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff !important;
    padding: 16px !important;
}
.course-popover-content .last-updated {
    font-size: .7rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
}
.course-popover-content .course-title a {
    color: #111827;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.course-popover-content .course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .75rem;
    line-height: 1.4;
    color: #4b5563;
    margin-bottom: 10px;
}
.course-popover-content .course-meta span i {
    color: #1f5cd6;
    margin-right: 4px;
}
.course-popover-content .course-subtitle {
    font-size: .8rem;
    line-height: 1.4;
    color: #374151;
    margin-bottom: 12px;
}
.course-popover-content .what-will-learn ul {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
}
.course-popover-content .what-will-learn li {
    position: relative;
    padding-left: 20px;
    font-size: .75rem;
    line-height: 1.4;
    color: #374151;
    margin-bottom: 6px;
}
.course-popover-content .what-will-learn li::before {
    content: "✔";
    font-size: .7rem;
    font-weight: 600;
    color: #10b981;
    position: absolute;
    left: 0;
    top: 2px;
}
.course-popover-content .popover-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.course-popover-content .btn.green,
.course-popover-content .btn.red,
.course-popover-content .purchased a {
    border-radius: 8px !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    min-height: unset !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.12) !important;
}
.course-popover-content .btn.green {
    background: #10b981 !important;
    color: #fff !important;
}
.course-popover-content .btn.red {
    background: #1f5cd6 !important; /* tu azul en vez de rojo chillón */
    color: #fff !important;
}
.course-popover-content .purchased a {
    display: inline-block;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
}
.course-popover-content .wishlist-btn,
.course-popover-content .buy-as-gift-btn {
    background: #f9fafb;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .8rem;
    line-height: 1.2;
    cursor: pointer;
    color: #1f2937;
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}
.course-popover-content .wishlist-btn.active {
    color: #e11d48;
}
.course-popover-content .wishlist-btn i,
.course-popover-content .buy-as-gift-btn i {
    margin-right: 4px;
    font-size: .8rem;
    color: inherit;
}


/* ===== HEADER: links SIEMPRE blancos ===== */
.header .nav-link,
.navbar .nav-link,
.menu-area .nav-link,
.top-header .nav-link {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Iconos dentro de los links del header */
.header .nav-link i,
.navbar .nav-link i,
.header .nav-link .fas,
.header .nav-link .far,
.header .nav-link .fab {
  color: #fff !important;
}

/* Estados hover/focus/active sin gris */
.header .nav-link:hover,
.navbar .nav-link:hover,
.header .nav-link:focus,
.navbar .nav-link:focus,
.header .nav-item.active > .nav-link,
.navbar .nav-link.active {
  color: #fff !important;
  opacity: 0.95; /* leve feedback sin cambiar color */
}

/* Si el header aplica un color gris por defecto a todos los <a>, lo neutralizamos */
.header a,
.top-header a,
.navbar a {
  color: #fff !important;
}

/* ===== Botón "Iniciar sesión" (o similares) ===== */
/* Ajustá los selectores a tu HTML real: .login-btn / .btn-login / .btn-sign-in */
a.login-btn,
.btn-login,
.header a.btn,
.header .btn-login {
  background-color: #0b5ed7 !important; /* azul pleno */
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  transition: transform .15s ease, background-color .15s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,.10);
}

/* Hover sutil (sin gradientes) */
a.login-btn:hover,
.btn-login:hover,
.header a.btn:hover,
.header .btn-login:hover {
  background-color: #0949aa !important; /* un tono +oscuro del azul */
  color: #fff !important;
  transform: translateY(-1px) scale(1.03);
}

/* ===== Menú móvil / offcanvas (si lo usan) ===== */
.offcanvas .nav-link,
.offcanvas .navbar-nav .nav-link {
  color: #fff !important;
}
.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus,
.offcanvas .nav-link.active {
  color: #fff !important;
  opacity: 0.95;
}

/* Evitar que Bootstrap reimponga grises por variables/hover */
.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: #fff !important;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff !important;
  opacity: 0.95;
}