@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ══════════════════════════════════════════════════════
   VARIABLES — Paleta CorpoSabana 2025
══════════════════════════════════════════════════════ */
:root {
    --teal:        #0B7C80;
    --teal-light:  #18BCC2;
    --orange:      #FF6600;
    --yellow:      #F9BE00;
    --green-wa:    #25D366;
    --bg-dark:     #080d1a;
    --bg-card:     rgba(255, 255, 255, 0.05);
    --bg-card-h:   rgba(255, 255, 255, 0.09);
    --border:      rgba(255, 255, 255, 0.09);
    --border-teal: rgba(24, 188, 194, 0.3);
    --text:        #f1f5f9;
    --text-muted:  rgba(255, 255, 255, 0.62);
    --shadow:      0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-teal: 0 8px 32px rgba(11, 124, 128, 0.35);
    --r-sm:  10px;
    --r-md:  16px;
    --r-lg:  22px;
    --r-xl:  32px;
    --r-pill:50px;
}

/* ══════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 0%,   rgba(11,124,128,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(24,188,194,.12) 0%, transparent 55%);
    background-attachment: fixed;
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════════
   CONTAINER — escalado para 133 %
══════════════════════════════════════════════════════ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ══════════════════════════════════════════════════════
   HEADER BANNER
══════════════════════════════════════════════════════ */
.premium-header {
    background: linear-gradient(135deg, #060b18 0%, #0d1a2e 60%, #0a1520 100%);
    padding: 1.6rem 1.25rem 2.2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-teal);
}

.premium-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(11,124,128,.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(24,188,194,.12) 0%, transparent 50%);
    pointer-events: none;
}

.premium-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal-light), var(--orange), var(--teal-light), transparent);
}

.premium-title {
    font-size: clamp(1rem, 2.5vw, 1.55rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.2;
    color: #fff;
    position: relative;
}

.premium-title .text-warning { color: var(--yellow) !important; }

/* ══════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════ */
.hero-section {
    padding: 2rem 0 1.5rem;
}

.hero-section h1 {
    font-size: clamp(1.35rem, 3.5vw, 1.95rem);
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--yellow) 0%, #ffd566 60%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .4rem;
}

.hero-section p.text-white {
    color: var(--text-muted) !important;
    font-size: .97rem;
    margin-bottom: 1.5rem;
}

/* Imagen hero */
.hero-section img.img-fluid {
    border-radius: var(--r-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px var(--border);
    max-width: 92%;
}

/* "Te enseñamos a" */
.hero-section .learning-section h3.learning-title,
.hero-section h3.text-warning {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--yellow) !important;
    -webkit-text-fill-color: var(--yellow);
}

/* ══════════════════════════════════════════════════════
   BOTÓN WHATSAPP
══════════════════════════════════════════════════════ */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    background: linear-gradient(135deg, #1db954, #128C7E);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(.9rem, 2.2vw, 1.05rem);
    font-weight: 800;
    text-decoration: none;
    padding: .9rem 2rem;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 24px rgba(37,211,102,.35);
    transition: transform .2s, box-shadow .2s, opacity .2s;
    margin: 1.25rem auto;
    width: fit-content;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::after { display: none; }

.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 32px rgba(37,211,102,.5);
    color: #fff;
    text-decoration: none;
    opacity: .95;
}

.whatsapp-btn:hover::before { opacity: 1; }

.whatsapp-btn img {
    width: clamp(28px, 4vw, 36px);
    height: auto;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════════════ */
.countdown-container {
    background: linear-gradient(135deg, rgba(11,124,128,.18), rgba(24,188,194,.08));
    border: 1px solid var(--border-teal);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.25rem;
    margin: 1.25rem auto;
    max-width: 100%;
    box-shadow: var(--shadow-teal);
    backdrop-filter: blur(8px);
}

.countdown-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 800;
    color: var(--teal-light);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.countdown-box {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .75rem .5rem;
    flex: 1 1 60px;
    min-width: 60px;
    max-width: 90px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.countdown-number {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: .2rem;
}

.countdown-label {
    font-size: .62rem;
    font-weight: 700;
    color: var(--teal-light);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* Fecha debajo del countdown */
.countdown-container .text-center.mt-4 h4 {
    font-size: clamp(.9rem, 2vw, 1.05rem);
    font-weight: 700;
    color: var(--text);
}

/* ══════════════════════════════════════════════════════
   SECCIONES DE CONTENIDO (learning-section)
══════════════════════════════════════════════════════ */
.learning-section {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--r-lg);
    padding: 1.6rem 1.35rem;
    margin: 1.1rem 0;
    backdrop-filter: blur(8px);
    transition: border-color .2s;
}

.learning-section:hover {
    border-color: var(--border-teal);
}

.learning-title {
    font-size: clamp(1.05rem, 2.8vw, 1.3rem);
    font-weight: 800;
    color: var(--yellow);
    text-align: center;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

/* ══════════════════════════════════════════════════════
   FEATURE ITEMS (módulos, objetivos, etc.)
══════════════════════════════════════════════════════ */
.feature-list {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: var(--r-md);
    padding: .85rem 1rem;
    transition: background .18s, border-color .18s, transform .18s;
}

.feature-item:hover {
    background: var(--bg-card-h);
    border-left-color: var(--teal-light);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.15rem;
    color: var(--teal-light);
    background: rgba(24,188,194,.12);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text {
    font-size: .92rem;
    color: var(--text);
    margin: 0;
    line-height: 1.55;
    flex: 1;
}

/* ══════════════════════════════════════════════════════
   DETALLES DEL DIPLOMADO (certificate_course_info)
══════════════════════════════════════════════════════ */
.learning-section .row .feature-item strong {
    color: var(--teal-light);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: .2rem;
}

/* ══════════════════════════════════════════════════════
   "Para participar" CTA — sincrónico
══════════════════════════════════════════════════════ */
.text-warning.p-3.rounded.border-warning {
    background: rgba(249,190,0,.1) !important;
    border-color: rgba(249,190,0,.4) !important;
    border-radius: var(--r-md) !important;
    font-size: .97rem !important;
    font-weight: 700 !important;
    color: var(--yellow) !important;
    padding: .7rem 1.25rem !important;
    display: inline-block;
}


/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

/* ══════════════════════════════════════════════════════
   ANIMACIONES — suaves y profesionales
══════════════════════════════════════════════════════ */
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.35); }
    50%       { box-shadow: 0 8px 32px rgba(37,211,102,.55); }
}

.whatsapp-btn { animation: whatsappPulse 2.5s ease-in-out infinite; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate__fadeInUp { animation: fadeUp .55s ease both; }

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .92; }
}

.premium-title { animation: titlePulse 3s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .hero-section img.img-fluid { max-width: 100%; }

    .feature-item { flex-direction: row; }

    .feature-icon.d-none { display: none !important; }

    .countdown-container { padding: 1.1rem .85rem; }

    .countdown-box { min-width: 52px; padding: .6rem .35rem; }

    .whatsapp-btn { width: 92%; padding: .85rem 1.25rem; }

    .learning-section { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
    .hero-section h1 { font-size: 1.25rem; }
    .countdown-number { font-size: 1.25rem; }
}

/* ══════════════════════════════════════════════════════
   TE ENSEÑAMOS A
══════════════════════════════════════════════════════ */
.te-ensenamos {
    margin: 1.75rem 0 1.25rem;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-teal), var(--shadow-teal);
}

.te-ensenamos-label {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.te-ensenamos-body {
    background: rgba(11,124,128,.1);
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem;
    font-size: .97rem;
    color: var(--text);
    line-height: 1.75;
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   DETALLES DEL DIPLOMADO — chips horizontales
══════════════════════════════════════════════════════ */
.dip-info-section {
    padding: 1.6rem 0 .5rem;
}

.dip-info-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 800;
    color: var(--teal-light);
    text-align: center;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.dip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
}

.dip-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .85rem 1.1rem;
    min-width: 110px;
    transition: background .18s, border-color .18s, transform .18s;
}

.dip-chip:hover {
    background: rgba(24,188,194,.1);
    border-color: var(--border-teal);
    transform: translateY(-3px);
}

.dip-chip-icon {
    font-size: 1.25rem;
    color: var(--teal-light);
    background: rgba(24,188,194,.12);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.dip-chip-label {
    font-size: .67rem;
    font-weight: 700;
    color: var(--teal-light);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dip-chip-val {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   MÓDULOS — lista numerada moderna
══════════════════════════════════════════════════════ */
.mod-section {
    padding: 1.6rem 0;
}

.mod-title {
    font-size: clamp(1.1rem, 2.8vw, 1.35rem);
    font-weight: 800;
    color: var(--yellow);
    text-align: center;
    margin-bottom: .5rem;
}

.mod-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 1.35rem;
    line-height: 1.6;
}

.mod-free { color: var(--teal-light); font-weight: 700; }
.mod-opt  { color: var(--yellow); font-weight: 700; }

.mod-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.mod-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .9rem 1.1rem;
    transition: background .18s, border-color .18s, transform .18s;
}

.mod-item:hover {
    background: rgba(24,188,194,.08);
    border-color: var(--border-teal);
    transform: translateX(5px);
}

.mod-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(11,124,128,.35);
}

.mod-body { flex: 1; min-width: 0; }

.mod-label {
    font-size: .68rem;
    font-weight: 700;
    color: var(--teal-light);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .1rem;
}

.mod-nombre {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════
   SECCIONES APRENDIZAJE — learn-card
══════════════════════════════════════════════════════ */
.learn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin: 1.1rem 0;
}

@media (max-width: 767px) {
    .learn-grid { grid-template-columns: 1fr; }
}

.learn-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--r-lg);
    padding: 1.35rem 1.1rem;
}

.learn-card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.learn-card-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(24,188,194,.15);
    color: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.learn-card-icon--orange { background: rgba(255,102,0,.15); color: var(--orange); }
.learn-card-icon--yellow { background: rgba(249,190,0,.15); color: var(--yellow); }

.learn-card-title {
    font-size: clamp(.95rem, 2.2vw, 1.1rem);
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.learn-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.learn-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: .35rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.learn-item:last-child { border-bottom: none; }

.learn-item i {
    color: var(--teal-light);
    font-size: .75rem;
    margin-top: .2rem;
    flex-shrink: 0;
}

.learn-item--orange i { color: var(--orange); }
.learn-item--yellow i { color: var(--yellow); }

/* ¿Para quién? */
.forquien-section {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.35rem 1.1rem;
    margin: .85rem 0 1.5rem;
}

.forquien-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .55rem;
}

.forquien-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: var(--text-muted);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .55rem .8rem;
}

.forquien-item i {
    color: var(--teal-light);
    font-size: .82rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   CTA INSCRIPCIÓN / ASINCRÓNICO / PRÓXIMAMENTE
══════════════════════════════════════════════════════ */
.insc-cta-wrap {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.insc-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(11,124,128,.25), rgba(24,188,194,.15));
    border: 1px solid var(--border-teal);
    color: var(--teal-light);
    font-weight: 700;
    font-size: .92rem;
    padding: .45rem 1.15rem;
    border-radius: var(--r-pill);
    margin-bottom: .85rem;
    letter-spacing: .02em;
}

.insc-pronto {
    display: inline-block;
    background: rgba(249,190,0,.1);
    border: 1px solid rgba(249,190,0,.35);
    color: var(--yellow);
    font-weight: 700;
    font-size: .92rem;
    padding: .45rem 1.15rem;
    border-radius: var(--r-pill);
    margin-bottom: .85rem;
}

.insc-sub {
    color: var(--text-muted);
    font-size: .93rem;
    margin-bottom: 1.35rem;
    line-height: 1.6;
}

.insc-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(135deg, #0B7C80, #18BCC2);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .97rem;
    font-weight: 800;
    text-decoration: none;
    padding: .85rem 2.25rem;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 24px rgba(11,124,128,.4);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: .01em;
}

.insc-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 32px rgba(11,124,128,.55);
    color: #fff;
    text-decoration: none;
}

.insc-btn-wa {
    background: linear-gradient(135deg, #1db954, #128C7E);
    box-shadow: 0 6px 24px rgba(37,211,102,.35);
}

.insc-btn-wa:hover {
    box-shadow: 0 10px 32px rgba(37,211,102,.5);
}

.insc-help {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: .88rem;
}

.insc-help-link {
    color: var(--green-wa);
    font-weight: 700;
    text-decoration: none;
}

.insc-help-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   OVERRIDES PUNTUALES sobre Bootstrap 5
══════════════════════════════════════════════════════ */
/* Bootstrap .text-white aplica color:white; forzamos nuestro text color */
.text-white { color: var(--text) !important; }

/* display-5 / display-6 de Bootstrap son muy grandes — los escalan para 133% */
.display-5 { font-size: clamp(1.1rem, 3vw, 1.4rem)  !important; }
.display-6 { font-size: clamp(.95rem, 2.5vw, 1.15rem) !important; }

/* img-fluid en hero ocupa el ancho del container */
.hero-section .img-fluid { max-width: 92%; margin: 0 auto; }
