/* ================================================= */
/* 1. CONFIGURACIÓN MAESTRA Y VARIABLES */
/* ================================================= */
:root {
    --color-primario: #0A2239;      /* Azul Marino Tech */
    --color-secundario: #050f19;    /* Negro Profundo */
    --color-acento: #37bc81;        /* Verde Digital DigitalNet */
    --color-blanco: #ffffff;
    --color-texto-gris: rgba(255, 255, 255, 0.7);
    --header-height: 85px;
    --transition-premium: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(10, 34, 57, 0.75);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

/* ================================================= */
/* 2. SISTEMA DE REVELACIÓN (SCROLL ANIMATIONS) */
/* ================================================= */

/* Estado base: oculto y desenfocado */
.reveal-up, .reveal-left, .reveal-right, .feature-card, .portfolio-item, .service-item {
    opacity: 0;
    filter: blur(15px);
    transition: var(--transition-premium);
    will-change: transform, opacity, filter;
}

.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }

/* Clase 'active' activada por tu JS */
.reveal-up.active, 
.reveal-left.active, 
.reveal-right.active, 
.feature-card.active, 
.portfolio-item.active,
.service-item.active {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0);
}

/* ================================================= */
/* 3. HEADER (CON GLASSMORPHISM Y SCROLL EFFECT) */
/* ================================================= */
.main-header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--transition-premium);
}

/* Clase añadida por tu JS al hacer scroll */
.header-scrolled {
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 247, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 250px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 247, 0, 0.2));
    transition: 0.4s;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px var(--color-acento));
    transform: scale(1.05);
}

/* Navegación */
.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-blanco);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s ease;
    position: relative;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--color-acento);
}

.btn-accent-nav {
    background: var(--color-acento) !important;
    color: var(--color-primario) !important;
    padding: 12px 24px !important;
    border-radius: 4px;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    box-shadow: 0 0 15px rgba(0, 247, 0, 0.3);
}














/* ================================================= */
/* SECCIÓN TECNOLOGÍAS (TECH STACK) */
/* ================================================= */
/* 1. Crea un espacio para el header fijo */
.main-content-tecnologias {
    padding-top: 100px; /* Ajusta este valor según la altura de tu header (aprox 80px-100px) */
    min-height: 80vh;   /* Asegura que el contenido no se vea pegado al footer si hay poco texto */
}
.tech-stack-section {
    padding: 60px 0;
    background: transparent;
    color: var(--color-blanco);
}

.tech-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tech-header h2 span {
    color: var(--color-acento);
}

.tech-header p {
    color: var(--color-texto-gris);
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* Rejilla de columnas */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

.tech-column h3 {
    font-size: 1.2rem;
    color: var(--color-blanco);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

/* Lista de Tecnologías */
.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--color-texto-gris);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-list li:hover {
    color: var(--color-acento);
    padding-left: 5px;
    border-bottom-color: var(--color-acento);
}

/* Iconos e Imágenes */
.tech-list li img {
    width: 20px;
    height: 20px;
    filter: grayscale(1) brightness(1.5);
    transition: 0.3s;
}

.tech-list li i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
}

.tech-list li:hover img {
    filter: grayscale(0) brightness(1);
}

.tech-list li:hover i {
    color: var(--color-acento);
}
/* 3. Ajuste para móviles (opcional) */
@media (max-width: 768px) {
    .main-content-tecnologias {
        padding-top: 80px; /* El header suele ser más pequeño en móviles */
    }
}

/* Responsivo */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .tech-header h2 {
        font-size: 1.8rem;
    }
}

/* ================================================= */
/* SECCIÓN ADAPTACIÓN */
/* ================================================= */
.adaptation-section {
    background: transparent;
    overflow: hidden;
}

.adaptation-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.adaptation-text {
    flex: 1;
    min-width: 350px;
}

.adaptation-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.adaptation-text h2 span {
    color: var(--color-acento);
}

.adaptation-text p {
    color: var(--color-texto-gris);
    font-size: 1.1rem;
    max-width: 500px;
}

/* Visual Collage */
.adaptation-visual {
    flex: 1;
    min-width: 350px;
    position: relative;
    padding: 40px;
}

.visual-wrapper {
    position: relative;
    width: 100%;
}

.img-main {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Tarjetas Flotantes */
.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}

.card-top {
    width: 180px;
    top: -30px;
    right: -20px;
}

.card-bottom {
    width: 150px;
    bottom: -30px;
    left: -20px;
    animation-delay: 2s;
}

.floating-card img {
    width: 100%;
    display: block;
}

.card-content {
    padding: 10px;
    text-align: center;
}

.product-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
}

/* Animación sutil de levitación */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Responsivo */
@media (max-width: 992px) {
    .adaptation-container {
        flex-direction: column;
        text-align: center;
    }
    .adaptation-text p {
        margin: 0 auto;
    }
    .adaptation-visual {
        width: 100%;
        max-width: 500px;
    }
}











/* ================================================= */
/* 8. WHATSAPP Y FOOTER */
/* ================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    z-index: 3000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.pulse-ring {
    position: absolute;
    width: 100%; height: 100%;
    background: #25d366;
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

.minimal-footer {
    padding: 80px 0 30px;
    background: var(--color-primario);
    border-top: 1px solid rgba(0, 247, 0, 0.1);
}

/* ================================================= */
/* 9. RESPONSIVE (CRÍTICO) */
/* ================================================= */
.menu-toggle {
    display: none; /* Por defecto no existe en ordenador */
    background: none;
    border: none;
    color: var(--color-acento);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 3000;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
@media (max-width: 992px) {
    /* APARECE EL BOTÓN */
    .menu-toggle {
        display: block;
    }

    /* EL MENÚ SE CONVIERTE EN PANEL LATERAL */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla a la derecha */
        width: 80%; /* Ocupa casi toda la pantalla */
        height: 100vh;
        background: var(--color-primario);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-premium);
        z-index: 2500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    /* CUANDO EL MENÚ TIENE LA CLASE .open (activada por JS) */
    .main-nav.open {
        right: 0; /* Entra a la pantalla */
    }

    /* LISTA EN VERTICAL */
    .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        font-weight: 700;
        display: block;
    }

    /* EL BOTÓN DE CONTACTO EN MÓVIL */
    .btn-accent-nav {
        padding: 15px 40px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 992px) {


    .hero-content { text-align: center; }
    .hero-btns { justify-content: center; flex-direction: column; }
}

/* ================================================= */
/* ESTILOS ESPECÍFICOS: MINIMAL FOOTER CON LOGO */
/* ================================================= */

.minimal-footer {
    background-color: #03080e; /* Un tono más oscuro que el fondo general */
    padding: 100px 0 40px;
    position: relative;
    border-top: 1px solid rgba(55, 188, 129, 0.1);
    color: var(--color-blanco);
    overflow: hidden;
}

/* Efecto de resplandor ambiental en el borde superior */
.minimal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-acento), transparent);
    box-shadow: 0 0 30px var(--color-acento);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

/* Branding y Logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 85px; /* Ajusta este valor según el tamaño de tu logo */
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(55, 188, 129, 0.2));
    transition: var(--transition-premium);
}

.footer-logo:hover img {
    filter: drop-shadow(0 0 20px var(--color-acento));
    transform: scale(1.08) rotate(-2deg);
}

.footer-brand p {
    color: var(--color-texto-gris);
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Redes Sociales: Estilo Moderno y Elástico */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 50px;
    height: 50px;
    border-radius: 14px; /* Bordes suaves modernos */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-blanco);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Salto elástico */
    position: relative;
}

.footer-socials a:hover {
    background: var(--color-acento);
    color: var(--color-primario);
    transform: translateY(-12px);
    border-color: var(--color-acento);
    box-shadow: 0 15px 30px rgba(55, 188, 129, 0.4);
}

/* Línea Divisoria Cinematográfica */
.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(55, 188, 129, 0.15) 50%, 
        rgba(255,255,255,0) 100%);
    margin-bottom: 45px;
}

/* Bottom: Legal y Navegación Secundaria */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-bottom p {
    color: var(--color-texto-gris);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: var(--color-texto-gris);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-nav a:hover {
    color: var(--color-acento);
    letter-spacing: 2px; /* Expansión suave */
    transform: translateX(5px);
}

/* ================================================= */
/* RESPONSIVE (OPTIMIZADO) */
/* ================================================= */

@media (max-width: 768px) {
    .minimal-footer {
        padding: 60px 0 30px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 45px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 35px;
    }

    .footer-nav {
        justify-content: center;
        gap: 20px;
    }
}