body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0a10; /* Very dark background */
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(to right, #2a2a4a, #1e1e3a); /* Dark gradient for the header */
    padding: 25px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px; /* Pill shape */
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    max-width: 700px; /* Limit width of the pill */
    width: 90%;
}


.navbar a {
    color: #bbd0ff;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: white;
}

.main-content-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px; /* Add some horizontal padding */
}

/* Combined Hero, Details, and Payment Sections */
.curso-hero-section, .curso-detalles-pago-section {
    background: #1e1e2d; /* Dark background for content blocks */
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.curso-hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .curso-hero-section {
        grid-template-columns: 1fr 1fr;
    }
}

.curso-hero-left {
    text-align: left;
}

.curso-hero-right {
    text-align: center;
    position: relative; /* Needed for absolute positioning of price badge */
}

.curso-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.curso-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #4a4a6b;
    color: #d0d0ff;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.curso-hero-title {
    font-size: 2.5rem;
    margin: 15px 0 10px;
    color: #f0f0f0;
}

.curso-actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary, .btn-secondary, .btn-pago {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary, .btn-pago {
    background: #007bff;
    color: white;
}

.btn-primary:hover, .btn-pago:hover {
    background: #006ae6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.curso-price-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #66ff99;
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: bold;
    border: 2px solid #66ff99;
    font-size: 1.2rem;
}

/* Combined Details and Payment Section Styles */
.curso-detalles-pago-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detalles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detalles-card {
    background: #2a2a3e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #3a3a4e;
    transition: transform 0.2s ease;
}

.detalles-card:hover {
    transform: translateY(-5px);
}

.detalles-card h3 {
    margin-top: 0;
    color: #bbd0ff;
}

.detalle-item {
    margin-bottom: 8px;
}

.detalle-label {
    font-weight: bold;
    color: #c0c0d0;
}

/* Payment Section Styles */
.pago-section {
    background: #2a2a3e;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pago-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .pago-content {
        grid-template-columns: 1fr 1fr;
    }
}

.pago-info h2 {
    font-size: 1.8rem;
    margin-top: 0;
    color: #f0f0f0;
}

.pago-info p {
    color: #b0b0c0;
    margin-bottom: 15px;
}

.methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: #1a1a2e;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #3a3a4e;
    color: #bbd0ff;
}

.pago-action {
    text-align: center;
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a2e;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.price-label {
    color: #c0c0d0;
}

.price-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #66ff99;
}

.pago-action p {
    text-align: center;
    color: #b0b0c0;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content-wrapper {
        padding: 0 15px;
    }
    .navbar {
        margin: 20px auto;
        border-radius: 20px;
    }
    .curso-hero-section, .curso-detalles-pago-section {
        padding: 20px;
    }
    .curso-hero-title {
        font-size: 2rem;
    }
    .curso-hero-image {
        border-radius: 10px;
    }
    .curso-price-badge {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 1rem;
    }
}