/* ===== ESTILOS GENERALES ===== */
body {
  background-color: #0d1a26;
  margin: 0;
  padding: 0;
}

/* Tipografía general */
h2, h3, h4, h5, label, li {
  font-family: 'Inter', sans-serif;
  color: white;
}

p {
  font-family: 'Inter', sans-serif;
  color: #ccddff;
}

a {
  font-family: 'Inter', sans-serif;
  color: white;
}

section {
  margin-bottom: 80px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
#header {
  background-color: #003cb3;
}

#header-img {
  max-width: 350px;
  height: auto;
}

#nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #003cb3;
}

.nav-link {
  margin-left: 20px;
  text-decoration: none;
}

/* ===== SECCIÓN HERO/BANNER ===== */
.contenedor-foto {
  position: relative;
  width: 100%;
}

.foto-frontis {
  width: 100%;
  height: auto;
  display: block;
}

.texto-fortalezas {
  position: absolute;
  bottom: 13%;
  left: 2%;
  max-width: clamp(240px, 30%, 420px);
  max-height: 88%;
  overflow: auto;
  color: #fff;
  text-align: left;
  background: none;
  padding: 0;
  margin: 0;
}

.texto-fortalezas h2 {
  margin: 0 0 8px 0;
  font-size: clamp(1.2rem, 1.6vw, 2rem);
  line-height: 1.1;
}

.texto-fortalezas ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style-position: inside;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.3;
}

.texto-fortalezas li {
  margin-bottom: 6px;
}

/* ===== SECCIÓN PRODUCTOS ===== */
#productos-section h2 {
  text-align: center;
}

.productos {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.item {
  text-align: center;
  width: 22%;
}

.item img {
  width: 100%;
  height: 210px; /* altura uniforme para todas las imágenes */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  object-fit: cover; /* recorta si es necesario, sin deformar */
}


.image-grid img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  
}



/* Imágenes específicas de productos */
.imgaire, .imgfuel, .imgoil, .imglube {
  max-width: 100%;
  
}

/* ===== SECCIÓN NOSOTROS ===== */
#aboutus {
  text-align: center;
  margin: 0 auto;
}

.elegir h2 {
  justify-content: center;
  text-align: center;
}

.fortalezas {
  padding-left: 20em;
}

.fortalezas p {
  font-size: 16px;
}

/* ===== SLIDER DE LOGOS - CORREGIDO ===== */
#logos {
  background-color: #ccddff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#logos-img {
  max-width: 100%;
}

.logos-slider {
  width: 100%;
  overflow: hidden;
  background-color: #8297c1;
  padding: 20px 0;
  margin: 0; /* Aseguramos que no hay margen */
}

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

.logos-track img {
  height: 100px;
  width: auto;
  margin: 0 20px;
  flex-shrink: 0;
}

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

/* ===== SECCIÓN DE COTIZACIÓN ===== */
/* ===== SECCIÓN DE COTIZACIÓN ===== */
#cotizacion-section {
  background-color: #5e81b5;
  padding: 40px;
  border-radius: 0px;
  margin: 40px 0;
}

#cotizacion-section h2 {
  text-align: center;
}

#cotizacion-form {
  max-width: 50%;
  margin: 0 auto;
}

/* grid en escritorio */
#cotizacion-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0px;
  row-gap: 20px;
}

#cotizacion-form .detalle {
  grid-column: 1 / span 2;
}

/* inputs y textarea */
#cotizacion-form input,
#cotizacion-form textarea {
  width: 98%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0px;
  margin: 0;
  box-sizing: border-box;
}

#cotizacion-form button {
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #003cb3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

#cotizacion-form button:hover {
  background-color: #002080;
}

/* === Responsive: formulario ocupa más espacio en móviles === */
@media (max-width: 768px) {
  #cotizacion-form {
    max-width: 100%;    /* en móvil, usar todo el ancho */
    padding: 0 10px;    /* un poquito de espacio lateral */
  }

  #cotizacion-form .form-grid {
    display: block;     /* stack: cada input en su línea */
  }

  #cotizacion-form textarea {
    min-height: 150px;  /* más alto en móvil */
  }
}


/* ===== SECCIÓN WHATSAPP ===== */
#Whatsapp, #WhatsApp {
  text-align: center;
  margin: 50px 0;
}

.whatsapp-boton {
  width: 400px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.whatsapp-boton:hover {
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
#footer {
  background-color: #0d1a26;
  color: white;
  padding: 10px;
  font-family: 'Inter', sans-serif;
  padding: 24px 20px; /* menos espacio vertical */
}

/* FOOTER: estructura y apariencia */
#footer {
  background-color: #0d1a26;
  color: #ffffff;
  padding: 18px 16px;
  font-family: 'Inter', sans-serif;
}

/* Grid flexible de columnas */
.footer-container {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Cada columna */
.footer-col {
  flex: 1;
  min-width: 160px; /* evita que se achiquen demasiado */
  text-align: left;
}

/* Logo */
.footer-logo-col {
  flex: 0 0 160px; /* columna fija para logo */
  display: flex;
  align-items: flex-start;
}
.footer-logo {
  max-width: 140px;
  height: auto;
  display: block;
}

/* Titulos de columna */
.footer-col h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #eaf2ff;
}

/* Texto y listas */
.footer-location p,
.footer-contact p,
.footer-legal .footer-links li {
  margin: 6px 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

/* Links */
.footer-col a {
  color: #ccddff;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-logo {
  width: 28px;
  height: auto;
  display: inline-block;
  filter: none; /* o usa brightness/invert si tus iconos son oscuros */
}

/* ===== Responsive: centrado en móviles ===== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center; /* centra todo el contenido en móvil */
    gap: 12px;
  }

  .footer-col {
    min-width: 100%;
    padding: 6px 0;
  }

  .footer-logo-col {
    justify-content: center;
  }

  .footer-logo {
    max-width: 120px;
    margin: 0 auto 6px;
  }

  .social-icons { justify-content: center; }

    .footer-col h4 {
    text-align: center;
  }

  
}


/* === MODAL === */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7); /* fondo oscuro */
}

.modal-content {
  background: #fff;
  margin: 3% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto; /* scroll si es muy largo */
  color:#0d1a26
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.modal-content,
.modal-content p,
.modal-content li,
.modal-content a {
    color: #0d1a26; /* o el color que quieras */
}

.footer-container a {
    text-decoration: none; /* quita subrayado */
}

.footer-container a:hover {
    text-decoration: underline; /* opcional: subrayado solo al pasar el mouse */
}


/* ===== ESTILOS ESPECÍFICOS PARA LA RULETA DE LOGOS ===== */
/* Estos estilos aseguran que la ruleta ocupe todo el ancho */
.logos-slider {
  width: 100vw; /* Ocupa todo el ancho de la ventana */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #8297c1;
  padding: 20px 0;
  overflow: hidden;
}

/* Contenedor para centrar el contenido pero mantener el fondo completo */
.full-width-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .item {
    width: 48%;
  }

  
  .texto-fortalezas {
    display: none;
  }

  #aboutus p {
  font-size: 12px;  /* un poco más chico */
  line-height: 1.4;
  }
  
  #aboutus h2 {
  font-size: 18px;  /* un poco más chico */
  line-height: 1.4;
  }

  #aboutus {
    margin-left: 1em;
    margin-right: 1em;
  }

  .footer-logo img {
    max-width: 90px; /* más pequeño en móviles */
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-col {
    margin-bottom: 20px;
  }

  .footer-links a,
  .footer-container p,
  .footer-contact,
  .footer-social {
    font-size: 14px; /* más legible en pantallas pequeñas */
    text-align: center;
  }

    
  
  /* Ajustes para la ruleta en móviles */
  .logos-track img {
    height: 80px;
    margin: 0 15px;
  }
}

@media (max-width: 600px) {
  #nav-bar {
    flex-direction: column;
    align-items: center;
  }
  
  /* Ajustes para la ruleta en móviles pequeños */
  .logos-track img {
    height: 60px;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .item {
    width: 100%;
  }
  
  /* Ajustes para la ruleta en móviles muy pequeños */
  .logos-track img {
    height: 50px;
    margin: 0 8px;
  }
}