/* Global Styles */
:root {
    --negro: #000000;
    --turquesa: #03cbc5;
    --gris-oscuro: #414545;
    --rojo: #f8415b;
    --gris-profundo: #192121;
    
    /* Primary colors using your scheme */
    --primary-color: var(--turquesa);
    --secondary-color: var(--rojo);
    --accent-color: var(--gris-oscuro);
    --dark-color: var(--negro);
    --light-color: #f8f9fa;
    --white: #ffffff;
    
    /* Additional complementary colors */
    --light-turquesa: #4dd4cf;
    --dark-turquesa: #02a8a3;
    --light-gray: #000000;
    --medium-gray: #6c757d;
    
    /* Gradients using your colors */
    --gradient-primary: linear-gradient(135deg, var(--turquesa) 0%, var(--light-turquesa) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--rojo) 0%, #ff6b7a 100%);
    --gradient-hero: linear-gradient(135deg, var(--gris-profundo) 0%, var(--gris-oscuro) 100%);
    --gradient-navbar: linear-gradient(135deg, var(--negro) 0%, var(--gris-profundo) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Header Styles */
.navbar {
    background: var(--gradient-navbar) !important;
    position: relative !important;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/edificiosmitad.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.navbar-brand {
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    line-height: 1;
}

.logo-number {
    font-size: 1rem;
    font-weight: bold;
    color: var(--turquesa);
    margin-top: -5px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--white) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    position: relative;
    z-index: 2;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--turquesa) !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive navbar adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo img {
        height: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .about-logo-img {
        max-width: 200px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hero Carousel Section */
.hero-section {
    margin-top: 0;
    min-height: 80vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.carousel-content {
    padding: 3rem 0;
    color: var(--white);
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-height: 180px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
}

.carousel-dates {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-date-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.carousel-date-item:last-child {
    margin-bottom: 0;
}

.carousel-date-item i {
    margin-right: 0.5rem;
    color: var(--turquesa);
    width: 16px;
}

.carousel-course-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--turquesa);
}

.relator-info {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.relator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid var(--white);
}

.relator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relator-details h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.relator-details p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-actions {
    margin-top: 2rem;
}

.carousel-actions .btn {
    margin-right: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel-image img {
    max-width: 100%;
    max-height: 40vh;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
}

/* Carousel Controls */
.carousel-indicators {
    bottom: 40px;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button:hover {
    background-color: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.carousel-indicators button.active {
    background-color: var(--white);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
}

.about-section {
    background: var(--white);
    margin-top: 80px;
}

.about-content {
    padding: 2rem 0;
}

.about-logo {
    text-align: center;
}

.about-logo-img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.about-logo-img:hover {
    transform: scale(1.05);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gris-oscuro);
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Section */
.services-section {
    background: var(--light-color);
}

/* Services Overview Section */
.services-overview {
    background: var(--white);
}

.service-overview-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-gray);
}

.service-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Detailed Services Section */
.detailed-services {
    background: var(--light-color);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary) !important;
}

/* Clients Section */
.clients-section {
    background: var(--white);
}

.client-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.client-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.client-link:hover {
    text-decoration: none;
    color: inherit;
}

.client-logo {
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-card:hover .client-logo img {
    filter: grayscale(0%);
}

.client-placeholder {
    height: 80px;
    width: 100%;
    background: var(--light-gray);
    border-radius: 10px;
    color: var(--medium-gray);
}

.client-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.client-info p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
    line-height: 1.4;
}

.no-clients {
    padding: 3rem;
    color: var(--medium-gray);
}

.no-clients i {
    margin-bottom: 1rem;
    color: var(--light-gray);
}

/* Responsive para clientes */
@media (max-width: 768px) {
    .client-card {
        padding: 1.5rem;
    }
    
    .client-logo {
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .client-info h5 {
        font-size: 1rem;
    }
    
    .client-info p {
        font-size: 0.8rem;
    }
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-image {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gris-oscuro);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Courses Section */
.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.course-content p {
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-relator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--light-color);
    border-radius: 10px;
}

.relator-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    object-fit: cover;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* News Section */
.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-date i {
    margin-right: 0.5rem;
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.news-content p {
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer-logo .logo-text {
    color: var(--turquesa);
}

.footer-logo .logo-number {
    color: var(--rojo);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: var(--rojo);
    color: var(--white);
}

/* Pragma Logo */
.pragma-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.pragma-logo-img {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pragma-logo-img:hover {
    opacity: 1;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--rojo);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gris-profundo);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: var(--rojo);
    border: none;
    color: var(--white);
}

.btn-outline-primary:hover {
    background: var(--gris-profundo);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 45vh;
    }
    
    .carousel-content {
        padding: 2rem 0;
        min-height: calc(45vh - 80px);
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .relator-info {
        flex-direction: column;
        text-align: center;
    }
    
    .relator-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .pragma-logo {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .pragma-logo-img {
        height: 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-actions .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .carousel-image img {
        max-height: 30vh;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .carousel-content {
        padding: 1.5rem 0;
        min-height: calc(40vh - 80px);
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
    
    .service-card,
    .course-card,
    .news-card {
        margin-bottom: 1rem;
    }
    
    .carousel-image img {
        max-height: 25vh;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Course Details Page - Comprehensive styling for individual course pages */
.course-details {
    background-color: var(--light-color);
}

.course-title {
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.course-meta {
    margin-bottom: 1rem;
}

.course-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.course-main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.course-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.relator-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.relator-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.relator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.relator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relator-details h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.relator-bio {
    font-size: 0.9rem;
    color: var(--gris-oscuro);
    margin-top: 0.5rem;
}

/* Estilos minimalistas para precio y contacto con tabla */
.price-table {
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.price-table td {
    padding: 0.75rem;
    border: none;
    text-align: center;
    vertical-align: middle;
}

.price-title-cell {
    background: var(--light-color);
    border-bottom: 1px solid var(--light-gray);
}

.price-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    text-align: center;
}

.price-value-cell {
    padding: 1rem 0.75rem;
}

.price-contact-cell {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--light-gray);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.price-custom {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gris-oscuro);
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: 20px;
    border: 2px solid var(--gris-oscuro);
}

.contact-section {
    margin-top: 1rem;
}

.btn-contact {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-contact:hover {
    background: var(--gris-profundo);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-contact i {
    margin-right: 0.5rem;
}

.price-info {
    text-align: center;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.action-buttons .btn {
    margin-bottom: 0.5rem;
}

.course-details-info {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.course-details-info ul li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.course-details-info ul li:last-child {
    border-bottom: none;
}

.program-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.related-courses {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-courses h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.related-courses .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-courses .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-courses .course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.related-courses .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark-color);
}

/* Contenedor común para alinear las tablas */
.course-actions .table-responsive {
    width: 100%;
    margin: 0 auto;
}

/* Estilos específicos para la tabla de relatores en curso.php */
.relator-table {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.relator-table td {
    padding: 0.5rem;
    border: none;
    vertical-align: top;
}

.relator-table .relator-image-cell {
    width: 200px;
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.relator-table .relator-image-cell img {
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.relator-table .relator-name-cell {
    text-align: center;
    padding: 0.5rem;
}

.relator-table .relator-name-cell h5 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.relator-table .relator-name-cell p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

.relator-table .relator-bio-cell {
    padding: 0.5rem;
    text-align: left;
}

.relator-table .relator-bio {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.relator-table .relator-bio-actions {
    text-align: center;
}

.relator-table .relator-bio-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Responsive design adjustments for course details page */
@media (max-width: 768px) {
    .course-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .relator-info {
        flex-direction: column;
        text-align: center;
    }
    
    .relator-avatar {
        margin: 0 auto 1rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    /* Ajustes específicos para la tabla de relatores en móvil */
    .relator-table {
        font-size: 0.9rem;
    }
    
    .relator-table .relator-image-cell {
        width: 150px;
        padding: 0.5rem 0.25rem;
    }
    
    .relator-table .relator-image-cell img {
        max-width: 80px;
        margin-bottom: 0.25rem;
    }
    
    .relator-table .relator-name-cell {
        padding: 0.25rem;
    }
    
    .relator-table .relator-name-cell h5 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .relator-table .relator-name-cell p {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .relator-table .relator-bio-cell {
        padding: 0.25rem;
    }
    
    .relator-table .relator-bio {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .relator-table .relator-bio-actions .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .relator-table .relator-image-cell img {
        max-width: 60px;
    }
    
    .relator-table .relator-name-cell h5 {
        font-size: 0.9rem;
    }
    
    .relator-table .relator-name-cell p {
        font-size: 0.75rem;
    }
    
    .relator-table .relator-bio {
        font-size: 0.8rem;
    }
    
    /* Ajustes responsivos para la sección de precio con tabla */
    .price-table td {
        padding: 0.5rem;
    }
    
    .price-title {
        font-size: 1.1rem;
    }
    
    .price-value-cell {
        padding: 0.75rem 0.5rem;
    }
    
    .price-contact-cell {
        padding: 0.75rem 0.5rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
        padding: 0.4rem 0.8rem;
    }
    
    .price-custom {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-contact {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* News Page Styles */
.news-section {
    background-color: var(--light-color);
}

.news-article {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-header {
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 1rem;
}

.news-title {
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--gris-oscuro);
    font-size: 0.9rem;
}

.news-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.related-news-item {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

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

.related-news-item h6 a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.related-news-item h6 a:hover {
    color: var(--primary-color);
}

.quick-links ul li {
    margin-bottom: 0.5rem;
}

.quick-links ul li a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.quick-links ul li a:hover {
    color: var(--primary-color);
}

.social-sharing {
    border-top: 2px solid var(--light-color);
    padding-top: 2rem;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Responsive adjustments for news pages */
@media (max-width: 768px) {
    .news-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Placeholder styles for missing images */
.carousel-placeholder,
.course-placeholder,
.news-placeholder,
.service-placeholder {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-placeholder:hover,
.course-placeholder:hover,
.news-placeholder:hover,
.service-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.carousel-placeholder i,
.course-placeholder i,
.news-placeholder i,
.service-placeholder i {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-placeholder:hover i,
.course-placeholder:hover i,
.news-placeholder:hover i,
.service-placeholder:hover i {
    opacity: 1;
}

/* Mercado Pago Button Styles */
.mercadopago-section {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mercadopago-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.mercadopago-btn {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mercadopago-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mercadopago-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    color: var(--dark-color);
    min-height: 140px;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.mercadopago-logo {
    width: 200px;
    height: 100px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mercadopago-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    max-width: 200px;
    color: var(--gris-oscuro);
}

/* Responsive adjustments for Mercado Pago button */
@media (max-width: 768px) {
    .mercadopago-section {
        padding: 0.75rem;
    }
    
    .mercadopago-content {
        min-height: 120px;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .mercadopago-logo {
        width: 80px;
        height: 80px;
    }
    
    .mercadopago-text {
        font-size: 0.85rem;
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .mercadopago-logo {
        width: 70px;
        height: 70px;
    }
    
    .mercadopago-text {
        font-size: 0.8rem;
        max-width: 160px;
    }
}

/* ===== ESTILOS ESPECÍFICOS DEL CALENDARIO DE CURSOS ===== */

.calendar-header {
    background: linear-gradient(180deg, var(--light-gray), var(--turquesa));
    color: white;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.month-section {
    margin-bottom: 3rem;
}

.month-title {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid var(--turquesa);
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.course-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-image {
    height: 220px;
    background: linear-gradient(45deg, var(--turquesa), var(--rojo));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    flex-shrink: 0;
}

.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 6px;
    display: inline-block;
}

.course-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.course-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.course-relators {
    margin-bottom: 1rem;
}

.course-relator {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.badge-sm {
    font-size: 0.7em;
    margin-left: 5px;
}

.relator-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 0.75rem;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-primary {
    background: var(--rojo);
    border: 1px solid var(--rojo);
    color: var(--white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--gris-profundo);
    border-color: var(--gris-profundo);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-outline-primary {
    color: var(--rojo);
    border: 1px solid var(--rojo);
    background: transparent;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--rojo);
    border-color: var(--rojo);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Botones específicos para cursos */
.btn-warning {
    background: #ffc107;
    border: 1px solid #ffc107;
    color: #212529;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-info {
    background: #17a2b8;
    border: 1px solid #17a2b8;
    color: var(--white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-info:hover {
    background: #138496;
    border-color: #138496;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.no-courses {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-courses i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Estilos para el filtro */
.course-filter-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--turquesa);
}

.form-label {
    color: #2c3e50;
    font-weight: 600;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--turquesa);
    box-shadow: 0 0 0 0.2rem rgba(3, 203, 197, 0.25);
}

/* Animaciones para los cursos */
.course-card {
    transition: all 0.3s ease;
}

.course-card.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Estilos para las badges de categoría */
.badge.bg-primary {
    background: var(--turquesa) !important;
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.badge.bg-secondary {
    background: #6c757d !important;
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.badge.bg-warning {
    background: #ffc107 !important;
    color: #212529;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.badge.bg-info {
    background: #17a2b8 !important;
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Estilos para filtros combinados */
.course-filter-section .row {
    align-items: end;
}

.course-filter-section .form-select {
    margin-bottom: 0.5rem;
}

.course-filter-section .form-label {
    margin-bottom: 0.5rem;
}

/* Responsive para filtros */
@media (max-width: 768px) {
    .course-filter-section .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .course-filter-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .clear-filters-btn {
        top: 100px !important;
        right: 15px !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .filter-indicator {
        top: 70px !important;
        right: 15px !important;
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
    }
}

/* Animaciones mejoradas para reorganización */
.course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card.fade-in {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Estilos para indicar que se están reorganizando */
.course-card.reorganizing {
    transition: all 0.3s ease;
    transform: scale(0.95);
    opacity: 0.7;
}

/* Asegurar que las tarjetas ocultas no ocupen espacio */
.course-card[style*="display: none"] {
    display: none !important;
}

/* Mantener el layout de Bootstrap cuando se filtran las tarjetas */
.row .col-lg-4,
.row .col-md-6 {
    transition: all 0.3s ease;
}

/* Asegurar que las columnas vacías no afecten el layout */
.row .col-lg-4:empty,
.row .col-md-6:empty {
    display: none;
}

/* Animación para el indicador de filtros */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para el indicador de filtros */
.filter-indicator {
    animation: slideInRight 0.3s ease;
}

/* Estilos para el mensaje de no resultados */
.no-results-message {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
}

.no-results-message i {
    font-size: 2rem;
    color: var(--turquesa);
    margin-bottom: 1rem;
}

/* Mejorar la transición de las tarjetas al filtrar */
.course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.course-card[style*="display: block"] {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Animación para la reorganización de tarjetas */
.course-card.reorganizing {
    transition: all 0.3s ease;
    transform: scale(0.95);
    opacity: 0.7;
}

/* Efecto de entrada para las tarjetas filtradas */
.course-card.fade-in {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Asegurar que las columnas se reorganicen correctamente */
.row .col-lg-4,
.row .col-md-6 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    margin-bottom: 1.5rem;
}

/* Asegurar que las tarjetas de curso tengan la misma altura */
.row .col-lg-4 .course-card,
.row .col-md-6 .course-card {
    height: 100%;
}

/* Mejorar la visibilidad de las tarjetas reorganizadas */
.course-card {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card.reorganizing {
    opacity: 0.7;
    transform: scale(0.95);
}

.course-card.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Asegurar que las tarjetas ocultas no interfieran */
.course-card[style*="display: none"] {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
    position: absolute !important;
    visibility: hidden !important;
}

/* Estilos para los botones de limpiar filtros */
.btn-outline-secondary {
    border-color: var(--turquesa);
    color: var(--turquesa);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--turquesa);
    border-color: var(--turquesa);
    color: white;
    transform: translateY(-2px);
}

/* Botón flotante de limpiar filtros mejorado */
.clear-filters-btn {
    position: fixed !important;
    top: 120px !important;
    right: 20px !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-radius: 25px !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    background: var(--white) !important;
    border: 2px solid var(--turquesa) !important;
    color: var(--turquesa) !important;
    transition: all 0.3s ease !important;
}

.clear-filters-btn:hover {
    background: var(--turquesa) !important;
    color: var(--white) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

/* Estilos para el contenedor temporal de filtrado */
.temp-container {
    display: contents;
}

/* Asegurar que los filtros permanezcan visibles */
.course-filter-section {
    position: relative;
    z-index: 10;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--turquesa);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mejorar la transición de reorganización */
.course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card.reorganizing {
    opacity: 0.7;
    transform: scale(0.95);
}

.course-card.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* ===== ESTILOS ESPECÍFICOS DEL INDEX.PHP ===== */

/* Hero Section con fondo animado */
.hero-section {
    position: relative;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(108, 117, 125, 0.15), rgba(73, 80, 87, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(108, 117, 125, 0.2), rgba(73, 80, 87, 0.15));
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(134, 142, 150, 0.18), rgba(108, 117, 125, 0.12));
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(73, 80, 87, 0.25), rgba(52, 58, 64, 0.2));
}

.shape-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    background: linear-gradient(45deg, rgba(134, 142, 150, 0.15), rgba(108, 117, 125, 0.1));
}

.shape-5 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 60%;
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(52, 58, 64, 0.22), rgba(33, 37, 41, 0.18));
}

.shape-6 {
    width: 160px;
    height: 160px;
    top: 15%;
    right: 50%;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(108, 117, 125, 0.16), rgba(73, 80, 87, 0.12));
}

.shape-7 {
    width: 80px;
    height: 80px;
    bottom: 40%;
    right: 10%;
    animation-delay: 1.5s;
    background: linear-gradient(45deg, rgba(134, 142, 150, 0.2), rgba(108, 117, 125, 0.15));
}

.shape-8 {
    width: 140px;
    height: 140px;
    top: 45%;
    left: 5%;
    animation-delay: 2.5s;
    background: linear-gradient(45deg, rgba(33, 37, 41, 0.25), rgba(52, 58, 64, 0.2));
}

.shape-9 {
    width: 90px;
    height: 90px;
    bottom: 10%;
    right: 40%;
    animation-delay: 4.5s;
    background: linear-gradient(45deg, rgba(52, 58, 64, 0.3), rgba(33, 37, 41, 0.25));
}

.shape-10 {
    width: 170px;
    height: 170px;
    top: 5%;
    right: 5%;
    animation-delay: 3.5s;
    background: linear-gradient(45deg, rgba(73, 80, 87, 0.2), rgba(52, 58, 64, 0.15));
}

.shape-11 {
    width: 110px;
    height: 110px;
    top: 80%;
    left: 30%;
    animation-delay: 1.8s;
    background: linear-gradient(45deg, rgba(33, 37, 41, 0.28), rgba(52, 58, 64, 0.22));
}

.shape-12 {
    width: 130px;
    height: 130px;
    top: 25%;
    left: 70%;
    animation-delay: 5.5s;
    background: linear-gradient(45deg, rgba(52, 58, 64, 0.26), rgba(33, 37, 41, 0.2));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-25px) translateX(-5px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-10px) translateX(-15px) rotate(270deg);
        opacity: 0.5;
    }
}

.carousel-content {
    position: relative;
    z-index: 2;
}

.carousel-item {
    background: linear-gradient(135deg, rgba(94, 94, 94, 0.95), rgba(108, 131, 155, 0.95));
    backdrop-filter: blur(10px);
}

/* Estilos para la imagen principal de la sección About */
.about-main-image {
    width: 70% !important;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.2));
    position: relative;
    display: block;
    margin: 0 auto;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 15%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.05) 85%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Sección About con grilla de fondo */
.about-section {
    position: relative;
    background: white;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

/* ===== BOTONES DEL CARRUSEL MINIMALISTAS ===== */
.btn-carousel-magenta {
    background: var(--rojo);
    border: 1px solid var(--rojo);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-carousel-magenta:hover {
    background: var(--gris-profundo);
    border-color: var(--gris-profundo);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-carousel-cyan {
    background: var(--turquesa);
    border: 1px solid var(--turquesa);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-carousel-cyan:hover {
    background: var(--dark-turquesa);
    border-color: var(--dark-turquesa);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-actions {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .carousel-content {
        padding: 2rem 0;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
        max-height: 150px;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
    
    .carousel-dates,
    .carousel-course-info {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .carousel-date-item {
        font-size: 0.9rem;
    }
    
    .carousel-actions {
        flex-direction: column;
        gap: 1rem !important;
        margin-top: 1.5rem;
    }
    
    .btn-carousel-magenta,
    .btn-carousel-cyan {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .carousel-content {
        padding: 1.5rem 0;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
        max-height: 120px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    
    .carousel-dates,
    .carousel-course-info {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .carousel-date-item {
        font-size: 0.85rem;
    }
}