/* =========================================
   1. GLOBALES / RESET
   ========================================= */
   html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    display: none; 
}

:root {
    --color-principal: #0057FF;
    --color-principal-oscuro: #021f33;
    --color-principal-clarito: #6ab4e3;
    
    /* Variables de Control para el Logo */
    --logo-width: 30vw;
    --logo-margin-bottom: 20px;
}

/* Breakpoint intermedio para Tablets (Pantallas menores a 1024px) */
@media (max-width: 1024px) {
    :root {
        --logo-width: 65vw;
    }
}

/* Breakpoint para Celulares (Pantallas menores a 600px) */
@media (max-width: 600px) {
    :root {
        --logo-width: 80vw;
        --logo-margin-bottom: 15px;
    }
}

* {
    margin: 0;
    padding: 0;
    font-family: "Space Grotesk", sans-serif;
    box-sizing: border-box;
}

body {
    background: #050d1a;
    overflow-x: hidden;
}

/* =========================================
   2. COMPONENTES GLOBALES (Cursor, Partículas, Nav Dots)
   ========================================= */
#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
}

.cursor-punto {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-principal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-anillo {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--color-principal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.05s ease, opacity 0.3s ease;
}

@media (pointer: fine) {
    body.custom-cursor-active, body.custom-cursor-active * {
        cursor: none;
    }
}

.nav-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(128, 128, 128, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.activo {
    background: var(--color-principal);
    border-color: var(--color-principal);
    box-shadow: 0 0 8px var(--color-principal);
}

.dot::before {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    background: rgba(5, 13, 26, 0.85);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dot:hover::before {
    opacity: 1;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.header-contenedor {
    width: 100vw;
    position: relative;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.header-botones a,
.chevron,
.header-img {
    pointer-events: all;
}

.header-img {
    width: var(--logo-width);
    margin-bottom: var(--logo-margin-bottom);
    display: flex;
    justify-content: center;
    transition: width 0.3s ease;
}

.header-img img {
    width: 100%;
    height: auto; 
    object-fit: contain;
}

.header-titulo {
    color: #ffffff;
    margin-top: 30px;
    font-size: 70px;
}

.header-titulo span {
    color: var(--color-principal);
}

.header-text {
    color: #ffffff;
    width: 40%;
    text-align: center;
    font-size: 15px;
}

.header-botones {
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.header-botones a {
    width: 47%;
    margin-top: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 2px;
}

.boton-mas {
    border: 2px solid var(--color-principal);
    color: #ffffff;
    background-color: var(--color-principal);
    transition: all .2s ease-in-out;
}

.boton-mas:hover {
    border-color: var(--color-principal-clarito);
    background-color: var(--color-principal-clarito);
}

.boton-mas:active, .boton-contacto:active { 
    opacity: .5; 
}

.boton-contacto {
    color: #ffffff;
    border: 2px solid #ffffff;
    transition: all .2s ease-in-out;
}

.boton-contacto:hover {
    background-color: var(--color-principal-clarito);
    border-color: var(--color-principal-clarito);
}

.chevron {
    position: absolute;
    bottom: 10px;
    animation: flotar 2s ease-in-out infinite;
}

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

/* =========================================
   4. SERVICIOS SECTION
   ========================================= */
.servicios-contenedor {
    width: 100vw;
    min-height: 80vh;
    background-color: rgb(255, 255, 255);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 80px 0;
}

.servicios-contenedor h2 {
    width: 68%;
    font-size: 65px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.servicios-contenedor h2 span {
    color: var(--color-principal);
}

.servicios-contenedor h2::after {
    content: '';
    flex: 1;
    margin-top: 15px;
    height: 2px;
    background: var(--color-principal);
}

.servicios-list-contenedor {
    width: 68%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.servicio {
    min-height: 220px;
    height: auto;
    outline: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: outline 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

.servicio img {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.servicio h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0;
}

.servicio p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    margin-top: 10px;
    line-height: 1.6;
}

.servicio:hover {
    outline: 2px solid var(--color-principal);
}

.servicio:hover img {
    transform: scale(1.2);
}

/* =========================================
   5. SOBRE NOSOTROS SECTION
   ========================================= */
.nosotros-contenedor {
    width: 100vw;
    height: 70vh;
    position: relative;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nosotros-izquierda-contenedor {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nosotros-izquierda-contenedor h2 {
    height: 10%;
    font-size: 65px;
    width: 90%;
    margin: 30px 0;
    text-align: left;
}

.nosotros-izquierda-contenedor h2 span {
    color: var(--color-principal);
}

.nosotros-izquierda-contenedor p {
    width: 90%;
    text-align: left;
    color: #4b5563; 
    font-weight: 300;
}

.nosotros-izquierda-contenedor .politica-calidad {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin: 15px 0px;
}

.nosotros-izquierda-contenedor .politica-calidad span {
    color: var(--color-principal);
}

.check-list {
    width: 90%;
    text-align: left;
    list-style: none;
}

.check-list li {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 300;
    color: #4b5563; 
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), font-weight 0.25s ease;
}

.check-list li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--color-principal);
    font-weight: 700;
}

.check-list li:hover {
    font-weight: 500;
    color: #000; 
    transform: translateX(6px) scale(1.077);
}

.nosotros-derecha-contenedor {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nosotros-logo-grande {
    width: 80%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

.nosotros-derecha-contenedor .frase-director {
    color: var(--color-principal);
    text-align: center;
    width: 80%;
    font-size: 16px;
    line-height: 1.5;
}

/* =========================================
   6. CLIENTES SECTION
   ========================================= */
#clientes {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    width: 100vw;
    height: 40vh;
}

.clientes-titulo {
    text-align: center;
    color: #4b5563; 
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 80px;
}

.clientes-titulo span {
    color: var(--color-principal)
}

.carrusel-contenedor {
    overflow: hidden;
    position: relative;
}

.carrusel-track {
    display: flex;
    align-items: center;
    width: max-content;
}

.carrusel-track.animado {
    animation: scroll-carrusel linear infinite;
}

@keyframes scroll-carrusel {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--scroll-width)); }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px;
    height: 100px;
    flex-shrink: 0;
}

.logo-item img {
    height: 100px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .7; 
    transition: all .2s ease-in-out;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   7. CONTACTO SECTION
   ========================================= */
.contacto-contenedor {
    width: 100vw;
    height: 70vh;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 100px 10%;
    position: relative;
}

.contacto-izquierda {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-izquierda h2 {
    font-size: 52px;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0;
}

.contacto-izquierda .contacto-subtitulo {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-item img {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    filter: invert(23%) sepia(97%) saturate(2000%) hue-rotate(210deg);
}

.info-item p {
    font-size: 15px;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

.contacto-redes {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.red-social {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.red-social img {
    width: 25px;
    height: 25px;
    filter: invert(23%) sepia(97%) saturate(2000%) hue-rotate(210deg);
    transition: transform 0.3s ease;
}

.red-social:hover {
    border-color: var(--color-principal);
    background-color: rgba(0, 87, 255, 0.05);
}

.red-social:hover img {
    transform: scale(1.15);
}

.contacto-derecha {
    width: 40%;
}

#contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grupo label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #0d1b2a;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    border-color: var(--color-principal);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.08);
}

.form-grupo textarea {
    resize: none;
    overflow-y: auto;
    min-height: 140px;
}

.btn-enviar {
    width: 100%;
    padding: 16px;
    background-color: var(--color-principal);
    border: 2px solid var(--color-principal);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 4px;
}

.btn-enviar:hover {
    background-color: var(--color-principal-clarito);
    border-color: var(--color-principal-clarito);
    box-shadow: 0 4px 20px rgba(106, 180, 227, 0.3);
    transform: translateY(-1px);
}

.btn-enviar:active {
    opacity: 0.5;
    transform: translateY(0);
}

.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-success, .form-error {
    font-size: 15px;
    text-align: center;
    margin: 0;
}

.form-success { color: #16a34a; }
.form-error { color: #dc2626; }

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    position: relative;
    width: 100vw;
    background-color: #0d1b2a;
    padding: 24px 10%;
}

.footer-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.footer-centro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-centro p {
    font-size: 13px;
    color: #9ca3af; 
    margin: 0;
}

.footer-centro .footer-creditos {
    font-size: 12px;
}

.footer-centro .footer-creditos a {
    color: var(--color-principal);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-centro .footer-creditos a:hover {
    opacity: 0.8;
}

.footer-redes {
    display: flex;
    gap: 18px;
    align-items: center;
}

.footer-redes a {
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.2s ease-in-out;
    display: inline-block;
}

.footer-redes a:hover {
    opacity: 1;
    transform: scale(1.15);
}

.footer-redes img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* =========================================
   9. RESPONSIVE Y MENÚ MÓVIL
   ========================================= */
.menu-hamburguesa, .menu-movil {
    display: none;
}

@media (max-width: 900px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    .header-contenedor,
    .nosotros-contenedor,
    .servicios-contenedor,
    #clientes,
    .contacto-contenedor,
    .footer {
        width: 100% !important;
        max-width: 100% !important;
    }

    .cursor-punto, .cursor-anillo, .nav-dots {
        display: none !important;
    }

    .menu-hamburguesa {
        display: flex;
        flex-direction: column;
        background-color: transparent;
        border: none;
        gap: 6px;
        position: fixed;
        top: 25px;
        right: 25px;
        z-index: 10001;
        cursor: pointer;
    }
    
    .menu-hamburguesa span {
        width: 35px;
        height: 3px;
        background: var(--color-principal);
        transition: 0.4s ease;
        border-radius: 2px;
    }

    .menu-hamburguesa.activo span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: white; }
    .menu-hamburguesa.activo span:nth-child(2) { opacity: 0; }
    .menu-hamburguesa.activo span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: white; }

    .menu-movil {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 13, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 10000;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .menu-movil.activo { right: 0; }

    .menu-movil a {
        color: white;
        text-decoration: none;
        font-size: 28px;
        font-weight: 500;
        transition: color 0.2s;
    }

    .menu-movil a:hover { color: var(--color-principal); }
    
    .header-contenedor {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 60px 20px;
    }

    .header-titulo { font-size: 38px; text-align: center; margin-top: 15px; }
    .header-text { width: 100%; font-size: 15px; }
    .header-botones { width: 100%; flex-direction: column; height: auto; gap: 15px; margin-top: 40px; }
    .header-botones a { width: 100%; margin-top: 0; padding: 16px 0; }

    .nosotros-contenedor { 
        flex-direction: column; 
        height: auto;
        padding: 60px 20px; 
        gap: 40px; 
    }
    .nosotros-izquierda-contenedor, .nosotros-derecha-contenedor { width: 100%; }
    .nosotros-izquierda-contenedor h2 { font-size: 38px; text-align: center; width: 100%; }

    .servicios-contenedor { padding: 60px 20px; }
    .servicios-contenedor h2 { 
        width: 100%; 
        font-size: 28px; 
        display: block;
        white-space: nowrap; 
        text-align: center; 
        margin-bottom: 30px;
    }
    .servicios-contenedor h2::after { display: none; }
    .servicios-list-contenedor { width: 100%; grid-template-columns: 1fr; }

    .contacto-contenedor { 
        flex-direction: column; 
        height: auto; 
        padding: 60px 20px; 
        gap: 40px; 
    }
    .contacto-izquierda, .contacto-derecha { width: 100%; }
    .contacto-izquierda h2 { text-align: center; font-size: 38px; }
    .contacto-info { align-items: center; text-align: center; }
    .contacto-redes { justify-content: center; }
    .form-fila { grid-template-columns: 1fr; gap: 20px; }

    #clientes { height: auto; padding: 60px 0; }
    .footer { padding: 40px 20px; }
    .footer-contenido { flex-direction: column; gap: 30px; text-align: center; }
}