
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores premium */
    --primary-dark: #0A1628;      /* Azul marino profundo - confianza */
    --primary: #1E3A5F;            /* Azul industrial - profesionalismo */
    --accent: #4A90E2;             /* Azul brillante - tecnología */
    --secondary: #7FBA00;          /* Verde tecnológico - innovación */
    --neutral-dark: #2C3E50;      /* Gris azulado oscuro */
    --neutral: #8B95A7;            /* Gris suave */
    --neutral-light: #d1d8e2;     /* Blanco azulado */
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #1E3A5F 0%, #4A90E2 100%);
    --shadow-sm: 0 2px 4px rgba(10, 22, 40, 0.1);
    --shadow-md: 0 4px 6px rgba(10, 22, 40, 0.15);
    --shadow-lg: 0 10px 25px rgba(10, 22, 40, 0.2);
    --shadow-xl: 0 20px 40px rgba(10, 22, 40, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--neutral-dark);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
body.loaded {
    opacity: 1;
}
/* Navegación */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

#inicio {
  scroll-margin-top: 240px; /* ajusta según altura real del navbar */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size:2rem;
    font-weight: bold;
    background: black;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url("/src/assets/logo2.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 1.8rem;
    -webkit-text-fill-color: var(--secondary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -40%;
  right: -40%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74,144,226,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;            /* detrás del contenido */
  will-change: transform;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-50px, -50px) rotate(120deg); }
    66% { transform: translate(50px, -20px) rotate(240deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    position: relative;
    z-index: 1;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--neutral);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 0.8s 0.2s ease forwards;
}

.hero-content p {
    color: var(--neutral-dark);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 0.8s 0.4s ease forwards;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 0.8s 0.6s ease forwards;
    position: relative;
    z-index: 2; /* traer el contenido al frente */
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tag-box {
    position: relative;
    font-weight: 600;
    color: var(--primary);
    width: 13rem;
    height: 4rem;
    border-radius: 50px;
    background: linear-gradient(to right, #a0b6e2ec,#4076b0,#0080c5, #003a8c, #7c8dc1, #8898d4e9);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

@keyframes animationGradient {
    to {
        background-position: 200%;
    }
}

.tag-box .tag{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: #d1d8e2;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s, ease;
    cursor: pointer;
}
.tag-box:hover{
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.robot-3d {
    position: fixed;
    inset: 0;               /* ocupa todo el viewport */
    width: 120%;
    height: 110%;
    z-index: 0;             /* detrás del contenido (ajusta según tu layout) */
    pointer-events: none;   /* no bloquea clicks en la UI */
    /* opcional: desplaza/escala visualmente la escena para situar el robot en la esquina */
    transform: translateX(140px) translateY(-40px) scale(0.9);
    transform-origin: right center;
}

/* Sección de características */
.features {
    padding: 5rem 2rem;
    background: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--neutral);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--neutral-dark);
    line-height: 1.8;
}

/* Sección de tecnologías */
.tech-stack {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--white) 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.tech-item h4 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1rem;
}

.tech-item .tech-icon {
    font-size: 0rem;
    margin-bottom: 1rem;
}

.tech-icon img {
  max-width: 70%;   /* ajusta el tamaño dentro del recuadro */
  max-height: 70%;
  object-fit: contain;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: var(--gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--accent);
}

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

/* Responsive */
/* 🖥️ Laptops grandes / monitores */
@media (max-width: 1200px) {
    .nav-container { 
        padding: 1rem; 
    }
    .hero-container { 
        padding: 3rem; gap: 2rem; 
    }
    .hero-content h1 { 
        font-size: clamp(2rem, 4vw, 3.5rem); 
    }
    .robot-3d { 
        transform: scale(0.85) translateY(-20px); 
    }
    .features-grid, .tech-grid, .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) { 
    header {
        padding: 1rem 0.1rem;
    }
    .hero {
        padding-bottom: 2rem;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);

        /* estado oculto */
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        overflow: hidden;
        pointer-events: none;

        transition: max-height 0.5s ease, 
                    opacity 0.5s ease, 
                    transform 0.5s ease;
    }
    .nav-links.active {
        max-height: 500px;   /* suficiente para tu menú */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .menu-toggle {
        display: flex;
    }

    .hero-container {
        margin-top: 25rem;
        grid-template-columns: 1.5fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .device-mockup {
        height: 300px;
    }

    .cta-buttons {
        justify-content: center;
    }
    .robot-3d {
    position: absolute;
    width: 150%;
    height: 150%;
    transform: translateX(-26%) translateY(-67%) scale(0.7);
    }
    .tech-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .tech-item { max-width: 180px; padding: 0.9rem; }
    .tech-icon img { max-width: 70px; }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .feature-card { max-width: 200px; padding: 0.7rem; }
    .feature-icon { max-width: 65px; }
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .feature-card p {
        font-size: 0.7rem;
    }
}

/* Animación de scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator::before {
    content: '↓';
    font-size: 2rem;
    color: var(--accent);
}
