﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Sin perspective en el árbol raíz: si no, position:fixed (FAB IA / volver arriba)
   queda anclado al documento y “se va” al hacer scroll. */
html, body {
    -webkit-perspective: none;
    perspective: none;
    -webkit-transform: none;
    transform: none;
}

html {
    scroll-padding-top: 110px;
}

:root {
--primary-color: #2563eb;
--secondary-color: #059669;
--accent-color: #f59e0b;
    --dark-bg: #111827;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #64748b;
    --white: #ffffff;
--gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    --gradient-3: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
}

/* Dark Mode Variables */
body.dark-mode {
    --light-bg: #1f2937;
    --white: #111827;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --dark-bg: #111827;
}

body.dark-mode {
    background: #0f172a;
    color: #f1f5f9;
}

body.dark-mode > header:not(.admin-header-section) {
    background: #1e293b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode .about-card,
body.dark-mode .course-card,
body.dark-mode .contact-form,
body.dark-mode .project-card,
body.dark-mode .news-card,
body.dark-mode .faq-item,
body.dark-mode .why-card,
body.dark-mode .proof-card,
body.dark-mode .testimonial-card,
body.dark-mode .admission-cta-box,
body.dark-mode .roadmap-step {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .message-content {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .chatbot-messages {
    background: #0f172a;
}

body.dark-mode footer {
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

body.dark-mode .footer-section h4 {
    color: #f1f5f9;
}

body.dark-mode .footer-contact li {
    color: #cbd5e1;
}

body.dark-mode .footer-badges .badge {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .social-proof {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

body.dark-mode .credibility-stat,
body.dark-mode .service-item,
body.dark-mode .service-request-form {
    background: #1e293b;
}

body.dark-mode .course-meta span,
body.dark-mode .section-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-perspective: none;
    perspective: none;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

img,
video,
iframe {
    max-width: 100%;
}

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

/* Navbar */
body > header:not(.admin-header-section) {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0;
    appearance: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.hamburger .dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: 0.3s;
}

.admin-mobile-only {
    display: none;
}

.theme-toggle-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.theme-toggle-btn i {
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background:
        radial-gradient(1200px 600px at 15% 10%, rgba(14, 165, 233, 0.18) 0%, transparent 60%),
        radial-gradient(900px 500px at 85% 20%, rgba(16, 185, 129, 0.14) 0%, transparent 60%),
        radial-gradient(800px 500px at 50% 110%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
        linear-gradient(135deg, #0b1220 0%, #0f172a 45%, #111827 100%);
    color: var(--white);
    padding: 160px 20px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(420px 420px at 18% 22%, rgba(14, 165, 233, 0.35) 0%, transparent 65%),
        radial-gradient(380px 380px at 82% 78%, rgba(16, 185, 129, 0.28) 0%, transparent 65%);
    filter: blur(60px);
    opacity: 0.55;
    animation: orbFloat 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 0 auto;
    color: var(--white);
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(125, 211, 252, 0.35);
    color: #e0f2fe;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
    animation: pulseDot 2.2s ease-in-out infinite;
}

.hero h1 {
    background: linear-gradient(90deg, #38bdf8 0%, #22d3ee 45%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.1rem, 5.2vw, 3.8rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    animation: fadeInUp 1s ease;
    filter: drop-shadow(0 4px 24px rgba(14, 165, 233, 0.25));
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    color: #7dd3fc;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.4s backwards;
    color: rgba(226, 232, 240, 0.88);
}

.cta-button {
    padding: 16px 44px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease 0.6s backwards;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 50%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
}

.cta-button.primary:hover::before {
    left: 120%;
}

.cta-button.secondary {
    background: rgba(15, 23, 42, 0.45);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(125, 211, 252, 0.6);
    color: #e0f2fe;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.cta-button.compact {
    padding: 14px 28px;
    font-size: 1rem;
}

.hero-intent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.intent-card {
    position: relative;
    text-align: left;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.55) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--white);
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    display: grid;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s, background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.intent-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #22d3ee, #34d399);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intent-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.18) 0%, rgba(16, 185, 129, 0.10) 100%);
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.intent-card:hover::after {
    opacity: 1;
}

.intent-card i {
    font-size: 1.5rem;
    color: #7dd3fc;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.25);
}

.intent-card strong {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}

.intent-card span {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.55;
}

.hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.proof-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.92rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.proof-pill:hover {
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(14, 165, 233, 0.12);
    transform: translateY(-1px);
}

.proof-pill i {
    color: #34d399;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5));
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    animation: fadeInUp 1s ease 1s backwards;
}

.hero-section-switcher,
.hero-shortcuts {
    margin-top: 2.25rem;
}

.switcher-label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.switcher-grid,
.shortcut-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.section-switcher-btn,
.shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.5);
    color: rgba(241, 245, 249, 0.92);
    padding: 0.7rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
    backdrop-filter: blur(12px);
}

.section-switcher-btn i,
.shortcut-btn i {
    color: #7dd3fc;
    transition: color 0.3s;
}

.section-switcher-btn:hover,
.shortcut-btn:hover {
    transform: translateY(-2px);
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(125, 211, 252, 0.5);
    color: #ffffff;
}

.section-switcher-btn.active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(16, 185, 129, 0.2));
    border-color: rgba(125, 211, 252, 0.65);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
}

.section-switcher-btn.active i {
    color: #e0f2fe;
}

.home-panel {
    display: none;
    animation: fadeInUp 0.45s ease;
}

.home-panel.active {
    display: block;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 700;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: #bfdbfe;
}

.computec-cube-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.cube-container {
    margin-bottom: 2rem;
}

.stats-cube {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.hero .cube-face,
.hero .cube-face h3,
.hero .cube-face p,
.hero .intro-text,
.hero .stat-label {
    color: var(--white);
}

.hero .hero-stats .stat-item {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1.5rem;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.hero .hero-stats .stat-item:first-child {
    border-left: none;
}

.hero .hero-stats .stat-number {
    background: linear-gradient(90deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero .hero-stats .stat-label {
    font-size: 0.85rem;
    margin-left: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(203, 213, 225, 0.85);
    font-weight: 500;
}

.hero .intro-text {
    color: rgba(255, 255, 255, 0.92);
}

.hero .intro-text strong,
.hero .cube-face strong {
    color: var(--white);
}

.hero .methodology-section h3,
.hero .teacher-info h3,
.hero .admission-requirements h3 {
    color: #93c5fd;
}
    .hero .methodology-section h3,
    .hero .teacher-info h3,
    .hero .admission-requirements h3 {
        color: #93c5fd !important;
    }
    .hero .methodology-section h3 i,
    .hero .teacher-info h3 i,
    .hero .admission-requirements h3 i {
        color: #60a5fa !important;
    }
    .hero .methodology-intro {
        color: #e2e8f0 !important;
    }

.hero .methodology-intro {
    color: #e2e8f0;
}

.hero .methodology-section h3 i,
.hero .teacher-info h3 i,
.hero .admission-requirements h3 i {
    color: #60a5fa;
}

@media (max-width: 768px) {
    /* Tablet/Mobile Rendering Optimization */
    * {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }

    h1, h2, h3, h4, h5, h6,
    p, span, a, button, label {
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

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

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, -2%) scale(1.04); }
    66% { transform: translate(-2%, 3%) scale(0.98); }
}

@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.08);
        transform: scale(1.15);
    }
}

/* What is Computec Section */
.what-is-computec {
    padding: 80px 20px;
    background: var(--light-bg);
}

.what-is-computec h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.computec-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.intro-text strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image i {
    font-size: 10rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.why-computec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
}

.why-kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 0.65rem;
}

.why-card h4 {
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.82);
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.mission-card p,
.vision-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.values-section {
    text-align: center;
}

.values-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Methodology Section */
.methodology-section {
    margin: 4rem 0;
    text-align: center;
}

.methodology-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.methodology-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.method-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.method-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.method-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.method-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Teacher Info Section */
.teacher-info {
    margin: 4rem 0;
    text-align: center;
}

.teacher-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.teacher-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    flex-shrink: 0;
}

.teacher-details {
    text-align: left;
    min-width: 0;
}

.teacher-details h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.teacher-details p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.teacher-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.teacher-details a:hover {
    color: var(--secondary-color);
}

/* Teacher Gallery */
.teacher-gallery {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.teacher-gallery h4 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

body.dark-mode .teacher-gallery h4 {
    color: #f1f5f9;
}

.teacher-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.teacher-gallery-item {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.teacher-gallery-item:hover {
    transform: scale(1.05);
}

.teacher-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .teacher-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Mobile Rendering Optimization */
    * {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }

    html, body {
        -webkit-text-size-adjust: 100%;
        text-rendering: optimizeLegibility !important;
    }

    h1, h2, h3, h4, h5, h6,
    p, span, a, li, button, label, input, textarea, select {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
        backface-visibility: hidden !important;
    }

    img {
        -webkit-backface-visibility: hidden !important;
        image-rendering: -webkit-optimize-contrast !important;
        -webkit-user-select: none;
    }

    .switcher-grid,
    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .hero-intent-grid {
        grid-template-columns: 1fr;
    }

    .proof-pill,
    .intent-card span,
    .roadmap-step p,
    .proof-card p,
    .testimonial-card p {
        font-size: 0.92rem;
    }

    .admission-cta-box,
    .proof-card,
    .testimonial-card,
    .roadmap-step,
    .final-cta-box {
        padding: 1.2rem;
    }

    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo-image {
        height: 56px;
    }

    .nav-menu {
        top: 88px;
        padding-inline: 1rem;
    }

    .hero {
        padding: 120px 14px 72px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .teacher-avatar {
        width: 84px;
        height: 84px;
        font-size: 2.4rem;
    }

    .employment-opportunities,
    .gallery-in-section,
    .course-card,
    .projection-card,
    .about-card,
    .requirement-item,
    .method-card,
    .project-card,
    .news-card {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .teacher-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Admission Section (standalone) */
.admission-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

/* Admission Requirements */
.admission-requirements {
    margin-top: 4rem;
}

.admission-requirements h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.admission-roadmap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.roadmap-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    padding: 1.4rem;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.roadmap-step span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.roadmap-step h4 {
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.roadmap-step p {
    color: var(--text-light);
}

.admission-cta-box {
    margin-top: 2rem;
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.admission-cta-box strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.admission-cta-box p {
    color: var(--text-light);
}

.requirement-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.requirement-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.requirement-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.requirement-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.requirement-item p {
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 80px 20px;
    background: var(--light-bg);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.about-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-light);
}

/* Projections Section */
.projections {
    padding: 80px 20px;
    background: var(--white);
}

.projections h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.projections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.projection-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.projection-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.projection-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.projection-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.projection-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.projection-card:nth-child(6) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.projection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.projection-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projection-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.growth-bar {
    background: rgba(255,255,255,0.3);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.growth-fill {
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    animation: growBar 2s ease forwards;
}

@keyframes growBar {
    from { width: 0; }
}

.growth-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.job-list {
    list-style: none;
    padding: 0;
}

.job-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.job-list li:last-child {
    border-bottom: none;
}

/* Courses Section */
.courses {
    padding: 80px 20px;
    background: var(--light-bg);
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.course-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.course-meta span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
}

.course-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.course-card ul {
    list-style: none;
    padding: 0;
}

.course-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* Employment Opportunities */
.employment-opportunities {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--light-bg);
    border-radius: 20px;
}

.employment-opportunities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.opportunity-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.opportunity-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.opportunity-item i:first-child {
    font-size: 2rem;
    color: var(--primary-color);
}

.opportunity-item span {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.opportunity-item .arrow-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.opportunity-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* Student Projects Section */
.student-projects {
    padding: 80px 20px;
    background: var(--white);
}

.student-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.projects-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.featured-projects-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0 1.5rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.featured-projects-title i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    from {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    }
    to {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

.featured-project {
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

.featured-project:hover {
    transform: translateY(-15px) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3), 0 15px 40px rgba(0,0,0,0.3) !important;
}

.featured-project .project-image {
    height: 180px;
}

.featured-project .project-image i {
    font-size: 5rem;
}

.featured-project .view-project-btn {
    background: var(--project-button-bg, linear-gradient(135deg, #ffd700, #ffed4e));
    color: var(--project-button-color, #333);
    font-weight: bold;
}

.featured-project .view-project-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-image {
    background: var(--project-image-bg, var(--gradient));
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.project-card:nth-child(2) .project-image {
    background: var(--gradient-2);
}

.project-card:nth-child(3) .project-image {
    background: var(--gradient-3);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-card:nth-child(5) .project-image {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.project-card:nth-child(6) .project-image {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.project-content {
    padding: 1.5rem;
}

.project-badge {
    background: var(--project-badge-bg, linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%));
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-author {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.view-project-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.view-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.credibility-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 2.5rem;
}

.credibility-stat {
    background: var(--light-bg);
    border-radius: 18px;
    padding: 1.2rem;
    text-align: center;
}

.credibility-stat strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.credibility-stat span {
    color: var(--text-light);
}

.social-proof {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 100%);
}

.social-proof h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.proof-card,
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.proof-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.proof-card h3 {
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.proof-card p {
    color: var(--text-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    position: relative;
}

.testimonial-card p {
    color: var(--text-dark);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-card footer {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gaming Day Section */
.gaming-day {
    padding: 90px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.gaming-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 0, 150, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px);
    pointer-events: none;
}

.gaming-day .container {
    position: relative;
    z-index: 1;
}

.gaming-day h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gaming-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.gaming-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gaming-info p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
}

.gaming-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    color: #0ea5e9;
}

.feature-item i {
    font-size: 1.5rem;
}

.gaming-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gaming-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.gaming-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gaming-icon-container {
    position: relative;
}

.gaming-trophy {
    font-size: 10rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.gaming-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gaming-particles i {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.gaming-particles i:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.gaming-particles i:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.gaming-particles i:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

/* News Section */
.news {
    padding: 80px 20px;
    background: var(--light-bg);
}

.news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.news-card.featured {
    grid-column: span 2;
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.news-image {
    background: var(--gradient);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.news-card:nth-child(2) .news-image {
    background: var(--gradient-2);
}

.news-card:nth-child(3) .news-image {
    background: var(--gradient-3);
}

.news-card:nth-child(4) .news-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.news-card:nth-child(5) .news-image {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.news-card:nth-child(6) .news-image {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.news-actions-row {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
}

.read-more:hover {
    gap: 10px;
}

/* ============================================
WORKSHOP GALLERY SECTION (Inside ¿Qué es COMPUTEC?)
============================================ */
.gallery-in-section {
    margin: 4rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .gallery-in-section {
    background: #1e293b;
}

.gallery-in-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gallery-in-section h3 i {
    margin-right: 10px;
}

.gallery-in-section .section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.gallery-carousel-section {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-carousel-section .carousel-container {
    height: 400px;
}

/* ============================================
WORKSHOP GALLERY SECTION (Standalone - for reference)
============================================ */
.workshop-gallery {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a192f 0%, #0d3b4f 50%, #0f5257 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.workshop-gallery::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 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(14,165,233,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.workshop-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0ea5e9;
    position: relative;
    z-index: 1;
}

.workshop-gallery h2 i {
    margin-right: 10px;
}

.workshop-gallery .section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* Carousel Container */
.gallery-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto 2rem;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

/* Slide Content Overlay */
.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 60px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.carousel-slide.active .carousel-content {
    transform: translateY(0);
}

.carousel-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 165, 233, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: #0ea5e9;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-indicator.active {
    background: #0ea5e9;
    border-color: white;
    transform: scale(1.2);
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .navbar .container {
        gap: 0.75rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .theme-toggle-btn,
    .admin-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 96px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 6vw, 3.4rem);
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

    .stat-label {
        margin-left: 0;
    }

    .teacher-card {
        max-width: 100%;
    }
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: #0ea5e9;
    transform: scale(1.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty Gallery State */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.gallery-empty p {
    font-size: 1.2rem;
}

/* ============================================
ADMIN GALLERY STYLES
============================================ */
.gallery-admin-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.gallery-admin-section h3 {
    color: #0ea5e9;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-settings .form-group {
    margin-bottom: 0;
}

.gallery-settings label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.gallery-settings input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed #0ea5e9;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f0f9ff;
    margin-bottom: 1.5rem;
}

.image-upload-area:hover {
    background: #e0f2fe;
    border-color: #0284c7;
}

.image-upload-area i {
    font-size: 3rem;
    color: #0ea5e9;
    margin-bottom: 1rem;
}

.image-upload-area p {
    color: #666;
    margin-bottom: 0.5rem;
}

.image-upload-area span {
    font-size: 0.85rem;
    color: #999;
}

/* Image List */
.gallery-image-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-image-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.gallery-image-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-image-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.image-preview {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-details {
    flex: 1;
    min-width: 0;
}

.image-details input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.image-details input:focus {
    outline: none;
    border-color: #0ea5e9;
}

.image-details textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    font-size: 0.9rem;
    font-family: inherit;
}

.image-details textarea:focus {
    outline: none;
    border-color: #0ea5e9;
}

.image-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-actions .btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-move-up {
    background: #e0f2fe;
    color: #0369a1;
}

.btn-move-up:hover {
    background: #bae6fd;
}

.btn-move-down {
    background: #e0f2fe;
    color: #0369a1;
}

.btn-move-down:hover {
    background: #bae6fd;
}

.btn-delete-image {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete-image:hover {
    background: #fecaca;
}

/* Preview Modal */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-modal.active {
    display: flex;
}

.preview-content {
    background: #0a192f;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.preview-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .gallery-image-item {
        flex-direction: column;
        align-items: stretch;
    }

    .image-preview {
        width: 100%;
        height: 150px;
    }

    .image-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
        border-radius: 12px;
    }

    .workshop-gallery h2 {
        font-size: 1.8rem;
    }

    .carousel-content h3 {
        font-size: 1.2rem;
    }

    .thumbnail {
        width: 50px;
        height: 40px;
    }
}

/* Tech Services Section */
.tech-services {
    padding: 80px 20px;
    background: var(--white);
}

.tech-services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.services-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateX(10px);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.service-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-item p {
    color: var(--text-light);
}

.service-request-form {
    background: var(--light-bg);
    width: min(100%, 560px);
    padding: 2.2rem;
    border-radius: 18px;
    text-align: center;
    justify-self: center;
}

.service-request-form h3 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.8rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.feature-check i {
    color: #10b981;
    font-size: 1.2rem;
}

.service-btn {
    background: var(--gradient);
    color: var(--white);
    padding: 14px 26px;
    border: none;
    border-radius: 50px;
    font-size: 1.08rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.final-cta {
    padding: 40px 20px 0;
    background: var(--light-bg);
}

.final-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: var(--white);
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.final-cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.final-cta-box p {
    color: rgba(255,255,255,0.85);
    max-width: 640px;
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    cursor: pointer;
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
    margin-top: 0.2rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

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

.form-success {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 15px;
}

.form-success i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-success h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.reset-btn {
    padding: 0.8rem 2rem;
    background: var(--light-bg);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Form validation styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Chatbot Button - Opens External AI Tutor */
.chatbot-wrapper {
    position: fixed;
    right: max(30px, env(safe-area-inset-right, 0px));
    bottom: max(30px, env(safe-area-inset-bottom, 0px));
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10050;
    width: max-content;
}

.chatbot-ia-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.chatbot-ia-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 999px;
}

.chatbot-label {
    background: var(--gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.chatbot-fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-ia-link:hover .chatbot-fab {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.6);
}

.chatbot-fab i {
    animation: pulse 2s infinite;
}

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

/* Tour Overlay */
.tour-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.tour-spotlight {
    position: absolute;
    border: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(14, 165, 233, 1),
        0 0 80px rgba(16, 185, 129, 0.7),
        inset 0 0 20px rgba(14, 165, 233, 0.3);
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
    animation: spotlightPulse 2s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% {
        border-color: var(--primary-color);
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.85),
            0 0 40px rgba(14, 165, 233, 1),
            0 0 80px rgba(16, 185, 129, 0.7),
            inset 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        border-color: var(--secondary-color);
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.85),
            0 0 50px rgba(16, 185, 129, 1),
            0 0 90px rgba(14, 165, 233, 0.7),
            inset 0 0 25px rgba(16, 185, 129, 0.3);
    }
}

.tour-tooltip {
    position: absolute;
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10001;
}

.tour-content h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.tour-content p {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    line-height: 1.6;
}

.tour-progress {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.tour-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tour-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 0.95rem;
}

.tour-skip {
    background: #e2e8f0;
    color: var(--text-dark);
}

.tour-skip:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.tour-next {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.tour-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

/* Admin Panel */
.admin-panel {
    padding: 80px 20px;
    background: var(--light-bg);
}

.admin-panel .container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-panel h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.admin-login {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-login h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

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

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-edit {
    background: #ffc107;
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-delete:hover {
    background: #c82333;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
}

.admin-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.admin-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.admin-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.admin-form h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-list h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.news-list-item .news-info {
    flex: 1;
}

.news-list-item .news-info h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.news-list-item .news-info span {
    font-size: 0.9rem;
    color: #666;
}

.news-list-item .news-actions {
    display: flex;
    gap: 0.5rem;
}

/* Link to admin panel in nav */
.admin-link {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.admin-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

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

footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-badges .badge {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-section ul li i {
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li a i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

.footer-contact li {
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-5px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(14, 165, 233, 0.4);
    transform: translateX(-50%) translateY(0) scale(1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.scroll-to-top:hover {
    transform: translateX(-50%) translateY(-5px) scale(1);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}

@media (max-width: 768px) {
    .chatbot-wrapper {
        right: max(18px, env(safe-area-inset-right, 0px));
        bottom: max(18px, env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }

    .chatbot-label {
        padding: 6px 12px;
        font-size: 0.78rem;
        border-radius: 16px;
    }

    .chatbot-fab {
        width: 56px;
        height: 56px;
        font-size: 1.45rem;
    }

    .scroll-to-top {
        bottom: calc(100% + 10px);
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chatbot-wrapper {
        right: max(14px, env(safe-area-inset-right, 0px));
        bottom: max(14px, env(safe-area-inset-bottom, 0px));
        gap: 6px;
    }

    .chatbot-label {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .chatbot-fab {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .scroll-to-top {
        bottom: calc(100% + 8px);
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-intent-grid,
    .why-computec-grid,
    .admission-roadmap,
    .credibility-band,
    .social-proof-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .hero-proof-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .proof-pill {
        justify-content: center;
    }

    .admission-cta-box,
    .final-cta-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .final-cta-actions {
        justify-content: center;
    }

    .social-proof h2,
    .final-cta-box h2 {
        font-size: 2rem;
    }

    .switcher-grid,
    .shortcut-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .section-switcher-btn,
    .shortcut-btn {
        width: 100%;
        border-radius: 18px;
        padding: 0.9rem 0.95rem;
        font-size: 0.9rem;
    }

    .switcher-label {
        font-size: 0.82rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 96px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 1rem 1.25rem 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
        gap: 0.75rem;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    body.dark-mode .nav-menu {
        background: #1e293b;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li,
    .nav-menu a,
    .nav-menu .admin-btn,
    .nav-menu .theme-toggle-btn {
        width: 100%;
    }

    .admin-mobile-only {
        display: flex;
    }

    .nav-menu a,
    .nav-menu .admin-btn,
    .nav-menu .theme-toggle-btn {
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .logo-image {
        height: 64px;
    }

    .hero {
        min-height: auto;
        padding: 132px 16px 88px;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 8vw, 2.8rem);
        line-height: 1.1;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }

    .chatbot-container {
        width: 90%;
        right: 5%;
        left: 5%;
    }

    .projections-grid,
    .courses-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
    }

    .computec-intro,
    .gaming-content,
    .services-content {
        grid-template-columns: 1fr;
    }

    .intro-image {
        display: none;
    }

    .gaming-visual {
        display: none;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-item {
        width: min(100%, 320px);
        padding: 1rem 1.25rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
    }

    .computec-cube-section,
    .methodology-section,
    .teacher-info,
    .admission-requirements,
    .employment-opportunities,
    .gallery-in-section {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .intro-content {
        gap: 1rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .methodology-grid,
    .requirements-grid,
    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .teacher-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .teacher-details {
        text-align: center;
    }

    .teacher-details p {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-in-section {
        padding: 1.25rem;
    }

    .gallery-carousel-section {
        max-width: 100%;
    }

    .gallery-thumbnails {
        gap: 8px;
        padding: 0;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gaming-features {
        grid-template-columns: 1fr;
    }

    .popup-content {
        width: 95%;
    }

    .popup-highlights {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Career Modal Styles */
.career-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close-modal {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 10px 20px;
    z-index: 10;
    background: var(--white);
    border-radius: 0 20px 0 0;
}

.close-modal:hover {
    color: #333;
}

#modalBody {
    padding: 2rem;
    padding-top: 0;
}

.career-header {
    text-align: center;
    padding: 2rem 0;
    background: var(--gradient);
    color: var(--white);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.career-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.career-header h2 {
    font-size: 2.5rem;
    margin: 0;
}

.career-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.career-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.career-section h3 i {
    font-size: 1.3rem;
}

.career-section p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.career-list {
    list-style: none;
    padding: 0;
}

.career-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
}

.career-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.companies-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.companies-list li {
    padding: 0.8rem;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.companies-list i {
    color: #10b981;
    font-size: 1.1rem;
}

.salary-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-left: none;
}

.salary-section h3 {
    color: var(--white);
}

.salary-info {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.computec-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: none;
}

.computec-section h3 {
    color: var(--white);
}

.computec-section p {
    color: var(--white);
    font-size: 1.1rem;
}

.job-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.job-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }

    #modalBody {
        padding: 1rem;
    }

    .career-header h2 {
        font-size: 1.8rem;
    }

    .career-icon {
        font-size: 3rem;
    }

    .career-section {
        padding: 1rem;
    }

    .companies-list {
        grid-template-columns: 1fr;
    }

    /* Contact Form Responsive */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-section {
        order: 2;
    }

    .contact-form-section {
        order: 1;
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile Performance Optimization - Reduce blur effects for clarity */
@media (max-width: 768px) {
    /* Reduce or remove expensive backdrop-filter effects on mobile */
    .about-card,
    .course-card,
    .news-card,
    .project-card,
    .service-item,
    .faq-item,
    .testimony-card,
    .admission-cta-box,
    .contact-form {
        backdrop-filter: none !important;
    }

    header,
    .admin-header {
        backdrop-filter: none !important;
    }

    .navbar-brand {
        backdrop-filter: none !important;
    }

    /* Reduce hero background blur for clarity */
    .hero::before {
        filter: none !important;
    }

    /* Ensure smooth text rendering */
    h1, h2, h3, h4, h5, h6,
    p, span, a, button, label {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Optimize image rendering */
    img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
    }

    /* Reduce filter effects on hover for mobile */
    .card:hover,
    .course-card:hover,
    .news-card:hover,
    .project-card:hover {
        filter: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Remove expensive transforms on mobile for better performance */
    .card {
        will-change: auto;
    }
}

/* Ultra-Clear Mobile Rendering - Optimize for maximum clarity on small screens */
@media (max-width: 600px) {
    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        font-size: 16px;
    }

    * {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }

    /* Ensure all text elements are sharp */
    h1, h2, h3, h4, h5, h6 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-weight: 700;
        -webkit-text-stroke: 0.5px transparent;
    }

    p, span, a, li, button, label, input, textarea, select {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        -webkit-text-stroke: 0.3px transparent;
    }

    /* Optimize images */
    img, picture, svg {
        image-rendering: -webkit-optimize-contrast;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        display: block;
    }

    /* Disable transform acceleration glitches */
    .hero,
    .course-card,
    .news-card,
    .project-card,
    .service-item,
    .about-card {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    /* Ensure smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-scroll-behavior: smooth;
    }

    /* Disable zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* ============================================
   IA COMPUTEC - Asistente embebido
   ============================================ */
#ai-assistant-root {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10055;
}

#ai-assistant-root .ai-panel {
    position: absolute;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: calc(max(24px, env(safe-area-inset-bottom, 0px)) + 120px);
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 180px));
    background: var(--white);
    color: var(--text-dark);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 10060;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
#ai-assistant-root .ai-panel.ai-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    background: var(--gradient);
    color: var(--white);
}
.ai-panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ai-panel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ai-panel-header h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.ai-panel-sub {
    margin: 2px 0 0;
    font-size: 0.72rem;
    opacity: 0.92;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    animation: ai-pulse 1.8s infinite;
}
@keyframes ai-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.ai-panel-actions { display: inline-flex; gap: 4px; }
.ai-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.ai-icon-btn:hover { background: rgba(255, 255, 255, 0.28); }
.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
.ai-msg { display: flex; gap: 8px; align-items: flex-end; }
.ai-msg-user { justify-content: flex-end; }
.ai-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.ai-bubble {
    max-width: 78%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    word-wrap: break-word;
}
.ai-msg-user .ai-bubble {
    background: var(--gradient);
    color: var(--white);
    border-bottom-right-radius: 4px;
}
.ai-msg-bot .ai-bubble {
    border-bottom-left-radius: 4px;
}
.ai-bubble a { color: var(--primary-color); text-decoration: underline; }
.ai-msg-user .ai-bubble a { color: var(--white); }
.ai-bubble strong { font-weight: 700; }
.ai-list { margin: 6px 0 0 18px; padding: 0; }
.ai-list li { margin: 2px 0; }
.ai-typing .ai-bubble {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
}
.ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-light);
    animation: ai-bounce 1.2s infinite ease-in-out;
}
.ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-4px); opacity: 1; }
}
.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 4px;
    background: var(--light-bg);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.ai-chip {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.ai-chip:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}
.ai-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: var(--white);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.ai-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.ai-send-btn:hover { transform: scale(1.06); }
.ai-send-btn:active { transform: scale(0.96); }
.ai-footer-note {
    margin: 0;
    padding: 6px 12px 10px;
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
    background: var(--white);
}
.ai-link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}
.ai-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}
#ai-toggle-btn .chatbot-fab { position: relative; }
#ai-toggle-btn { background: none; border: none; padding: 0; font: inherit; }

/* Dark mode */
body.dark-mode #ai-assistant-root .ai-panel {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.15);
}
body.dark-mode .ai-messages { background: #0f172a; }
body.dark-mode .ai-msg-bot .ai-bubble {
    background: #1e293b;
    color: #f1f5f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
body.dark-mode .ai-bubble a { color: #60a5fa; }
body.dark-mode .ai-chips { background: #0f172a; border-top-color: rgba(148, 163, 184, 0.1); }
body.dark-mode .ai-chip { background: #1e293b; color: #93c5fd; border-color: rgba(96, 165, 250, 0.35); }
body.dark-mode .ai-chip:hover { background: #3b82f6; color: #fff; }
body.dark-mode .ai-form, body.dark-mode .ai-footer-note { background: #1e293b; border-top-color: rgba(148, 163, 184, 0.1); }
body.dark-mode .ai-input { background: #0f172a; color: #f1f5f9; border-color: rgba(148, 163, 184, 0.25); }

/* Responsive - panel ocupa pantalla en móvil */
@media (max-width: 560px) {
    #ai-assistant-root .ai-panel {
        right: 8px;
        left: 8px;
        bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 110px);
        width: auto;
        height: min(72vh, 560px);
        border-radius: 18px;
    }
    .ai-bubble { font-size: 0.9rem; }
}
@media (max-width: 380px) {
    #ai-assistant-root .ai-panel { height: 68vh; }
}

/* ============================================
   IA COMPUTEC - Rediseño futurista (CSS-only, no toca JS)
   ============================================ */
@keyframes ai-border-rotate {
    to { --ai-angle: 360deg; }
}
@property --ai-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes ai-scan-grid {
    0%   { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 0 -32px, 32px 0, 0 0; }
}
@keyframes ai-avatar-orbit {
    to { transform: rotate(360deg); }
}
@keyframes ai-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55), 0 0 22px rgba(56, 189, 248, 0.45); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0),    0 0 36px rgba(56, 189, 248, 0.7); }
}
@keyframes ai-send-shine {
    0%   { transform: translateX(-120%) skewX(-20deg); }
    100% { transform: translateX(220%)  skewX(-20deg); }
}

#ai-assistant-root .ai-panel {
    border-radius: 22px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.94));
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.22),
        0 8px 24px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(56, 189, 248, 0.08);
    overflow: hidden;
    isolation: isolate;
}
#ai-assistant-root .ai-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--ai-angle, 0deg),
        #06b6d4, #6366f1, #ec4899, #06b6d4
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
    animation: ai-border-rotate 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.ai-panel-header {
    position: relative;
    padding: 16px 18px;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(56, 189, 248, 0.45), transparent 60%),
        radial-gradient(120% 100% at 100% 100%, rgba(236, 72, 153, 0.35), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0c4a6e 100%);
    color: #fff;
    overflow: hidden;
}
.ai-panel-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px) 0 0/100% 32px,
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px) 0 0/32px 100%;
    animation: ai-scan-grid 6s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}
.ai-panel-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), rgba(236, 72, 153, 0.65), transparent);
    pointer-events: none;
}
.ai-panel-title-wrap, .ai-panel-actions { position: relative; z-index: 1; }
.ai-panel-header h3 {
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}
.ai-panel-sub { font-size: 0.74rem; opacity: 0.95; }
.ai-status-dot {
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.9), 0 0 0 0 rgba(34, 211, 238, 0.7);
}

.ai-panel-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.95), rgba(99, 102, 241, 0.9) 60%, rgba(15, 23, 42, 0.95));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 18px rgba(56, 189, 248, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.25);
}
.ai-panel-avatar::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.6);
    animation: ai-avatar-orbit 9s linear infinite;
    pointer-events: none;
}
.ai-panel-avatar i { position: relative; z-index: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); }

.ai-icon-btn {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-icon-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}
.ai-icon-btn:active { transform: translateY(0); }

.ai-messages {
    padding: 18px 16px;
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(56, 189, 248, 0.10), transparent 60%),
        radial-gradient(60% 50% at 100% 100%, rgba(236, 72, 153, 0.08), transparent 60%),
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px) 0 0/100% 28px,
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px) 0 0/28px 100%,
        var(--light-bg);
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.45) transparent;
}
.ai-messages::-webkit-scrollbar { width: 6px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.5), rgba(99, 102, 241, 0.5));
    border-radius: 999px;
}
.ai-messages::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(56, 189, 248, 0.8), rgba(236, 72, 153, 0.7)); }

.ai-msg { animation: ai-msg-in 0.28s ease-out both; }
@keyframes ai-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ai-bubble {
    padding: 11px 14px;
    border-radius: 16px;
    line-height: 1.5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 8px 22px rgba(56, 189, 248, 0.08);
}
.ai-msg-user .ai-bubble {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #6366f1 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.35),
        0 0 18px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.ai-msg-bot .ai-bubble {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ai-list li::marker { color: #06b6d4; }
.ai-avatar {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 30% 30%, #38bdf8, #6366f1 70%, #1e293b);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.ai-typing .ai-bubble {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.ai-dot {
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.ai-chips {
    padding: 10px 14px 6px;
    gap: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%),
        var(--light-bg);
    border-top: 1px solid rgba(56, 189, 248, 0.18);
}
.ai-chip {
    padding: 7px 14px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.85);
    color: #0e7490;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.18s ease, color 0.18s ease,
                transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ai-chip:hover {
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4), 0 0 14px rgba(99, 102, 241, 0.3);
}

.ai-form {
    padding: 12px 14px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(56, 189, 248, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ai-input {
    padding: 11px 16px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(248, 250, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ai-input:focus {
    background: #fff;
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.15),
        0 0 18px rgba(56, 189, 248, 0.25);
}

.ai-send-btn {
    position: relative;
    width: 42px;
    height: 42px;
    overflow: hidden;
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 50%, #6366f1 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 18px rgba(37, 99, 235, 0.4),
        0 0 22px rgba(56, 189, 248, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: ai-glow-pulse 2.4s ease-in-out infinite;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ai-send-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
}
.ai-send-btn:hover { transform: translateY(-1px) scale(1.05); }
.ai-send-btn:hover::after { animation: ai-send-shine 0.9s ease forwards; }
.ai-send-btn:active { transform: translateY(0) scale(0.96); }
.ai-send-btn i { position: relative; z-index: 1; }

.ai-footer-note {
    padding: 8px 14px 12px;
    font-size: 0.72rem;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

/* Modo oscuro - cyberpunk holográfico */
body.dark-mode #ai-assistant-root .ai-panel {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(11, 18, 32, 0.96));
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(56, 189, 248, 0.18),
        inset 0 1px 0 rgba(56, 189, 248, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.15);
}
body.dark-mode #ai-assistant-root .ai-panel::before {
    opacity: 0.7;
    background: conic-gradient(
        from var(--ai-angle, 0deg),
        #38bdf8, #818cf8, #f472b6, #38bdf8
    );
}
body.dark-mode .ai-panel-header {
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(56, 189, 248, 0.45), transparent 60%),
        radial-gradient(120% 100% at 100% 100%, rgba(244, 114, 182, 0.4), transparent 60%),
        linear-gradient(135deg, #020617 0%, #1e1b4b 50%, #082f49 100%);
}
body.dark-mode .ai-messages {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(60% 50% at 100% 100%, rgba(244, 114, 182, 0.10), transparent 60%),
        linear-gradient(rgba(99, 102, 241, 0.10) 1px, transparent 1px) 0 0/100% 28px,
        linear-gradient(90deg, rgba(99, 102, 241, 0.10) 1px, transparent 1px) 0 0/28px 100%,
        #0b1220;
}
body.dark-mode .ai-msg-bot .ai-bubble {
    background: rgba(30, 41, 59, 0.78);
    color: #f1f5f9;
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.dark-mode .ai-msg-user .ai-bubble {
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 50%, #4f46e5 100%);
    box-shadow:
        0 6px 20px rgba(8, 145, 178, 0.45),
        0 0 22px rgba(56, 189, 248, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.dark-mode .ai-typing .ai-bubble {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(56, 189, 248, 0.35);
}
body.dark-mode .ai-chips {
    background:
        linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.6) 100%),
        #0b1220;
    border-top-color: rgba(56, 189, 248, 0.2);
}
body.dark-mode .ai-chip {
    background: rgba(15, 23, 42, 0.85);
    color: #67e8f9;
    border-color: rgba(56, 189, 248, 0.4);
}
body.dark-mode .ai-chip:hover {
    background: linear-gradient(135deg, #0891b2, #4f46e5);
    color: #fff;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35), 0 0 16px rgba(99, 102, 241, 0.4);
}
body.dark-mode .ai-form {
    background: rgba(11, 18, 32, 0.85);
    border-top-color: rgba(56, 189, 248, 0.22);
}
body.dark-mode .ai-input {
    background: rgba(15, 23, 42, 0.9);
    color: #f1f5f9;
    border-color: rgba(56, 189, 248, 0.3);
}
body.dark-mode .ai-input:focus {
    background: #0f172a;
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.18),
        0 0 22px rgba(56, 189, 248, 0.35);
}
body.dark-mode .ai-footer-note {
    background: rgba(11, 18, 32, 0.7);
    border-top-color: rgba(56, 189, 248, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .ai-msg { animation: none !important; }
    .ai-status-dot { animation: none !important; }
    #ai-assistant-root .ai-panel::before { animation: none !important; }
    .ai-panel-header::before { animation: none !important; }
    .ai-panel-avatar::before { animation: none !important; }
    .ai-send-btn { animation: none !important; }
}


/* ============================================
   Contact section - rediseño 2026
   ============================================ */
.contact-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}
.contact-header h2 { margin-bottom: 0.75rem; }
.contact-header .section-intro { margin-bottom: 1rem; }
.contact-response-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.82rem;
    font-weight: 600;
}
.contact-response-pill i { font-size: 0.85rem; }

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.25fr);
    gap: 2rem;
    align-items: stretch;
}
.contact-info-section,
.contact-form-section {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
}
.contact-info-section {
    position: relative;
    overflow: hidden;
}
.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient);
}
.contact-card-header {
    position: static;
    width: auto;
    top: auto;
    z-index: auto;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.contact-card-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}
.contact-card-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
}

.contact-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact-info-section .info-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: var(--light-bg);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.contact-info-section a.info-item:hover {
    background: var(--white);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(2px);
}
.contact-info-section a.info-item:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}
.info-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.contact-info-section .info-item i { font-size: 1rem; color: inherit; margin: 0; }
.info-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.info-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
}
.info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    word-break: break-word;
}
.info-arrow {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.contact-info-section a.info-item:hover .info-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.contact-quick-actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.contact-quick-title,
.contact-social-title {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.9rem 0.6rem;
    background: var(--light-bg);
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.2;
}
.quick-action i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.2s;
}
.quick-action:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.quick-action:hover i { color: var(--white); transform: scale(1.1); }

.contact-social {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.contact-social-links { gap: 0.6rem; }
.contact-social-links .social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.contact-form-section .contact-form { padding: 0; background: transparent; }
.contact-form-section .form-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dark);
}
.contact-form-section .form-group input,
.contact-form-section .form-group select,
.contact-form-section .form-group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid rgba(148, 163, 184, 0.34);
    background: #ffffff;
    color: var(--text-dark);
    padding: 0.78rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.contact-form-section .checkbox-label input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    min-width: 1.05rem;
    flex: 0 0 auto;
    margin: 0.15rem 0 0;
    padding: 0;
}
.contact-form-section .checkbox-label span {
    flex: 1;
}
.contact-form-section .form-group textarea {
    min-height: 132px;
    resize: vertical;
}
.contact-form-section .form-group input:focus,
.contact-form-section .form-group select:focus,
.contact-form-section .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.contact-form-section .submit-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    margin-top: 0.2rem;
}
.contact-form-section .checkbox-label {
    align-items: flex-start;
    line-height: 1.45;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row .form-group { margin-bottom: 1rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}
.form-label-row label { margin-bottom: 0; }
.char-counter {
    font-size: 0.75rem;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
}
.char-counter.near-limit { color: #f59e0b; font-weight: 600; }
.char-counter.at-limit { color: #ef4444; font-weight: 700; }
.required-mark { color: #ef4444; font-weight: 700; }
.form-optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85em;
}
.form-privacy {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.form-privacy i { color: #10b981; }

/* Dark mode */
body.dark-mode .contact-info-section,
body.dark-mode .contact-form-section {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
body.dark-mode .contact-card-header { border-bottom-color: rgba(148, 163, 184, 0.15); }
body.dark-mode .contact-card-header h3 { color: #f1f5f9; }
body.dark-mode .contact-card-header p { color: #94a3b8; }
body.dark-mode .contact-info-section .info-item { background: #0f172a; }
body.dark-mode .contact-info-section a.info-item:hover {
    background: #1e293b;
    border-color: rgba(96, 165, 250, 0.4);
}
body.dark-mode .info-value { color: #f1f5f9; }
body.dark-mode .info-label { color: #94a3b8; }
body.dark-mode .quick-action {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}
body.dark-mode .quick-action i { color: #60a5fa; }
body.dark-mode .contact-quick-actions,
body.dark-mode .contact-social {
    border-top-color: rgba(148, 163, 184, 0.15);
}
body.dark-mode .contact-response-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}
body.dark-mode .contact-form-section .form-group input,
body.dark-mode .contact-form-section .form-group select,
body.dark-mode .contact-form-section .form-group textarea {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
    color: #f1f5f9;
}
body.dark-mode .contact-form-section .form-group label {
    color: #f1f5f9;
}
body.dark-mode .form-privacy { color: #94a3b8; }
body.dark-mode .char-counter { color: #94a3b8; }

/* Responsive */
@media (max-width: 960px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
@media (max-width: 600px) {
    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .info-value { font-size: 0.9rem; }
    .info-arrow { display: none; }
}
@media (max-width: 420px) {
    .contact-quick-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ section - rediseño 2026
   ============================================ */
.faq-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}
.faq-header h2 { margin-bottom: 0.75rem; }

.faq-toolbar {
    max-width: 860px;
    margin: 0 auto 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-search {
    position: relative;
    display: flex;
    align-items: center;
}
.faq-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
}
.faq-search-input {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 2.75rem;
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search-input::placeholder { color: #94a3b8; }
.faq-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.faq-search-clear {
    position: absolute;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.faq-search-clear:hover { background: var(--light-bg); color: var(--text-dark); }

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.faq-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.faq-chip i { font-size: 0.8rem; color: var(--primary-color); transition: color 0.2s; }
.faq-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}
.faq-chip.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.faq-chip.active i { color: var(--white); }

.faq-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}
.faq-item[hidden] { display: none !important; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: background 0.2s;
}
.faq-question:hover { background: rgba(37, 99, 235, 0.04); }
.faq-question:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}
.faq-q-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.25s, color 0.25s;
}
.faq-item.active .faq-q-icon {
    background: var(--gradient);
    color: var(--white);
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}
.faq-chevron {
    flex: 0 0 auto;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: transform 0.3s ease, color 0.2s;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 1.25rem 0 calc(1.25rem + 40px + 0.9rem);
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 0.2rem;
    padding-bottom: 1.25rem;
}
.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Highlight de búsqueda */
.faq-highlight {
    background: rgba(251, 191, 36, 0.35);
    padding: 0 2px;
    border-radius: 3px;
    color: inherit;
    font-weight: 600;
}

.faq-empty {
    max-width: 480px;
    margin: 1.5rem auto 0;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--white);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 14px;
}
.faq-empty i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: block;
}
.faq-empty p { margin: 0 0 1rem; color: var(--text-light); }
.faq-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.faq-reset-btn:hover { background: var(--primary-color); color: var(--white); }

.faq-footer-cta {
    max-width: 860px;
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.faq-footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.faq-footer-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.faq-footer-text strong { color: var(--text-dark); font-size: 1rem; }
.faq-footer-text span { color: var(--text-light); font-size: 0.88rem; }
.faq-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.faq-footer-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); }

/* Dark mode */
body.dark-mode .faq-search-input { background: #1e293b; color: #f1f5f9; border-color: rgba(148, 163, 184, 0.2); }
body.dark-mode .faq-search-clear:hover { background: #0f172a; color: #e2e8f0; }
body.dark-mode .faq-chip { background: #1e293b; color: #e2e8f0; border-color: rgba(148, 163, 184, 0.2); }
body.dark-mode .faq-chip i { color: #60a5fa; }
body.dark-mode .faq-chip.active { background: var(--gradient); color: var(--white); }
body.dark-mode .faq-item { background: #1e293b; border-color: rgba(148, 163, 184, 0.15); }
body.dark-mode .faq-item:hover { border-color: rgba(96, 165, 250, 0.4); }
body.dark-mode .faq-question h3 { color: #f1f5f9; }
body.dark-mode .faq-question:hover { background: rgba(96, 165, 250, 0.08); }
body.dark-mode .faq-q-icon { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
body.dark-mode .faq-answer p { color: #cbd5e1; }
body.dark-mode .faq-empty { background: #1e293b; border-color: rgba(148, 163, 184, 0.2); }
body.dark-mode .faq-empty p { color: #94a3b8; }
body.dark-mode .faq-footer-cta {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(52, 211, 153, 0.12));
    border-color: rgba(96, 165, 250, 0.25);
}
body.dark-mode .faq-footer-text strong { color: #f1f5f9; }
body.dark-mode .faq-footer-text span { color: #cbd5e1; }

/* Responsive */
@media (max-width: 640px) {
    .faq-question { padding: 0.95rem 1rem; gap: 0.7rem; }
    .faq-q-icon { flex: 0 0 36px; width: 36px; height: 36px; }
    .faq-question h3 { font-size: 0.95rem; }
    .faq-answer { padding-left: calc(1rem + 36px + 0.7rem); padding-right: 1rem; }
    .faq-footer-cta { flex-direction: column; text-align: center; padding: 1.25rem; }
    .faq-footer-btn { width: 100%; justify-content: center; }
    .faq-categories { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
    .faq-chip { flex-shrink: 0; }
}

/* ============================================
   Final CTA - rediseño del titular
   ============================================ */
.final-cta-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1220 0%, #1d4ed8 60%, #0ea5e9 120%);
}
.final-cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(52, 211, 153, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.final-cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.final-cta-blob-a {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #38bdf8, transparent 70%);
    top: -90px;
    left: -60px;
    animation: finalCtaFloat 9s ease-in-out infinite;
}
.final-cta-blob-b {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #34d399, transparent 70%);
    bottom: -70px;
    right: -50px;
    animation: finalCtaFloat 11s ease-in-out infinite reverse;
}
@keyframes finalCtaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -12px) scale(1.08); }
}

.final-cta-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}
.final-cta-actions {
    position: relative;
    z-index: 1;
}

.final-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0;
    padding: 0.4rem 0.95rem 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #e0f2fe;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.final-cta-pill i {
    font-size: 0.75rem;
    color: #7dd3fc;
    animation: finalCtaArrow 1.8s ease-in-out infinite;
}
@keyframes finalCtaArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.final-cta-title {
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #f8fafc;
    margin: 0 0 0.85rem;
    text-wrap: balance;
}
.final-cta-brand {
    background: linear-gradient(90deg, #38bdf8 0%, #22d3ee 40%, #34d399 80%, #a7f3d0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.02em;
    animation: finalCtaShine 6s linear infinite;
    padding: 0 0.05em;
}
@keyframes finalCtaShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.final-cta-highlight {
    display: inline-block;
    color: #fef3c7;
    font-style: italic;
    font-weight: 700;
    padding: 0 0.15em;
    background-image: linear-gradient(90deg, rgba(251, 191, 36, 0.55), rgba(251, 146, 60, 0.45));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 100% 0.38em;
    border-radius: 3px;
}

.final-cta-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin: 0;
}

/* Responsive - el título se centra cuando la caja se apila */
@media (max-width: 900px) {
    .final-cta-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
    .final-cta-blob-a { width: 200px; height: 200px; }
    .final-cta-blob-b { width: 180px; height: 180px; }
}
@media (max-width: 600px) {
    .final-cta-title { font-size: 1.65rem; line-height: 1.2; }
    .final-cta-sub { font-size: 0.95rem; }
    .final-cta-pill { font-size: 0.72rem; padding: 0.35rem 0.8rem 0.35rem 0.6rem; }
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .final-cta-blob-a,
    .final-cta-blob-b,
    .final-cta-brand,
    .final-cta-pill i { animation: none !important; }
}


/* ============================================
   Cursos Principales - rediseño
   ============================================ */
.courses {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--light-bg) 0%, #f1f5f9 100%);
}
.courses::before,
.courses::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.courses::before {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, #38bdf8, transparent 70%);
    top: -120px;
    left: -80px;
}
.courses::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #a78bfa, transparent 70%);
    bottom: -100px;
    right: -60px;
}
.courses > .container { position: relative; z-index: 1; }

.courses .section-tag {
    display: inline-flex;
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(167,139,250,0.12));
    color: #0369a1;
    border: 1px solid rgba(14,165,233,0.18);
}
.courses h2 {
    background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
    text-wrap: balance;
}
.courses .section-intro {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

/* Paleta cíclica por tarjeta */
.course-card:nth-child(10n+1) { --course-accent: #0ea5e9; --course-accent-2: #22d3ee; }
.course-card:nth-child(10n+2) { --course-accent: #f59e0b; --course-accent-2: #fb923c; }
.course-card:nth-child(10n+3) { --course-accent: #ef4444; --course-accent-2: #f97316; }
.course-card:nth-child(10n+4) { --course-accent: #8b5cf6; --course-accent-2: #a78bfa; }
.course-card:nth-child(10n+5) { --course-accent: #10b981; --course-accent-2: #34d399; }
.course-card:nth-child(10n+6) { --course-accent: #3b82f6; --course-accent-2: #60a5fa; }
.course-card:nth-child(10n+7) { --course-accent: #ec4899; --course-accent-2: #f472b6; }
.course-card:nth-child(10n+8) { --course-accent: #06b6d4; --course-accent-2: #67e8f9; }
.course-card:nth-child(10n+9) { --course-accent: #14b8a6; --course-accent-2: #5eead4; }
.course-card:nth-child(10n+10) { --course-accent: #6366f1; --course-accent-2: #818cf8; }

/* Tarjeta */
.courses-grid .course-card {
    position: relative;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    overflow: hidden;
    isolation: isolate;
}
.courses-grid .course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--course-accent), var(--course-accent-2));
    transform-origin: left;
    transform: scaleX(0.35);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.courses-grid .course-card::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--course-accent) 18%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.courses-grid .course-card > * { position: relative; z-index: 1; }

.courses-grid .course-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--course-accent) 35%, transparent);
    box-shadow: 0 22px 50px color-mix(in srgb, var(--course-accent) 20%, transparent),
                0 6px 16px rgba(15, 23, 42, 0.08);
}
.courses-grid .course-card:hover::before { transform: scaleX(1); }
.courses-grid .course-card:hover::after { opacity: 1; }

/* Icono como badge con gradiente */
.courses-grid .course-card .course-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--course-accent), var(--course-accent-2));
    color: #ffffff;
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--course-accent) 30%, transparent),
                inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.courses-grid .course-card:hover .course-icon {
    transform: rotate(-6deg) scale(1.05);
}

/* Título */
.courses-grid .course-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
    text-wrap: balance;
}

/* Chips de meta con accent */
.courses-grid .course-card .course-meta {
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.courses-grid .course-card .course-meta span {
    padding: 0.3rem 0.7rem;
    background: color-mix(in srgb, var(--course-accent) 12%, transparent);
    color: color-mix(in srgb, var(--course-accent) 85%, #0f172a);
    border: 1px solid color-mix(in srgb, var(--course-accent) 22%, transparent);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Descripción */
.courses-grid .course-card > p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

/* Lista con checks */
.courses-grid .course-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.courses-grid .course-card ul li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.75rem;
    border-left: none;
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}
.courses-grid .course-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--course-accent) 15%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--course-accent) 40%, transparent);
    transition: background 0.25s ease, transform 0.25s ease;
}
.courses-grid .course-card ul li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0.85rem;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--course-accent);
    border-bottom: 2px solid var(--course-accent);
    transform: rotate(-45deg);
    transition: border-color 0.25s ease;
}
.courses-grid .course-card:hover ul li::before {
    background: color-mix(in srgb, var(--course-accent) 25%, transparent);
}

/* Dark mode */
body.dark-mode .courses {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}
body.dark-mode .courses .section-tag {
    background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(167,139,250,0.14));
    color: #bae6fd;
    border-color: rgba(56,189,248,0.25);
}
body.dark-mode .courses .section-intro {
    color: #94a3b8;
}
body.dark-mode .courses-grid .course-card {
    background: #1e293b;
    border-color: rgba(148,163,184,0.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
body.dark-mode .courses-grid .course-card h3 { color: #f1f5f9; }
body.dark-mode .courses-grid .course-card ul li { color: #cbd5e1; }
body.dark-mode .courses-grid .course-card > p { color: #94a3b8; }
body.dark-mode .courses-grid .course-card .course-meta span {
    background: color-mix(in srgb, var(--course-accent) 18%, transparent);
    color: color-mix(in srgb, var(--course-accent) 45%, #f1f5f9);
    border-color: color-mix(in srgb, var(--course-accent) 35%, transparent);
}

/* Responsive */
@media (max-width: 900px) {
    .courses-grid { gap: 1.25rem; }
    .courses-grid .course-card { padding: 1.75rem 1.5rem 1.5rem; }
    .courses-grid .course-card .course-icon { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 16px; }
}
@media (max-width: 600px) {
    .courses h2 { font-size: 1.8rem; }
    .courses .section-intro { font-size: 0.95rem; margin-bottom: 2rem; }
    .courses-grid .course-card h3 { font-size: 1.1rem; }
    .courses-grid .course-card ul li { font-size: 0.88rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .courses-grid .course-card,
    .courses-grid .course-card::before,
    .courses-grid .course-card::after,
    .courses-grid .course-card .course-icon { transition: none !important; }
    .courses-grid .course-card:hover { transform: none !important; }
    .courses-grid .course-card:hover .course-icon { transform: none !important; }
}



/* ============================================
   Skin Pass - Unificación visual global
   (no modifica HTML; sólo refina estilos base)
   ============================================ */

/* 1. H2 de sección con tratamiento gradiente unificado
      Excluye: hero, gaming-day, final-cta (contextos oscuros con estilo propio),
      courses (ya tiene override específico). */
.projections h2,
.student-projects h2,
.social-proof h2,
.news h2,
.tech-services h2,
.admission-section h2,
.contact-header h2,
.faq .faq-header h2 {
    background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 55%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    text-wrap: balance;
}

/* H2 con ícono inline (Oportunidades, Servicios, Gaming-Day excluido) */
.employment-opportunities h2,
.tech-services h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.tech-services h2 {
    display: flex;
    justify-content: center;
    width: 100%;
}
.employment-opportunities h2 i,
.tech-services h2 i {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 2. Section-tag base refinado (mantiene overrides existentes: light, courses) */
.section-tag:not(.light):not(.final-cta-pill) {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(167, 139, 250, 0.10));
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: #0369a1;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
}
body.dark-mode .section-tag:not(.light):not(.final-cta-pill) {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(167, 139, 250, 0.14));
    border-color: rgba(56, 189, 248, 0.25);
    color: #bae6fd;
}

/* 3. Section-intro con mejor jerarquía */
.section-intro {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* 4. Hover consistente para todas las tarjetas "neutras" */
.requirement-item,
.opportunity-item,
.project-card,
.news-card,
.proof-card,
.testimonial-card,
.service-item {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
}
.requirement-item { border-radius: 20px; }
.opportunity-item { border-radius: 14px; }

.requirement-item:hover,
.project-card:hover,
.news-card:hover,
.proof-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12),
                0 4px 12px rgba(15, 23, 42, 0.06);
    border-color: rgba(14, 165, 233, 0.25);
}
.opportunity-item:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    border-color: rgba(14, 165, 233, 0.28);
}

/* 5. Requirement-item: icono en badge gradiente */
.requirement-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #ffffff;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* 6. Proof-card: ícono como badge */
.proof-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.28);
}

/* 7. Opportunity-item: ícono coloreado + separador superior */
.opportunity-item {
    position: relative;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.opportunity-item i:first-child {
    color: #0ea5e9;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* 8. Service-item: refinamiento */
.service-item {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.service-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
    color: #0ea5e9;
    font-size: 1.3rem;
    margin-top: 0;
    flex-shrink: 0;
}

/* 9. Decoración ambiental en secciones clave */
.projections,
.student-projects,
.news {
    position: relative;
    overflow: hidden;
}
.projections::before,
.student-projects::before,
.news::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.30), transparent 70%);
    filter: blur(80px);
    top: -120px;
    left: -80px;
    pointer-events: none;
    z-index: 0;
}
.projections::after,
.student-projects::after,
.news::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 70%);
    filter: blur(80px);
    bottom: -100px;
    right: -60px;
    pointer-events: none;
    z-index: 0;
}
.projections > .container,
.student-projects > .container,
.news > .container { position: relative; z-index: 1; }

/* 10. Roadmap-step: refinamiento sutil */
.roadmap-step {
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.roadmap-step:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    border-color: rgba(14, 165, 233, 0.22);
}

/* 11. Social-proof: alinear header */
.social-proof h2 { margin-bottom: 1rem; }
.social-proof .section-tag { margin-bottom: 1rem; }

/* 12. News-card: mejorar contenedor de imagen (overlay sutil) */
.news-card .news-image {
    position: relative;
}
.news-card .news-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.15) 100%);
    pointer-events: none;
}

/* 13. Project-card: igual tratamiento */
.project-card .project-image {
    position: relative;
}
.project-card .project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.2) 100%);
    pointer-events: none;
}

/* 14. Dark-mode polish para tarjetas neutras */
body.dark-mode .requirement-item,
body.dark-mode .opportunity-item,
body.dark-mode .project-card,
body.dark-mode .news-card,
body.dark-mode .proof-card,
body.dark-mode .testimonial-card,
body.dark-mode .service-item,
body.dark-mode .roadmap-step {
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
body.dark-mode .requirement-item:hover,
body.dark-mode .project-card:hover,
body.dark-mode .news-card:hover,
body.dark-mode .proof-card:hover,
body.dark-mode .testimonial-card:hover {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
    border-color: rgba(56, 189, 248, 0.35);
}

/* 15. Reduced motion - neutralizar hover lift */
@media (prefers-reduced-motion: reduce) {
    .requirement-item,
    .opportunity-item,
    .project-card,
    .news-card,
    .proof-card,
    .testimonial-card,
    .service-item,
    .roadmap-step { transition: none !important; }
    .requirement-item:hover,
    .opportunity-item:hover,
    .project-card:hover,
    .news-card:hover,
    .proof-card:hover,
    .testimonial-card:hover,
    .roadmap-step:hover { transform: none !important; }
}

/* 16. Móvil: reducir blobs ambientales */
@media (max-width: 600px) {
    .projections::before,
    .student-projects::before,
    .news::before { width: 220px; height: 220px; top: -80px; left: -60px; }
    .projections::after,
    .student-projects::after,
    .news::after { width: 200px; height: 200px; bottom: -70px; right: -40px; }
}

/* 17. Rendimiento móvil: reducir efectos costosos sin cambiar contenido */
@media (max-width: 768px) {
    section:not(#inicio) {
        content-visibility: auto;
        contain-intrinsic-size: 900px;
    }

    .hero::after,
    .projections::before,
    .projections::after,
    .student-projects::before,
    .student-projects::after,
    .news::before,
    .news::after {
        filter: blur(42px);
        opacity: 0.3;
    }

    .hero-eyebrow,
    .cta-button.secondary {
        backdrop-filter: none;
    }

    .hero::after,
    .hero-eyebrow::before,
    .projects-grid .project-card .project-image,
    .projects-grid .project-card .project-image::before,
    .projects-grid .project-card .project-image i {
        animation: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero::after,
    .hero-eyebrow::before,
    .projects-grid .project-card .project-image,
    .projects-grid .project-card .project-image::before,
    .projects-grid .project-card .project-image i {
        animation: none !important;
    }
}

/* ============================================
   Proyectos Estudiantiles - explosión de color
   (degradados multi-hue + blobs animados)
   ============================================ */
@keyframes projectGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes projectIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-3px) rotate(-2deg); }
}
@keyframes projectBlobsDrift {
    0%   { transform: translate(0, 0) scale(1)   rotate(0deg); }
    33%  { transform: translate(-4%, 3%) scale(1.05) rotate(40deg); }
    66%  { transform: translate(3%, -2%) scale(0.97) rotate(-25deg); }
    100% { transform: translate(0, 0) scale(1)   rotate(0deg); }
}

.projects-grid .project-card .project-image {
    background-size: 300% 300%;
    background-position: 0% 50%;
    animation: projectGradientShift 14s ease-in-out infinite;
    transition: filter 0.3s ease;
    overflow: hidden;
}
.projects-grid .project-card .project-image::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55) 0%, transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(244, 114, 182, 0.55) 0%, transparent 32%),
        radial-gradient(circle at 82% 80%, rgba(56, 189, 248, 0.55) 0%, transparent 32%),
        radial-gradient(circle at 22% 82%, rgba(250, 204, 21, 0.5) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.4) 0%, transparent 35%);
    mix-blend-mode: screen;
    animation: projectBlobsDrift 16s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.projects-grid .project-card .project-image i {
    position: relative;
    z-index: 1;
    animation: projectIconFloat 6s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.65);
    transition: transform 0.3s ease;
}
.projects-grid .project-card:hover .project-image {
    animation-duration: 6s;
    filter: saturate(1.25) contrast(1.05);
}
.projects-grid .project-card:hover .project-image::before {
    animation-duration: 8s;
}
.projects-grid .project-card:hover .project-image i {
    transform: scale(1.08);
}

/* 1 - PCB System: explosión fría con chispas cálidas */
.projects-grid .project-card:nth-child(1) .project-image {
    background-image: linear-gradient(135deg,
        #c4b5fd 0%, #f5d0fe 18%, #fda4af 36%, #fde68a 54%,
        #67e8f9 72%, #93c5fd 90%, #c4b5fd 100%);
    color: #2563eb;
}
/* 2 - Casa Abierta: explosión cálida con guiños fríos */
.projects-grid .project-card:nth-child(2) .project-image {
    background-image: linear-gradient(135deg,
        #fde68a 0%, #fdba74 18%, #fecaca 36%, #fbcfe8 54%,
        #f5d0fe 72%, #fed7aa 90%, #fde68a 100%);
    color: #ea580c;
}
/* 3 - Apoyo Socioemocional: arcoíris pastel */
.projects-grid .project-card:nth-child(3) .project-image {
    background-image: linear-gradient(135deg,
        #fbcfe8 0%, #f5d0fe 18%, #c7d2fe 36%, #a5f3fc 54%,
        #fef3c7 72%, #fda4af 90%, #fbcfe8 100%);
    color: #be185d;
}
/* 4 - DECA Coop: explosión de fuego */
.projects-grid .project-card:nth-child(4) .project-image {
    background-image: linear-gradient(135deg,
        #fda4af 0%, #fdba74 18%, #fcd34d 36%, #fbcfe8 54%,
        #fecaca 72%, #f5d0fe 90%, #fda4af 100%);
    color: #be123c;
}
/* 5 - Centro Impresiones: explosión acuática */
.projects-grid .project-card:nth-child(5) .project-image {
    background-image: linear-gradient(135deg,
        #67e8f9 0%, #5eead4 18%, #93c5fd 36%, #c7d2fe 54%,
        #c4b5fd 72%, #a5f3fc 90%, #67e8f9 100%);
    color: #0e7490;
}
/* 6 - Servicio Técnico: explosión galáctica */
.projects-grid .project-card:nth-child(6) .project-image {
    background-image: linear-gradient(135deg,
        #c7d2fe 0%, #c4b5fd 18%, #f5d0fe 36%, #67e8f9 54%,
        #93c5fd 72%, #ddd6fe 90%, #c7d2fe 100%);
    color: #4338ca;
}
/* 7 - ElectroDashboard: explosión eléctrica */
.projects-grid .project-card:nth-child(7) .project-image {
    background-image: linear-gradient(135deg,
        #fde68a 0%, #fdba74 18%, #fecdd3 36%, #c4b5fd 54%,
        #67e8f9 72%, #fef3c7 90%, #fde68a 100%);
    color: #b45309;
}
/* 8 - Security: explosión mística */
.projects-grid .project-card:nth-child(8) .project-image {
    background-image: linear-gradient(135deg,
        #c4b5fd 0%, #f5d0fe 18%, #fbcfe8 36%, #c7d2fe 54%,
        #93c5fd 72%, #ddd6fe 90%, #c4b5fd 100%);
    color: #6d28d9;
}

/* Desfase de animación por tarjeta para evitar pulsado al unísono */
.projects-grid .project-card:nth-child(2) .project-image { animation-delay: -1.8s; }
.projects-grid .project-card:nth-child(3) .project-image { animation-delay: -3.6s; }
.projects-grid .project-card:nth-child(4) .project-image { animation-delay: -5.4s; }
.projects-grid .project-card:nth-child(5) .project-image { animation-delay: -7.2s; }
.projects-grid .project-card:nth-child(6) .project-image { animation-delay: -9.0s; }
.projects-grid .project-card:nth-child(7) .project-image { animation-delay: -10.8s; }
.projects-grid .project-card:nth-child(8) .project-image { animation-delay: -12.6s; }
.projects-grid .project-card:nth-child(2) .project-image i { animation-delay: -1.0s; }
.projects-grid .project-card:nth-child(3) .project-image i { animation-delay: -2.0s; }
.projects-grid .project-card:nth-child(4) .project-image i { animation-delay: -3.0s; }
.projects-grid .project-card:nth-child(5) .project-image i { animation-delay: -4.0s; }
.projects-grid .project-card:nth-child(6) .project-image i { animation-delay: -0.5s; }
.projects-grid .project-card:nth-child(7) .project-image i { animation-delay: -1.5s; }
.projects-grid .project-card:nth-child(8) .project-image i { animation-delay: -2.5s; }

/* Overlay inferior muy suave para no apagar el degradado */
.projects-grid .project-card .project-image::after {
    background: linear-gradient(180deg, transparent 70%, rgba(15, 23, 42, 0.06) 100%);
}

/* Borde y sombra de tarjeta sutiles */
.projects-grid .project-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* Modo oscuro: explosión de color en tonos profundos */
body.dark-mode .projects-grid .project-card:nth-child(1) .project-image {
    background-image: linear-gradient(135deg,
        #4c1d95 0%, #6d28d9 18%, #9d174d 36%, #b45309 54%,
        #155e75 72%, #1e40af 90%, #4c1d95 100%);
    color: #c7d2fe;
}
body.dark-mode .projects-grid .project-card:nth-child(2) .project-image {
    background-image: linear-gradient(135deg,
        #b45309 0%, #9a3412 18%, #be123c 36%, #831843 54%,
        #6d28d9 72%, #854d0e 90%, #b45309 100%);
    color: #fed7aa;
}
body.dark-mode .projects-grid .project-card:nth-child(3) .project-image {
    background-image: linear-gradient(135deg,
        #9d174d 0%, #86198f 18%, #5b21b6 36%, #155e75 54%,
        #b45309 72%, #be123c 90%, #9d174d 100%);
    color: #fbcfe8;
}
body.dark-mode .projects-grid .project-card:nth-child(4) .project-image {
    background-image: linear-gradient(135deg,
        #be123c 0%, #b45309 18%, #a16207 36%, #9d174d 54%,
        #9a3412 72%, #6d28d9 90%, #be123c 100%);
    color: #fecdd3;
}
body.dark-mode .projects-grid .project-card:nth-child(5) .project-image {
    background-image: linear-gradient(135deg,
        #0e7490 0%, #115e59 18%, #1e40af 36%, #4338ca 54%,
        #6d28d9 72%, #155e75 90%, #0e7490 100%);
    color: #a5f3fc;
}
body.dark-mode .projects-grid .project-card:nth-child(6) .project-image {
    background-image: linear-gradient(135deg,
        #4338ca 0%, #6d28d9 18%, #86198f 36%, #0e7490 54%,
        #1e40af 72%, #5b21b6 90%, #4338ca 100%);
    color: #c7d2fe;
}
body.dark-mode .projects-grid .project-card:nth-child(7) .project-image {
    background-image: linear-gradient(135deg,
        #b45309 0%, #9a3412 18%, #9d174d 36%, #6d28d9 54%,
        #0e7490 72%, #a16207 90%, #b45309 100%);
    color: #fde68a;
}
body.dark-mode .projects-grid .project-card:nth-child(8) .project-image {
    background-image: linear-gradient(135deg,
        #6d28d9 0%, #86198f 18%, #9d174d 36%, #4338ca 54%,
        #1e40af 72%, #5b21b6 90%, #6d28d9 100%);
    color: #ddd6fe;
}
body.dark-mode .projects-grid .project-card .project-image i {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
body.dark-mode .projects-grid .project-card .project-image::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18) 0%, transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(244, 114, 182, 0.45) 0%, transparent 32%),
        radial-gradient(circle at 82% 80%, rgba(56, 189, 248, 0.45) 0%, transparent 32%),
        radial-gradient(circle at 22% 82%, rgba(250, 204, 21, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.35) 0%, transparent 35%);
    mix-blend-mode: screen;
}
body.dark-mode .projects-grid .project-card .project-image::after {
    background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.22) 100%);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .projects-grid .project-card .project-image,
    .projects-grid .project-card .project-image i {
        animation: none !important;
    }
}

