:root {
    --bg-color: #050914;
    --primary-color: #0a1128;
    --accent-color: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.5);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
}

body.light-mode {
    --bg-color: #f8fafc;
    --primary-color: #ffffff;
    --accent-color: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.4);
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot {
    width: 24px;
    height: 24px;
    background-color: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 0%;
    z-index: 10001; /* Above navbar */
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Behind everything */
    background-color: var(--bg-color);
}

/* Typography & Glows */
.glow-text {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.typed-cursor {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 9, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.logo h1 { font-weight: 800; font-size: 1.8rem; white-space: nowrap; }
.navbar nav ul { list-style: none; display: flex; gap: 2rem; }
.navbar nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.navbar nav ul li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    min-height: 130px; /* Pre-allocate space for typing */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

/* Magnetic Buttons & Glow */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1) inset, 0 0 15px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--accent-glow);
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4) inset, 0 0 25px rgba(0, 240, 255, 0.4);
    text-shadow: 0 0 5px #fff;
}

/* Terminal / Code Card */
.hero-graphics {
    flex: 1;
    display: flex;
    justify-content: center;
}

.code-card {
    background: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    width: 380px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0,240,255,0.1);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.comment { color: #6272a4; }
.keyword { color: #ff79c6; }
.class { color: #8be9fd; }
.method { color: #50fa7b; }
.property { color: #f1fa8c; }
.string { color: #f1fa8c; }
.red { color: #ff5f56; }

/* Interactive Terminal */
#terminal-content {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 5px;
    color: #e2e8f0;
}
.terminal-line { margin-bottom: 4px; line-height: 1.4; }
.terminal-input-line { display: flex; align-items: center; font-family: 'Fira Code', monospace; }
.prompt { color: #50fa7b; margin-right: 8px; font-size: 0.9rem; white-space: nowrap; }
#terminal-input {
    background: transparent !important;
    border: none !important;
    color: #f1fa8c !important;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    flex: 1;
    outline: none;
    padding: 0;
    box-shadow: none !important;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Services */
.services {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

.service-card {
    background: rgba(15, 23, 42, 0.95);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.glow-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* Tech Stack Carousel */
.tech-stack {
    padding: 3rem 0;
    background: rgba(10, 17, 40, 0.4);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.carousel-track {
    display: flex;
    width: calc(200px * 12); /* 6 items * 2 * width */
    animation: scroll 25s linear infinite;
}
.carousel-track:hover {
    animation-play-state: paused;
}
.tech-item {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.tech-item:hover { color: var(--accent-color); }
.tech-item img {
    width: 40px;
    height: 40px;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.tech-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

/* Statistics Section */
.stats-section {
    padding: 5rem 5%;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 2rem;
}
.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 20px var(--accent-glow);
}
.stat-suffix {
    font-size: 2.5rem;
    margin-left: 5px;
}
.stat-item p {
    font-size: 1.1rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Timeline Section */
.timeline-section {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    z-index: 10;
}
.timeline-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
}
.timeline-content {
    background: rgba(15, 23, 42, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-content {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(80, 250, 123, 0.1);
}
.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Portfolio */
.portfolio {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    z-index: 10;
}
.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}
.portfolio-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
}
.portfolio-card:hover {
    box-shadow: 0 20px 40px var(--accent-glow);
    border-color: var(--accent-color);
}
.portfolio-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}
.portfolio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-photo {
    transform: scale(1.1);
}
.portfolio-info {
    padding: 2rem;
    text-align: left;
}
.portfolio-info h3 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.5rem;
}
.portfolio-info p {
    color: #a0aec0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.tech-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(80, 250, 123, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(80, 250, 123, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    z-index: 10;
}
.testimonials-section h2 { margin-bottom: 4rem; font-size: 2.5rem; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: rgba(15, 23, 42, 0.6);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 233, 253, 0.1);
    border-color: rgba(139, 233, 253, 0.5);
}
.stars {
    color: #f1fa8c;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.feedback {
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.client-info h4 { margin-bottom: 0.2rem; color: #fff; }
.client-info span { font-size: 0.85rem; color: #a0aec0; }

/* FAQ Section */
.faq-section {
    padding: 8rem 5%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.faq-section h2 { text-align: center; margin-bottom: 4rem; font-size: 2.5rem; }
.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}
.faq-question:hover { background: rgba(255, 255, 255, 0.05); }
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(10, 17, 40, 0.4);
}
.faq-answer p { padding: 0 1.5rem; margin-bottom: 1.5rem; color: #a0aec0; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 17, 40, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}
.modal.active {
    display: flex;
}
.modal-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    background: var(--bg-color);
    border: 1px solid rgba(80, 250, 123, 0.2);
    border-radius: 12px;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-modal:hover { color: var(--accent-color); }
.modal-body img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.modal-body h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}
.modal-body p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer Moderno */
.footer {
    background: #0f172a;
    padding: 6rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-col h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-col p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 1rem;
}
.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--accent-color);
}
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(80, 250, 123, 0.2);
    border-radius: 50px;
    transition: background 0.3s ease;
}
.social-links a:hover {
    background: rgba(80, 250, 123, 0.1);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #a0aec0;
}

/* Contact & Forms */
.contact {
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(15px);
    padding: 4rem;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

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

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.form-status {
    margin-top: 1rem;
    font-weight: 600;
}
.status-success { color: #4ade80; text-shadow: 0 0 5px #4ade80; }
.status-error { color: #f87171; text-shadow: 0 0 5px #f87171; }

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(5, 9, 20, 0.9);
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
    z-index: 10;
}

/* =====================
   Nuevas Funcionalidades UX
   ===================== */

/* Loader */
.loader-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}
.loader-content {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bracket { color: var(--text-secondary); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Botón Tema Profesional */
.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.theme-btn:hover { 
    background: var(--accent-glow);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: rotate(15deg) scale(1.05); 
}

/* Ajustes Light Mode */
body.light-mode .navbar, 
body.light-mode .glass-panel, 
body.light-mode .code-card, 
body.light-mode .service-card,
body.light-mode .portfolio-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
body.light-mode .tech-stack {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0,0,0,0.1);
}
body.light-mode .theme-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}
body.light-mode pre { color: #1e293b; }
body.light-mode footer { background: rgba(255, 255, 255, 0.9); border-color: rgba(0,0,0,0.1); }
body.light-mode .logo h1 { color: #0f172a; }
body.light-mode .services h2, body.light-mode .contact-container h2, body.light-mode .portfolio h2 { color: #0f172a; }
body.light-mode .portfolio-info h3 { color: #0f172a; }
body.light-mode input, body.light-mode textarea { background: rgba(0,0,0,0.03); color: #0f172a; border-color: rgba(0,0,0,0.2); }

/* Botón WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}
.whatsapp-btn svg {
    width: 32px;
    height: 32px;
}
.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@media (max-width: 992px) {
    /* Navbar responsive */
    .navbar {
        flex-direction: column !important;
        align-items: center !important;
        padding: 1rem 5% !important;
        gap: 0.8rem !important;
    }
    .logo h1 { 
        font-size: 1.5rem !important;
        white-space: nowrap !important;
        text-align: center;
    }
    .navbar nav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.8rem !important;
    }
    .navbar nav ul li a {
        font-size: 0.9rem !important;
    }
    .theme-btn {
        width: 32px !important;
        height: 32px !important;
    }
    .theme-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Hero section */
    .hero { flex-direction: column; text-align: center; padding-top: 10rem; }
    .hero-title { font-size: 2.2rem; min-height: 100px; }
    .hero-graphics { margin-top: 4rem; width: 100%; }
    .code-card { width: 100%; padding: 1rem; }
    pre { font-size: 0.75rem; overflow-x: auto; } /* Prevent code overflow */
    
    /* Disabling custom cursor on mobile */
    .cursor-dot { display: none; }
    * { cursor: auto !important; }
    
    /* Sections spacing & grids */
    .services { padding: 4rem 5%; }
    .services h2 { margin-bottom: 2rem; font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    
    .portfolio { padding: 4rem 5%; }
    .portfolio h2 { margin-bottom: 2rem; font-size: 2rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-img { height: 180px; }
    
    .contact { padding: 4rem 5%; }
    .glass-panel { padding: 2rem 1.5rem; }
    
    /* Botón WhatsApp */
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
    
    /* Timeline / Metodología */
    .timeline::before { left: 15px; }
    .timeline-dot { left: 6px; }
    .timeline-item { padding-left: 45px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-number { font-size: 2.5rem; }
    
    /* Testimonials, FAQ & Footer padding */
    .testimonials-section, .faq-section, .stats-section, .timeline-section { padding: 4rem 5%; }
    .testimonials-section h2, .faq-section h2 { margin-bottom: 2rem; font-size: 2rem; }
    
    /* Modals responsive */
    .modal { padding: 1rem; }
    .modal-content { padding: 1.5rem; }
    .modal-body img { height: 200px; margin-bottom: 1rem; }
    .modal-body h3 { font-size: 1.5rem; }
    .close-modal { top: 10px; right: 15px; font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.8rem; }
    .portfolio-img { height: 160px; }
    .glass-panel { padding: 1.5rem 1rem; }
}
