* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(
        to right,
        #000000 20%,
        #000000 40%,
        #161616 60%,
        #383838 80%
    );
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========================= */
/* PARTICULAS TIPO CHISPAS */
/* ========================= */

.particulas {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particula {
    position: absolute;
    bottom: -20px;
    width: 6px;
    height: 6px;
    background: rgba(43, 255, 0, 0.8);
    border-radius: 50%;
    animation: subir 6s linear infinite;
    opacity: 0;
}

@keyframes subir {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    70% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-110vh) scale(0.5);
        opacity: 0;
    }
}



@keyframes glow {
    from {
        text-shadow:
            0 0 6px rgba(0,255,120,0.6),
            0 0 12px rgba(0,255,120,0.4);
    }
    to {
        text-shadow:
            0 0 18px rgba(0,255,120,0.9),
            0 0 36px rgba(0,255,120,0.6);
    }
}

/* ========================= */
/* CONTENIDO SERVICIOS */
/* ========================= */

.servicios-container {
    width: 80%;
    max-width: 1100px;
    margin: 60px auto 80px auto; /* 🔥 reducido */
    text-align: center;
    position: relative;
    z-index: 2;
}


.titulo {
    font-size: 2.8rem;
    margin-bottom: 80px;
    opacity: 0;
    animation: aparecer 1.2s ease forwards, glow 2s ease-in-out infinite alternate;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 8px #fff, 0 0 16px #fff;
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 40px #fff;
    }
}

.grid-servicios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}


.servicio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    animation: aparecer 1s ease forwards;
}

.servicio-container:nth-child(1) { animation-delay: 0.3s; }
.servicio-container:nth-child(2) { animation-delay: 0.6s; }
.servicio-container:nth-child(3) { animation-delay: 0.9s; }
.servicio-container:nth-child(4) { animation-delay: 1.2s; }

.servicio-img {
    width: 100%;
    aspect-ratio: 18 / 9;
    background: #111;
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.servicio-container:hover .servicio-img {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

/* Barra blanca completa */
.barra {
    width: 100%;
    height: 6px;
    background: #222;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.barra-fill {
    height: 100%;
    background: white;
    width: 0;
    animation: llenarBarra 1.5s ease forwards;
}

@keyframes llenarBarra {
    from { width: 0; }
    to { width: 100%; }
}

.servicio-texto {
    margin-top: 15px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ============================= */
/* SECCIÓN AUTOMATIZACION */
/* ============================= */

/* ============================= */
/* SECCIÓN AUTOMATIZACION */
/* ============================= */

.servicio-automatizacion {
    position: relative;
    overflow: hidden;
    background: #000;
   border-radius: 20px;
}

/* Contenido centrado */
.contenido-automatizacion {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* TEXTO GRANDE DOMINANTE */
.titulo-automatizacion {
    color: #00ff88;
    text-align: center;
    font-size: 2.2rem; /* 🔥 mucho más grande */
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.1;
    text-transform: uppercase;
    animation: glowVerde 2.5s ease-in-out infinite alternate;
}

/* Glow verde elegante */
@keyframes glowVerde {
    from {
        text-shadow: 0 0 6px rgba(0,255,120,0.6),
                     0 0 12px rgba(0,255,120,0.4);
    }
    to {
        text-shadow: 0 0 12px rgba(0,255,120,0.8),
                     0 0 24px rgba(0,255,120,0.6);
    }
}
/* ============================= */
/* FONDO PROFESIONAL AUTOMATIZACION */
/* ============================= */

.servicio-automatizacion {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(0,255,120,0.08),
            transparent 60%
        ),
        linear-gradient(
            135deg,
            #050505 0%,
            #0b0b0b 40%,
            #101010 100%
        );
}

/* Líneas diagonales ultra sutiles */
.servicio-automatizacion::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 1px,
        transparent 40px
    );
    opacity: 0.4;
    z-index: 0;
}

/* Glow ambiental suave */
.servicio-automatizacion::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(0,255,120,0.05),
        transparent 70%
    );
    z-index: 1;
    pointer-events: none;
}

/* ============================= */
/* SECCIÓN CONTACTO */
/* ============================= */

.contacto-section {
    width: 80%;
    max-width: 1100px;
    margin: 120px auto 120px auto;
    text-align: center;
}

.titulo-contacto {
    font-size: 2.4rem;
    margin-bottom: 60px;
    color: #00ff88;
    animation: glowVerde 2.5s ease-in-out infinite alternate;
}

/* Formulario */
.formulario-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Campos */
.campo {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.campo label {
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ccc;
}

.campo input,
.campo textarea {
    background: #111;
    border: none;
    border-radius: 20px;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Focus glow */
.campo input:focus,
.campo textarea:focus {
    box-shadow: 0 0 12px rgba(0,255,120,0.6);
    background: #181818;
}

/* Campo ancho completo */
.campo-full {
    grid-column: span 2;
}

/* Botón */
.btn-enviar {
    grid-column: span 2;
    padding: 16px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: black;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,255,120,0.7);
}
/* ============================= */
/* BOTÓN CONTACTO SUPERIOR */
/* ============================= */

.btn-contacto-top {
    position: fixed;
    top: 40px;
    right: 60px;
    text-decoration: none;
    color: #00ff88;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.7rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-contacto-top:hover {
    text-shadow: 0 0 12px rgba(0,255,120,0.8);
    transform: scale(1.05);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}
/* ============================= */
/* NAV SUPERIOR PRINCIPAL */
/* ============================= */

/* NAV SUPERIOR */
.nav-top {
    position: fixed;
    top: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.nav-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* BOTONES */
.btn-nav {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid #00ff88;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #00ff88;
    color: black;
    box-shadow: 0 0 15px #00ff88;
}

/* Separador */
.separador {
    color: #00ff88;
}


/* ============================= */
/* BOTÓN CONTACTO FIJO */
/* ============================= */

.btn-contacto-fixed {
    position: fixed;
    top: 40px;
    right: 60px;
    text-decoration: none;
    color: #00ff88;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.7rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-contacto-fixed:hover {
    text-shadow: 0 0 12px rgba(0,255,120,0.8);
    transform: scale(1.05);
}
/* ============================= */
/* LAYOUT CON PANEL LATERAL */
/* ============================= */

.layout-principal {
    display: grid;
    grid-template-columns: 250px 1fr;
    width: 90%;
    max-width: 1400px;
    margin: 80px auto;
    gap: 60px;
}

/* PANEL IZQUIERDO */
.panel-lateral {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* CADA PANEL */
.panel-item {
    background: linear-gradient(
        135deg,
        #0b0b0b 0%,
        #111 100%
    );
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    color: #00ff88;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Glow sutil */
.panel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0,255,120,0.4);
}
/* ============================= */
/* PANELES VERTICALES BAJO LA U */
/* ============================= */

.paneles-verticales {
    position: absolute;
    top: 300px; /* debajo de la U */
    left: 60px; /* alineado con el logo */
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 2;
}

.panel-item {
    width: 200px;
    height: 130px; /* 🔥 más alto */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #0b0b0b 0%,
        #111 100%
    );
    border-radius: 20px;
    color: #00ff88;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}


/* Hover elegante */
.panel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0,255,120,0.4);
}
/* ============================= */
/* CONTACTO CON PANELES */
/* ============================= */

.contacto-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

/* Ajuste paneles dentro de contacto */
.contacto-section .paneles-verticales {
    position: relative;
    top: 0;
    left: 0;
}

/* Paneles siguen igual */
.paneles-verticales {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
/* IMAGEN LATERAL FIJA */
.imagen-lateral {
    position: fixed;
    left: 40px;              /* distancia desde la izquierda */
    top: 50%;                /* centrado vertical */
    transform: translateY(-50%);
    z-index: 1;              /* detrás de botones importantes */
    pointer-events: none;    /* no interfiere con clicks */
}

.imagen-lateral img {
    width: 250px;            /* puedes ajustar tamaño */
    max-width: 20vw;         /* adaptable a pantallas grandes */
    opacity: 0.9;
}
/* IMPORTANTE: hacer que el contenedor sea referencia */
.servicios-container {
    position: relative;
}

/* Imagen colocada como en la foto */
.imagen-servicios {
    position: absolute;
    left: -390px;      /* ajusta si quieres más pegado al borde */
    top: 130px;      /* ajusta para clavar la altura exacta */
    z-index: 0;
    pointer-events: none;
}

.imagen-servicios img {
    width: 320px;
    opacity: 0.9;
}
.servicios-container {
    position: relative;
}

/* Contenedor lateral */
.imagenes-laterales {
    position: absolute;
    left: -390px;
    top: 130px; /* altura general */
    display: flex;
    flex-direction: column;
    gap: 120px; /* espacio entre imágenes */
    z-index: 0;
    pointer-events: none;
}

.imagenes-laterales img {
    width: 320px;
    opacity: 0.95;
}
/* HERO PRINCIPAL */
.hero-txj {
    height: 100vh;              /* ocupa TODA la pantalla */
    min-height: 100vh;          /* seguridad extra */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

/* TITULO FUTURISTA */
.hero-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    max-width: 1000px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 15px rgba(255,255,255,0.4);
}
/* Animación entrada HERO */
.hero-titulo {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: entradaHero 1.4s ease-out forwards;
}

@keyframes entradaHero {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Parte blanca */
.hero-titulo .blanco {
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.7);
}

/* Parte verde glow */
.hero-titulo .verde {
    color: #00ff88;
    text-shadow: 
        0 0 10px #00ff88,
        0 0 20px #00ff88,
        0 0 40px rgba(0,255,136,0.6);
}

/* BOTON FUTURISTA */
.btn-hero {
    margin-top: 40px;
    padding: 15px 40px;
    border: 2px solid #00ff88;
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s ease;

    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: entradaBotonPro 1.2s ease-out 0.8s forwards;
}

@keyframes entradaBotonPro {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        box-shadow: 0 0 0 rgba(0,255,136,0);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 0 15px rgba(0,255,136,0.6);
    }
}

.btn-hero:hover {
    background: #00ff88;
    color: black;
    box-shadow: 
        0 0 20px #00ff88,
        0 0 40px #00ff88;
}

.nav-top {
    position: fixed;
    top: 120px;          /* MÁS ABAJO */
    right: 40px;
    display: flex;
    flex-direction: column;  /* UNO SOBRE OTRO */
    gap: 20px;
    z-index: 999;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}


.nav-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.form-message {
    display: none;
    background: #00ff88;
    color: black;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}
