:root {
    --azul-fti: #1D415F;       /* Azul del logo */
    --ocre-fti: #39b812;       /* Dorado/Ocre del logo */
    --blanco: #ffffff;
    --gris-fondo: #f9f9f9;
    --naranja-fti:#ff8a3c;
    --texto: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--texto); line-height: 1.6; scroll-behavior: smooth; }
.container { max-width: 1200px; margin: auto; padding: 0 2rem;; }

/* Navbar Responsiva */
.navbar { background: var(--blanco); height: 100px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-img { height: 120px; width: auto; transition: all 0.3s ease; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--azul-fti); margin-left: 1.5rem; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.btn-nav { background: var(--ocre-fti); color: white !important; padding: 0.6rem 1.2rem; border-radius: 5px; }

/* Hero */
.hero { 
    background: linear-gradient(rgba(29, 65, 95, 0.35), rgba(29, 65, 95, 0.35)),url('../img/fondo1.jpg'); 
    
    background-size: cover; background-position: center; height: 80vh; display: flex; align-items: center; text-align: center; color: white; 
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero p { font-size: 1rem; margin-bottom: 2rem; opacity: 0.9; }

/* Botones */
.btn-primary { background: var(--ocre-fti); color: white; padding: 1rem 2.5rem; text-decoration: none; border-radius: 5px; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background: var(--azul-fti); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; padding: 1rem 2rem; text-decoration: none; border: 2px solid white; border-radius: 5px; margin-left: 10px; transition: 0.3s; }
.btn-secondary:hover { background: white; color: var(--azul-fti); }

/* Secciones */
section { padding: 5rem 0; }
h2 { text-align: center; margin-bottom: 3rem; font-size: 2.2rem; color: var(--azul-fti); font-weight: 700; }
.section-desc { text-align: center; max-width: 800px; margin: -2rem auto 3rem; }

/* Cards Nosotros */
.mision-vision { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--gris-fondo); padding: 2.5rem; border-left: 5px solid var(--ocre-fti); border-radius: 5px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }

/* Servicios */
.services { background: var(--azul-fti); color: white; }
.services h2 { color: white; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-item { background: rgba(255,255,255,0.05); padding: 2.5rem; text-align: center; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.service-item h3 { color: var(--naranja-fti); margin-bottom: 1rem; }
.icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }

/* Proyectos (Carrusel) */
.project-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); height: 100%; border-bottom: 5px solid var(--azul-fti); }
.project-img { width: 100%; height: 220px; overflow: hidden; background: #eee; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-content { height:150px;padding: 1.5rem; }
.tag { color: var(--ocre-fti); font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* Clientes */
/*.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 4rem; opacity: 0.7; font-weight: 700; color: var(--azul-fti); text-align: center; font-size: 0.9rem; }
*/
.clientes-subtitle{display:flex;}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsivo */
    gap: 30px;
    align-items: center;
    justify-items: center;
    padding: 20px 0;
}

.client-logo img {
    max-width: 150px; /* Ajusta este valor al tamaño deseado */
    height: auto;
    filter: grayscale(100%); /* Opcional: logos en blanco y negro para elegancia */
    transition: filter 0.3s ease;
    opacity: 0.7;
}

.client-logo img:hover {
    filter: grayscale(0%); /* El logo toma color al pasar el mouse */
    opacity: 1;
}

/* Contacto */
.contact-form { max-width: 600px; margin: auto; display: flex; flex-direction: column; }
.contact-form input, .contact-form textarea { padding: 1.2rem; margin-bottom: 1rem; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 1rem; }
.contact-info { padding:1rem; max-width: 600px; margin: auto; display: flex; flex-direction: column; }
/* Footer */
footer { background: #0a0a0a; color: white; text-align: center; padding: 2.5rem 0; font-size: 0.85rem; }

/* RESPONSIVO MÓVIL */
@media (max-width: 768px) {
    .navbar { height: 80px; }
    .logo-img { height: 65px; }
    .nav-links { display: none; } /* Ocultamos menú texto en móvil para que luzca el logo */
    .hero { height: 70vh; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; padding: 0 10px; }
    .btn-secondary { margin-left: 0; }
    section { padding: 3rem 0; }
}
