/* === CONFIGURACIÓN GENERAL === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* === HEADER === */
.header {
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #e6e6e6;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center; 
  gap: 0.5rem; 
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
  max-width: 80px;
  height: auto;
  border-radius: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.nav a.btn {
    color: #ffffff !important;
}

.header-item {
  position: relative;
  cursor: pointer;
  color: #454545;
  font-weight: 500;
  transition: color 0.3s;
}

.header-item::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #003865;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-item:hover {
  color: #7042BF;
}

.header-item:hover::after {
  width: 100%;
}

.btn {
  background: black;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #7042bf;
}

/* === DROPDOWN === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === HAMBURGUESA === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO === */
.hero img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin-top: 8%;
}

/* === SECCIONES === */
section {
  margin: 4rem 0;
}

/* === ACERCA DE / OBJETIVOS === */
.about,
.objectives {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-text, 
.objectives-text h3{
  text-align: justify;
}

.objectives-text h2{
  text-align: center;
}

.about img,
.objectives img {
  width: 45%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 8px;
}

.about-text,
.objectives-text {
  flex: 1;
}

/* === TÍTULOS === */
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #828282;
  margin-bottom: 1rem;
}

/* === CATEGORÍAS === */
.categories-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  text-align: justify;
  align-items: stretch; /* iguala la altura de las tarjetas */
}

.category {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1; /* ambas columnas ocupan el mismo espacio */
  background: #fff; 
  border-radius: 8px;
}

.category img {
  width: 100%;
  aspect-ratio: 1.83 / 1; /* mantiene el mismo formato para ambas */
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.category h3 {
  text-align: center;
  margin-top: 1rem;
}

.category p {
  margin-top: 0.5rem;
  text-align: justify;
}

/* Este bloque mantiene el texto inferior parejo aunque haya distinta cantidad de texto */
.category p:last-child {
  margin-bottom: auto;
}

/* === CARRUSEL DE SERVICIOS === */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.services-carousel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.services-row {
  overflow: hidden;
  width: 100%;
}

.services-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content; 
  gap: 1.5rem;
}

.services-track img {
  width: 400px;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  background: #f7f7f7;
  flex-shrink: 0;
}

/* Animaciones infinitas */
.scroll-right .services-track {
  animation: scroll-right 60s linear infinite;
}

.scroll-left .services-track {
  animation: scroll-left 60s linear infinite;
}

@keyframes scroll-right {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-left {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}


/* === CTA === */
.cta {
  background: #28566e;
  color: white;
  padding: 1rem 0;
  text-align: center;
  margin-top: 1px;
}

.cta-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta .btn {
  padding: 1rem 2.5rem;       
  font-size: 1.1rem;          
  font-weight: 600;            
  border-radius: 12px;       
  text-decoration: none; 
  background: #000000;       
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.cta .btn:hover {
  background: #5cc4e4;         /* Color más intenso al pasar el mouse */
  transform: translateY(-2px); /* Pequeño efecto de "levantar" */
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* === PLANES CTA === */
.plans-cta {
    background: #f4f4f4; /* fondo distinto al CTA principal para diferenciar */
    color: #000;
    padding: 2.5rem 0;
    text-align: center;
    border-radius: 8px;
    margin: 4rem 0;
}

.plans-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.plans-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: #4d55c4;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.plans-cta .btn:hover {
    background: #379ac7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ===================================== DESARRLLO WEB ==================================*/
.brands-carousel {
  overflow: hidden;
  padding: 2rem 0;
  background: #f9f9f9;
  text-align: center;
}

.brands-carousel h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.brands-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-brands 25s linear infinite;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.brand-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.brand-item span {
  font-size: 0.9rem;
  color: #333;
  text-align: center;
}

/* Animación infinita */
@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .brands-track {
    gap: 1rem;
  }

  .brand-item img {
    width: 60px;
    height: 60px;
  }

  .brand-item span {
    font-size: 0.8rem;
  }
}

/* ======================================================================================*/

/* --- footer.css --- */

.footer {
    background-color: #222; /* Fondo oscuro sólido */
    color: #f4f4f4;
    padding-top: 50px;
    font-size: 15px;
    border-top: 4px solid #0056b3; /* Línea decorativa superior (azul corporativo) */
}

/* Layout del contenido principal */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px; /* Evita que se aplasten en móviles */
}


/* Columna 1: Logo */
.footer-logo {
    max-width: 120px; /* Tu modificación */
    vertical-align: middle;
    margin-right: 10px;
    display: block; /* Asegura que el logo tenga su propio espacio */
    margin-bottom: 10px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    vertical-align: middle;
}

.footer-logo-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-desc {
    color: #ccc;
    line-height: 1.6;
}

/* Encabezados de columnas */
.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #0056b3; /* Mismo azul que el borde superior */
}

/* Enlaces y Listas */

.footer-links, .contact-list {
    list-style: none; /* Quita los puntos de la lista */
    padding: 0;
    margin: 0;
    
    /* Esto es lo que los ordena verticalmente: */
    display: flex; 
    flex-direction: column; 
    gap: 12px; /* Espacio exacto entre cada línea (servicios, nosotros, etc.) */
}

.footer-links li, .contact-list li {
    margin: 0; /* Reseteamos margen para usar el gap de arriba que es más preciso */
    width: 100%; /* Asegura que ocupe el ancho disponible */
}

/* Estilos de los enlaces */
.footer-links a, .contact-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block; /* Ayuda a que la animación funcione mejor */
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px; /* Pequeña animación al pasar el mouse */
}

.contact-list li {
    color: #ccc;
}

.contact-list strong {
    color: #fff;
    margin-right: 5px;
}

/* Barra inferior (Copyright) */
.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

/* --- RESPONSIVE / ADAPTABILIDAD --- */

/* Para Tablets (pantallas medianas, aprox entre 600px y 900px) */
@media (max-width: 900px) {
    .footer-content {
        justify-content: center; /* Centra las columnas si sobran espacios */
        gap: 30px; /* Reduce un poco el espacio */
    }

    .footer-col {
        /* Esto obliga a que haya 2 columnas por fila */
        flex: 1 1 40%; 
        min-width: 250px; 
        text-align: left; /* Mantiene alineación izquierda en tablets */
    }
}

/* Para Celulares (pantallas pequeñas, menos de 600px) */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column; /* Apila todo verticalmente */
        align-items: center;    /* Centra los bloques */
        gap: 40px;
        padding-bottom: 20px;
    }

    .footer-col {
        width: 100%;       /* Que ocupe todo el ancho */
        text-align: center; /* Texto centrado para móvil (se ve mejor) */
        padding: 0 10px;    /* Un poco de aire a los lados */
    }

    /* --- EN TU ARCHIVO css/footer.css --- */

/* Busca esta parte y déjala así: */
.footer-links, .contact-list {
    list-style: none; /* Quita los puntos de la lista */
    padding: 0;
    margin: 0;
    
    /* ESTO ES LA MAGIA PARA ORDENARLOS VERTICALMENTE */
    display: flex; 
    flex-direction: column; 
    gap: 12px; /* Espacio entre cada línea */
}

/* Asegura que los enlaces ocupen el ancho y no se pongan de lado */
.footer-links li, .contact-list li {
    width: 100%;
}

.footer-links a, .contact-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block; /* Importante para que el clic funcione en toda la línea */
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

    /* Ajuste especial para el logo en móvil */
    .footer-logo {
        margin: 0 auto 15px auto; /* Centra la imagen del logo */
    }
    
    /* Línea decorativa del título centrada */
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%); /* Mueve la línea al centro exacto */
    }
}

