/* Capacitación Page Styles - Aligned with Index Theme */

/* Hero Section */
.hero-capacitacion {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, hsl(var(--primary)/0.1), hsl(var(--background)));
    padding: 4rem 1.25rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: hsl(var(--secondary));
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero__description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    justify-content: center;
    width: 100%;
}

.hero__cta, .hero__secondary-cta {
    padding: 0.875rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 200px;
}

.hero__cta {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 10px 15px -3px rgba(94, 44, 165, 0.3);
}

.hero__cta:hover {
    background-color: hsl(var(--primary) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(94, 44, 165, 0.4);
}

.hero__secondary-cta {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary) / 0.6);
}

.hero__secondary-cta:hover {
    background-color: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.hero__image {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .hero-capacitacion {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5rem 1.25rem;
    }

    .hero__content {
        text-align: center;
    }

    .hero__image {
        display: none;
    }
}

/* Tabs de Navegación */
.programas-tabs {
    padding: 2rem 1.25rem;
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 4rem;
    z-index: 40;
}

.tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.tab-button.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Contenido de Tabs */
.tab-content {
    display: none;
    padding: 3rem 1.25rem;
    background-color: hsl(var(--background));
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.section__title {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 3rem;
    text-align: center;
}

.section__title span {
    color: hsl(var(--primary));
}

/* Filtros de Nivel */
.filtros-nivel {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.filter-btn.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Grid de Cursos */
.cursos-grid, .talleres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.curso-card, .taller-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
}

.curso-card:hover, .taller-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #5e2ca5;
}

/* Nuevos estilos para las tarjetas de curso */
.curso-imagen {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.curso-imagen svg {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

.curso-nivel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #5e2ca5;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.curso-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.curso-titulo {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.curso-descripcion {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.curso-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.curso-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.curso-meta-item svg {
    width: 14px;
    height: 14px;
    color: #5e2ca5;
}

.curso-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
}

.curso-rating span:last-child {
    color: #6b7280;
    font-size: 0.75rem;
}

.curso-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.curso-precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5e2ca5;
}

.curso-precio::before {
    content: '$';
}

.btn-ver-detalles {
    background-color: #5e2ca5;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ver-detalles:hover {
    background-color: #4c1d95;
    transform: translateY(-1px);
}

.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.9);
}

/* Mentoría */
.mentoria-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.mentoria-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mentoria-subtitle {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.mentoria-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.75;
}

.beneficios-card, .modalidades-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.beneficios-card h4, .modalidades-card h4 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.beneficios-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.beneficios-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.beneficios-list svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.plan-card {
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.plan-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plan-card.plan-destacado {
    border-color: hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--secondary) / 0.05));
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-card h5 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.plan-card p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.plan-precio {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.btn-plan {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-plan:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.mentoria-video {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-container {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--secondary) / 0.15));
}

.play-button {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.video-info h3 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.testimonios-mentoria {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.testimonios-mentoria h4 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.testimonio-card {
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
}

.testimonio-stars {
    color: hsl(var(--secondary));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.testimonio-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.testimonio-autor {
    font-size: 0.75rem;
    color: hsl(var(--foreground));
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.modal-close:hover {
    color: hsl(var(--foreground));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-message {
    padding: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-align: center;
}

.form-message.success {
    background-color: hsl(120 84% 60% / 0.1);
    color: hsl(120 84% 60%);
    border: 1px solid hsl(120 84% 60% / 0.3);
}

.form-message.error {
    background-color: hsl(0 84% 60% / 0.1);
    color: hsl(0 84% 60%);
    border: 1px solid hsl(0 84% 60% / 0.3);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .section__title {
        font-size: 1.875rem;
    }

    .cursos-grid, .talleres-grid {
        grid-template-columns: 1fr;
    }

    .mentoria-layout {
        grid-template-columns: 1fr;
    }

    .planes-grid {
        grid-template-columns: 1fr;
    }

    .programas-tabs {
        top: 3.5rem;
    }
}
/* Mejoras adicionales para coincidir con el diseño objetivo */
.filtros-nivel {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: #f8f9fa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.filter-btn.active {
    background-color: #5e2ca5;
    color: white;
    border-color: #5e2ca5;
}

/* Ajustes para el título de la sección */
.section__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

/* Mejoras en la responsividad */
@media (max-width: 768px) {
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filtros-nivel {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .cursos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .cursos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Estilos para Talleres */
.taller-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
}

.taller-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #5e2ca5;
}

.taller-header {
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.taller-header.presencial {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.taller-header.online {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.taller-modalidad-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #5e2ca5;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taller-titulo {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
    padding-right: 80px;
}

.taller-lugar {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.taller-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.taller-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.taller-info-item svg {
    width: 18px;
    height: 18px;
    color: #5e2ca5;
    flex-shrink: 0;
}

.taller-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.taller-precio {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5e2ca5;
}

.taller-precio::before {
    content: '$';
    font-size: 1rem;
}

.taller-cupos {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5e2ca5, #9c27b0);
    transition: width 0.3s ease;
}

.btn-reservar {
    background-color: #5e2ca5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    box-shadow: 0 4px 6px rgba(94, 44, 165, 0.2);
}

.btn-reservar:hover {
    background-color: #4c1d95;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(94, 44, 165, 0.3);
}

.btn-reservar:active {
    transform: translateY(0);
}
