@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

:root {
    --night: #141414ff;
    --air-superiority-blue: #7b97afff;
    --white-smoke: #f5f5f5ff;
    --oxford-blue: #0d2a4cff;
    --satin-sheen-gold: #cfa251ff;
    --yinmn-blue: #335779ff;    
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* global */
body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

h1, h2, h3, h4 {
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h2, h3, h4 { font-weight: 700; }

h1 {
    font-size: 3rem;
    font-weight: 800;   
}

h2 {
    font-size: 2rem;
    text-align: left;
}

h3 { font-size: 1.5rem; }

h4 { font-size: 1.25rem; }

.yellow { color: var(--satin-sheen-gold); }
.text-center { text-align: center; }
.bold { font-weight: 600; }

span { font-size: inherit; }
.line-break { font-weight: 700; }

a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    padding-bottom: 0.5rem;
}

ul { padding-left: 1.5rem; }
li { margin-bottom: 1rem; }

.container {
    padding: 2rem 3rem;
    min-width: 100%;
}

.flex-s-b {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.img-fluid-content {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.box { padding: 1rem 0; }

.box-2 {
    background-color: var(--yinmn-blue);  
    border-radius: 1rem;
    padding: 2rem; 
    color: var(--white-smoke);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.box-3 {
    background-color: var(--white-smoke);
    border-radius: 1rem;
    padding: 2rem; 
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.box-3 div {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
    
}

.btn {
    padding: 1rem;
    border-radius: 0.8rem;
    font-weight: 400;
    font-size: 0.95rem;
    overflow: hidden;
    z-index: 1;
    color: var(--white-smoke);
    background-color: var(--satin-sheen-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow);
}
        
.btn:hover {
    transform: translateY(-3px);
    background-color: var(--white-smoke);
    color: var(--satin-sheen-gold);
}

.icono { width: 60px;}

#header { margin-bottom: 1rem; }

/* main header */
.header-menu {
    background-color: var(--yinmn-blue);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;  
    transition: all 0.3s ease-in-out;
}

.header-menu.sticky-active {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
}

.header-placeholder {
    display: none;
    height: 60px;
}

.sticky-active + .header-placeholder {
    display: block;
}

.logo-itec {
    height: 4rem; 
    vertical-align: middle;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-smoke);
    margin: 4px 0;
    transition: transform 0.3s ease;
}

.main-nav {
    display: none; 
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    padding-top: 6rem;
    background-color: var(--yinmn-blue);
    box-shadow: var(--shadow);
    z-index: 15;
    flex-direction: column; 

}
    
.main-nav a {
    color: var(--white-smoke);
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--oxford-blue);
    margin-left: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.main-nav a:hover,
.main-nav a:active { color: var(--satin-sheen-gold); }

.main-nav.active {
       display: flex; 
}

/* INDEX */
/* hero */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero {
    background-color: var(--yinmn-blue);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;  
    flex-direction: column;
    gap: 0.5rem;
    color: var(--white-smoke);
}

.hero-content-left { align-self: start; }

.hero-content-right { flex-direction: column; }

/* intro */
#intro {
    background-color: var(--white-smoke);
    gap: 1rem;
    position: relative;
    z-index: -1;
    flex-direction: column;
}

 /* flotante & imagen decorativa */
 #flotante, #imagen-deco  {
    display: none;
 }

/* clientes */
#clientes, #servicios {
    padding-top: 3rem;
    padding-bottom: 4rem;
}
#clientes {
    background-color: var(--yinmn-blue);
    overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

.logo-empresa {
  height: 100px;      
  width: auto;       
  margin: 0 2rem;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.logo-empresa:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* servicios */
#servicios { background-color: white; }

.servicios-container { 
    text-align: center; 
    flex-direction: column;
}

#servicios .box { 
    background-color: var(--white-smoke);
    border-radius: 0.8rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

#servicios .box a { color: var(--night); }

#servicios a:hover { font-weight: 600; }

/* cta */
#cta {
    background-color: var(--yinmn-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--white-smoke);
}

#cta p { width: 85%; }

/* footer */
footer {
    background-color: var(--yinmn-blue);
    color: var(--white-smoke);
    flex-direction: column;
    align-items: center;
}

/* otras pgs */
/* EMPRESA */
#mision-vision { flex-direction: column; }
#historia { flex-direction: column; }

#historia article img {
    display: none;
    /* colocar las imagenes despues */
}

/* SERVICIOS */
#servicios-pg { flex-direction: column; }
.servcios-detalle { flex-direction: column; }

/* CONTACTO */
.contact-page {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--satin-sheen-gold);
    outline: none;
}

.btn-send {
    font-size: 0.85rem;
    border: none;
}

.linea {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--air-superiority-blue);
    text-align: center;
}

/* pagina success */
.extra-pgs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 100vh;
    background-color: var(--yinmn-blue);
    color: var(--white-smoke);
    z-index: 9;  
}

/* media query */
@media (min-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem;}
    .line-break { display: block; }

    /* menu */
    .menu-toggle {
        display: none; 
    }

    .main-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 1rem;
        max-height: 80px;
        width: 100%;
        box-shadow: none;
    }

    .main-nav a { border-bottom: none; }
      
    /* INDEX */
    /* hero */
    #hero {
        min-height: 50vh;
        flex-direction: column;
    }

    .header-content { align-items: center; }

    .hero-text {
        margin-top: 6rem; 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .hero-content-right { align-items: flex-start; }

    /* intro */
    #intro { 
        min-height: 500px; 
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .box { flex-basis: 30%; }

    /* flotante */
    #flotante {
        z-index: 999;
        background-color: var(--yinmn-blue);
        max-width: 1000px;
        margin: 0 auto;
        margin-top: -5rem;
        margin-bottom: -10rem;
        border-radius: 3rem;
        padding: 2rem;
        align-items: center;
        flex-wrap: wrap; 
        text-align: center;
        box-shadow: var(--shadow);
    }

    #flotante .box span {
        display: block;
        font-size: 3rem;
        font-weight: 800;
        color: var(--satin-sheen-gold);
        line-height: 1.1;
    }

    #flotante .box p {
        color: var(--white-smoke);
        opacity: 0.8;
    }

    /* imagen decorativa */
    #imagen-deco {
        z-index: -1;
        position: relative;
        overflow: hidden;
        height: 30rem;
    }

    /* servicios */
    .servicios-container {
        flex-direction: row;
    }

    /* EMPRESA */
    #mision-vision { flex-direction: row; }

    #historia {
        flex-direction: column;
        gap: 3rem;
        width: 95%;
        margin: 0 auto;
    }
    #historia article img {
        display: inline;
        width: 18.75rem;
        border-radius: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* SERVICIOS */
    .servcios-detalle { flex-direction: row; }
}

