
/* ========================================= */
/* RESET */
/* ========================================= */

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

/* ========================================= */
/* ROOT COLORS */
/* ========================================= */

:root{

    --primary-color: #3B82F6;
    --secondary-color: #06B6D4;
    --accent-color: #8B5CF6;

    --dark-bg: #070B14;
    --dark-secondary: #0F172A;
    --card-bg: #111827;

    --white: #ffffff;
    --light-gray: #D1D5DB;
    --text-gray: #9CA3AF;

    --border-color: rgba(255,255,255,.08);

    --shadow:
    0 10px 30px rgba(0,0,0,.35);

    --transition: .4s ease;

}

/* ========================================= */
/* BODY */
/* ========================================= */

html{
    scroll-behavior: smooth;
}

body{

    font-family: 'Inter', sans-serif;

    background: var(--dark-bg);

    color: var(--white);

    overflow-x: hidden;

    line-height: 1.7;

}

/* ========================================= */
/* GLOBAL CONTAINER */
/* ========================================= */

.container{

    width: 90%;
    max-width: 1300px;

    margin: auto;

}

/* ========================================= */
/* GLOBAL SECTION */
/* ========================================= */

.section{

    padding: 100px 0;

}

/* ========================================= */
/* IMAGES */
/* ========================================= */

img{

    width: 100%;
    display: block;

}

/* ========================================= */
/* LINKS */
/* ========================================= */

a{

    text-decoration: none;
    color: inherit;

}

/* ========================================= */
/* LIST */
/* ========================================= */

ul{

    list-style: none;

}

/* ========================================= */
/* BUTTONS */
/* ========================================= */

.btn-primary{

    display: inline-block;

    padding: 14px 34px;

    background:
    linear-gradient(
        100deg,
        var(--primary-color),
        var(--accent-color)
    );

    color: var(--white);

    border-radius: 80px;

    font-weight: 600;

    transition: var(--transition);

    border: none;

    cursor: pointer;

    box-shadow:
    0 10px 25px rgba(59,130,246,.25);

}

.btn-primary:hover{

    transform: translateY(-5px);

    box-shadow:
    0 15px 35px rgba(59,130,246,.45);

}

/* ========================================= */
/* SECTION TITLES */
/* ========================================= */

.section-title{

    text-align: center;

    margin-bottom: 60px;

}

.section-title h2{

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 15px;
    color: #60A5FA;

}

.section-title p{

    color: var(--light-gray);

    max-width: 700px;

    margin: auto;

}

/* ========================================= */
/* HEADER */
/* ========================================= */

.header{

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding: 20px 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    z-index: 999;

    background:
    rgba(7,11,20,.75);

    backdrop-filter: blur(14px);

    border-bottom:
    1px solid var(--border-color);

}

/* ========================================= */ 
/* HEADER SCROLL EFFECT */ 
/* ========================================= */ 
.header.scrolled{ 
    padding: 12px 5%; background: 
    rgba(7,11,20,.92); 
    box-shadow: 0 10px 30px 
    rgba(0,0,0,.35); } 
    .header.scrolled .logo img{ width: 60px; 
    }

/* ========================================= */
/* LOGO */
/* ========================================= */

.logo-container{

    display: flex;

    align-items: center;

    gap: 14px;

}

.logo img{

    width: 70px;

    transition: .4s ease;

}

/* ========================================= */
/* LOGO TEXT */
/* ========================================= */

.logo-text{

    display: flex;

    flex-direction: column;

    transition: .4s ease;

}

.logo-text h2{

    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    font-family: 'Orbitron', sans-serif;

}

.logo-text span{

    font-size: 10px;

    color: var(--light-gray);

    letter-spacing: 1px;

}

/* ========================================= */
/* HEADER SCROLL EFFECT */
/* ========================================= */

.header.scrolled{

    padding: 12px 5%;

    background:
    rgba(7,11,20,.92);

    box-shadow:
    0 10px 30px rgba(0,0,0,.35);

}

.header.scrolled .logo img{

    width: 60px;

}

.header.scrolled .logo-text h2{

    font-size: 22px;

}

.header.scrolled .logo-text span{

    font-size: 11px;

}



/* ========================================= */
/* NAVBAR */
/* ========================================= */

.nav-links{

    display: flex;

    align-items: center;

    gap: 35px;

}

.nav-links li{

    position: relative;

}

.nav-links a{

    color: var(--white);

    font-size: 15px;

    font-weight: 500;

    transition: var(--transition);

}

.nav-links a:hover{

    color: var(--secondary-color);

}

/* ========================================= */
/* DROPDOWN */
/* ========================================= */

.dropdown-menu{

    position: absolute;

    top: 40px;
    left: 0;

    background: var(--card-bg);

    min-width: 220px;

    border-radius: 16px;

    padding: 15px 0;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition: var(--transition);

    border:
    1px solid var(--border-color);

    box-shadow: var(--shadow);

}

.dropdown:hover .dropdown-menu{

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}

.dropdown-menu li{

    padding: 12px 20px;

}

.dropdown-menu li:hover{

    background:
    rgba(255,255,255,.04);

}

/* ========================================= */
/* MOBILE MENU */
/* ========================================= */

.menu-toggle{

    display: none;

    font-size: 28px;

    cursor: pointer;

}
/* ========================================= */ 
/* MOBILE NAVIGATION */ 
/* ========================================= */ 
.navbar.active{ 
    display: block; }


/* ========================================= */
/* HEADER LEFT */
/* ========================================= */

.header-left{

    display: flex;

    align-items: center;

    gap: 60px;

}


/* ========================================= */
/* HERO SECTION */
/* ========================================= */

.hero{

    position: relative;

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 0 20px;

    background:
    linear-gradient(
        135deg,

        rgba(2,8,70,.96) 0%,

        rgba(4,20,120,.88) 30%,

        rgba(0,72,255,.55) 60%,

        rgba(0,180,255,.22) 100%
    ),

    url('../images/slider/hero-bg.png');

    background-blend-mode: screen;

    background-size: 40%;

    background-repeat: no-repeat;

    background-position: center right;

}




.hero-content{

    position: relative;

    z-index: 2;

    max-width: 850px;

}

.hero-content h1{

    font-size: 72px;

    line-height: 1.1;

    margin-bottom: 25px;

    font-weight: 700;

}

.hero-content p{

    font-size: 20px;

    color: var(--light-gray);

    margin-bottom: 40px;

}

/* ========================================= */
/* SERVICES */
/* ========================================= */

.services-grid{

    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

    gap: 30px;

}

.service-card{
    display: block; /* Asegura que toda la tarjeta actúe como un bloque clickeable */
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover{

    transform: translateY(-10px);

    border-color:
    rgba(59,130,246,.45);
     

}

.service-icon{

    width: 70px;
    height: 70px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 18px;

    margin-bottom: 25px;

    font-size: 28px;

    background:
    linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );

}

.service-card h3{

    margin-bottom: 15px;

    font-size: 24px;

}

.service-card p{

    color: var(--light-gray);

}

/* ========================================= */
/* WHAT WE DO */
/* ========================================= */

.what-container{

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

}

.what-text h2{

    font-size: 32px;
    margin-bottom: 25px;
     color: #60A5FA;


}

.what-text p{

    margin-bottom: 20px;

    color: var(--light-gray);

}

.what-image img{

    border-radius: 24px;

}

/* ========================================= */
/* ABOUT */
/* ========================================= */

.about{

    background: var(--dark-secondary);

}

.about-container{

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

}

.about-image img{

    border-radius: 24px;

}

.about-text h2{

    font-size: 32px;

    margin-bottom: 25px;
      color: #60A5FA;

}

.about-text p{

    margin-bottom: 20px;

    color: var(--light-gray);
      

}

/* ========================================= */
/* PROJECTS */
/* ========================================= */

.projects-grid{

    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(280px,1fr));

    gap: 30px;

}

.project-card{

    overflow: hidden;

    border-radius: 24px;

    background: var(--card-bg);

    transition: var(--transition);

    border:
    1px solid var(--border-color);

}

.project-card:hover{

    transform: translateY(-10px);

}

.project-card img{

    width: 100%; /* Esto evita que la imagen se deforme en tablets o móviles */
    height: 260px;
    object-fit: cover;
    object-position: top center; /* 👈 AQUÍ: Centra los lados y prioriza la parte de ARRIBA */
}


.project-info{

    padding: 20px 20px 25px 20px; /* Ajuste pro: 20px arriba, 20px a los lados y 25px abajo */

}

.project-info h3{

    margin-bottom: 10px;

}

.project-info p{

    color: var(--light-gray);
    margin-top: 5px; /* Le da un pequeño respiro de separación con el título h3 */
    line-height: 1.5; /* Hace que el texto sea más fácil de leer si tiene varias líneas */
    padding-left: 3px; /* Empuja el texto un pelín a la derecha para salvar la curva */
    padding-right: 3px;

}

/* ========================================= */
/* CONTACT */
/* ========================================= */

.contact-form-container{

    max-width: 800px;

    margin: auto;

    background:
    rgba(255,255,255,.03);

    padding: 50px;

    border-radius: 30px;

    border:
    1px solid var(--border-color);

    backdrop-filter: blur(10px);

}

.form-group{

    margin-bottom: 25px;

}

.form-group input,
.form-group textarea{

    width: 100%;

    padding: 18px 20px;

    background: rgba(255,255,255,.05);

    border:
    1px solid rgba(255,255,255,.08);

    border-radius: 16px;

    color: var(--white);

    font-size: 16px;

    outline: none;

    transition: var(--transition);

}

.form-group input:focus,
.form-group textarea:focus{

    border-color: var(--primary-color);

    box-shadow:
    0 0 15px rgba(59,130,246,.3);

}

/* ========================================= */
/* BACK TO TOP */
/* ========================================= */

#backToTop{

    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;

    background:
    linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );

    color: var(--white);

    font-size: 18px;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;

    z-index: 999;

    transition: var(--transition);
    transition: .3s ease;

}

#backToTop:hover{

    transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 191, 255, .4);

}

#backToTop.show{

    opacity: 1;

    visibility: visible;

}

/* ========================================= */
/* FOOTER */
/* ========================================= */

.footer{

    background: #050811;

    padding: 40px 5%;

    border-top:
    1px solid var(--border-color);

}

.footer-container{

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    flex-wrap: wrap;

}

.footer-center{

    display: flex;

    gap: 20px;

}

.footer-center a{

    width: 42px;
    height: 42px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background:
    rgba(255,255,255,.06);

    transition: var(--transition);

}

.footer-center a:hover{

    background: var(--primary-color);

    transform: translateY(-5px);

}

.footer-right{

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

}

.footer-right a{

    color: var(--light-gray);

    transition: var(--transition);

}

.footer-right a:hover{

    color: var(--secondary-color);

}


/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

/* PANTALLAS MEDIANAS (Tabletas y Laptops chicas) */
@media screen and (max-width: 992px){

    .hero-content h1{
        font-size: 52px;
    }

    .what-container,
    .about-container{
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .what-image, .about-image {
        order: 2; /* Envía la imagen abajo del texto en móviles si es necesario */
    }

}

/* PANTALLAS MÓVILES (Teléfonos) */
@media screen and (max-width: 768px){

    /* Mostrar botón hamburguesa */
    .menu-toggle{
        display: block;
        z-index: 1001;
        color: var(--white);
    }

    /* Navbar transformada en menú desplegable de pantalla completa o cortina */
    .navbar{
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha por defecto */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-secondary);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        padding: 100px 30px;
        transition: cubic-bezier(0.4, 0, 0.2, 1) .4s;
        display: block; /* Cambiado de none a block para permitir la animación de entrada */
        z-index: 1000;
    }

    /* Cuando el menú esté activo mediante JS */
    .navbar.active{
        right: 0;
    }

    .nav-links{
        flex-direction: column;
        gap: 25px;
        align-items: flex-start; /* Alineado a la izquierda para mejor lectura */
        text-align: left;
    }

    .nav-links a{
        font-size: 18px;
        display: block;
        width: 100%;
    }

    /* Ajuste del Dropdown en Móviles */
    .dropdown-menu{
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        padding: 10px 0 0 15px;
        margin-top: 10px;
        display: none; /* Se mantiene oculto hasta que se configure en JS o lo dejes abierto integrado */
    }
    
    /* Mostrar el submenú de forma natural en móvil si se desea */
    .dropdown:hover .dropdown-menu,
    .dropdown-menu {
        display: block; 
    }

    .dropdown-menu li{
        padding: 8px 0;
    }
    
    /* Ajustes de Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-right {
        justify-content: center;
    }

}

/* PANTALLAS MUY CHICAS */
@media screen and (max-width: 576px){

    .hero-content h1{
        font-size: 38px;
    }
    
    .hero-content p {
        font-size: 16px;
    }

    .btn-primary{
        width: 100%;
        text-align: center;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

}





/* ========================================= */
/* TRAMPA ENVIAR FALSO PARA DESVIAR A LOS ROBOTS */
/* ========================================= */

/* Ocultar el campo trampa del Honeypot */
.hidden-field {
    display: none !important;
    visibility: hidden;
}

/* ========================================= */
/* PAGINAS WEB DEVELOPMENT, GRAPH DESIGN, TESTING, VIDEO EDITING*/
/* ========================================= */
/* Estilos para Páginas Internas de Servicios */
.internal-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0b0f19; /* O el color oscuro de tu fondo actual */
}

.internal-content {
    padding: 80px 0;
    min-height: 70vh; /* Asegura que el footer no se suba si hay poco texto */
}

.service-tag {
    color: #60A5FA; /* Tu color azul/cian de acento */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.service-title {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 15px;
}

.service-subtitle {
    font-size: 18px;
    color: #9CA3AF;
    max-width: 700px;
    line-height: 1.6;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, #60A5FA, transparent);
    margin: 40px 0;
}

.service-details h2, .service-details h3 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-details p, .service-details li {
    color: #D1D5DB;
    line-height: 1.8;
    font-size: 16px;
}

.service-details ul {
    padding-left: 20px;
    margin-top: 15px;
}

.service-details li {
    margin-bottom: 10px;
}