/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2ecc71;
    --secondary-dark: #27ae60;
    --accent: #9b59b6;
    --accent-dark: #8e44ad;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --gray-dark: #7f8c8d;
    --gray: #95a5a6;
    --gray-light: #ecf0f1;
    --light: #f9f9f9;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 5px;
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

/* Efecto de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efecto de selección de texto */
::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* Botón para volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.back-to-top i {
    font-size: 20px;
    animation: float 2s ease-in-out infinite;
}

/* Botón de inscripción con efecto de brillo */
.cta-container {
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: none;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: rotate(0deg);
    transition: transform 0.5s;
    z-index: 1;
    opacity: 0;
}

.cta-button:hover:before {
    opacity: 1;
    transform: rotate(45deg);
}

.cta-button i {
    transition: all var(--transition);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.5);
}

.cta-button:hover i {
    transform: translateX(5px);
}

.glow-effect {
    position: relative;
}

.glow-effect:after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.4) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.glow-effect:hover:after {
    opacity: 1;
}

/* Efectos de revelación al hacer scroll */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para enlaces de navegación */
.nav-link {
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    transition: all var(--transition);
    position: relative;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    display: inline-block;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 152, 219, 0.1);
    top: 0;
    left: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition);
    z-index: -1;
    border-radius: var(--border-radius-lg);
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover::after {
    transform: scaleY(1);
}

.navbar__user {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--gray-light);
    cursor: pointer;
    transition: all var(--transition);
    margin-left: 15px;
}

.navbar__user i {
    color: var(--dark);
    transition: all var(--transition);
}

.navbar__user:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.navbar__user:hover i {
    color: white;
    animation: pulse 2s infinite;
}

.user-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.user-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--dark) transparent;
}

.navbar__user:hover .user-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.highlight-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 15px 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.navbar__logo {
    position: relative;
    overflow: hidden;
}

.navbar__logo h1 {
    font-size: 24px;
    color: var(--dark);
    font-weight: 700;
    position: relative;
    transition: all var(--transition);
}

.navbar__logo h1::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    left: -15px;
    top: -15px;
    opacity: 0.2;
    transition: all var(--transition-slow);
    transform: scale(0);
}

.navbar__logo:hover h1::before {
    transform: scale(5);
    opacity: 0.1;
}

.navbar__logo h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.navbar__logo:hover h1::after {
    transform: scaleX(1);
}

.navbar__search {
    display: flex;
    align-items: center;
    background-color: var(--gray-light);
    padding: 10px 20px;
    border-radius: var(--border-radius-xl);
    width: 300px;
    transition: all var(--transition);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.navbar__search:focus-within {
    box-shadow: 0 0 0 2px var(--primary), inset 0 0 0 1px rgba(0, 0, 0, 0);
    background-color: var(--white);
    transform: translateY(-2px);
}

.navbar__search i {
    color: var(--gray-dark);
    margin-right: 10px;
    transition: all var(--transition);
}

.navbar__search:focus-within i {
    color: var(--primary);
}

.navbar__search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #7f8c8d;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar__menu p {
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.navbar__menu p:hover {
    color: #3498db;
}

.navbar__menu p:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s;
}

.navbar__menu p:hover:after {
    width: 100%;
}

.navbar__menu i {
    font-size: 22px;
    cursor: pointer;
    color: #2c3e50;
    transition: color 0.3s;
}

.navbar__menu i:hover {
    color: #3498db;
}

.navbar__mobile-menu {
    display: none;
}

/* Categorías */
.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.categories:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(52, 152, 219, 0.05), rgba(255,255,255,0));
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    z-index: -1;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius-xl);
    background-color: var(--white);
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.category-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.category-item:hover:before {
    transform: translateX(100%);
}

.category-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background-color: var(--white);
    border-color: rgba(52, 152, 219, 0.3);
    z-index: 2;
}

.category-item i {
    font-size: 20px;
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.category-item:hover i {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 2s infinite;
}

.category-item p {
    font-weight: 600;
    margin: 0;
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.category-item:hover p {
    transform: translateX(3px);
}

/* Estilos específicos para cada categoría */
.category-item:nth-child(1) {
    border-bottom: 3px solid var(--primary);
}

.category-item:nth-child(1) i {
    color: var(--primary);
}

.category-item:nth-child(1):hover p {
    color: var(--primary);
}

.category-item:nth-child(2) {
    border-bottom: 3px solid var(--accent);
}

.category-item:nth-child(2) i {
    color: var(--accent);
}

.category-item:nth-child(2):hover p {
    color: var(--accent);
}

.category-item:nth-child(3) {
    border-bottom: 3px solid var(--secondary);
}

.category-item:nth-child(3) i {
    color: var(--secondary);
}

.category-item:nth-child(3):hover p {
    color: var(--secondary);
}

.category-item:nth-child(4) {
    border-bottom: 3px solid var(--warning);
}

.category-item:nth-child(4) i {
    color: var(--warning);
}

.category-item:nth-child(4):hover p {
    color: var(--warning);
}

.category-item:nth-child(5) {
    border-bottom: 3px solid var(--danger);
}

.category-item:nth-child(5) i {
    color: var(--danger);
}

.category-item:nth-child(5):hover p {
    color: var(--danger);
}

/* Banner principal */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shapeFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes shapeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
    50% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.8); }
    100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
}

@keyframes typeWriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-banner {
    background: linear-gradient(-45deg, #3498db, #2980b9, #8e44ad, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 120px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.course-card__image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all var(--transition-slow);
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -100px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    animation: shapeFloat 15s ease-in-out infinite, shapeRotate 25s linear infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    animation: shapeFloat 20s ease-in-out infinite reverse, shapeRotate 30s linear infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: 30%;
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    animation: shapeFloat 18s ease-in-out infinite, shapeRotate 20s linear infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 120px;
    right: 20%;
    border-radius: 59% 41% 41% 59% / 37% 59% 41% 63%;
    animation: shapeFloat 12s ease-in-out infinite reverse, shapeRotate 15s linear infinite reverse;
}

.hero-banner:hover .shape {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius-xl);
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out, float 3s ease-in-out infinite;
    transition: all var(--transition);
}

.hero-badge:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-banner h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

.highlight {
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding: 0 5px;
    font-weight: 700;
    z-index: 1;
}

.highlight:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: 0;
    left: 0;
    z-index: -1;
    border-radius: var(--border-radius-sm);
    animation: glowPulse 3s infinite;
    transform: skewX(-5deg);
}

.hero-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-out;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    text-align: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, #ecf0f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.stat-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 34px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #2c3e50);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 34px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-secondary:active {
    transform: translateY(1px);
}

/* Sección de cursos recomendados */
.recommended-courses {
    padding: 80px 30px;
    background-color: white;
}

.recommended-courses h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #2c3e50;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.recommended-courses h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.recommended-courses > p {
    color: #7f8c8d;
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.course-cards {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    overflow-x: visible;
    padding-bottom: 20px;
    justify-content: center;
}

.course-cards::-webkit-scrollbar {
    height: 8px;
}

.course-cards::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.course-cards::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.course-card {
    min-width: 280px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f1f1f1;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.course-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

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

.course-image:before {
    content: '';
    position: absolute;
    top: 0;
}

.course-card__badge--new {
    background-color: #e74c3c;
}

.course-card__img {
    height: 140px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card:nth-child(2) .course-card__img {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.course-card:nth-child(3) .course-card__img {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.course-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.course-card__content {
    padding: 25px;
}

.course-card__meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 14px;
    color: var(--gray-dark);
}

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

.course-card__tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.course-tag {
    background-color: #f8f9fa;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.course-card h3 {
    font-size: 20px;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 12px;
}

.course-card p {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature i {
    color: #3498db;
    font-size: 14px;
}

.feature span {
    font-size: 14px;
    color: #7f8c8d;
}

.course-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}

.course-rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #f1c40f;
    font-size: 14px;
}

.course-rating span {
    font-size: 13px;
    color: #7f8c8d;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.courses-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.btn-secondary i {
    transition: transform 0.3s;
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

.course-card p:last-of-type {
    padding-bottom: 20px;
}

.course-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform-origin: center;
    text-align: center;
}

.popular-badge {
    background: linear-gradient(90deg, #f1c40f, #f39c12);
    box-shadow: 0 3px 10px rgba(241, 196, 15, 0.3);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Sección de temas */
@keyframes floatTag {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes glowBorder {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
    50% { box-shadow: 0 0 15px rgba(52, 152, 219, 0.6); }
    100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.topics {
    padding: 100px 30px;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.topics:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.topics:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.03) 0%, transparent 50%), 
                radial-gradient(circle at 80% 70%, rgba(155, 89, 182, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.topics h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark);
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.topics h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    animation: glowBorder 3s infinite;
}

.topics-intro {
    text-align: center;
    color: var(--gray-dark);
    font-size: 18px;
    max-width: 700px;
    margin: 30px auto 50px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
    line-height: 1.6;
}

.topics__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.topic-tag {
display: flex;
align-items: center;
gap: 12px;
background-color: var(--white);
padding: 14px 24px;
border-radius: var(--border-radius-xl);
box-shadow: var(--shadow-sm);
cursor: pointer;
transition: all var(--transition);
border: 1px solid var(--gray-light);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
animation: fadeIn 0.5s ease-out;
animation-fill-mode: both;
}

.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
    width: 300px;
    min-width: 300px;
    position: relative;
    animation: fadeIn 0.8s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.topics__content .topic-tag:nth-child(1) { animation-delay: 0.1s; }
.topics__content .topic-tag:nth-child(2) { animation-delay: 0.2s; }
.topics__content .topic-tag:nth-child(3) { animation-delay: 0.3s; }
.topics__content .topic-tag:nth-child(4) { animation-delay: 0.4s; }
.topics__content .topic-tag:nth-child(5) { animation-delay: 0.5s; }
.topics__content .topic-tag:nth-child(6) { animation-delay: 0.6s; }
.topics__content .topic-tag:nth-child(7) { animation-delay: 0.7s; }
.topics__content .topic-tag:nth-child(8) { animation-delay: 0.8s; }
.topics__content .topic-tag:nth-child(9) { animation-delay: 0.9s; }
.topics__content .topic-tag:nth-child(10) { animation-delay: 1s; }

.topic-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.topic-tag:hover:before {
    transform: translateX(100%);
}

.topic-tag:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.topic-tag:hover:after {
    transform: scaleX(1);
}

.topic-tag i {
    font-size: 18px;
    transition: all var(--transition);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.topic-tag span {
    font-weight: 500;
    color: var(--dark);
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.topic-tag:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.topic-tag:hover i {
    transform: scale(1.3) rotate(15deg);
    color: var(--primary);
}

.topic-tag:hover span {
    font-weight: 600;
    transform: translateX(3px);
}

.topic-tag:nth-child(10) i {
    color: var(--accent-dark);
}

.courses-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
    padding: 20px 0;
}

.text-center {
    text-align: center !important;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--border-radius-xl);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.section-badge:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite linear;
}

.section-divider {
    position: relative;
    height: 20px;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    text-align: center;
}

.section-divider:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    top: 50%;
    left: 0;
}

.section-divider span {
    display: inline-block;
    position: relative;
    background-color: var(--white);
    padding: 0 15px;
    z-index: 1;
}

.section-divider i {
    color: var(--primary);
    font-size: 18px;
    animation: pulse 2s infinite;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-xl);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all 0.5s;
    z-index: -1;
}

.btn-outline:hover:before {
    width: 100%;
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-outline i {
    transition: all var(--transition);
}

.btn-outline:hover i {
    transform: translateX(8px);
}

/* Colores para los diferentes temas */
.topic-tag:nth-child(1) {
    border-left: 3px solid var(--primary);
}

.topic-tag:nth-child(1) i {
    color: var(--primary);
}

.topic-tag:nth-child(2) {
    border-left: 3px solid var(--accent);
}

.topic-tag:nth-child(2) i {
    color: var(--accent);
}

.topic-tag:nth-child(3) {
    border-left: 3px solid var(--secondary);
}

.topic-tag:nth-child(3) i {
    color: var(--secondary);
}

.topic-tag:nth-child(4) {
    border-left: 3px solid var(--warning);
}

.topic-tag:nth-child(4) i {
    color: var(--warning);
}

.topic-tag:nth-child(5) {
    border-left: 3px solid var(--danger);
}

.topic-tag:nth-child(5) i {
    color: var(--danger);
}

.topic-tag:nth-child(6) {
    border-left: 3px solid #1abc9c;
}

.topic-tag:nth-child(6) i {
    color: #1abc9c;
}

.topic-tag:nth-child(7) {
    border-left: 3px solid var(--dark);
}

.topic-tag:nth-child(7) i {
    color: var(--dark);
}

.topic-tag:nth-child(8) {
    border-left: 3px solid #e67e22;
}

.topic-tag:nth-child(8) i {
    color: #e67e22;
}

.topic-tag:nth-child(9) {
    border-left: 3px solid #16a085;
}

.topic-tag:nth-child(9) i {
    color: #16a085;
}

.topic-tag:nth-child(10) {
    border-left: 3px solid var(--accent-dark);
}

.topic-tag:nth-child(10) i {
    color: var(--accent-dark);
}

.topics-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

/* Animaciones adicionales */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Estilos para el nuevo badge */
.new-badge {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.3);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.btn-outline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all 0.5s;
    z-index: -1;
}

.btn-outline:hover:before {
    width: 100%;
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-outline i {
    transition: all var(--transition);
}

.btn-outline:hover i {
    transform: translateX(8px);
}

/* Sección de beneficios */
.benefits {
    padding: 80px 30px;
    background-color: white;
    position: relative;
}

.benefits:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.benefits h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.benefits h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.benefits-intro {
    text-align: center;
    color: #7f8c8d;
    font-size: 18px;
    max-width: 800px;
    margin: 30px auto 50px;
    line-height: 1.6;
}

.benefits__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    width: 280px;
    text-align: left;
    padding: 0;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f1f1;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    top: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

.benefit-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.benefit-icon:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2980b9);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover .benefit-icon:after {
    transform: scaleX(1);
}

.benefit-icon i {
    font-size: 50px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon i {
    transform: scale(1.1);
}

.benefit-card h3 {
    padding: 20px 25px 10px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.benefit-card p {
    padding: 0 25px 15px;
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

.benefit-features {
    list-style: none;
    padding: 0 25px 25px;
    margin: 0;
}

.benefit-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.benefit-features li i {
    color: #27ae60;
    font-size: 14px;
}

.benefits-cta {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.benefits-cta p {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
}

.benefits-cta .btn-primary {
    padding: 15px 40px;
    font-size: 18px;
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
}

/* Página de inscripción */
.course-image {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-image-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.course-image:hover .course-image-preview {
    transform: scale(1.03);
}

.course-summary {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.course-summary h2 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    padding-bottom: 10px;
}

.course-summary h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.course-description {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 25px;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

.detail-item i {
    font-size: 24px;
    color: var(--primary);
}

.detail-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--dark);
}

.detail-item p {
    margin: 0;
    color: var(--gray-dark);
    font-size: 14px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
    padding: 80px 30px 60px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2980b9, #2c3e50);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__column {
    flex: 1;
    min-width: 250px;
}

.footer__column h3 {
    margin-bottom: 25px;
    font-size: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer__column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
}

.footer__column p {
    margin-bottom: 12px;
    color: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}

.footer__column p:hover {
    color: white;
    transform: translateX(5px);
}

.footer__column p:first-of-type {
    margin-bottom: 20px;
    color: #ecf0f1;
    font-weight: 300;
    line-height: 1.6;
}

.footer__column p:first-of-type:hover {
    transform: none;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .navbar__search {
        width: 50%;
    }
    
    .navbar__menu {
        display: none;
    }
    
    .navbar__mobile-menu {
        display: block;
    }
    
    .navbar__mobile-menu i {
        font-size: 24px;
        color: #2c3e50;
        cursor: pointer;
    }
    
    .categories {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px;
    }
    
    .categories p {
        white-space: nowrap;
    }
    
    .hero-banner {
        padding: 80px 20px;
    }
    
    .hero-banner__content h2 {
        font-size: 32px;
    }
    
    .hero-banner__content p {
        font-size: 18px;
    }
    
    .course-cards {
        overflow-x: auto;
        padding-bottom: 20px;
    }
    
    .recommended-courses,
    .topics,
    .benefits {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px;
    }
    
    .navbar__logo h1 {
        font-size: 22px;
    }
    
    .navbar__search {
        width: 60%;
    }
    
    .hero-banner {
        padding: 60px 15px;
    }
    
    .hero-banner__content h2 {
        font-size: 28px;
    }
    
    .hero-banner__content p {
        font-size: 16px;
    }
    
    .recommended-courses h2,
    .topics h2,
    .benefits h2 {
        font-size: 26px;
    }
    
    .recommended-courses,
    .topics,
    .benefits,
    .footer {
        padding: 50px 15px;
    }
    
    .benefit-card {
        width: 100%;
    }
}
