:root {
    --primary-color: #b3261e;        /* Rojo intenso principal */
    --primary-dark: #8a1c17;         /* Rojo oscuro profundo */
    --primary-light: #e65445;        /* Rojo más claro para acentos */

    --secondary-color: #f4d4a5;      /* Beige suave */
    --secondary-dark: #d1b78e;       /* Beige más opaco */
    --secondary-light: #fff1d6;      /* Beige muy claro */

    --dark-color: #1e1e1e;           /* Casi negro */
    --darker-color: #0f0f0f;         /* Negro absoluto */
    --light-color: #fefcf8;          /* Blanco hueso suave */
    --lighter-color: #ffffff;

    --gray-color: #a1978b;           /* Gris cálido */
    --light-gray: #ddd4c9;

    --success-color: #2ea043;        /* Verde natural intenso */
    --warning-color: #e3a008;        /* Amarillo cálido */
    --danger-color: #d7263d;         /* Rojo alerta fuerte */

    --white: #ffffff;
    --black: #000000;

    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

html, body {
    overflow-x: hidden;
    overscroll-behavior: none;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    gap: 0.5rem;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.section-decoration {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.section-decoration span {
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-decoration span:nth-child(2) {
    width: 60px;
}

/* Ocultar todas las secciones por defecto */
.content-section {
  display: none;
}

/* Mostrar solo la sección activa */
.content-section.active {
  display: block;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--light-color);
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);

}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: var(--light);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-left: 0.5rem;
}

.logo span {
    color: var(--primary-color);
}

.ai-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.hamburger:hover {
    color: var(--primary-color);
}

/* Hero Section */

/* Particles.js styles */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: transparent;
}

.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-content h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.hero-stats .stat-item i {
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 2;
}

.floating-element {
    background-color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    transition: var(--transition);
}

.floating-element:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.floating-element i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.floating-element span {
    font-weight: 500;
    font-size: 0.9rem;
}

.element-1 {
    animation-delay: 0s;
}

.element-2 {
    animation-delay: 0.5s;
    transform: translateX(20px);
}

.element-3 {
    animation-delay: 1s;
    transform: translateX(40px);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.hero-wave path {
    fill: var(--white);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: var(--light-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 99, 255, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Courses Section */
.courses {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
}

.course-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.category-btn:hover:not(.active) {
    background-color: rgba(108, 99, 255, 0.1);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.course-level {
    position: relative;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-info {
    padding: 1.5rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    color: var(--warning-color);
    font-size: 0.9rem;
}

.course-rating span {
    color: var(--gray-color);
    margin-left: 0.5rem;
}

.course-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    transition: var(--transition);
}

.course-card:hover .course-info h3 {
    color: var(--primary-color);
}

.course-info p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.course-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price .price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.course-price .original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--gray-color);
    margin-left: 0.5rem;
}

.course-price .price-installment {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 0.25rem;
}

.view-all-courses {
    text-align: center;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: var(--light-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 99, 255, 0.2);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.benefit-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.benefit-card:hover .benefit-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--light);
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.testimonial-content {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray-color);
    display: block;
    margin-bottom: 0.5rem;
}

.author-rating {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0 1rem;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    color: var(--primary-dark);
}

.testimonial-dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 0.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.about .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 1;
}

.experience-badge span {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.experience-badge small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    flex: 1;
    min-width: 120px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-item p {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.about-team {
    margin-top: 3rem;
}

.about-team h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--dark-color);
}

.team-members {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.team-member h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.team-member span {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text p {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-text small {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: block;
}

.social-media {
    margin-top: 3rem;
}

.social-media h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background-color: var(--darker-color);
    color: var(--white);
    padding: 5rem 0 0;
    position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem; /* espaciado uniforme entre columnas */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 40px;
  height: auto;
  object-fit: contain;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-about .logo h3 {
    color: var(--white);
    margin-bottom: 0;
    margin-left: 0.5rem;
    font-size: 1.5rem;
}

.footer-about .ai-icon {
    color: var(--white);
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-newsletter {
    margin-top: 1.5rem;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-links h3,
.footer-courses h3,
.footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem; /* Unificado */
    color: var(--white);
}

.footer-links ul li,
.footer-courses ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-courses a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-courses a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

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

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.footer-col {
    min-height: 280px; /* Ajusta según necesidad */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-col.footer-links {
    display: block; /* ← Volver a su comportamiento normal */
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0;
}

/* Añadir al final de styles.css */
/* Chatbot Styles */
.chatbot-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: var(--transition);
}

.chatbot-icon:hover {
  transform: scale(1.1);
  background-color: var(--primary-dark);
}

.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.chatbot-container.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.chatbot-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  height: 300px;
  padding: 15px;
  overflow-y: auto;
  background-color: var(--light-color);
}

.bot-message, .user-message {
  padding: 10px 15px;
  border-radius: 18px;
  margin-bottom: 10px;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bot-message {
  background-color: white;
  border: 1px solid var(--light-gray);
  border-bottom-left-radius: 5px;
  margin-right: auto;
}

.user-message {
  background-color: var(--primary-color);
  color: white;
  border-bottom-right-radius: 5px;
  margin-left: auto;
}

.chatbot-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid var(--light-gray);
  background-color: white;
}

.chatbot-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.chatbot-input input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.chatbot-input button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background-color: var(--primary-dark);
}

/* Responsive Chatbot */
@media (max-width: 576px) {
  .chatbot-container {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .floating-elements {
        display: none;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Añadir al final de styles.css */
/* Course Search Styles */
.course-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

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

@media (max-width: 768px) {
    .course-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* Añadir al final de styles.css */
/* Favorites System */
.favorite-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    color: var(--gray-color);
    transition: var(--transition);
}

.favorite-btn:hover {
    color: var(--danger-color);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--danger-color);
}

.favorite-btn i {
    font-size: 1.1rem;
}

.favorites-filter {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorites-filter i {
    transition: var(--transition);
}

.favorites-filter.active i {
    color: var(--danger-color);
}

@media (max-width: 768px) {
    .favorites-filter {
        margin: 1rem 0 0;
        width: 100%;
        justify-content: center;
    }
}

/* Añadir al final de styles.css */
/* Course Comparator */
.course-comparator {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.course-comparator.active {
    transform: translateY(0);
}

.comparator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.comparator-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.comparator-courses {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    overflow-x: auto;
}

.comparator-course {
    flex: 0 0 250px;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
}

.comparator-course img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.comparator-course h5 {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.comparator-course .remove-comparison {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--danger-color);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.comparison-modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.close-comparison {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.comparison-table th {
    text-align: left;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: top;
}

.comparison-table tr:nth-child(even) td {
    background-color: var(--light-color);
}

.compare-btn {
    position: absolute;
    top: 1rem;
    right: 1rem; /* pegado a la esquina */
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 1rem; /* más grande */
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 2rem; /* bordes bien redondeados */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10; /* por si hay overlays */
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.compare-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.compare-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .comparator-course {
        flex: 0 0 200px;
    }
    
    .comparison-modal-content {
        padding: 1rem;
    }
    
    .comparison-table th, 
    .comparison-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Añadir al final de styles.css */
/* Blog Styles */
.blog {
    padding: 5rem 0;
    background-color: var(--light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.blog-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.blog-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-color);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-category {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.blog-category.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.blog-category:hover:not(.active) {
    background-color: rgba(108, 99, 255, 0.1);
}

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

/* Añadir al final de styles.css */
/* Resources Styles */
.resources {
    padding: 5rem 0;
    background-color: var(--white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: var(--light-color);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 99, 255, 0.2);
}

.resource-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.resource-card:hover .resource-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.resource-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.resource-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.resource-meta i {
    margin-right: 0.25rem;
}

.resource-newsletter {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Añadir al final de styles.css */
/* Webinars Styles */
.webinars {
    padding: 5rem 0;
    background-color: var(--light);
}

.webinar-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.webinar-tab {
    padding: 0.75rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -1px;
}

.webinar-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.webinar-tab:not(.active):hover {
    color: var(--dark-color);
}

.webinar-tab-content {
    display: none;
}

.webinar-tab-content.active {
    display: block;
}

.webinar-card {
    display: flex;
    gap: 2rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.webinar-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.webinar-date {
    flex: 0 0 80px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.webinar-info {
    flex: 1;
}

.webinar-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.webinar-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.webinar-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.webinar-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.past-webinars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.past-webinar {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.past-webinar:hover {
    box-shadow: var(--shadow-md);
}

.past-webinar-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.past-webinar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.past-webinar:hover .play-button {
    background-color: var(--primary-color);
    color: white;
}

.past-webinar-info {
    padding: 1.5rem;
}

.past-webinar-info h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .webinar-card {
        flex-direction: column;
    }
    
    .webinar-date {
        flex: 0 0 auto;
        width: 80px;
        margin-bottom: 1rem;
    }
    
    .webinar-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .webinar-actions {
        flex-direction: column;
    }
}

/* Añadir al final de styles.css */
/* Media Styles */
.media {
    padding: 5rem 0;
    background-color: var(--white);
}

.media-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.media-tab {
    padding: 0.75rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -1px;
}

.media-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.media-tab:not(.active):hover {
    color: var(--dark-color);
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
}

/* Podcast Styles */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.podcast-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.podcast-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.podcast-image {
    flex: 0 0 150px;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.podcast-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.podcast-info {
    flex: 1;
}

.podcast-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.podcast-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.podcast-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.podcast-platforms {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.podcast-platforms a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.podcast-platforms a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Video Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.video-card {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.video-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .podcast-grid {
        grid-template-columns: 1fr;
    }
    
    .podcast-card {
        flex-direction: column;
    }
    
    .podcast-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    
    .podcast-image img {
        height: 200px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Añadir al final de styles.css */
/* Career Simulator Styles */
.career-simulator {
    padding: 5rem 0;
    background-color: var(--white);
}

.simulator-container {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.simulator-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.simulator-controls::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--light-gray);
    z-index: 1;
}

.simulator-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.simulator-step span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.simulator-step p {
    font-size: 0.9rem;
    text-align: center;
    color: var(--gray-color);
    max-width: 120px;
}

.simulator-step.active span {
    background-color: var(--primary-color);
    color: var(--white);
}

.simulator-step.active p {
    color: var(--dark-color);
    font-weight: 500;
}

.simulator-step-content {
    display: none;
    min-height: 400px;
}

.simulator-step-content.active {
    display: block;
}

.career-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.career-area {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    height: 150px;
}

.career-area:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.career-area i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.career-area span {
    font-weight: 500;
    text-align: center;
}

.simulator-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.simulator-course {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.simulator-course:hover {
    border-color: var(--primary-color);
}

.simulator-course input {
    margin-right: 1rem;
}

.simulator-selected {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    border: 1px dashed var(--primary-color);
}

.selected-courses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.selected-course {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-course button {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
}

.career-path {
    margin: 2rem 0;
    position: relative;
    padding-left: 2rem;
}

.career-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.path-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.path-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.path-content {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.path-content h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.path-time {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: block;
    margin-top: 0.5rem;
}

.salary-projection {
    margin-top: 3rem;
}

.salary-chart {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.salary-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    position: relative;
    transition: width 1s ease;
}

.salary-bar span {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.simulator-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .simulator-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .simulator-controls::before {
        display: none;
    }
    
    .simulator-step {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .career-areas {
        grid-template-columns: 1fr;
    }
    
    .simulator-courses {
        grid-template-columns: 1fr;
    }
}

/* Añadir al final de styles.css */
/* Interactive Demo Styles */
.interactive-demo {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.demo-container {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.demo-selector {
    margin-bottom: 2rem;
}

.demo-selector select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.demo-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.demo-content {
    display: flex;
    gap: 2rem;
}

.demo-description {
    flex: 1;
    min-width: 300px;
}

.demo-area {
    flex: 2;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    position: relative;
}

.demo-placeholder {
    text-align: center;
    color: var(--gray-color);
}

.demo-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.demo-controls {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.25rem;
}

.demo-result {
    width: 100%;
}

.demo-metrics {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.demo-metrics p {
    margin-bottom: 0.5rem;
}

.image-demo-container {
    width: 100%;
    padding: 1rem;
}

.image-upload {
    margin-bottom: 1rem;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-color);
    border-radius: 0.5rem;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.upload-area:hover {
    background-color: rgba(108, 99, 255, 0.05);
}

.upload-area i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#image-upload {
    display: none;
}

.image-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0.5rem;
}

.image-result {
    flex: 1;
}

.confidence-meter {
    width: 100%;
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

@media (max-width: 992px) {
    .demo-content {
        flex-direction: column;
    }
    
    .image-preview {
        flex-direction: column;
    }
    
    #preview-image {
        max-width: 100%;
    }
}

/* Añadir al final de styles.css */
/* Achievements Styles */
.achievements {
    padding: 5rem 0;
    background-color: var(--white);
}

.achievements-container {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.achievements-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.achievements-progress {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.progress-text small {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.achievements-summary {
    flex: 1;
}

.achievements-summary h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.achievements-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-number {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: block;
}

.achievements-recent {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.achievements-recent h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.recent-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
}

.badge-earned {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.badge-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.badge-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.25rem;
}

.badge-info small {
    font-size: 0.7rem;
    color: var(--gray-color);
}

.achievements-all h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.achievements-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-btn:not(.active):hover {
    background-color: var(--light-gray);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.badge-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.badge-card[data-earned="true"] {
    border-left: 4px solid var(--success-color);
}

.badge-progress {
    margin-top: 0.75rem;
}

.progress-bar {
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 3px;
    margin-bottom: 0.25rem;
}

.badge-progress span {
    font-size: 0.8rem;
    color: var(--gray-color);
}

@media (max-width: 768px) {
    .achievements-progress {
        flex-direction: column;
        text-align: center;
    }
    
    .achievements-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
}

/* Añadir al final de styles.css */
/* Learning Progress Styles */
.learning-progress {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.progress-container {
    display: flex;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.progress-sidebar {
    flex: 0 0 300px;
    background-color: var(--darker-color);
    color: var(--white);
    padding: 2rem;
}

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.user-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.user-profile h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.user-profile p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.profile-level {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
}

.level-progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.level-progress .progress-bar {
    background-color: var(--primary-color);
    height: 100%;
}

.profile-level span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-courses {
    margin-top: 2rem;
}

.progress-courses h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.course-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.course-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.course-item.active {
    background-color: var(--primary-color);
}

.course-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.course-item.active .course-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.course-info {
    flex: 1;
}

.course-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.course-progress {
    margin-top: 0.25rem;
}

.course-progress .progress-bar {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 0.25rem;
}

.course-item.active .progress-bar {
    background-color: rgba(255, 255, 255, 0.4);
}

.course-progress span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

.course-item.active .course-progress span {
    color: white;
}

.progress-content {
    flex: 1;
    padding: 2rem;
}

.progress-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.progress-header h3 {
    margin-bottom: 0.5rem;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overall-progress span {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    min-width: 80px;
}

.overall-progress .progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.overall-progress .progress-bar div {
    height: 100%;
    background-color: var(--primary-color);
}

.modules-container {
    margin-bottom: 2rem;
}

.module-card {
    margin-bottom: 1.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    overflow: hidden;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--light-gray);
}

.module-header h4 {
    margin: 0;
    font-size: 1rem;
}

.module-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 500;
}

.module-status.completed {
    background-color: var(--success-color);
    color: white;
}

.module-status.in-progress {
    background-color: var(--warning-color);
    color: white;
}

.module-status.pending {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.module-lessons {
    padding: 0.5rem 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

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

.lesson-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.lesson-item.completed i {
    color: var(--success-color);
}

.lesson-item.current i {
    color: var(--primary-color);
}

.lesson-item.pending i {
    color: var(--light-gray);
}

.lesson-item span {
    flex: 1;
    font-size: 0.9rem;
}

.lesson-duration {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.progress-motivation {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.motivation-card {
    text-align: center;
    padding: 1.5rem;
}

.motivation-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.motivation-card h4 {
    margin-bottom: 0.5rem;
}

.motivation-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .progress-container {
        flex-direction: column;
    }
    
    .progress-sidebar {
        flex: 0 0 auto;
    }
}

@media (max-width: 576px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .lesson-item {
        flex-wrap: wrap;
    }
    
    .lesson-item span {
        flex: 0 0 calc(100% - 100px);
    }
}

/* Estilo especial para el dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #b3261e;
    padding-left: 25px;
}

.dropdown-content i {
    width: 18px;
    text-align: center;
    color: #b3261e;
}

/* Flecha del dropdown */
.dropdown i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Añadir al final de styles.css */
/* PrePAES Styles */
.prepaes {
    padding: 5rem 0;
    background-color: var(--white);
}

.prepaes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.prepaes-card {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.prepaes-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.prepaes-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.prepaes-card:hover .prepaes-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.prepaes-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.prepaes-card p {
    font-size: 0.95rem;
}

.prepaes-details {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.details-content {
    flex: 1;
}

.details-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.details-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.details-content ul {
    margin-bottom: 2rem;
}

.details-content li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.details-content i {
    color: var(--primary-color);
}

.details-image {
    flex: 1;
    position: relative;
}

.details-image img {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.stats-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--black);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 250px;
}

.stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

/* Psychoeducation Styles */
.psychoeducation {
    padding: 5rem 0;
    background-color: var(--light);
}

.psycho-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.psycho-card {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.psycho-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.psycho-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.psycho-card:hover .psycho-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.psycho-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.psycho-card p {
    font-size: 0.95rem;
}

.psycho-cta {
    display: flex;
    gap: 3rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.cta-content {
    flex: 1;
}

.cta-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.cta-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.cta-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

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

.cta-form {
    flex: 1;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 0.5rem;
}

.cta-form h4 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.cta-form .form-group {
    margin-bottom: 1rem;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: #333;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.course-price-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.modal-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  position: relative;
}

.modal-tab.active {
  color: var(--primary-color);
  font-weight: bold;
}

.modal-tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
}

.course-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.benefits-list {
  margin-bottom: 25px;
}

.benefits-list h4 {
  margin-bottom: 15px;
  color: #333;
}

.benefits-list ul {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefits-list i {
  color: var(--primary-color);
}

/* Payment Styles */
.payment-methods {
  margin-bottom: 20px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: block;
  cursor: pointer;
}

.payment-option input {
  display: none;
}

.payment-card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.payment-option input:checked + .payment-card {
  border-color: var(--primary-color);
  background-color: rgba(220, 38, 38, 0.05);
}

.card-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.card-icons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.card-icons i {
  font-size: 1.5rem;
  color: #555;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.payment-summary {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-item.total {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.secure-payment {
  text-align: center;
  color: #666;
  margin-top: 15px;
  font-size: 0.9rem;
}

.secure-payment i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* Confirmation Modal */
.modal-content.confirmation {
  text-align: center;
  padding: 40px 30px;
}

.confirmation-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.confirmation-details {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
}

.confirmation-details p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.confirmation-details i {
  color: var(--primary-color);
}

/* Asesorías Psicoeducativas y Jurídicas */
.psychoeducational-advisory,
.legal-advisory {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.advisory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.advisory-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.advisory-icon {
    font-size: 2.5rem;
    color: #b3261e;
    margin-bottom: 1rem;
}

.advisory-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.advisory-details {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 4rem 0;
}

.advisory-details .details-content {
    flex: 1;
}

.advisory-details .details-image {
    flex: 1;
    position: relative;
}

.advisory-details .details-image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

.stats-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b3261e;
    display: block;
}

.stat-item small {
    font-size: 0.8rem;
    color: #666;
}

.advisory-cta {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.advisory-cta .cta-content {
    flex: 1;
}

.advisory-cta .cta-form {
    flex: 1;
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 10px;
}

.cta-features {
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.feature-item i {
    color: #b3261e;
}

.legal-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cta-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.cta-card.featured {
    border: 2px solid #b3261e;
    position: relative;
}

.cta-card.featured::before {
    content: "Recomendado";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #b3261e;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-badge {
    margin: 1.5rem 0;
}

.price-badge span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #b3261e;
    display: block;
}

.price-badge small {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .advisory-details {
        flex-direction: column;
    }
    
    .advisory-cta {
        flex-direction: column;
    }
    
    .stats-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1.5rem;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .prepaes-details,
    .psycho-cta {
        flex-direction: column;
    }
    
    .details-image {
        margin-top: 2rem;
    }
    
    .stats-badge {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .prepaes-grid,
    .psycho-grid {
        grid-template-columns: 1fr;
    }
    
    .psycho-cta {
        padding: 2rem;
    }
    
    .cta-form {
        margin-top: 2rem;
    }
}