/* General Styles */
body {
    font-family: 'Fredoka', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    overflow-x: hidden;
}

h1 {
    font-weight: 700;
}

p {
    font-weight: 400;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    padding: 10px 20px;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-brand:active {
    color: #991006;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    background-color: black;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: auto;
    opacity: 0.4;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 15px;
    width: 100%;
}

.hero-text h1 {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
}

/* Course Level Section */
.course-level {
    margin: 40px 15px;
    padding: 20px 0;
}

.course-level h2 {
    font-weight: bold;
    text-align: center;
}

/* Enroll Button */
.enroll-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    justify-content: center;
}

/* Course Gallery */
.course-gallery {
    padding: 0 15px;
}

.course-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
    margin-bottom: 20px;
    margin-top: 30px;
}

.course-gallery img:hover {
    transform: scale(1.05);
}

/* Instructor Section */
.instructor-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 40px 20px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
}

.instructor-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.instructor-info {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.instructor-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.instructor-info p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .instructor-section {
        flex-direction: column;
    }

    .instructor-photo {
        width: 150px;
        height: 150px;
    }

    .instructor-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .instructor-info h3 {
        font-size: 1.5rem;
    }

    .instructor-info p {
        font-size: 1rem;
    }
}



/* Floating Buttons */
.floating-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #231941;
    color: white;
    width: 200px;
    height: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

.floating-button:hover {
    transform: scale(1.1);
    background-color: #e94470;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 9999;
}

.whatsapp-btn i {
    font-size: 20px;
    margin-right: 10px;
}



.badge-live,
.badge-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-progress {
    background-color: #3498db;
}

.card-body {
    padding: 10px;
}

.card-category {
    font-size: 14px;
    color: #888;
    margin: 0;
    text-transform: uppercase;
}

.card-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 10px 0;
}

.card-description {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
    line-height: 1.0;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.participants {
    display: flex;
    align-items: center;
}

.participants img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.more-participants {
    font-size: 12px;
    color: #555;
    margin-left: 8px;
}

.date {
    font-size: 12px;
    color: #888;
}

.card-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.start-free {
    background-color: #751414;
    color: white;
    transition: background-color 0.3s ease;
}

.start-free:hover {
    background-color: #751414;
    color: #ffffff;
}

@media (max-width: 768px) {
    .card-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.profesores-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.profesores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

@media (min-width: 992px) {
    .profesores-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.profesor-card {
    background: #fff;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}

.profesor-card img {
    width: 100%;
    height: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: block;
}

.profesor-info {
    padding: 20px;
}

.profesor-nombre {
    font-weight: bold;
    font-size: 1.5em;
    color: #333;
    margin: 10px 0 5px;
}

.profesor-especialidad {
    font-size: 1.1em;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.profesor-descripcion {
    font-size: 1em;
    color: #555;
}

.profesor-card:hover {
    transform: scale(1.05);
}

.ponente-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ponente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ponente-img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 15px;
}

.btn-detalles {
    background-color: #9b1006;
    color: #fff;
    transition: background-color 0.3s ease;
}

.btn-detalles:hover {
    background-color: #9b1006;
    color: #fff;
}


/* beneficios */

.benefit-box {
    width: 230px;
    height: 230px;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.benefit-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.icon-container,
.text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 90%;
}

.icon-container {
    font-size: 4rem;
    opacity: 1;
    z-index: 2;
}

.text-container {
    font-size: 0.95rem;
    opacity: 0;
    z-index: 1;
    line-height: 1.4;
    color: #333;
}

.benefit-box:hover .icon-container {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.benefit-box:hover .text-container {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
}

@media (max-width: 768px) {
    .benefit-box {
        width: 100%;
        height: auto;
        min-height: 180px;
    }

    .icon-container {
        font-size: 3rem;
    }

    .text-container {
        font-size: 0.9rem;
    }
}

/* Centrar la sección y ajustar el espaciado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .benefit-box {
        padding: 2rem 1rem;
    }

    .icon-container i {
        font-size: 4rem;
    }
}

/* Contenedor principal de beneficios */
.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Elementos individuales de beneficio */
.benefit-item {
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: 300px;
    text-align: center;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .benefit-item {
        flex: 1 1 calc(50% - 1.5rem);
    }
}

@media (max-width: 480px) {
    .benefit-item {
        flex: 1 1 100%;
    }
}


/* Footer */
.custom-footer {
    background-color: #991006;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.custom-footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .custom-footer .row {
        flex-direction: column;
        align-items: center;
    }
}