/* Variables y Design Tokens */
:root {
    --bg-color: #000000;
    --bg-surface: #0a0a0a;
    --neon-green: #27F5C5;
    --neon-green-glow: rgba(39, 245, 197, 0.3);
    --neon-green-hover: #1edbaf;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #222222;
    --font-primary: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; letter-spacing: -1px; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }

.text-neon {
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green-glow);
}

/* Botones (CTAs) */
.btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--neon-green);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.btn-primary:hover {
    background-color: var(--neon-green-hover);
    box-shadow: 0 0 30px rgba(39, 245, 197, 0.5);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--neon-green-glow);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-normal);
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

nav a:hover:not(.btn-outline) {
    color: var(--neon-green);
}

/* Animaciones de Reveal (Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utilidades de Layout */
section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.glow-bg {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--neon-green-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(60px);
    border-radius: 50%;
    animation: pulse 8s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0) opacity(0.4); }
    100% { transform: scale(1.2) translate(5%, 5%) opacity(0.7); }
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hero Image Wrapper */
.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 8px;
    background: linear-gradient(135deg, var(--neon-green), transparent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(39, 245, 197, 0.2);
    animation: float 6s ease-in-out infinite;
}

.hero-team-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

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

/* --- Servicios --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

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

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--neon-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
    z-index: 2;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--neon-green-glow);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px var(--neon-green-glow);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(39, 245, 197, 0.03) 100%);
}

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

.card-icon {
    width: 55px;
    height: 55px;
    color: var(--neon-green);
    margin-bottom: 2rem;
    background: rgba(39, 245, 197, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.card ul {
    list-style: none;
    margin-top: 2rem;
}

.card ul li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.check {
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Tecnologías --- */
.tecnologias {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-8px);
}

.tech-item img, .tech-item .tech-svg {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.05));
    transition: filter 0.3s ease;
}

.tech-item .tech-svg {
    stroke: var(--neon-green);
    filter: drop-shadow(0 0 10px rgba(39, 245, 197, 0.4));
}

.tech-item:hover img, .tech-item:hover .tech-svg {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

.tech-item:hover .tech-svg {
    filter: drop-shadow(0 0 20px rgba(39, 245, 197, 0.8));
}

.tech-item span {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

/* --- Beneficios --- */
.beneficios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.beneficio-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.02);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.beneficio-item:hover {
    border-color: var(--border-color);
    background: rgba(255,255,255,0.04);
    transform: translateX(10px);
}

.b-icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* Device Mockups */
.device-mockups {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 380px;
}

.macbook {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    z-index: 1;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.macbook:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.macbook .screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    border: 12px solid #222;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.macbook .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.macbook:hover .screen img {
    opacity: 1;
}

.macbook .base {
    width: 110%;
    height: 15px;
    background: #333;
    margin-left: -5%;
    border-radius: 0 0 15px 15px;
    position: relative;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.macbook .base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 4px;
    background: #111;
    border-radius: 0 0 5px 5px;
}

.iphone {
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 28%;
    z-index: 2;
    transform: perspective(1000px) rotateY(15deg);
    transition: transform 0.5s ease;
    filter: drop-shadow(15px 15px 25px rgba(0,0,0,0.8));
}

.iphone:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05) translateY(-10px);
}

.iphone .screen {
    width: 100%;
    aspect-ratio: 9/19.5;
    background: #000;
    border: 8px solid #111;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 2px #333;
}

.iphone .screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 15px;
    background: #111;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.iphone .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.iphone:hover .screen img {
    opacity: 1;
}

.b-icon-svg {
    width: 32px;
    height: 32px;
    color: var(--neon-green);
    min-width: 32px;
    filter: drop-shadow(0 0 8px rgba(39, 245, 197, 0.4));
}

/* --- Nosotros y Equipo --- */
.mv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.mv-card {
    background: linear-gradient(145deg, var(--bg-surface), #050505);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: var(--transition-normal);
}

.mv-card:hover {
    border-color: var(--neon-green-glow);
    transform: translateY(-5px);
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    width: 100%;
    max-width: 350px;
    transition: var(--transition-normal);
}

.team-card:hover {
    border-color: var(--neon-green-glow);
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    border: 3px solid var(--neon-green);
    padding: 5px;
    position: relative;
}

.team-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #0a0a0a;
}

.team-role {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.team-card p {
    font-size: 0.95rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.team-social a {
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    transition: var(--transition-fast);
}

.team-social a:hover {
    color: var(--text-main);
    transform: translateY(-5px);
}

/* --- Portfolio --- */
.portfolio {
    padding-bottom: 8rem;
    text-align: center;
}

.portfolio-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(39, 245, 197, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.portfolio-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 50px rgba(39, 245, 197, 0.3);
    border-color: rgba(39, 245, 197, 0.3);
}

.portfolio-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(39, 245, 197, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(39, 245, 197, 0.1);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

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

.portfolio-info {
    padding: 1.5rem;
    text-align: left;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-main);
}

.portfolio-tag {
    font-size: 0.85rem;
    color: var(--neon-green);
    background: rgba(39, 245, 197, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

/* --- Nosotros: Misión y Visión --- */
.cta {
    text-align: center;
    padding-bottom: 8rem;
}

.cta-container {
    background: linear-gradient(145deg, var(--bg-surface), #000000);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    opacity: 0.5;
}

.contact-form {
    max-width: 550px;
    margin: 3rem auto;
    text-align: left;
}

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

input, textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(39, 245, 197, 0.1);
}

.form-feedback {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}
.feedback-success { color: var(--neon-green); }
.feedback-error { color: #ff5f56; }

.whatsapp-cta {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.whatsapp-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 5% 2rem 5%;
    background: #030303;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
}

.footer-logo h3 {
    color: var(--neon-green);
    font-size: 2rem;
    letter-spacing: -1px;
}

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

.footer-links h4, .footer-contact h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neon-green);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid #111;
    padding-top: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .beneficios { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    section { padding: 5rem 5%; }
    
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 4rem;
        padding-top: 120px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .navbar {
        padding: 1rem 5%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    nav.active {
        right: 0;
    }
    
    .cta-container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary, .btn-whatsapp {
        width: 100%;
    }
    
    .card {
        padding: 2rem 1.5rem;
    }

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