
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}

/* ENCABEZADO PRINCIPAL */
.encabezado {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #172554;
    color: white;
    padding: 16px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* LOGO Y NOMBRE */

.marca {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    background-color: #f59e0b;
    color: #172554;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.nombre-empresa {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nombre-empresa strong {
    font-size: 21px;
    text-transform: uppercase;
}

.nombre-empresa small {
    font-size: 12px;
    color: #cbd5e1;
}

/* NAVEGACIÓN */

.navegacion {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.navegacion a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.navegacion a:hover,
.navegacion a.activo {
    color: #f59e0b;
}

.navegacion .enlace-contacto {
    background-color: #f59e0b;
    color: #172554;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: bold;
}

.navegacion .enlace-contacto:hover {
    background-color: #d97706;
}


/* BOTÓN DEL MENÚ MÓVIL */

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 9px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: white;
}

/* ADAPTACIÓN A CELULARES Y TABLETAS */

@media (max-width: 768px) {
    .encabezado {
        flex-wrap: wrap;
        padding: 12px 5%;
        gap: 12px;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .nombre-empresa strong {
        font-size: 18px;
    }

    .nombre-empresa small {
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
    }

    .navegacion {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navegacion.abierto {
        display: flex;
    }

    .navegacion a {
        padding: 14px 8px;
        border-top: 1px solid #334155;
    }

    .navegacion .enlace-contacto {
        margin-top: 8px;
        text-align: center;
    }
}




.presentacion {
    min-height: 430px;
    padding: 70px 8%;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.96),
            rgba(23, 37, 84, 0.78)
        ),
        url("imagenes/inicio.jpg") center/cover no-repeat;
    color: white;
}

.contenido-presentacion {
    max-width: 750px;
}

.etiqueta {
    display: inline-block;
    color: #f59e0b;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.presentacion h1 {
    max-width: 700px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    margin: 0 0 22px;
}

.presentacion p {
    max-width: 580px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 30px;
}

.acciones-presentacion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.boton-secundario {
    display: inline-block;
    padding: 14px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.boton-secundario:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
    .presentacion {
        min-height: 380px;
        padding: 50px 6%;
    }

    .presentacion p {
        font-size: 16px;
    }

    .acciones-presentacion {
        align-items: stretch;
        flex-direction: column;
    }

    .acciones-presentacion .boton,
    .boton-secundario {
        text-align: center;
    }
}


.boton {
    display: inline-block;
    background-color: #f59e0b;
    color: #172554;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.boton:hover {
    background-color: #d97706;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 28px;
    }

    .presentacion {
        margin: 20px auto;
        padding: 30px 20px;
    }

    .presentacion h2 {
        font-size: 30px;
    }

    .presentacion p {
        font-size: 17px;
    }
}


.servicios {
    background-color: #ffffff;
    padding: 40px 25px;
    text-align: center;
}

.servicios h2 {
    color: #172554;
    font-size: 32px;
}

.introduccion {
    color: #475569;
    font-size: 18px;
    margin-bottom: 30px;
}

/* SERVICIOS: TARJETAS INTERACTIVAS */

.lista-servicios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1150px;
    margin: 35px auto 0;
}

.tarjeta-servicio {
    position: relative;
    min-height: 320px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background-color: #172554;
    text-align: left;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
}

.tarjeta-servicio::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(23, 37, 84, 0.1) 0%,
        rgba(23, 37, 84, 0.55) 45%,
        rgba(15, 23, 42, 0.98) 100%
    );
}

.contenido-tarjeta {
    min-height: 320px;
    box-sizing: border-box;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.numero-servicio {
    color: #f59e0b;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tarjeta-servicio h3 {
    color: white;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.tarjeta-servicio p {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.tarjeta-servicio a {
    color: #f59e0b;
    font-weight: bold;
    text-decoration: none;
}

.tarjeta-servicio a:hover {
    color: white;
}

/* EFECTO AL PASAR EL CURSOR */

@media (hover: hover) and (pointer: fine) {
    .tarjeta-servicio {
        min-height: 300px;
    }

    .contenido-tarjeta {
        min-height: 300px;
    }

    .tarjeta-servicio p,
    .tarjeta-servicio .contenido-tarjeta > a {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: translateY(12px);
        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            max-height 0.3s ease;
    }

    .tarjeta-servicio:hover,
    .tarjeta-servicio:focus-within {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
    }

    .tarjeta-servicio:hover > img,
    .tarjeta-servicio:focus-within > img {
        transform: scale(1.08);
    }

    .tarjeta-servicio:hover p,
    .tarjeta-servicio:focus-within p,
    .tarjeta-servicio:hover .contenido-tarjeta > a,
    .tarjeta-servicio:focus-within .contenido-tarjeta > a {
        opacity: 1;
        max-height: 150px;
        transform: translateY(0);
    }
}

/* Centrar las dos últimas tarjetas en computador */
@media (min-width: 901px) {
    .lista-servicios {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .tarjeta-servicio {
        grid-column: span 2;
    }

    .tarjeta-servicio:nth-child(7) {
        grid-column: 2 / span 2;
    }

    .tarjeta-servicio:nth-child(8) {
        grid-column: 4 / span 2;
    }
}

/* Distribución en tabletas */
@media (min-width: 601px) and (max-width: 900px) {
    .lista-servicios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tarjeta-servicio {
        grid-column: auto;
    }
}

/* Distribución en celulares */
@media (max-width: 600px) {
    .lista-servicios {
        grid-template-columns: 1fr;
    }

    .tarjeta-servicio {
        grid-column: auto;
    }
}



.galeria {
    padding: 50px 25px;
    text-align: center;
}

.galeria h2 {
    color: #172554;
    font-size: 32px;
}

.lista-trabajos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto 0;
}

.trabajo {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.trabajo img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.trabajo h3 {
    color: #172554;
    padding: 0 15px;
}

@media (max-width: 600px) {
    .lista-trabajos {
        grid-template-columns: 1fr;
    }
}


.contacto {
    background-color: #172554;
    color: white;
    padding: 50px 25px;
    text-align: center;
}

.contacto h2 {
    font-size: 32px;
}

.contacto p {
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 25px;
}



/* =================================
   SECCIÓN EXPERIENCIA
================================= */

.experiencia {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 50px;

    width: 100%;
    box-sizing: border-box;
    padding: 80px 8%;

    background-color: #f8fafc;
    color: #172554;
}

/* CONTENIDO DE TEXTO */

.contenido-experiencia {
    width: 100%;
    max-width: 600px;
}

.experiencia .etiqueta {
    display: inline-block;
    color: #d97706;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.contenido-experiencia h2 {
    color: #172554;
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 22px;
}

.contenido-experiencia p {
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* BOTÓN */

.experiencia .boton {
    display: inline-block;
    background-color: #172554;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease,
                transform 0.3s ease;
}

.experiencia .boton:hover {
    background-color: #f59e0b;
    color: #172554;
    transform: translateY(-3px);
}

/* VIDEO */

.video-experiencia {
    width: 100%;
    max-width: 380px;
    justify-self: center;
}

.video-experiencia h3 {
    color: #172554;
    font-size: 23px;
    line-height: 1.3;
    margin: 12px 0 18px;
}

.video-experiencia video {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background-color: #0f172a;
    border: 3px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(23, 37, 84, 0.15);
}

.video-experiencia p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
}

/* TABLETAS Y CELULARES */

@media (max-width: 800px) {
    .experiencia {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 60px 6%;
    }

    .contenido-experiencia {
        max-width: 100%;
    }

    .contenido-experiencia h2 {
        font-size: 30px;
    }

    .video-experiencia {
        max-width: 340px;
        width: 100%;
    }
}

/* CELULARES PEQUEÑOS */

@media (max-width: 480px) {
    .experiencia {
        padding: 45px 20px;
    }

    .contenido-experiencia h2 {
        font-size: 27px;
    }

    .contenido-experiencia p {
        font-size: 15px;
    }

    .video-experiencia h3 {
        font-size: 21px;
    }
}



/* SECCIÓN DE TESTIMONIOS */

.testimonios {
    background-color: #f1f5f9;
    padding: 60px 25px;
    text-align: center;
}

.contenido-testimonios {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonios h2 {
    color: #172554;
    font-size: 32px;
    margin: 0 0 20px;
}

.testimonios .introduccion {
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.lista-testimonios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .lista-testimonios {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}



.tarjeta-testimonio {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icono-testimonio {
    display: block;
    color: #f59e0b;
    font-size: 54px;
    font-weight: bold;
    line-height: 1;
}

.tarjeta-testimonio h3 {
    color: #172554;
}

.tarjeta-testimonio p {
    color: #475569;
    line-height: 1.7;
}


.pie-pagina {
    background-color: #0f172a;
    color: white;
    padding: 35px 20px;
    text-align: center;
}

.pie-pagina h2 {
    font-size: 24px;
}

.pie-pagina nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.pie-pagina nav a {
    color: #cbd5e1;
    text-decoration: none;
}

.pie-pagina nav a:hover {
    color: #f59e0b;
}

.derechos {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 30px;
}


