/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* ================= HEADER ================= */
.header {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    position: relative;
    z-index: 1000;
}

.logo img {
    /*height: 50px;*/
    width: 140px;
}

.header ul {
    list-style: none;
    /*display: flex;*/
    gap: 25px;
}

.header a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.header a:hover {
    color: #0072ff;
}

/* ================= HERO ================= */
.hero {

    position: relative;

    background: 
        linear-gradient(rgba(15, 32, 39, 0.7), rgba(32, 58, 67, 0.9)),
        url('../img/Colaboracion_en_oficina_tecnologica.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 100vh;

    color: white;
    text-align: center;
    padding: 250px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-nosotros {
    position: relative;

    background: 
        linear-gradient(rgba(15, 32, 39, 0.7), rgba(32, 58, 67, 0.9)),
        url('../img/Reunion_de_equipo.png');

    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;

    height: 80vh;

    color: white;
    text-align: center;
    padding: 250px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-servicios {
    position: relative;

    background: 
        linear-gradient(rgba(15, 32, 39, 0.7), rgba(32, 58, 67, 0.9)),
        url('../img/Oficina_moderna.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 80vh;

    color: white;
    text-align: center;
    padding: 250px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-contacto {
    position: relative;

    background: 
        linear-gradient(rgba(15, 32, 39, 0.7), rgba(32, 58, 67, 0.9)),
        url('../img/Representante_de_servicio_al_cliente.png');

    background-size: cover;
    background-position: center 10%;
    background-repeat: no-repeat;

    height: 60vh;

    color: white;
    text-align: center;
    padding: 150px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenido */
.hero-content {
    max-width: 900px;
    animation: fadeUp 1.2s ease;
}

.hero h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Subtexto */
.hero-sub {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-sub2 {
    font-size: 1.1em;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Botones */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Botón principal */
.btn-primary {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 114, 255, 0.4);
}

/* Botón secundario */
.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #0f2027;
}

/* Animación */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* ================= BOTONES ================= */
.btn {
    margin-top: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
}

/* ================= SECCIONES ================= */
.section {
    padding: 40px 20px;
    text-align: center;
}

/* Sección clara */
.section-light {
    background: #f5f7fa;
    color: #333;
}

/* Sección oscura elegante */
.section-dark {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
}

/* Sección con imagen */
.section-bg {
    position: relative;
    background: 
        linear-gradient(rgba(15,32,39,0.85), rgba(15,32,39,0.9)),
        url('../img/bg-tech.jpg');

    background-size: cover;
    background-position: center;
    color: white;
}

.section-dark .proyecto {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    color: white;
    transition: all 0.3s ease;
}

.section-dark .proyecto:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.section-bg .card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: white;
}

/* ================= CARDS ================= */
.cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 50px 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.service {
    border-top: 5px solid #00c6ff;
}

/* ================= CONTACTO ================= */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FORMULARIO */
.formulario {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formulario h2 {
    color: white;
    text-align: center;
}

.formulario input,
.formulario textarea {
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    color: white;
}

.formulario textarea {
    height: 120px;
}

.formulario input::placeholder,
.formulario textarea::placeholder {
    color: #ccc;
}

/* ================= FOOTER PRO ================= */
.footer {
    background: #0f2027;
    color: white;
    padding: 50px 20px;
}

/* 🔥 AQUÍ ESTÁ LA CORRECCIÓN */
.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: auto;
    gap: 40px;
    text-align: left;
}

.footer h3,
.footer h4 {
    margin-bottom: 10px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #00c6ff;
}

.copy {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #aaa;
}

/* ================= ANIMACIONES ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= WHATSAPP FLOAT ================= */
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    font-size: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: 0.3s;
}

.whatsapp:hover {
    transform: scale(1.1);
}


.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.grid-proyectos {
   /* display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: auto;*/
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.proyecto {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    color: white;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

.soluciones {
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #0ea5e9);
    color: white;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

.proyecto.grande {
    grid-row: span 2;
}

.proyecto.grande img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.proyecto:hover {
    transform: scale(1.05);
}

.soluciones.grande {
    grid-row: span 2;
}

.soluciones.grande img {
  width: 100%;
  height: auto;
  /*object-fit: cover;*/
  display: block;
}

.soluciones:hover {
    transform: scale(1.05);
}

.testimonios {
    background: #ffffff;
}

.testimonios-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonio {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 15px;
    max-width: 300px;
    font-style: italic;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.testimonio span {
    color: gold;
    display: block;
    margin: 10px 0;
}

.diferencial {
    background: linear-gradient(135deg, #0f2027, #203a43);
    color: white;
}

.diferencial-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.diferencial-item {
    max-width: 250px;
}

.icono {
    font-size: 40px;
    margin-bottom: 10px;
}

.section h2 {
    margin-bottom: 40px;
    font-size: 2em;
    position: relative;
}

.section h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #00c6ff;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* BOTÓN HAMBURGUESA (oculto en desktop) */
/*.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}*/

/* ================= MENU HAMBURGUESA PRO ================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 3000;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #00c6ff;
    border-radius: 3px;
    transition: 0.3s;
}

/* 🔥 ANIMACIÓN A "X" */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



/* ================= MENU MOBILE ================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;

        background: rgba(15, 32, 39, 0.95);
        backdrop-filter: blur(12px);

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;

        display: flex;
        opacity: 0;
        visibility: hidden;

        transition: all 0.4s ease;

        transform: translateY(-30px);

        z-index: 2000;
    }

    nav ul.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav ul li {
    opacity: 0;
    transform: translateY(20px);
}

/* Cuando el menú está activo */
nav ul.active li {
    opacity: 1;
    transform: translateY(0);
}

/* Delay escalonado */
nav ul.active li:nth-child(1) { transition: 0.3s 0.1s; }
nav ul.active li:nth-child(2) { transition: 0.3s 0.2s; }
nav ul.active li:nth-child(3) { transition: 0.3s 0.3s; }
nav ul.active li:nth-child(4) { transition: 0.3s 0.4s; }

    nav ul li a {
        position: relative;
        color: white !important; /*Sobrescribe .header a{color: #333};*/
        font-size: 22px;
        font-weight: 600;
        letter-spacing: 1px;
        transition: 0.3s;
    }

    nav ul li a:hover {
        color: #00c6ff;
        /*transform: scale(1.1);*/
        text-shadow: 0 0 10px rgba(0,198,255,0.8),
                 0 0 20px rgba(0,198,255,0.6);
    }

    nav ul::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: -1;
}

nav ul li a:active {
    transform: scale(0.95);
} 

}

.no-scroll {
    overflow: hidden;
}


