/* Dark Violet Theme - Cudemix 2026 */

:root {
    --bg-color: #0B0E14; /* Deep dark blue/black */
    --surface-color: #151A22; /* Slightly lighter for cards */
    --primary-color: #8A2BE2; /* Violet / Purple */
    --primary-glow: rgba(138, 43, 226, 0.4);
    --secondary-color: #00E5FF; /* Cyan accent for high-tech feel */
    --text-main: #FFFFFF;
    --text-muted: #A0AABF;
    --border-color: #2A3143;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-color), #D152FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6A0DAD);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #1EBE55;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Navbar */
.navbar {
    background-color: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 85px; /* Increased for better visibility (175% feel) */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links a {
    margin: 0 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-b2b {
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    color: var(--primary-color) !important;
}

.nav-actions .btn {
    margin-left: 10px;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138,43,226,0.15) 0%, rgba(11,14,20,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

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

.hero-image {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.orb-small {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 80%;
    filter: blur(20px);
    animation: float 4s ease-in-out infinite reverse;
}

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

/* Courses Section */
.section-courses {
    padding: 80px 0;
    background-color: #080A0F;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--surface-color);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.92);
    backdrop-filter: blur(4px);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.card-overlay h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

.card-overlay ul {
    list-style: none;
    font-size: 0.85rem;
}

.card-overlay ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
}

.card-overlay ul li::before {
    content: '→';
    color: var(--primary-color);
    margin-right: 8px;
    font-weight: bold;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-popular {
    background-color: #FF9800;
    color: #000;
}

.badge-new {
    background-color: var(--secondary-color);
    color: #000;
}

.card-content {
    padding: 20px;
}

.card-content .category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* B2B Section */
.section-b2b {
    padding: 80px 0;
}

.b2b-card {
    background: linear-gradient(135deg, var(--surface-color), #0D111A);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.b2b-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, rgba(138,43,226,0) 0%, rgba(138,43,226,0.1) 100%);
}

.b2b-content {
    flex: 2;
    z-index: 1;
}

.b2b-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.b2b-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.b2b-list {
    list-style: none;
    margin-bottom: 40px;
}

.b2b-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.b2b-list i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.b2b-graphic {
    flex: 1;
    text-align: center;
    font-size: 8rem;
    color: rgba(138, 43, 226, 0.2);
    z-index: 1;
}

/* Footer & Contact */
footer {
    background-color: #06080C;
    padding: 70px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.badge-shield {
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(0, 229, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: white;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-social p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-icons a {
    color: var(--text-muted);
    margin-right: 15px;
    font-size: 1.1rem;
}

.footer-links a:hover, .social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .b2b-card {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .b2b-card {
        padding: 40px 20px;
    }
    
    .b2b-list li {
        text-align: left;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* === Animación de entrada de tarjetas === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card {
    animation: fadeInUp 0.5s ease both;
}

/* === Toast notifications === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
