
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
    max-width: 100vw;
}
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6f9;
  color: #333;
  overflow-x: hidden;
    max-width: 100vw;
}
.top-bar {
  background: #1e1e2f;
  color: white;
  padding: 0.2rem;
  text-align: center;
  font-size: 1.3rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-info .item {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box; /* ✅ importante */
  position: fixed;
  z-index: 1000;
  width: 100%;
  left: 0; 
  transition: top 0.3s ease;
}

.main-nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
}

.main-nav.below-header {
  position: absolute;
  left: 0;
}

.main-nav .logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #004080;
  
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding-left: 0;
}
.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav ul li a:hover {
  color: #0077cc;
}
.btn-cta {
  background: linear-gradient(135deg, #0077cc, #005fa3);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.7rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #005fa3, #003f80);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.btn-cta.mobile-btn {
  background: linear-gradient(135deg, #0077cc, #005fa3);
  color: white;
  font-weight: bold;
  font-size: 0.7rem;
  border-radius: 10px;
  width: 100%;
  padding: 0.8rem;
  margin-top: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-cta.mobile-btn:hover {
  background: linear-gradient(135deg, #005fa3, #003f80);
  transform: scale(1.03);
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  background: none;
  transition: transform 0.3s ease;
}
.menu-toggle.open i::before {
  content: "\f00d";
}
.hero {
  background: linear-gradient(rgba(228, 227, 227, 0.95), rgba(228, 227, 227, 0.95)), url('img/Fondo_Inicio.webp') no-repeat center center/cover;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgb(38, 123, 192);
  padding: 0 2rem;
}
.hero-overlay h1 {
  font-family: 'Bahnschrift', sans-serif;
  font-weight: bold;
  font-size: 4rem;
  margin-bottom: 0.5rem;
}
.hero-overlay p {
  font-size: 1.45rem;
  opacity: 0.9;
}
.about, .products, .contact {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mision-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.mision-vision div {
  flex: 1 1 45%;
  background: #eef6fc;
  padding: 1.5rem;
  border-radius: 10px;
}

.product-grid.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto;
}

.product-grid.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.product-card {
  background: #003366;
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.product-card img {
  width: 100%;
  height: auto;
  display: block;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
form input, form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
form button {
  background: #0077cc;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
form button:hover {
  background: #005fa3;
}
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}
footer.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #004080;
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  flex-wrap: wrap; /* ✅ Esto evita que se corte el contenido */
  gap: 0.5rem;      /* opcional: separa mejor los elementos */
}

footer.bottom-bar span {
  flex: 1 1 auto;           /* permite que crezcan y se acomoden */
  min-width: 0;             /* evita que fuercen el ancho */
  white-space: nowrap;      /* evita salto de línea */
  overflow: hidden;
  text-overflow: ellipsis;  /* si no cabe, usa "..." */
}

.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 10px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  font-size: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 67px;
  height: 67px;
}
section {
  scroll-margin-top: 90px;
  transition: box-shadow 0.3s ease;
}
section[data-aos] {
  box-shadow: 0 0 0 transparent;
}
section[data-aos].aos-animate {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.scroll-top {
  position: fixed;
  bottom: 125px;
  right: 20px;
  background-color: #0077cc;
  color: white;
  border-radius: 50%;
  padding: 12px;
  font-size: 18px;
  display: none;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.scroll-top:hover {
  background-color: #005fa3;
}


.logo img {
  height: 80px;
  max-width: 320px; /* Opcional si tu logo es muy ancho */
  object-fit: contain;
}
.logo-nosotros img {
  height: 150px;
  max-width: 600px; /* Opcional si tu logo es muy ancho */
  object-fit: contain;
}


.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.specs-table {
  margin: 1rem auto 0;
  font-size: 0.95rem;
  color: #f0f0f0;
  text-align: left;
}

.specs-table td {
  padding: 2px 8px;
}

.specs-table td:first-child {
  font-weight: 600;
  width: 90px;
}

.map-container {
  width: 100%;
  height: 400px; /* altura general para escritorio */
  max-width: 100%;
  overflow: hidden;
}

.map-section {
  padding: 2rem 0;
}


/* SERVICIOS SECCION */

.services {
  padding: 4rem 2rem;
  background-color: #fff;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
  gap: 2rem;
}

.services-text {
  flex: 1 1 600px;
}

.services-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #222;
}

.services-text p {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #333;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.service-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
  color: #222;
}

.service-item p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

.services-image {
  flex: 1 1 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.contact .telem {
  font-size: x-large;
 }


@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    background: white;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
  }
  .main-nav ul.active {
    display: flex;
    opacity: 1;
    max-height: 500px;
  }

  footer.bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-overlay h1 {
    font-family: 'Bahnschrift', sans-serif;
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  .hero-overlay p {
    font-size: 1.15rem;
    opacity: 0.9;
  }

  .map-section {
    padding: 4rem 0;
  }

  .product-grid.two-columns,
  .product-grid.three-columns {
    grid-template-columns: 1fr;
  }
  .contact-info {
    flex-direction: column;
  }

  .contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    flex-wrap: wrap;
  }
  
  .contact-info .item {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .contact .telem {
   font-size: large;
  }
}

/* Pantallas medianas */
@media (max-width: 1024px) {
  .whatsapp-float {
    width: 65px;
    height: 65px;
    font-size: 35px;
  }
}

/* Pantallas pequeñas */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }
    .logo-nosotros img {
    width: 400px;      /* tamaño reducido en móviles */
  }
}

/* Soporte para pantallas muy pequeñas (≤360px) */
@media (max-width: 360px){
  .logo-nosotros img{ width: 340px }
}

/* Soporte para dispositivos “phablet” y tablets en vertical */
@media (min-width: 480px) and (max-width: 820px){
  .logo-nosotros img{ width: 400px }
}

/* Teléfonos muy pequeños */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 29px;
  }
}

/* ====== Layout base (ajusta a tu CSS existente) ====== */
.services-container{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:2rem;
  align-items:start;
}
@media (max-width: 900px){
  .services-container{ grid-template-columns: 1fr; }
}

/* ====== Carrusel ====== */
.services-image { width:100%; }
.carousel{
  position:relative;
  width:100%;
  aspect-ratio: 5/3;            /* Mantiene proporción; cambia a 16/9 si prefieres */
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  background:#f4f4f4;
}
.carousel .slide{
  position:absolute; inset:0;
  opacity:0; transition:opacity .6s ease;
}
.carousel .slide.active{ opacity:1; }
.carousel img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* Flechas */
.carousel .nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.45); color:#fff; border:0;
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:5;
}
.carousel .prev{ left:10px; }
.carousel .next{ right:10px; }
.carousel .nav:hover{ background:rgba(0,0,0,.65); }

/* Dots */
.carousel .dots{
  position:absolute; left:50%; bottom:10px; transform:translateX(-50%);
  display:flex; gap:.5rem; z-index:5;
}
.carousel .dots button{
  width:9px; height:9px; border-radius:50%;
  border:0; background:rgba(255,255,255,.6); cursor:pointer;
}
.carousel .dots button.active{ background:#fff; width:22px; border-radius:999px; }

