@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;800;900&display=swap');

:root {
    --escoli-primary: #5f2a84;
    --escoli-secondary: #8d63b8;
    --escoli-dark: #2f1a3d;
    --escoli-text: #4b4054;
    --escoli-muted: #81758d;
    --escoli-soft: #f8f4fc;
    --escoli-cream: #fdfaf6;
    --escoli-gold: #d8b26e;
    --white: #ffffff;
    --shadow-soft: 0 18px 40px rgba(77, 45, 110, 0.08);
    --shadow-medium: 0 24px 50px rgba(77, 45, 110, 0.14);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(222, 204, 244, 0.45), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 235, 205, 0.55), transparent 28%),
        linear-gradient(180deg, #fffdf9 0%, #fbf7f2 48%, #f8f4fc 100%);
    color: var(--escoli-text);
}

.course-detail-page {
    position: relative;
    padding: 56px 0 90px;
    overflow: hidden;
}

.detail-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    pointer-events: none;
}

.shape-a {
    width: 260px;
    height: 260px;
    background: rgba(160, 105, 214, .22);
    top: 60px;
    left: -80px;
}

.shape-b {
    width: 340px;
    height: 340px;
    background: rgba(255, 211, 135, .22);
    right: -120px;
    top: 260px;
}

.shape-c {
    width: 240px;
    height: 240px;
    background: rgba(191, 155, 245, .18);
    left: 18%;
    bottom: 80px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    text-decoration: none;
    color: var(--escoli-primary);
    font-weight: 700;
}

.course-hero-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(95, 42, 132, 0.08);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    margin-bottom: 34px;
}

.course-hero-image {
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
    background: #f4ecfb;
}

.course-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.course-kicker {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,242,230,0.95));
    border: 1px solid rgba(216, 178, 110, 0.30);
    color: #8a6531;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.course-hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    line-height: 1.05;
    color: var(--escoli-dark);
    font-weight: 900;
    letter-spacing: -1.3px;
}

.course-hero-text {
    margin: 0 0 20px;
    color: #3e2f4f;   /* más oscuro */
    font-size: 1.08rem;
    line-height: 1.9;
    font-weight: 500;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    background: #faf5ff;
    color: var(--escoli-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.course-price-box {
    margin-bottom: 26px;
}

.price-old {
    font-size: 1rem;
    color: #9c8fa8;
    text-decoration: line-through;
    margin-bottom: 6px;
    font-weight: 700;
}

.price-main {
    font-size: 2.3rem;
    line-height: 1.05;
    color: var(--escoli-primary);
    font-weight: 900;
}

.price-usd {
    margin-top: 6px;
    color: var(--escoli-muted);
    font-weight: 700;
}

.course-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-main {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    text-decoration: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    transition: all .3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #5f2a84, #7b4aa5);
    color: white;
    box-shadow: 0 14px 28px rgba(95, 42, 132, 0.22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(95, 42, 132, 0.28);
}

.btn-secondary {
    background: rgba(255,255,255,0.9);
    color: var(--escoli-primary);
    border: 1px solid rgba(95, 42, 132, 0.14);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 340px;
    gap: 26px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.detail-card,
.sidebar-card {
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(95, 42, 132, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.detail-card h2,
.sidebar-card h3 {
    margin: 0 0 18px;
    color: var(--escoli-dark);
    font-weight: 900;
    letter-spacing: -.7px;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    line-height: 1.15;
}

.detail-card p {
    color: #433653;
    font-size: 1.05rem;
    line-height: 1.6; /* 👈 BAJA ESTO */
    font-weight: 500;
    letter-spacing: 0.1px;
    margin: 0 0 12px; /* 👈 MENOS ESPACIO */
}

.detail-card p:last-child {
    margin-bottom: 0;
}

.bullet-list {
    display: grid;
    gap: 16px;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #554a65;
    line-height: 1.85;
    font-size: 1.05rem;
    font-weight: 500;
}

.bullet-item i {
    color: var(--escoli-gold);
    margin-top: 5px;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-box {
    background: linear-gradient(135deg, #fff, #faf5ff);
    border: 1px solid rgba(95, 42, 132, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.feature-box i {
    font-size: 1.2rem;
    color: var(--escoli-primary);
    margin-bottom: 12px;
}

.feature-box h3 {
    margin: 0 0 8px;
    color: var(--escoli-dark);
    font-size: 1.05rem;
}

.feature-box p {
    margin: 0;
    color: #5f5371;
    line-height: 1.75;
    font-size: 1rem;
    font-weight: 500;
}

.video-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #000;
}

.video-box video {
    width: 100%;
    display: block;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(95,42,132,0.95), rgba(123,74,165,0.90));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

.highlight-card h2,
.highlight-card p {
    color: #fff;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 110px;
}

.sidebar-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--escoli-primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.sidebar-price {
    font-size: 2rem;
    line-height: 1.05;
    color: var(--escoli-primary);
    font-weight: 900;
    margin-bottom: 6px;
}

.sidebar-price-usd {
    color: var(--escoli-muted);
    font-weight: 700;
    margin-bottom: 18px;
}

.full-btn {
    width: 100%;
}

.mini-list {
    display: grid;
    gap: 14px;
    color: #554a65;
    line-height: 1.8;
    font-size: 1.02rem;
    font-weight: 500;
}

.mini-list div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mini-list i {
    color: var(--escoli-gold);
    margin-top: 5px;
}

.success {
    background: linear-gradient(135deg, #2f9e44, #40c057) !important;
    color: #fff !important;
}

.error {
    background: linear-gradient(135deg, #d94841, #fa5252) !important;
    color: #fff !important;
}

/* ETAPAS */
.etapas-lista {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    counter-reset: etapa;
}

.etapa-item {
    position: relative;
    padding: 22px 24px 22px 78px;
    background: linear-gradient(135deg, #faf6ff 0%, #fffdfd 100%);
    border: 1px solid rgba(95, 42, 132, 0.10);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(95, 42, 132, 0.06);
}

.etapa-item::before {
    content: counter(etapa);
    counter-increment: etapa;
    position: absolute;
    left: 22px;
    top: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f2a84, #7b4aa5);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(95, 42, 132, 0.20);
}

.etapa-item strong {
    display: block;
    color: var(--escoli-gold);
    font-weight: 800;
    font-size: 1.18rem;
    line-height: 1.45;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.etapa-item p {
    margin: 0;
    color: #5b4f70;
    font-size: 1.03rem;
    line-height: 1.85;
    font-weight: 500;
}

/* CIERRE FINAL */
.detalle-cierre {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f1ff 0%, #fff8f1 100%);
    border: 1px solid rgba(95, 42, 132, 0.10);
    box-shadow: 0 10px 24px rgba(95, 42, 132, 0.05);
}

.detalle-cierre p {
    margin-bottom: 12px;
    color: #402f52;
    font-size: 1.08rem;
    line-height: 1.9;
    font-weight: 600;
}

.detalle-cierre p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .course-hero-card,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .course-detail-page {
        padding: 34px 0 70px;
    }

    .course-hero-card,
    .detail-card,
    .sidebar-card {
        padding: 18px;
        border-radius: 22px;
    }

    .course-hero-image,
    .course-hero-image img {
        min-height: 300px;
    }

    .course-hero-content h1 {
        font-size: 2.2rem;
    }

    .course-hero-actions {
        flex-direction: column;
    }

    .btn-main {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .detail-card h2,
    .sidebar-card h3 {
        font-size: 1.5rem;
    }

    .detail-card p,
    .etapa-item p,
    .detalle-cierre p,
    .bullet-item,
    .mini-list {
        font-size: 1rem;
    }

    .etapa-item {
        padding: 18px 18px 18px 68px;
    }

    .etapa-item::before {
        left: 18px;
        top: 18px;
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
}
.course-hero-text {
    margin: 0 0 20px;
    color: #4b4054;   /* más oscuro */
    font-size: 1.08rem;
    line-height: 1.9;
    font-weight: 500;
}
.frase-destacada{
    display: inline;
    color: var(--escoli-gold);
    font-weight: 800;
    font-size: 1.05em;
}
.detail-card {
    background: linear-gradient(145deg, #ffffff, #f6f0fb);
    border: 1px solid rgba(95, 42, 132, 0.10);
    box-shadow: 0 20px 40px rgba(95, 42, 132, 0.08);
}
.frase-cursiva{
    font-style: italic;
    color: #5b4f70;
    display: block;
    margin: 10px 0;
}