/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* --- VARIABLES CSS (Cambia los colores aquí para coincidir con tu logo) --- */
:root {
    --primary-color: #0F172A; /* Azul Oscuro (Fondo Hero/Footer) */
    --accent-color: #2563EB;  /* Azul Brillante (Botones/Enlaces) */
    --accent-hover: #1D4ED8;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-light: #F1F5F9;
    --white: #ffffff;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* --- UTILIDADES --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
/* Ajuste global para iconos Boxicons */
.bx, .bxl {
    line-height: 1; /* Evita que el icono afecte la altura de la línea de texto */
    vertical-align: middle;
}

/* En las tarjetas de servicios */
.service-card .icon {
    font-size: 3rem; /* Tamaño grande y visible */
    margin-bottom: 20px;
    display: block;
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img { height: 40px; width: auto; } /* Ajusta según tu logo */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001; /* Por encima del menú desplegable */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}
.nav-links li {
	padding-top: 12px;
}
.nav-links a {
	
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--accent-color); }

.mobile-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

@media (max-width: 768px) {
    /* Mostrar el botón hamburguesa */
    .hamburger {
        display: flex;
    }

    /* Estilo del Menú Móvil (Oculto por defecto) */
    .nav-links {
        position: fixed; /* Fijo para cubrir la pantalla o bajar desde el header */
        top: 80px;       /* Justo debajo del header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: 4px solid var(--accent-color);
        
        /* Animación de entrada */
        transform: translateY(-150%); /* Se esconde hacia arriba */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    /* Clase activa para mostrar el menú */
    .nav-links.active {
        transform: translateY(0); /* Baja suavemente */
    }

    /* Ajuste de enlaces en móvil */
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .btn-nav {
        margin: 0;
        display: inline-block;
        width: auto;
    }

    /* Animación del Icono Hamburguesa a "X" */
    .hamburger.is-active .bar:nth-child(2) {
        opacity: 0; /* Oculta la barra del medio */
    }
    .hamburger.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

        /* --- HERO SECTION --- */
        #hero {
            background-color: var(--primary-color);
            color: var(--white);
            padding: 160px 0 100px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        #hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            line-height: 1.2;
        }
        #hero p {
            font-size: 1.2rem;
            color: #CBD5E1;
            margin-bottom: 40px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        /* Decoración de fondo sutil */
        #hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, rgba(15,23,42,0) 70%);
            border-radius: 50%;
        }

        /* --- SERVICIOS --- */
        #servicios { padding: 100px 0; background-color: var(--bg-light); }
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .service-card {
            background: var(--white);
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transition: var(--transition);
            border-top: 4px solid var(--accent-color);
        }
        .service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
        .service-card h3 { margin-bottom: 15px; font-size: 1.25rem; }
        .service-card p { color: var(--text-light); font-size: 0.95rem; }
        .icon { font-size: 2rem; margin-bottom: 20px; display: block; }

        /* --- NOSOTROS (Texto + Imagen) --- */
        #nosotros { padding: 100px 0; }
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }
        .about-text h2 { margin-bottom: 20px; color: var(--primary-color); }
        .about-text p { margin-bottom: 20px; color: var(--text-light); }
        .tech-badges span {
            display: inline-block;
            background: var(--bg-light);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-right: 10px;
            margin-bottom: 10px;
            color: var(--text-dark);
            font-weight: 600;
        }

        #contacto {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

/* En escritorio: Una columna ancha a la izquierda y dos a la derecha */
@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: repeat(2, minmax(200px, auto));
    }
    /* La tarjeta principal ocupa toda la altura de la izquierda */
    .bento-card.main-cta {
        grid-row: span 2;
    }
}

.bento-card {
    background-color: rgba(255, 255, 255, 0.05); /* Efecto vidrio sutil */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; /* Bordes muy redondeados estilo iOS/Bento */
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Para cuando sean enlaces */
    color: var(--white);
}

.bento-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* Tipografía específica del Bento */
.bento-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card h4 {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.bento-card p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Flecha decorativa en las tarjetas enlazables */
.arrow-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: var(--transition);
}
.bento-card:hover .arrow-icon {
    opacity: 1;
    transform: translate(5px, -5px);
    color: var(--accent-color);
}/* --- NUEVAS SECCIONES (Inspiradas en Brouter) --- */

/* 1. METODOLOGÍA (Process Steps) */
.process-section {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

/* Línea conectora (solo desktop) */
@media (min-width: 768px) {
    .process-steps::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: #e2e8f0;
        z-index: 0;
    }
}

.step-card {
    flex: 1;
    min-width: 250px;
    position: relative;
    z-index: 1;
    background: white; /* Para tapar la línea detrás del icono */
    padding: 20px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    background: var(--accent-color);
}

.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); }
.step-card p { font-size: 0.9rem; color: var(--text-light); }


/* 2. PLATAFORMAS (Showcase estilo Grid) */
.portfolio-section {
    padding: 100px 0;
    background-color: #F8FAFC;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-header {
    height: 200px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}

/* Etiquetas de estado */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge.live { background: #22c55e; color: white; }
.badge.dev { background: #f59e0b; color: white; }

.project-body { padding: 30px; }
.project-body h3 { margin-bottom: 10px; color: var(--primary-color); }
.project-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

.tech-stack-mini {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #64748B;
    font-family: monospace;
}

/* --- TECH STACK MARQUEE --- */
.tech-section {
    padding: 60px 0;
    background: var(--white);
    overflow: hidden; /* Vital para ocultar el scroll */
    border-bottom: 1px solid #e2e8f0;
}

.marquee-container {
    display: flex;
    width: 200%; /* El doble de ancho para el loop */
    animation: marquee 20s linear infinite;
}

.tech-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cbd5e1; /* Gris claro para no robar atención */
    padding: 0 40px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Animación infinita */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pausar al pasar el mouse */
.marquee-container:hover { animation-play-state: paused; }

/* --- FAQ ACORDEÓN --- */
.faq-section {
    padding: 100px 0;
    background-color: #F8FAFC;
}
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
}

.faq-item.active .faq-question::after { content: '-'; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 200px; /* Altura máxima estimada */
}

/* --- NUEVO FOOTER PRO --- */
footer {
    background-color: #0f172a; /* Azul muy oscuro, casi negro */
    color: #94a3b8; /* Gris claro para texto */
    padding: 80px 0 30px;
    font-size: 0.95rem;
    border-top: 4px solid var(--accent-color); /* Línea de acento superior */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
}

/* Pequeña línea debajo de los títulos */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 15px; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px); /* Efecto de desplazamiento sutil */
}

/* Iconos pequeños para datos de contacto */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.footer-contact-item span:first-child { color: var(--accent-color); }

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Copyright y Legal */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    /* --- RESPONSIVE SOBRE NOSOTROS --- */
    
    /* 1. Cambiar la grilla a una sola columna */
    .about-content {
        grid-template-columns: 1fr; /* Una sola columna vertical */
        gap: 40px; /* Menos separación que en desktop */
        text-align: center; /* Centrar textos para que se vea equilibrado */
    }

    /* 2. Ajustar el orden si quieres que la imagen salga primero (Opcional) */
    /* Si prefieres el texto primero, ignora esta parte de 'order' */
    /* .about-text { order: 2; }
    .about-image-container { order: 1; } 
    */

    /* 3. Centrar las etiquetas de tecnología (Badges) */
    .tech-badges {
        display: flex;
        flex-wrap: wrap; /* Permitir que bajen si no caben */
        justify-content: center; /* Centrar horizontalmente */
        gap: 10px; /* Espacio uniforme entre ellas */
    }

    .tech-badges span {
        margin-right: 0; /* Quitar margen derecho antiguo */
        margin-bottom: 0; /* El gap ya maneja el espacio */
    }
}
@media (min-width: 768px) {


    .footer-bottom {
        justify-content: space-between;
        text-align: left;
        text-align: center;
    }
}

/* Estilo para los iconos SVG del footer */
.contact-icon {
    color: var(--accent-color); /* Hereda el color azul definido en variables */
    margin-right: 12px;         /* Espacio entre icono y texto */
    flex-shrink: 0;             /* Evita que el icono se aplaste si el texto es largo */
}

/* Asegurar alineación vertical perfecta */
.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
/* Estilo para los textos de los enlaces de contacto */
.footer-contact-item a {
    color: #e2e8f0;          /* Blanco humo: alto contraste sobre el fondo oscuro */
    text-decoration: none;   /* Quita el subrayado feo por defecto */
    font-weight: 500;        /* Un poco más grueso para facilitar lectura */
    font-size: 1rem;         /* Tamaño cómodo */
    transition: all 0.3s ease; /* Suaviza la animación de color */
    position: relative;
}

/* Efecto al pasar el mouse (Hover) */
.footer-contact-item a:hover {
    color: var(--accent-color); /* Se cambia a tu azul corporativo */
    padding-left: 5px;          /* Pequeño desplazamiento elegante a la derecha */
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4); /* Sutil brillo neón */
}