/* ===== VARIABLES ===== */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --accent-color: #06b6d4;
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --bg-header: rgba(2, 6, 23, 0.85);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border-color: #1e293b;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --transition: all 0.5s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text-main); background-color: var(--bg-body); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; filter: brightness(0.9); transition: filter 0.3s ease; }
img:hover { filter: brightness(1.1); }

/* ===== UTILIDADES ===== */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}
.section-subtitle {
    color: var(--accent-color);
    font-family: var(--font-code);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.4);
}

.btn { display: inline-block; padding: 12px 30px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(37, 99, 235, 0.6); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: rgba(59, 130, 246, 0.1); color: white; }

/* ===== HEADER ===== */
header {
    height: var(--header-height);
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.img-nexo { height: 70px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: var(--primary-color); text-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* ===== HERO ===== */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, #1e293b 0%, var(--bg-body) 60%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0; pointer-events: none;
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.highlight { background: linear-gradient(90deg, var(--accent-color), var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.code-block {
    background: #0d1117;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #c9d1d9;
    border: 1px solid #30363d;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}
.code-block:hover { transform: perspective(1000px) rotateY(0) rotateX(0); border-color: var(--accent-color); }
.code-header { display: flex; gap: 8px; margin-bottom: 15px; border-bottom: 1px solid #30363d; padding-bottom: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.keyword { color: #ff7b72; } .function { color: #d2a8ff; } .string { color: #a5d6ff; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), transparent); }

/* ===== SERVICIOS ===== */
.services { background-color: var(--bg-body); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card { background: var(--bg-card); padding: 40px 30px; border-radius: 12px; border: 1px solid var(--border-color); transition: var(--transition); position: relative; overflow: hidden; z-index: 1; }
.service-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%); z-index: 0; opacity: 0; transition: opacity 0.5s; }
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-5px); border-color: var(--primary-color); background-color: var(--bg-card-hover); }
.icon-box { width: 60px; height: 60px; background: rgba(59,130,246,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--primary-color); font-size: 1.5rem; position: relative; z-index: 2; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--text-main); position: relative; z-index: 2; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 2; }

/* ===== ALCANCE ===== */
.scope-section { background-color: #050b18; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 50px; }
.scope-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; position: relative; transition: all 0.3s ease; overflow: hidden; }
.scope-card:hover { border-color: var(--accent-color); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.scope-number { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.03); position: absolute; top: 10px; right: 15px; line-height: 1; }
.scope-content i { font-size: 2rem; color: var(--accent-color); margin-bottom: 20px; background: rgba(6,182,212,0.1); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.scope-content h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 15px; }
.scope-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ===== TECH STACK CARRUSEL ===== */
.tech-stack { background-color: var(--bg-body); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.carousel-wrapper {
    overflow: hidden;
    margin-top: 50px;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-carousel 30s linear infinite;
}
.carousel-wrapper:hover .carousel-track { animation-play-state: paused; }

@keyframes scroll-carousel {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    width: 160px;
    min-width: 160px;
    height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.tech-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(6,182,212,0.12), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.tech-card:hover::before { opacity: 1; }
.tech-card:hover { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.tech-card i { font-size: 3rem; color: var(--text-muted); margin-bottom: 12px; transition: all 0.3s ease; z-index: 1; }
.tech-card:hover i { color: var(--primary-color); transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(59,130,246,0.5)); }
.tech-card h3 { font-size: 1rem; color: var(--text-main); font-weight: 600; margin-bottom: 8px; z-index: 1; }
.tech-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-color); background: rgba(6,182,212,0.1); padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(6,182,212,0.2); font-weight: 700; z-index: 1; }

/* ===== ABOUT ===== */
.about { background-color: #0b1120; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; }
.stats-container { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat-item h4 { font-size: 2.5rem; color: var(--accent-color); font-weight: 800; margin-bottom: 5px; text-shadow: 0 0 10px rgba(6,182,212,0.4); }
.stat-item span { font-size: 0.9rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.about-image img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid var(--border-color); }

/* Terminal animada — Nosotros */
.about-terminal {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    width: 100%;
    min-height: 340px;
}
.about-terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}
.about-terminal-title {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 8px;
}
.about-terminal-body {
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.88rem;
    line-height: 2;
    color: #c9d1d9;
    min-height: 290px;
}
.aterm-line { min-height: 1.6rem; }
.at-prompt { color: var(--accent-color); font-weight: 700; margin-right: 6px; }
.at-cmd { color: var(--primary-color); }
.at-str { color: #a5d6ff; }
.at-hash { color: var(--text-dim); margin-right: 6px; font-size: 0.8rem; }
.at-ok { color: #27c93f; font-weight: 700; margin-right: 4px; }
.at-fix { color: #ffbd2e; font-weight: 700; margin-right: 4px; }
.aterm-cursor {
    display: inline-block;
    width: 9px;
    height: 16px;
    background: var(--accent-color);
    animation: blink-cursor 1s infinite;
    vertical-align: middle;
    border-radius: 1px;
}
@keyframes blink-cursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== EQUIPO ===== */
.team-section { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border-color); }
.team-intro-text { color: var(--text-muted); max-width: 600px; margin: 12px auto 0; font-size: 0.95rem; line-height: 1.6; }

/* Desktop cards — Flip */
.team-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 50px 0 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.flip-scene {
    width: 230px;
    height: 320px;
    perspective: 1000px;
    flex-shrink: 0;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s ease;
}

.flip-scene:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}

.flip-front {
    background: var(--bg-card);
}

.flip-back {
    background: linear-gradient(145deg, #0f172a 0%, #1a2f4a 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: rotateY(180deg);
    text-align: center;
}

/* Frente */
.flip-front-icon {
    font-size: 3.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: color 0.3s;
}
.flip-scene:hover .flip-front-icon { color: var(--primary-color); }

.flip-front-name {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}
.flip-front-role {
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}
.flip-hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-code);
    letter-spacing: 0.5px;
}

/* Reverso */
.flip-back-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}
.flip-back-name {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.flip-back-role {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.flip-back-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-bottom: 18px;
}
.flip-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.flip-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.6s ease 0.4s;
}
.flip-scene:hover .flip-bar-fill { width: 100%; }

/* Mobile cards */
.team-mobile-grid { display: none; }

/* ===== PROCESO ===== */
.process-section { background-color: #0b1120; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; }
.process-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(6,182,212,0.05) 0%, transparent 70%); z-index: 0; pointer-events: none; }
.process-wrapper { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 60px; padding: 0 20px; }
.step-card { flex: 1; position: relative; text-align: center; padding: 0 10px; }
.step-card:not(:last-child)::after { content: ''; position: absolute; top: 40px; left: 50%; width: 100%; height: 2px; background: #1e293b; z-index: 0; }
.step-icon { width: 80px; height: 80px; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: all 0.4s ease; color: var(--text-dim); font-size: 1.8rem; }
.step-number { position: absolute; top: -5px; right: -5px; background: var(--primary-color); color: white; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; border: 2px solid var(--bg-body); font-family: var(--font-code); }
.step-content h3 { color: var(--text-main); margin-bottom: 10px; font-size: 1.1rem; transition: color 0.3s; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.step-card:hover .step-icon { border-color: var(--accent-color); color: var(--accent-color); box-shadow: 0 0 20px rgba(6,182,212,0.3); transform: scale(1.1); }
.step-card:hover .step-content h3 { color: var(--primary-color); }
.step-card:not(:last-child):hover::after { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); height: 3px; }

/* ===== CTA ===== */
.cta-banner { background: linear-gradient(135deg, #0b1120 0%, #0f172a 50%, #06b6d4 100%); position: relative; padding: 100px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.3; z-index: 1; }
.cta-content { position: relative; z-index: 2; }
.cta-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { text-shadow: none; transform: scale(1); } 50% { text-shadow: 0 0 20px rgba(6,182,212,0.6); transform: scale(1.1); } }
.cta-banner h2 { font-size: 3rem; font-weight: 800; color: white; margin-bottom: 15px; }
.cta-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }
.btn-giant { display: inline-flex; align-items: center; gap: 15px; background-color: white; color: #0f172a; padding: 18px 50px; font-size: 1.2rem; font-weight: 800; border-radius: 50px; transition: all 0.3s ease; position: relative; }
.btn-giant:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 20px 40px rgba(6,182,212,0.4); }

/* ===== CONTACTO ===== */
.contact { background-color: var(--bg-body); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; margin-top: 50px; background: var(--bg-card); border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); }
.contact-info { background: linear-gradient(180deg, #0f172a 0%, #020617 100%); color: white; padding: 50px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border-color); }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.info-item i { color: var(--accent-color); font-size: 1.2rem; margin-top: 5px; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 5px; }
.info-item p { color: var(--text-muted); font-size: 0.95rem; }
.contact-form-container { padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-control { width: 100%; padding: 12px 15px; background: #020617; border: 1px solid var(--border-color); border-radius: 6px; font-family: var(--font-main); font-size: 1rem; color: var(--text-main); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px rgba(59,130,246,0.2); }
.form-control::placeholder { color: #475569; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
footer { background-color: #000; color: var(--text-muted); padding: 60px 0 20px; font-size: 0.9rem; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #1e293b; }
.footer-brand p { margin-top: 15px; max-width: 300px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent-color); }
.copyright { text-align: center; }

/* ===== ANIMACIONES ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 30px; right: 30px; background: rgba(15,23,42,0.95); border: 1px solid var(--accent-color); border-left: 4px solid var(--primary-color); padding: 15px 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; z-index: 9999; backdrop-filter: blur(10px); transform: translateY(100px); opacity: 0; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); min-width: 300px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon i { font-size: 1.5rem; color: #27c93f; }
.toast-content h4 { font-size: 1rem; margin-bottom: 4px; }
.toast-content p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== WHATSAPP ===== */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: white; border-radius: 50%; font-size: 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 1000; transition: all 0.3s ease; }
.whatsapp-float:hover { background-color: #20b857; transform: scale(1.1); }

/* ===================================================
   RESPONSIVE
=================================================== */

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-image { margin-top: 40px; display: flex; justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--border-color); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .cta-banner h2 { font-size: 2rem; }
    .cta-subtitle { font-size: 1rem; padding: 0 20px; }
    .btn-giant { width: 90%; justify-content: center; padding: 15px 20px; }

    /* Nav mobile */
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0; width: 100%;
        background: #0f172a;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        text-align: center;
        gap: 20px;
        z-index: 999;
    }
    .nav-links.active { transform: translateY(0); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .contact-info, .contact-form-container { padding: 30px; }

    /* Form */
    .form-two-col { grid-template-columns: 1fr; }

    /* Proceso */
    .process-wrapper { flex-direction: column; margin-top: 40px; gap: 40px; }
    .step-card:not(:last-child)::after { top: 80px; left: 50%; width: 2px; height: 60px; transform: translateX(-50%); }

    /* Tech */
    .tech-card { width: 130px; min-width: 130px; height: 140px; }
    .tech-card i { font-size: 2.4rem; }
    .tech-card h3 { font-size: 0.85rem; }

    /* Equipo: ocultar desktop, mostrar mobile */
    .team-card-container { display: none; }

    .team-mobile-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }
    .team-mobile-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 28px 24px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    .team-mobile-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0;
        width: 4px; height: 100%;
        background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    }
    .team-mobile-card:hover { border-color: var(--primary-color); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(59,130,246,0.15); }
    .team-mobile-icon { width: 52px; height: 52px; background: rgba(6,182,212,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent-color); font-size: 1.4rem; border: 1px solid rgba(6,182,212,0.2); }
    .team-mobile-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
    .team-mobile-card .role { font-size: 0.82rem; color: var(--accent-color); font-weight: 600; margin-bottom: 12px; }
    .team-mobile-card .desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .scope-grid { grid-template-columns: 1fr; }
}
