/* ==========================================================================
   1. ESTILOS GLOBALES Y CONFIGURACIÓN
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #081120;
    color: white;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

section {
    padding: 110px 0;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZABLES (BOTONES Y TÍTULOS)
   ========================================================================== */
.btn-primary {
    background: #2288F6;
    color: #081120;
    padding: 16px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-4px);
}

.btn-secondary {
    border: 1px solid #2288F6;
    color: #2288F6;
    padding: 16px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #2288F6;
    color: #081120;
}

.section-subtitle {
    color: #2288F6;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 25px;
}

.section-description {
    text-align: center;
    color: #b9c2d0;
    max-width: 850px;
    margin: auto;
    line-height: 1.7;
    font-size: 18px;
}

/* ==========================================================================
   3. HEADER / NAVEGACIÓN
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.70);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}

.logo {
    display:flex;
    align-items:center;
}

.logo img{
    width:85px;
    height:auto;
}

.logo img:hover{
    transform:scale(1.03);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #2288F6;
}

/* ==========================================================================
   4. HERO (CON IMAGEN DE FONDO Y NEÓN SUAVE INTERMITENTE)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* FONDO PARA EL HERO */
    background-image: url('img/hero-lockthre.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.82); /* Capa oscura equilibrada para leer bien el texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    max-width: 1000px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    max-width: 850px;
    font-size: 22px;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Animación de Neón Sutil (Efecto apagado/encendido suave) */
@keyframes neon-soft-flicker {
    0%, 100% {
        text-shadow: 
            0 0 4px rgba(255, 255, 255, 0.8),
            0 0 12px rgba(0, 212, 255, 0.6),
            0 0 25px rgba(0, 212, 255, 0.4);
        color: #fff;
    }
    50% {        
        text-shadow: 0 0 2px rgba(0, 212, 255, 0.2);
        color: rgba(255, 255, 255, 0.4); /* Estado semi-apagado muy suave */
    }
}

.hero h1 span.neon-text {
    animation: neon-soft-flicker 4s infinite ease-in-out;
}

/* ==========================================================================
   5. SERVICIOS (2 CARDS POR FILA, AMPLIAS PARA IMÁGENES)
   ========================================================================== */
.services {
    background: #0b1528;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Volvemos a 2 columnas por fila */
    gap: 40px;
    margin-top: 70px;
}

.service-card {
    background: #121d35;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column; /* Cambiado a vertical para dar más amplitud a la imagen */
    width: 100%;
}

/* Efecto de luz neón envolvente al pasar el cursor */
.service-card:hover {
    transform: translateY(-8px);
    border-color: #2288F6;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.25);
}

.service-image {
    width: 100%;
    height: 280px; /* Altura ideal fija para que la imagen luzca de forma óptima */
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.04);
}

.service-content {
    width: 100%;
    padding: 40px;
}

.service-content .icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.10);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2288F6;
    font-size: 26px;
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.service-content p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-content ul {
    padding-left: 18px;
}

.service-content ul li {
    margin-bottom: 10px;
    color: #b9c2d0;
}

/* ==========================================================================
   6. SECCIÓN NOSOTROS
   ========================================================================== */
.nosotros {
    background: #081120;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 60px;
    align-items: center;
}

.nosotros-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #121d35;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.nosotros-icon {
    font-size: 28px;
    color: #2288F6;
    background: rgba(0, 212, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.nosotros-box h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.nosotros-box p {
    color: #b9c2d0;
    line-height: 1.6;
}

.nosotros-image img {
    width: 100%;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   7. SECCIÓN CONTACTO
   ========================================================================== */
.contacto {
    background: #101827;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 54px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.contact-info p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight {
    color: #2288F6;
    font-size: 22px;
    font-weight: 700;
}

form {
    background: #141f38;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

form input,
form textarea {
    width: 100%;
    padding: 18px;
    background: #0b1324;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 20px;
    color: white;
    outline: none;
    transition: 0.3s;
}

form input:focus,
form textarea:focus {
    border-color: #2288F6;
}

form textarea {
    resize: none;
    height: 160px;
}

form button {
    border: none;
    cursor: pointer;
    width: 100%;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    background: #050816;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #2288F6;
}

.footer-about {
    color: #b8c0d1;
    line-height: 1.8;
}

.footer-links h3 {
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: #b8c0d1;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #2288F6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    color: #8c97aa;
}

/* ==========================================================================
   9. BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp {
    position: fixed;
    width: 70px;
    height: 70px;
    background: #25D366;
    right: 25px;
    bottom: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media(max-width: 1100px) {
    .services-grid {
        grid-template-columns: 1fr; /* En tablets y móviles baja a 1 columna por comodidad */
    }
    
    .nosotros-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .section-title {
        font-size: 36px;
    }

    .contact-info h2 {
        font-size: 36px;
    }
}