/* ============================================================
   CATÁLOGO DE CURSOS - CSS
   Estilos para template-catalogo-cursos.php
   Version: 1.3.0
   ============================================================ */

.og-catalogo-hero {
    background: linear-gradient(135deg, #003d82 0%, #0593f3 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.og-catalogo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(255,255,255,0.05)" d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"/></svg>') repeat-x;
    animation: waveAnimation 20s linear infinite;
    opacity: 0.3;
}

@keyframes waveAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 0; }
}

.og-catalogo-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.og-catalogo-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.og-catalogo-content {
    padding: 60px 0;
    background: #f7fafc;
}

.og-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filtros */
.og-catalogo-filters {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.og-catalogo-filters h2 {
    font-size: 2.2rem;
    color: #003d82;
    margin-bottom: 2rem;
    font-weight: 700;
}

.og-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.og-filter-btn {
    padding: 12px 28px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.og-filter-btn:hover {
    background: #f1f5f9;
    border-color: #0593f3;
    color: #003d82;
    transform: translateY(-2px);
}

.og-filter-btn.active {
    background: linear-gradient(135deg, #003d82 0%, #0593f3 100%);
    color: white;
    border-color: #003d82;
    box-shadow: 0 4px 12px rgba(5, 147, 243, 0.3);
}

/* Grid de cursos - 4 columnas en desktop */
.og-catalogo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Títulos de sección - ocupan las 2 columnas */
.og-catalogo-section-title {
    grid-column: 1 / -1;
    font-size: 2rem;
    color: #003d82;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    padding-left: 20px;
    border-left: 5px solid #0593f3;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.og-catalogo-section-title:first-of-type {
    margin-top: 0;
}

/* Tarjeta de curso */
.og-curso-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.og-curso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #003d82 0%, #0593f3 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.og-curso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 61, 130, 0.2);
    border-color: #0593f3;
}

.og-curso-card:hover::before {
    transform: scaleX(1);
}

.og-curso-header {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.og-curso-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, #003d82 0%, #0593f3 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(5, 147, 243, 0.25);
}

.og-curso-badge.acuerdo {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.og-curso-badge.continua {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.og-curso-badge.espana {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #333;
}

.og-curso-header h3 {
    font-size: 1.3rem;
    color: #003d82;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    text-align: center;
    max-width: 95%;
}

.og-curso-details {
    margin-bottom: 1.25rem;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.og-curso-duracion {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.og-curso-descripcion {
    font-size: 1rem;
    color: #64748b;
    margin: 20px 0;
    line-height: 1.7;
    text-align: center;
    max-width: 95%;
}

.og-curso-precio {
    font-size: 1.5rem;
    color: #003d82;
    font-weight: 800;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.og-curso-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.og-curso-actions .og-btn-outline,
.og-curso-actions .og-btn-primary {
    width: 100%;
    text-align: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.og-curso-actions .og-btn-outline {
    background: transparent;
    border: 2px solid #003d82;
    color: #003d82;
}

.og-curso-actions .og-btn-outline:hover {
    background: #003d82;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.og-curso-actions .og-btn-primary {
    background: linear-gradient(135deg, #0593f3 0%, #003d82 100%);
    border: none;
    color: white;
    box-shadow: 0 6px 16px rgba(5, 147, 243, 0.4);
    position: relative;
    overflow: hidden;
}

.og-curso-actions .og-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.og-curso-actions .og-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.og-curso-actions .og-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(5, 147, 243, 0.5);
}

/* Botón Stripe */
.og-stripe-btn {
    cursor: pointer;
}

.og-stripe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Sección de ayuda */
.og-catalogo-ayuda {
    background: white;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid #0593f3;
}

.og-catalogo-ayuda h3 {
    font-size: 2rem;
    color: #003d82;
    margin-bottom: 1rem;
    font-weight: 700;
}

.og-catalogo-ayuda p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.og-catalogo-ayuda .og-btn-secondary {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* Animación de highlight */
.og-curso-card.highlight {
    animation: highlightPulse 1.5s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        border-color: transparent;
    }
    50% {
        box-shadow: 0 12px 40px rgba(5, 147, 243, 0.5);
        border-color: #0593f3;
    }
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .og-catalogo-hero h1 {
        font-size: 3rem;
    }

    .og-catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .og-catalogo-section-title {
        font-size: 1.8rem;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .og-catalogo-hero {
        padding: 60px 0 50px;
    }

    .og-catalogo-hero h1 {
        font-size: 2.2rem;
        padding: 0 20px;
    }

    .og-catalogo-hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .og-catalogo-content {
        padding: 40px 0;
    }

    .og-catalogo-filters {
        padding: 20px 15px;
        margin-bottom: 2rem;
    }

    .og-catalogo-filters h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .og-filter-buttons {
        gap: 10px;
    }

    .og-filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .og-catalogo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .og-catalogo-section-title {
        font-size: 1.5rem;
        margin-top: 30px;
        padding: 15px;
        border-left: none;
    }

    .og-curso-card {
        padding: 2rem 1.5rem;
    }

    .og-curso-header h3 {
        font-size: 1.3rem;
    }

    .og-curso-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .og-curso-duracion {
        font-size: 0.9rem;
    }

    .og-curso-descripcion {
        font-size: 0.9rem;
    }

    .og-curso-precio {
        font-size: 1.2rem;
    }

    .og-curso-actions .og-btn-outline,
    .og-curso-actions .og-btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .og-catalogo-ayuda {
        padding: 30px 20px;
    }

    .og-catalogo-ayuda h3 {
        font-size: 1.5rem;
    }

    .og-catalogo-ayuda p {
        font-size: 1rem;
    }

    .og-catalogo-ayuda .og-btn-secondary {
        width: 100%;
    }
}
.og-catalogo-ayuda {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.og-catalogo-ayuda h3 {
    font-size: 1.75rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.og-catalogo-ayuda p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .og-catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Responsive Móvil */
@media (max-width: 768px) {
    .og-catalogo-hero h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .og-catalogo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .og-filter-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .og-filter-buttons button {
        width: 100%;
        text-align: center;
    }

    /* Ajustes modales responsive */
    .og-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 25px 15px;
        margin: 20px;
    }

    .og-modal-dos-columnas {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .og-modal-content h2 {
        font-size: 1.5rem;
    }

    .og-modal-precio {
        font-size: 1.8rem;
    }

    /* Tabla responsive */
    .og-modal-tabla th,
    .og-modal-tabla td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .og-modal-precio-celda {
        font-size: 1.3rem;
    }

    /* Acciones en columna en móvil */
    .og-modal-acciones {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================
   MODALES DE INSCRIPCIÓN
   ============================================================ */

/* Overlay del modal */
.og-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenedor del modal */
.og-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

/* Botón cerrar */
.og-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.og-modal-close:hover {
    color: #003d82;
    transform: rotate(90deg);
}

/* Títulos del modal */
.og-modal-content h2 {
    font-size: 2rem;
    color: #003d82;
    margin-bottom: 10px;
    font-weight: 700;
    padding-right: 40px;
    text-align: center;
}

.og-modal-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Cuerpo del modal */
.og-modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.og-modal-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Opciones de pago */
.og-modal-option {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0593f3;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.og-modal-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 147, 243, 0.2);
}

.og-modal-option h3 {
    font-size: 1.4rem;
    color: #003d82;
    margin-bottom: 10px;
    font-weight: 700;
}

.og-modal-descripcion {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.og-modal-precio {
    font-size: 2.2rem;
    color: #0593f3;
    font-weight: 800;
    margin: 15px 0 20px;
}

/* Info adicional */
.og-modal-info {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.og-modal-info p {
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.6;
}

.og-modal-info p:last-of-type {
    margin-bottom: 15px;
}

.og-modal-info strong {
    color: #003d82;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

/* Botones dentro del modal */
.og-modal-option .og-btn-primary,
.og-modal-info .og-btn-outline {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.og-modal-option .og-btn-primary {
    background: linear-gradient(135deg, #003d82 0%, #0593f3 100%);
    color: white;
    border: none;
}

.og-modal-option .og-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 147, 243, 0.4);
}

.og-modal-info .og-btn-outline {
    background: white;
    color: #003d82;
    border: 2px solid #003d82;
}

.og-modal-info .og-btn-outline:hover {
    background: #003d82;
    color: white;
}

/* Tabla de precios en modal de maestrías */
.og-modal-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.og-modal-tabla thead {
    background: #bdd7ee;
    color: #000;
}

.og-modal-tabla th {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid #9cc2e5;
}

.og-modal-tabla td {
    padding: 15px;
    border: 1px solid #d0d0d0;
    vertical-align: middle;
}

.og-modal-tabla tbody tr:nth-child(odd) {
    background: #ffffff;
}

.og-modal-tabla tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.og-modal-tabla td:first-child {
    font-weight: 600;
    color: #003d82;
}

.og-modal-tabla td:last-child {
    text-align: center;
}

.og-modal-precio-celda {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0593f3;
}

/* Acciones debajo de la tabla */
.og-modal-acciones {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.og-modal-acciones .og-btn-primary,
.og-modal-acciones .og-btn-outline {
    flex: 1;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.og-modal-acciones .og-btn-primary {
    background: linear-gradient(135deg, #003d82 0%, #0593f3 100%);
    color: white;
    border: none;
}

.og-modal-acciones .og-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 147, 243, 0.4);
}

.og-modal-acciones .og-btn-outline {
    background: white;
    color: #003d82;
    border: 2px solid #003d82;
}

.og-modal-acciones .og-btn-outline:hover {
    background: #003d82;
    color: white;
}

/* Ajustes específicos para modal Acuerdo 286 */
.og-modal-acuerdo286 .og-modal-option {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.og-modal-acuerdo286 .og-modal-option:hover {
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

/* Ajustes específicos para modal España */
.og-modal-espana .og-modal-option {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
}

.og-modal-espana .og-modal-option:hover {
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.og-modal-espana .og-modal-precio {
    color: #d97706;
}

