/* Variables de colores */

:root {
    --navy: #0d2438;
    --gold: #ebc762;
    --white: #ffffff;
}


/*  CONFIGURACIÓN GENERAL*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}


/* NAVEGACIÓN*/

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: #142c3e;
    padding: 22px 0;

    transition: transform 0.35s ease;
}

.nav-container {
    width: 100%;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header.oculto {
    transform: translateY(-100%);
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--white);
    text-decoration: none;
}

.logo-img {
    width: 70px;
    height: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.gold {
    color: var(--gold);
}




.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;

    padding: 10px 20px;
    border-radius: 3px;

    background: transparent;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-nav a:hover {
    color: var(--navy);
    background: var(--gold);
}


/*HERO / IMAGEN PRINCIPAL */

.hero {
    min-height: 80vh;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background-image:
        url("../images/hex-pattern.svg"),
        linear-gradient(
            rgba(15, 43, 68, 0.88),
            rgba(13, 36, 56, 0.88) );

    background-repeat: repeat, no-repeat;
}


/*CONTENIDO DEL HERO*/

.hero-content {
    width: min(900px, 90%);
    margin: 0 auto;
}




.hero-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 6vw, 6rem);

    line-height: 0.95;

    font-weight: 700;

    font-family:
        "intel-one",
        "intel-clear",
        Helvetica,
        Arial,
        sans-serif;

    letter-spacing: 0.04em;
}




.hero-description {
    max-width: 680px;

    margin: 28px auto 0;

    color: #ebc762;

    font-size: clamp(1rem, 1.5vw, 1.2rem);

    letter-spacing: 0.04em;

    font-family:
        "intel-one",
        "intel-clear",
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
}


/*SOBRE NOSOTROS*/

.nosotros {
    max-width: 1200px;

    margin: 0 auto;

    padding: 110px 20px;

    display: flex;

    align-items: center;

    gap: 70px;

    overflow: hidden;
}


/*TEXTO */

.nosotros-texto {
    flex: 1;

    opacity: 0;

    transform: translateX(-50px);

    animation:
        nosotrosTexto 0.9s ease forwards;
}


.nosotros-etiqueta {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--gold);

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 0.15em;
}


.sub {
    position: relative;

    margin: 0 0 30px;

    padding-bottom: 15px;

    color: #063258;

    font-size: clamp(2rem, 4vw, 3rem);
}


.sub::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 65px;
    height: 4px;

    background: var(--gold);

    border-radius: 10px;
}


#info {
    max-width: 600px;

    margin: 0;

    color: #3d4a56;

    font-size: 1.1rem;

    line-height: 1.8;
}




/*IMAGEN SOBRE NOSOTROS */

.nosotros-imagen {
    flex: 1;

    opacity: 0;

    transform: translateX(50px);

    animation:
        nosotrosImagen 0.9s ease forwards;

    animation-delay: 0.15s;
}


.imagen-marco {
    position: relative;

    width: 100%;

    max-width: 550px;

    margin-left: auto;
}


.imagen-marco::before {
    content: "";

    position: absolute;

    top: 18px;
    left: 18px;

    width: 100%;
    height: 100%;

    border: 2px solid var(--gold);

    border-radius: 15px;

    z-index: 0;
}


#img {
    position: relative;

    z-index: 1;

    width: 100%;

    height: auto;

    display: block;

    border-radius: 15px;

    box-shadow:
        0 20px 45px rgba(13, 36, 56, 0.20);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


#img:hover {
    transform: translate(-5px, -5px);

    box-shadow:
        0 25px 55px rgba(13, 36, 56, 0.28);
}


/* ANIMACIONES*/

@keyframes nosotrosTexto {

    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes nosotrosImagen {

    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/*SERVICIOS*/

.servicios {
    width: 100%;

    margin: 0;

    padding: 70px 15px;

    background:
        linear-gradient(
            135deg,
            #103250 0%,
            #175f9d 50%,
            #226aa9 100%
        );
}


/* Contenedor interno */

.contenido {
    max-width: 1200px;

    margin: 0 auto;
}


/* Título */

.servicios h2 {
    margin: 0 0 30px;

    text-align: left;

    font-size: 2.5rem;

    color: #e5f3ff;
}


/*TARJETAS DE SERVICIOS */

.infor {
    display: flex;

    gap: 20px;

    justify-content: center;
    flex-wrap: wrap;
}


.recuadro {

    flex: 1 1 250px;

    min-width: 250px;

    display: flex;

    flex-direction: column;

    border-radius: 8px;

    cursor: pointer;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease;


    overflow: hidden;
}


.recuadro:hover {
    transform: translateY(-8px);
}


/* Imagen de la tarjeta */

.recuadro img {
    width: 100%;

    height: 180px;

    object-fit: cover;
}


/* Contenido de la tarjeta */

.contenid {
    padding: 15px;

    background-color: #ffffff;
}


/* Enlace */

.recuadro a {
    display: flex;

    flex-direction: column;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* Título de las tarjetas */

.titulo {
    margin: 0;

    color: #000000;
}
/* acordeones*/
.acordeon-item {
    border-bottom: 1px solid #fcfeff;
    margin-bottom: 10px; 
}

.acordeon-boton {
    width: 100%;
    padding: 22px 20px;
    background-color: #045898; 
    border: none;
    border-radius: 8px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(254, 254, 255);
    text-align: left;
    cursor: pointer;
}


.acordeon-item.abierto .acordeon-boton {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.acordeon-icono {
    font-size: 1.5rem;
    color: #ffffff; 
    transition: transform 0.2s ease;
    padding-right: 10px;
}

.acordeon-item.abierto .acordeon-icono {
    transform: rotate(45deg);
}

.acordeon-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, border 0.3s ease;
    
   
    background-color: #f8fafc;
    border: 1px solid transparent; 
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.acordeon-item.abierto .acordeon-panel {
    max-height: 2000px;
    border-color: #045898;
}


.acordeon-panel p {
    padding: 20px; 
    margin: 0;
    color: #3d4a56;
    line-height: 1.8;
    font-size: 1.09rem;
}

.certificados-galeria {
    display: flex;
    justify-content: center; 
    align-items: center;     
    flex-wrap: wrap;         
    gap: 35px;               
    padding: 0 20px 20px;    
    margin-top: 15px; 
    padding: 0 20px 20px;
}


.certificados-galeria img {
    max-height: 120px;        
    width: auto;
    object-fit: contain;
}
.clientes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.cliente-circulo {
    width: 210px;
    height: 210px;
    border-radius: 50%;

    background: #ffffff;
    border: 1px solid #e2e8ee;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cliente-circulo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;  
}
/*CONTROL DE IMÁGENES EN EL FOOTER*/

/* 1. Logo principal */
.logo-img {
    max-width: 6 80px; 
    height: auto;
    display: block;
}

/* 2. Lista de contacto e alineación con iconos */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    display: flex;
    align-items: center; 
    gap: 12px;           
    margin-bottom: 14px;
}

/* 3. Contenedor de cada icono */
.footer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
}

/* 4. Estilo de las imágenes de los iconos */
.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

/*ESTILOS GENERALES DEL FOOTER  */

.site-footer {
    background-color:  #173348;
    color: #ffffff;
    padding: 40px 20px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-section a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #38bdf8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

/*ADAPTACIÓN A PANTALLAS PEQUEÑAS */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
/* 
   RESPONSIVE
 */

@media (max-width: 768px) {


    /*NAVEGACIÓN*/

    .site-header {
        padding: 15px 0;
    }


    .nav-container {
        flex-direction: column;

        gap: 15px;

        padding: 0 20px;
    }


    .logo-img {
        width: 45px;
    }


    .logo-text {
        font-size: 1.3rem;
    }


    .main-nav {
        width: 100%;

        display: flex;

        justify-content: center;

        flex-wrap: wrap;

        gap: 5px;
    }


    .main-nav a {
        font-size: 0.85rem;

        padding: 8px 10px;
    }


    /*HERO */

    .hero {
        min-height: 70vh;

        padding:
            150px 20px 60px;
    }


    .hero-content {
        width: 100%;
    }


    .hero-title {
        font-size:
            clamp(2.6rem, 12vw, 4rem);

        line-height: 1;
    }


    .hero-description {
        font-size: 1.02rem;

        line-height: 1.5;

        margin-top: 20px;
    }


    /*SOBRE NOSOTROS*/

    .nosotros {
        flex-direction: column;

        padding: 60px 20px;

        gap: 40px;

        text-align: center;
    }


    .nosotros-texto {
        width: 100%;

        transform: translateY(30px);

        animation-name:
            nosotrosTextoMobile;
    }


    .nosotros-etiqueta {
        font-size: 0.75rem;
    }


    .sub {
        text-align: center;

        font-size: 2.2rem;
    }


    .sub::after {
        left: 50%;

        transform: translateX(-50%);
    }


    #info {
        font-size: 1.05rem;

        line-height: 1.7;

        text-align: left;
    }




    .nosotros-imagen {
        width: 100%;

        transform: translateY(30px);

        animation-name:
            nosotrosImagenMobile;

        animation-delay: 0.15s;
    }


    .imagen-marco {
        width: 100%;
    }


    .imagen-marco::before {
        top: 12px;

        left: 12px;
    }


    #img {
        width: 100%;

        max-width: 500px;

        margin: 0 auto;
    }
    


    /*SERVICIOS*/

    .servicios {
        padding:
            60px 20px;
    }


    .servicios h2 {
        text-align: center;

        font-size: 2.5em;
    }


    .infor {
        flex-direction: column;

        gap: 20px;

        width: 100%;
    }


    .recuadro {
        width: 100%; 

        min-width: 0;

        flex: none;
    }


    .recuadro img {
        height: 200px;
    }

}


/*
   ANIMACIONES PARA MÓVIL */

@keyframes nosotrosTextoMobile {

    from {
        opacity: 0;

        transform:
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes nosotrosImagenMobile {

    from {
        opacity: 0;

        transform:
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/*PÁGINA DE SERVICIOS */


/* HERO */




.servicios-hero h1 {

    margin: 0 0 18px;

    font-size: clamp(2.3rem, 5vw, 3.8rem);

    line-height: 1.1;

}


.servicios-hero p {

    margin: 0 auto;

    max-width: 650px;

    color: rgba(255,255,255,0.85);

    font-size: 1.05rem;

    line-height: 1.7;

}



/*LISTA DE SERVICIOS*/

.servicios-lista {

    padding: 35px 20px 85px;

    background: #f1f5f8;

}


.servicios-lista .contenido {

    max-width: 1050px;

    margin: auto;

}


/*ACORDEÓN PRINCIPAL*/

.servicio-principal {

    margin-bottom: 16px;

    background: #ffffff;

    border: 1px solid #dfe5e9;

    border-radius: 9px;

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(13,36,56,0.06);

}


/* BOTÓN */

.servicio-principal-boton {
    width: 100%;
    min-height: 78px;
    padding: 18px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: none;
    background: #ffffff;
    color: var(--navy);

    font-family: inherit;
    cursor: pointer;
    text-align: left;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.servicio-principal-boton:hover {

    background: #f8fafb;

}



.servicio-principal-titulo {

    font-size: 1.2rem;

    font-weight: 650;

}


.servicio-principal-icono {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;
    background: #edf1f4;
    color: var(--navy);

    font-size: 1.25rem;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


/* ESTADO ABIERTO */

.servicio-principal.abierto
.servicio-principal-boton {

    background:  #045898;

    color: #ffffff;

}


.servicio-principal.abierto
.servicio-principal-icono {

    background: white;

    color:#142c3e;

    transform: rotate(45deg);

}


/*PANEL*/

.servicio-principal-panel {

    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.35s ease;

}


.servicio-principal.abierto
.servicio-principal-panel {

    grid-template-rows: 1fr;

}


.servicio-panel-contenido {

    overflow: hidden;
    

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    padding: 0 22px;

}


.servicio-principal.abierto
.servicio-panel-contenido {

    padding:
        22px;

}


/*TARJETAS SIMPLES*/

.tarjeta-servicio-simple {

    padding: 22px;

    background: #f7f9fa;

    border: 1px solid #e1e6ea;

    border-radius: 7px;

}


.tarjeta-servicio-simple h3 {

    margin: 0 0 11px;

    color: var(--navy);

    font-size: 1rem;

    line-height: 1.35;

}


.tarjeta-servicio-simple p {

    margin: 0 0 12px;

    color: #60676c;

    font-size: 0.9rem;

    line-height: 1.65;

}


.tarjeta-servicio-simple ul {

    margin: 0;

    padding-left: 18px;

}


.tarjeta-servicio-simple li {

    margin-bottom: 6px;

    color: #555;

    font-size: 0.88rem;

    line-height: 1.45;

}




/*RESPONSIVE */

@media (max-width: 900px) {

    .servicio-panel-contenido {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 650px) {



    .servicios-lista {

        padding:
            25px
            12px
            60px;

    }


    .servicio-principal {

        border-radius: 8px;

    }


    @media (max-width: 650px) {

    .servicio-principal-boton {
        min-height: 70px;
        padding: 16px;
        gap: 10px;
    }

}



    .servicio-principal-titulo {

        font-size: 0.98rem;

        line-height: 1.35;

    }


    .servicio-principal-icono {

        width: 29px;
        height: 29px;

    }


    .servicio-panel-contenido {

        grid-template-columns: 1fr;

        padding:
            0 15px;

    }


    .servicio-principal.abierto
    .servicio-panel-contenido {

        padding:
            15px;

    }


    .tarjeta-servicio-simple {

        padding: 19px;

    }



} 