/* =========================
   COLORES DE ALTEK
========================= */

:root {
    --azul-oscuro: #07182c;
    --azul: #0066cc;
    --azul-claro: #00a8e8;

    --blanco: #ffffff;

    --gris-claro: #f4f6f8;
    --gris: #6b7280;

    --negro: #111111;
}


/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, sans-serif;

    background-color: var(--blanco);

    color: var(--negro);

    line-height: 1.6;
}


/* =========================
   ENCABEZADO
========================= */

header {
    background-color: var(--azul-oscuro);

    color: var(--blanco);

    padding: 20px 8%;
}


/* =========================
   MENÚ
========================= */

nav {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


nav ul {
    display: flex;

    list-style: none;

    gap: 30px;
}


nav a {
    color: var(--blanco);

    text-decoration: none;

    font-weight: bold;
}


nav a:hover {
    color: var(--azul-claro);
}


/* =========================
   LOGO
========================= */

/* =========================
   LOGO ALTEK
========================= */

.logo {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    width: 190px;

    color: var(--blanco);
    text-decoration: none;

    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-al {
    color: var(--blanco);
}

.logo-tek {
    color: var(--azul-claro);
}

.logo small {
    width: 100%;

    margin-top: 5px;

    color: #94a3b8;

    font-size: 8px;
    font-weight: bold;

    letter-spacing: 1.5px;
}


/* =========================
   BOTONES
========================= */

.boton {
    display: inline-block;

    background-color: var(--azul);

    color: var(--blanco);

    padding: 12px 25px;

    border-radius: 5px;

    text-decoration: none;

    transition: 0.3s;
}


.boton:hover {
    background-color: var(--azul-claro);

    transform: translateY(-2px);
}


/* =========================
   SECCIONES
========================= */

section {
    padding: 80px 8%;
}


h1 {
    font-size: 48px;

    color: var(--azul-oscuro);
}


h2 {
    font-size: 32px;

    margin-bottom: 20px;

    color: var(--azul-oscuro);
}


p {
    margin-bottom: 20px;
}


/* =========================
   PORTADA ALTEK
========================= */

.inicio {
    min-height: 90vh;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 60px;

    background: linear-gradient(
        135deg,
        #07182c 0%,
        #0a2342 60%,
        #0066cc 150%
    );

    overflow: hidden;
}


.inicio-contenido {
    max-width: 700px;
}


.subtitulo {
    color: var(--azul-claro);

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 15px;
}


.inicio h1 {
    color: var(--blanco);

    font-size: 64px;

    line-height: 1.05;

    margin-bottom: 25px;
}


.inicio h1 span {
    color: var(--azul-claro);

    display: block;
}


.descripcion {
    color: #cbd5e1;

    font-size: 19px;

    max-width: 600px;

    margin-bottom: 35px;
}


/* BOTONES PORTADA */

.inicio-botones {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


.boton-secundario {
    display: inline-block;

    padding: 12px 25px;

    border: 1px solid var(--azul-claro);

    color: var(--blanco);

    border-radius: 5px;

    text-decoration: none;

    transition: 0.3s;
}


.boton-secundario:hover {
    background-color: var(--azul-claro);

    color: var(--azul-oscuro);
}


/* VALORES */

.inicio-valores {
    display: flex;

    gap: 30px;

    margin-top: 50px;
}


.inicio-valores span {
    color: #94a3b8;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* IMAGEN PORTADA */

.inicio-imagen {
    position: relative;
}


.inicio-imagen img {
    width: 100%;

    height: auto;

    display: block;

    border-radius: 12px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* =========================
   SERVICIOS
========================= */

.servicios {
    background-color: var(--blanco);
}


.titulo-seccion {
    text-align: center;

    margin-bottom: 50px;
}


.titulo-seccion p {
    color: var(--azul);

    font-weight: bold;

    letter-spacing: 2px;
}


.contenedor-servicios {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =========================
   TARJETAS DE SERVICIOS
========================= */

.tarjeta-servicio {
    position: relative;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f4f7fa
    );

    padding: 40px 35px;

    border-radius: 12px;

    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--azul);

    overflow: hidden;

    transition: 0.35s;
}


.tarjeta-servicio:hover {
    transform: translateY(-10px);

    box-shadow: 0 20px 40px rgba(7, 24, 44, 0.12);

    border-top-color: var(--azul-claro);
}


.numero-servicio {
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 45px;
    font-weight: bold;

    color: rgba(0, 102, 204, 0.08);
}


.icono-servicio {
    width: 55px;
    height: 55px;

    display: flex;

    justify-content: center;
    align-items: center;

    margin-bottom: 25px;

    background-color: var(--azul-oscuro);

    color: var(--azul-claro);

    border-radius: 8px;

    font-size: 28px;
}


.tarjeta-servicio h3 {
    color: var(--azul-oscuro);

    font-size: 22px;

    margin-bottom: 15px;
}


.tarjeta-servicio p {
    color: var(--gris);

    min-height: 100px;
}


.tarjeta-servicio a {
    color: var(--azul);

    font-size: 14px;
    font-weight: bold;

    text-decoration: none;

    transition: 0.3s;
}


.tarjeta-servicio a:hover {
    color: var(--azul-claro);
}


/* =========================
   NOSOTROS
========================= */

.nosotros {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    background-color: var(--gris-claro);
}


.nosotros-imagen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


.etiqueta {
    color: var(--azul);

    font-weight: bold;

    letter-spacing: 2px;
}


.nosotros-contenido h2 {
    font-size: 42px;

    line-height: 1.2;
}


.nosotros-contenido > p {
    color: var(--gris);
}


.valores {
    display: flex;

    gap: 30px;

    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid #d5d5d5;
}


.valores div {
    display: flex;

    flex-direction: column;
}


.valores strong {
    color: var(--azul);

    font-size: 14px;
}


.valores span {
    color: var(--gris);

    font-size: 13px;
}


/* =========================
   PIE DE PÁGINA
========================= */

footer {
    background-color: var(--azul-oscuro);

    color: var(--blanco);

    text-align: center;

    padding: 30px;
}


footer p {
    margin: 0;
}
/* =========================
   PROYECTOS DESTACADOS
========================= */

.proyectos {
    background-color: var(--blanco);
}

.descripcion-seccion {
    color: var(--gris);
    max-width: 600px;
    margin: 0 auto;
}


/* GALERÍA */

.galeria-proyectos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 45px;
}


/* TARJETA */

.proyecto {
    position: relative;

    background-color: var(--azul-oscuro);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(7, 24, 44, 0.12);

    transition: 0.35s;
}

.proyecto:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 45px rgba(7, 24, 44, 0.22);
}


/* IMAGEN */

.proyecto-imagen {
    position: relative;

    height: 350px;

    overflow: hidden;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s;
}

.proyecto:hover .proyecto-imagen img {
    transform: scale(1.08);
}


/* CAPA AZUL SOBRE LA FOTO */

.proyecto-imagen::after {
    content: "VER PROYECTO";

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    background: rgba(0, 102, 204, 0.78);

    color: var(--blanco);

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 2px;

    opacity: 0;

    transition: 0.35s;
}

.proyecto:hover .proyecto-imagen::after {
    opacity: 1;
}


/* INFORMACIÓN */

.proyecto-info {
    padding: 25px;
}

.proyecto-info span {
    color: var(--azul-claro);

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;
}

.proyecto-info h3 {
    color: var(--blanco);

    font-size: 20px;

    margin-top: 8px;
}
/* =========================
   CONTACTO
========================= */

.contacto {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
}

.contacto-contenido {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 70px;
    align-items: center;
}

.contacto .etiqueta {
    color: var(--azul-claro);
}

.contacto h2 {
    color: var(--blanco);
    font-size: 45px;
    line-height: 1.2;
}

.contacto h2 span {
    color: var(--azul-claro);
}

.contacto-texto > p {
    color: #cbd5e1;
    max-width: 650px;
}

.datos-contacto {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.datos-contacto p {
    color: #cbd5e1;
}

.datos-contacto strong {
    color: var(--blanco);
}


/* CAJA DE COTIZACIÓN */

.contacto-caja {
    background-color: var(--blanco);
    color: var(--negro);
    padding: 40px;
    border-radius: 12px;
}

.contacto-caja h3 {
    color: var(--azul-oscuro);
    font-size: 26px;
    margin-bottom: 15px;
}

.contacto-caja p {
    color: var(--gris);
}


/* BOTÓN WHATSAPP */

.boton-whatsapp {
    display: inline-block;
    margin-top: 15px;

    background-color: var(--azul);
    color: var(--blanco);

    padding: 14px 25px;

    border-radius: 6px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.3s;
}

.boton-whatsapp:hover {
    background-color: var(--azul-claro);
    transform: translateY(-3px);
}
/* =========================
   DISEÑO RESPONSIVE
   CELULARES Y TABLETS
========================= */

@media (max-width: 768px) {

    /* MENÚ */

    header {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 20px 8%;

    position: sticky;
    top: 0;
    z-index: 2000;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


    /* SECCIONES */

    section {
        padding: 60px 6%;
    }


    /* INICIO */

.inicio {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 70px;
}

.inicio h1 {
    font-size: 42px;
}

.descripcion {
    font-size: 17px;
}

.inicio-imagen {
    margin-top: 20px;
}

.inicio-valores {
    flex-wrap: wrap;
    gap: 15px;
}


    /* SERVICIOS */

    .contenedor-servicios {
        grid-template-columns: 1fr;
    }


    /* NOSOTROS */

    .nosotros {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .nosotros-imagen img {
        width: 100%;
        height: auto;
    }

    .nosotros-contenido h2 {
        font-size: 34px;
    }

    .valores {
        flex-direction: column;
        gap: 15px;
    }


    /* PROYECTOS */

    .galeria-proyectos {
        grid-template-columns: 1fr;
    }


    /* CONTACTO */

    .contacto-contenido {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto h2 {
        font-size: 36px;
    }

    .datos-contacto {
        flex-direction: column;
        gap: 10px;
    }

    .contacto-caja {
        padding: 30px;
    }

}
/* =========================
   MENÚ MÓVIL
========================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 30px;
    cursor: pointer;
}


@media (max-width: 768px) {

    nav {
        position: relative;
        flex-direction: row;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;

        position: absolute;
        top: 55px;
        left: 0;

        width: 100%;

        flex-direction: column;

        background-color: var(--azul-oscuro);

        padding: 25px;

        border-radius: 8px;

        z-index: 1000;
    }

    nav ul.activo {
        display: flex;
    }

}
/* =========================================
   CARRUSEL AUTOMÁTICO DE PROYECTOS
========================================= */

.carrusel {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: #07182c;
}

.carrusel img {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 0.8s ease;

    transform: none;
}

.carrusel img.activa {
    opacity: 1;
}


/* Indicar que se puede hacer clic */

.proyecto {
    cursor: pointer;
}

.proyecto-info p {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 7px;
    margin-bottom: 0;
}


/* =========================================
   GALERÍA GRANDE
========================================= */

.modal-galeria {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.modal-galeria.abierta {
    display: flex;
}


/* Imagen grande */

.modal-galeria img {
    width: auto;
    height: auto;

    max-width: 85%;
    max-height: 85vh;

    object-fit: contain;

    border-radius: 6px;
}


/* BOTÓN CERRAR */

.cerrar-galeria {
    position: absolute;

    top: 25px;
    right: 35px;

    background: transparent;
    border: none;

    color: white;

    font-size: 45px;

    cursor: pointer;

    z-index: 10001;
}


/* FLECHAS */

.flecha {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.45);

    color: white;

    border: none;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    font-size: 28px;

    cursor: pointer;

    z-index: 10001;

    transition: 0.3s;
}

.flecha:hover {
    background: #0066cc;
}

.anterior {
    left: 30px;
}

.siguiente {
    right: 30px;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 768px) {

    .carrusel {
        height: 240px;
    }

    .modal-galeria img {
        max-width: 92%;
        max-height: 75vh;
    }

    .flecha {
        width: 42px;
        height: 42px;

        font-size: 20px;
    }

    .anterior {
        left: 10px;
    }

    .siguiente {
        right: 10px;
    }

    .cerrar-galeria {
        top: 15px;
        right: 20px;
    }
}
/* =========================================
   AJUSTES FINALES PARA CELULAR - ALTEK
========================================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    /* ENCABEZADO */

    header {
        padding: 15px 5%;
    }

    .logo {
        width: 160px;
        font-size: 26px;
    }

    .logo small {
        font-size: 7px;
    }


    /* PORTADA */

    .inicio {
        gap: 35px;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .inicio h1 {
        font-size: 40px;
    }

    .inicio-imagen img {
        width: 100%;
        border-radius: 8px;
    }

    .inicio-botones {
        width: 100%;
    }


    /* TÍTULOS */

    h2 {
        font-size: 30px;
    }

    .titulo-seccion {
        margin-bottom: 35px;
    }


    /* SERVICIOS */

    .tarjeta-servicio {
        padding: 30px 25px;
    }

    .tarjeta-servicio p {
        min-height: auto;
    }


    /* NOSOTROS */

    .nosotros-contenido h2 {
        font-size: 32px;
    }

    .valores {
        margin-top: 25px;
    }


    /* PROYECTOS */

    .galeria-proyectos {
        gap: 30px;
        margin-top: 30px;
    }

    .carrusel {
        height: 260px;
    }

    .proyecto-info {
        padding: 20px;
    }


    /* CONTACTO */

    .contacto h2 {
        font-size: 34px;
    }

    .contacto-caja {
        padding: 25px;
    }

    .boton-whatsapp {
        width: 100%;
        text-align: center;
    }


    /* GALERÍA AMPLIADA */

    .modal-galeria img {
        max-width: 90%;
        max-height: 75vh;
    }

}


/* TELÉFONOS PEQUEÑOS */

@media (max-width: 480px) {

    section {
        padding: 50px 5%;
    }

    .inicio h1 {
        font-size: 35px;
    }

    .descripcion {
        font-size: 16px;
    }

    .inicio-valores {
        gap: 10px;
    }

    .inicio-valores span {
        font-size: 10px;
    }

    .carrusel {
        height: 230px;
    }

    .contacto h2 {
        font-size: 30px;
    }

}
