/* ========== VARIABLES CSS ========== */
:root {
    --color-primary-dark: #0E2954;
    --color-primary-light: #1A5F7A;
    --color-accent: #57C5B6;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    --color-text-dark: #333;
    --color-text-light: #555;
    --color-background: #f8f9fa;
    --shadow-card: 0 10px 30px rgba(14, 41, 84, 0.1);
    --shadow-card-hover: 0 20px 40px rgba(14, 41, 84, 0.2);
    --transition-smooth: all 0.3s ease;
    --border-radius: 15px;
    --border-radius-lg: 20px;
}

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-background);
    line-height: 1.6;
    color: var(--color-text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-section {
    background: var(--color-primary-dark);
    padding: 15px 0;
    border-bottom: 3px solid var(--color-accent);
}

.custom-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.custom-breadcrumb a:hover {
    color: var(--color-accent);
}

.custom-breadcrumb .current {
    color: var(--color-accent);
    font-weight: 600;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat center bottom;
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.hero-highlight {
    background: linear-gradient(45deg, var(--color-warning), #ff6b35);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== SECCIÓN DE PROMOCIONES ========== */
.promo-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    padding: 60px 0;
    position: relative;
}

.promo-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.promo-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    border: 2px solid transparent;
}

.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.promo-1 {
    border-color: #ff6b35;
}

.promo-2 {
    border-color: var(--color-success);
}

.promo-3 {
    border-color: var(--color-info);
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-danger);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.promo-header {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary-light));
    color: white;
    padding: 25px;
    text-align: center;
}

.promo-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.promo-content {
    padding: 30px;
    text-align: center;
}

.promo-offer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 4px solid var(--color-accent);
}

.promo-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.promo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.promo-price {
    margin: 25px 0;
    text-align: center;
}

.price-label {
    display: block;
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-success);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.price-emoji {
    font-size: 2rem;
    margin-left: 10px;
}

.promo-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.promo-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.promo-note {
    background: rgba(255, 193, 7, 0.1);
    border: 2px dashed var(--color-warning);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 30px;
}

.promo-note p {
    margin: 0;
    font-weight: 600;
    color: var(--color-text-dark);
}

.promo-note i {
    color: var(--color-warning);
    margin-right: 8px;
}

/* ========== SECCIÓN PRINCIPAL ========== */
.main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px;
}

/* ========== ESTADÍSTICAS ========== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--color-accent);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1rem;
}

/* ========== FILTROS ========== */
.filter-section {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-accent), var(--color-primary-light));
}

.filter-title {
    text-align: center;
    color: var(--color-primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.filter-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary-light));
    border: none;
    padding: 12px 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(14, 41, 84, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 41, 84, 0.3);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--color-accent), #45a492);
    box-shadow: 0 6px 20px rgba(87, 197, 182, 0.4);
    transform: translateY(-2px);
}

.filter-btn i {
    font-size: 1rem;
}

/* ========== CONTADOR DE RESULTADOS ========== */
.results-counter {
    text-align: center;
    margin: 30px 0;
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 600;
    padding: 15px;
    background: rgba(87, 197, 182, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(87, 197, 182, 0.2);
}

/* ========== GRID DE TARJETAS ========== */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.diplomado-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.diplomado-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-accent);
}

/* ========== BADGES DE CATEGORÍA ========== */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.educacion .category-badge { 
    background: linear-gradient(45deg, #4CAF50, #45a049);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.salud .category-badge { 
    background: linear-gradient(45deg, #F44336, #d32f2f);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.administracion .category-badge { 
    background: linear-gradient(45deg, #2196F3, #1976d2);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.gestion .category-badge { 
    background: linear-gradient(45deg, #FF9800, #f57c00);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.ingenieria .category-badge { 
    background: linear-gradient(45deg, #9C27B0, #7b1fa2);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.arquitectura .category-badge { 
    background: linear-gradient(45deg, #795548, #5d4037);
    box-shadow: 0 2px 8px rgba(121, 85, 72, 0.3);
}

/* ========== HEADER DE TARJETA ========== */
.card-header {
    padding: 30px 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--color-accent);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.diplomado-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--color-primary-dark);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    text-align: center;
}

/* ========== CONTENIDO DE TARJETA ========== */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.card-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--color-success);
    margin-right: 10px;
    width: 16px;
    font-size: 0.8rem;
}

/* ========== BOTÓN CTA ========== */
.cta-button {
    background: linear-gradient(45deg, var(--color-success), #20c997);
    border: none;
    padding: 15px 25px;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    font-size: 1.2rem;
}

/* ========== CTA FINAL ========== */
.final-cta {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(87, 197, 182, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-btn {
    background: linear-gradient(45deg, var(--color-warning), #ff8f00);
    color: white;
    padding: 25px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

.final-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.6);
    color: white;
    text-decoration: none;
}

.final-cta-btn i {
    font-size: 1.5rem;
}

/* ========== BOTÓN FLOTANTE WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    text-decoration: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    animation: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .promo-title {
        font-size: 2rem;
    }
    
    .card-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-section {
        padding: 30px 20px;
    }
    
    .main-section {
        padding: 40px 15px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .final-cta-btn {
        padding: 20px 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-highlight {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-header {
        padding: 25px 20px 15px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .promo-content {
        padding: 25px 20px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .filter-section {
        padding: 25px 15px;
    }
    
    .filter-title {
        font-size: 1.5rem;
    }
    
    .final-cta {
        padding: 60px 0;
    }
    
    .final-cta h2 {
        font-size: 1.8rem;
    }
    
    .final-cta p {
        font-size: 1rem;
    }
}

/* ========== ANIMACIONES ADICIONALES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== EFECTOS ADICIONALES ========== */
.diplomado-card:nth-child(odd) .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.diplomado-card:nth-child(even) .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

/* Efecto de brillo en hover */
.promo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.promo-card:hover::after {
    left: 100%;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* ========== ESTADOS DE CARGA ========== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== UTILIDADES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.fw-normal { font-weight: 400; }
.fw-bold { font-weight: 700; }

.text-primary { color: var(--color-primary-dark); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-info); }

/* ========== EFECTOS ESPECIALES PARA CATEGORÍAS ========== */
.educacion:hover {
    border-color: #4CAF50;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

.salud:hover {
    border-color: #F44336;
    box-shadow: 0 20px 40px rgba(244, 67, 54, 0.2);
}

.administracion:hover {
    border-color: #2196F3;
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.gestion:hover {
    border-color: #FF9800;
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.2);
}

.ingenieria:hover {
    border-color: #9C27B0;
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.2);
}

.arquitectura:hover {
    border-color: #795548;
    box-shadow: 0 20px 40px rgba(121, 85, 72, 0.2);
}

/* ========== EFECTOS DE PARALLAX SUTIL ========== */
.hero-section {
    background-attachment: fixed;
}

.final-cta {
    background-attachment: fixed;
}

/* ========== SCROLLBAR PERSONALIZADO ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* ========== EFECTOS DE TRANSICIÓN SUAVE ========== */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ========== MEJORAS VISUALES ADICIONALES ========== */
.promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(87, 197, 182, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ========== ANIMACIONES ESPECÍFICAS PARA ELEMENTOS ========== */
.hero-highlight {
    animation: pulse 2s infinite, glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    }
    to {
        box-shadow: 0 5px 25px rgba(255, 107, 53, 0.6);
    }
}

.stat-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ========== EFECTOS HOVER AVANZADOS ========== */
.filter-btn:hover {
    background: linear-gradient(45deg, var(--color-accent), #45a492);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(87, 197, 182, 0.3);
}

.cta-button:hover {
    background: linear-gradient(45deg, #20c997, var(--color-success));
    transform: translateY(-2px) scale(1.02);
}

/* ========== MEJORAS DE ACCESIBILIDAD ========== */
.filter-btn:focus,
.cta-button:focus,
.promo-btn:focus,
.final-cta-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.diplomado-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========== EFECTOS DE LOADING PARA FILTROS ========== */
.card-container.loading .diplomado-card {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.card-container:not(.loading) .diplomado-card {
    opacity: 1;
    transform: scale(1);
}

/* ========== ESTILOS PARA IMPRESIÓN ========== */
@media print {
    .whatsapp-float,
    .promo-btn,
    .cta-button,
    .final-cta-btn,
    .filter-buttons {
        display: none;
    }
    
    .diplomado-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hero-section,
    .final-cta {
        background: white;
        color: black;
    }
}

/* ========== ESTILOS PARA MODO OSCURO (OPCIONAL) ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #1a1a1a;
        --color-text-dark: #ffffff;
        --color-text-light: #cccccc;
    }
    
    .diplomado-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .card-header {
        background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    }
    
    .filter-section,
    .stat-card {
        background: #2d2d2d;
        border-color: #404040;
    }
}

/* ========== ANIMACIONES DE ENTRADA ========== */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* ========== EFECTOS DE GLASSMORPHISM ========== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== OPTIMIZACIONES DE RENDIMIENTO ========== */
.diplomado-card,
.filter-btn,
.stat-card {
    will-change: transform;
}

.diplomado-card:hover,
.filter-btn:hover,
.stat-card:hover {
    will-change: auto;
}

/* ========== ESTILOS FINALES ========== */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.clickable {
    cursor: pointer;
}

.transition-fast {
    transition: all 0.15s ease;
}

.transition-slow {
    transition: all 0.6s ease;
}

/* ========== VALIDACIÓN DE FORMULARIOS (SI SE NECESITA) ========== */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(87, 197, 182, 0.1);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-valid {
    border-color: var(--color-success);
}

/* ========== TOOLTIPS (SI SE NECESITAN) ========== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--color-primary-dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ========== ESTADOS DE ERROR Y ÉXITO ========== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* ========== FIN DEL CSS ========== */