/* ===================== BASE Y FUENTE ===================== */
body {
    color: #fff;
    background: #181818;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===================== NAVBAR ===================== */
header {
    background: #181818;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 2rem;
    min-height: 80px;
    position: relative;
    gap: 2rem;
}
.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.logo img,
.logo-esquina {
    width: 180px;
    height: auto;
    display: block;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}
.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 8px 12px;
    border-radius: 4px;
}
.nav-links li a:hover,
.nav-links li a:focus {
    color: #00ffff;
    background: #232323;
}

/* ===================== BANNER ===================== */
.banner {
    position: relative;
    width: 100%;
    height: 60vh; /* Ajusta la altura según prefieras */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #232323; /* fallback */
}

.banner-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#banner {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===================== SECCIONES PRINCIPALES ===================== */

/* ===================== LISTAS DE SERVICIOS Y PRODUCTOS ===================== */
.services-list, .products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.service, .product {
    background: #232323;
    padding: 1rem;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    color: #fff;
}
.service img, .product img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* ===================== BOTONES ===================== */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #00ffff;
    color: #181818;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: bold;
}
.btn:hover, .btn:focus {
    background: #00bfbf;
    color: #fff;
}

/* ===================== FORMULARIO DE CONTACTO ===================== */
/* Formulario de contacto moderno */
.contact form {
  background: #14212b; /* Fondo oscuro */
  padding: 1rem;
  border-radius: 10px;
  max-width: 450px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.contact form label {
  color: #fff;
  font-weight: bold;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.1rem;
  margin-top: 0.3rem;
  background: #fff;
  color: #181818;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s;
}

.contact form input:focus,
.contact form textarea:focus {
  box-shadow: 0 0 0 2px #00bfbf;
}

.contact form textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 2rem;
}

.contact form button,
.contact form .btn {
  background: #19a7ce; /* Celeste del botón */
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
  width: 100%;
}

.contact form button:hover,
.contact form .btn:hover {
  background: #168bb7;
}

.contact form select {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.1rem;
  margin-top: 0.3rem;
  background: #fff;
  color: #181818;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s;
}
.contact form select:focus {
  box-shadow: 0 0 0 2px #00bfbf;
}

.contact-info, .social-links {
    margin-top: 2rem;
    text-align: center;
}
.social-links a img {
    width: 48px;
    height: 48px;
    margin: 0 0.5rem;
}

/* ===================== FOOTER ===================== */
footer {
    background: #232323;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* ===================== QUIÉNES SOMOS (ABOUT) ===================== */
.about-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-img {
  flex: 3 1 0%;      /* 3 de 5 partes para la imagen */
  min-width: 0;
  text-align: center;
}

.about-img img {
  max-width: 600px;   /* Más ancha */
  width: 100%;
  height: auto;
  max-height: 300px;  /* Limita la altura máxima */
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.about-content {
  flex: 2 1 0%;      /* 2 de 5 partes para el mensaje */
  min-width: 0;
  color: #fff;
}

/* Centra los títulos de las secciones tipo about */
.about-content h2 {
  text-align: center;
  width: 100%;
}

/* ===================== NUEVO ESTILO PARA TÍTULOS DE SECCIÓN ===================== */
.about > h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* ===================== NUEVO ESTILO IMAGEN A FULL ===================== */
/* Imágenes de ancho completo y altura controlada */
.about-img-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-full img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}
.about-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%; /* 2/5 partes */
  height: 100%;
  background: rgba(24, 24, 24, 0.85); /* color navbar con opacidad */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}
.about-img-overlay h3,
.about-img-overlay p {
  margin: 0.5rem 0;
  text-align: center;
}
.about-img-full .about-img-overlay[style*="left:0"] {
  left: 0;
  right: auto;
}

/* ===================== NUEVO ESTILO PARA LAS BARRAS DE TÍTULO DE SECCIÓN ===================== */
.section-title-bar {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #00bfbf; /* Celeste igual que los botones */
  padding: 0.1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;      /* Elimina el espacio arriba */
  margin-bottom: 0;   /* Ya lo tienes en 0, perfecto */
  z-index: 1;
  scroll-margin-top: 90px; /* Ajusta 90px a la altura real de tu navbar */
}

.section-title-bar h2 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-align: center;
}

/* ===================== MENÚ LATERAL DE PRODUCTOS ===================== */
.productos-menu {
  background: rgba(0, 36, 54, 0.85);
  padding: 2rem 0.5rem;
  min-width: 220px;
  max-width: 260px;
  color: #fff;
  font-size: 1.1rem;
  border-radius: 0 12px 12px 0;
  margin-right: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.productos-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.productos-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.7rem 1rem;
}

.productos-menu li:last-child {
  border-bottom: none;
}

.productos-menu li.activo > a,
.productos-menu li > a:hover {
  color: #19a7ce;
  font-weight: bold;
  text-decoration: none;
}

.productos-menu li > a {
  color: #fff;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.productos-menu span {
  font-size: 1.2em;
}

/* Menú lateral de productos con submenú */
.productos-menu ul ul.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: rgba(0, 36, 54, 0.95);
  min-width: 180px;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.15);
  z-index: 10;
  padding: 0;
}

.productos-menu li.has-submenu {
  position: relative;
}

.productos-menu li.has-submenu:hover > ul.submenu {
  display: block;
}

.productos-menu ul.submenu li {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.7rem 1rem;
}

.productos-menu ul.submenu li:last-child {
  border-bottom: none;
}

.productos-menu ul.submenu a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  display: block;
}

.productos-menu ul.submenu a:hover {
  color: #19a7ce;
}

/* ===================== SERVICIOS HERO ===================== */
.servicio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: linear-gradient(120deg, #14212b 80%, #19a7ce 100%);
  color: #fff;
  padding: 4rem 1rem 2rem 1rem;
  text-align: center;
}
.servicio-hero h1 {
  color: #19a7ce;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}
.servicio-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== SERVICIOS FILA ===================== */
.servicio-fila {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.servicio-fila img {
  width: 500px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  background: #fff;
  height: auto;
}
.servicio-texto, .servicio-lista {
  flex: 1 1 320px;
  text-align: left;
  max-width: 500px;
}
.servicio-lista ul {
  margin: 0 0 1.5rem 0;
  padding-left: 1.2rem;
  font-size: 1.1rem;
}
.servicio-lista .btn {
  background: #19a7ce;
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.servicio-lista .btn:hover {
  background: #168bb7;
}
@media (max-width: 900px) {
  .servicio-fila {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .servicio-texto, .servicio-lista {
    text-align: center;
    max-width: 98vw;
  }
  .servicio-fila img {
    width: 90vw;
    max-width: 340px;
    height: auto;
  }
}
@media (max-width: 700px) {
  .servicio-lista { padding: 1.2rem 0.7rem; }
}

@media (max-width: 900px) {
    .services-list, .products-list { flex-direction: column; align-items: center; }
    .service, .product { width: 90%; }
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
    .logo img { width: 140px; }
    .nav-links { gap: 1rem; }
    .contact form { padding: 1rem; }
}

@media (max-width: 600px) {
  .contact form {
    padding: 1rem;
    max-width: 98vw;
  }
}

/* Usa el color de las barras celestes para los datos de contacto */
.contact-highlight {
  color: #00bfbf; /* O el color exacto de tus barras */
  font-weight: bold;
}

/* ===================== OVERLAY DE MANTENIMIENTO ===================== */
#overlay-mantenimiento {
  position: fixed;
  z-index: 99999;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.97); /* Negro opaco */
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-contenido {
  text-align: center;
  color: #fff;
  background: rgba(20,33,43,0.98);
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}