/* Reset y tipografía */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #003366;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: linear-gradient(to right, #ffffff, #3399ff);
  color: #003366;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-navbar img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo-navbar img:hover {
  transform: scale(1.1);
}

.menu-navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu-navbar ul li a {
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu-navbar ul li a:hover,
.menu-navbar ul li a.activo {
  color: #FFD700;
}

.toggle-menu, .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #003366;
  cursor: pointer;
}

/* Banner */
.banner {
  background: url('../img/banner_optimizado-compressed.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.45);
  background-blend-mode: darken;
    background-attachment: fixed;

}

.banner-contenido, .contenido-banner {
  background-color: rgba(0, 51, 102, 0.7);
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  animation: fadeIn 1s ease-in-out;
}

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-banner, .boton-nosotros, .boton-servicio  {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-banner:hover, .boton-nosotros:hover, .boton-servicio:hover {
  background-color: #e0b800;
}

/* Resumen */
.contenedor-resumen {
  background: linear-gradient(135deg, #003366, #3399ff);
  border-radius: 12px;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  color: white;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contenido-resumen h2 {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 1.5rem;
}

.contenido-resumen p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 2rem;
}

/* ====== Servicios mini ====== */
.servicios-mini {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  text-align: center;
}

.servicios-mini__head h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: .5rem;
}

.servicios-mini__head p {
  color: #444;
  margin-bottom: 1.5rem;
}

.servicios-mini__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.svc {
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  border: 1px solid #e4ecf7;
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.svc i {
  font-size: 1.8rem;
  color: #3399ff;
  margin-bottom: .5rem;
}

.svc h3 {
  color: #093a66;
  font-size: 1.1rem;
  margin: .25rem 0 .5rem;
}

.svc p {
  color: #455a64;
  font-size: .95rem;
}

.servicios-mini__cta  {
  display: inline-block;
  background: #ffffff;
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.servicios-mini__cta .btn-servicios:hover {
  filter: brightness(1.05);
}

@media (max-width: 900px){
  .servicios-mini__grid { grid-template-columns: 1fr; }
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  background: linear-gradient(to right, #f0f4ff, #e6ecff);
  padding: 3rem 1rem;
  border-radius: 12px;
  margin: 3rem auto;
  max-width: 1000px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat {
  flex: 1 1 200px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.stat:hover { transform: translateY(-8px); }

.stat h3 {
  font-size: 2.5rem;
  color: #0059b3;
  margin-bottom: 0.5rem;
}

.stat h3 i { margin-right: 0.5rem; color: #FFD700; }

.stat p { font-size: 1.1rem; color: #444; }

/* Tarjetas de Área de Trabajo */
.tarjetas-servicio {
  padding: 4rem 2rem;
  background-color: #f4f7fc;
  text-align: center;
}

.tarjetas-servicio h2 {
  color: #003366;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.tarjetas-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tarjeta {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tarjeta:hover { transform: translateY(-10px); }

.tarjeta img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tarjeta h3 {
  font-size: 1.4rem;
  color: #FFD700;
  margin: 1rem 0;
}

.tarjeta p {
  margin: 0 1rem 1rem;
  color: #444;
}

.boton-servicio, .btn-servicios {
  background-color: #0059b3;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-bottom: 1rem;
  display: inline-block;
}

.boton-servicio:hover { background-color: #003f80; }

/* Proyectos */
.proyectos-demo {
  --slider-h: 380px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.col-text h2 {
  font-size: clamp(1.9rem,3.2vw,2.4rem);
  color: #093a66;
  font-weight: 700;
  margin-bottom: .75rem;
  position: relative;
}

.col-text h2::after {
  content:"";
  display:block;
  width:66px; height:3px; background:#3399ff;
  border-radius:2px; margin-top:.5rem;
}

.col-text p {
  color:#444; line-height:1.6; font-size:1.05rem;
  max-width:42ch; margin:1rem 0 1.5rem;
}

.btn-proyectos {
  display:inline-block;
  background:#3399ff; color:#fff;
  padding:.75rem 1.25rem; border-radius:10px;
  text-decoration:none; font-weight:600; font-size:.95rem;
  transition:filter .2s;
}

.btn-proyectos:hover { filter:brightness(1.05); }

.slider-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  background: #fff;
}

.slider { display:flex; transition: transform .5s ease; }

.slide {
  flex: 0 0 100%;
  display:flex; align-items:center; justify-content:center;
  height: var(--slider-h);
  background:#fff;
}

.slide img {
  max-width:100%; max-height:100%;
  object-fit: contain;
  border-radius:8px;
}

.nav {
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border:0; border-radius:50%;
  background:rgba(255,255,255,.95);
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  cursor:pointer; font-size:20px; line-height:38px;
}
.prev{ left:10px; } .next{ right:10px; }

.nav:focus{ outline:3px solid #3b82f6; outline-offset:2px; }

/* CTA */
.cta-contacto {
  background: linear-gradient(to right, #0059b3, #3399ff);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  margin: 4rem auto 0;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  
}

.contenido-cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.contenido-cta p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Ubicación */
.contacto-ubicacion {
  background: linear-gradient(to right, #f0f4ff, #e6ecff);
  padding: 3rem 1rem;
  border-radius: 12px;
  max-width: 1000px;
  margin: 3rem auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ubicacion-contacto {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
}

.ubicacion-contacto h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #003366;
}

.ubicacion-contacto iframe {
  width: 100%; height: 450px;
  border: 0; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Footer */
.footer {
  background: #003366;
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 0 1rem;
}

.footer-logo img {
  height: 80px;
  border-radius: 10px;
  padding: 4px;
  background-color: transparent;
  border: 2px solid #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(1.05);
}

.footer-logo img:hover { transform: scale(1.05); filter: brightness(1.2); }

.footer-info p { margin: 0; font-weight: 600; }

.footer-info a {
  color: #FFD700; text-decoration: none;
  display: block; margin-top: 0.3rem; font-weight: 500;
}
.footer-info a:hover { color: white; }

.footer-redes { display:flex; gap:0.8rem; }
.footer-redes a {
  color:#FFD700; font-size:1.4rem;
  transition: color .3s ease, transform .3s ease;
}
.footer-redes a:hover { color:#fff; transform:scale(1.2); }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1); background-color: #1ebe5d; }

/* Chat popup */
.chat-popup {
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 260px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  z-index: 1001;
}

.chat-header {
  background-color: #25D366;
  color: white;
  padding: 0.7rem;
  border-radius: 10px 10px 0 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: bold;
}

.chat-header button {
  background:none; border:none; color:white;
  font-size: 1.2rem; cursor:pointer;
}

.chat-body { padding:1rem; color:#333; font-size:0.95rem; }

.chat-btn {
  display:inline-block; background:#25D366;
  color:white; padding:0.5rem 1rem;
  text-decoration:none; border-radius:6px;
  margin-top:0.5rem; font-weight:bold;
}
.chat-btn:hover { background:#1ebe5d; }

/* Animaciones */
@keyframes fadeIn {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}

/* Responsive ajustes */
@media (max-width: 900px) {
  .proyectos-demo { grid-template-columns:1fr; text-align:center; }
  .slider-container { max-width:100%; }
  .stats { flex-direction: column; }
}

/* Por defecto: ocultar hamburguesa en pantallas grandes */
.hamburguesa {
  display: none;
  font-size: 1.8rem;
  color: #003366;
  cursor: pointer;
}

/* Mostrar hamburguesa solo en pantallas pequeñas */
@media (max-width: 768px) {
  .hamburguesa {
    display: block;
  }

  .menu-navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 80px;
    left: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .menu-navbar.menu-abierto {
    display: flex;
  }

  .menu-navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
  }
}
/* ==== Carrusel de Servicios (clases svc2- para aislar estilos) ==== */

/* Contenedor general */
.svc2-wrap{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3.2rem; /* espacio para flechas */
}

/* Título */
.svc2-title{
  color:#003366;
  font-size:2.4rem;
  font-weight:700;
  text-align:center;
  margin-bottom:2rem;
  position:relative;
  text-transform:uppercase;
  letter-spacing:1px;
}
.svc2-title::after{
  content:"";
  display:block;
  width:80px; height:4px;
  background:#FFD700;
  margin:.8rem auto 0;
  border-radius:2px;
}

/* Pista horizontal */
.svc2-track{
  display:flex;
  gap:1.25rem;
  overflow:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  padding:.25rem 0 1rem;
  -webkit-mask-image:linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
  mask-image:linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
}

/* Tarjetas */
.svc2-card{
  flex:0 0 300px;
  scroll-snap-align:start;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
  transition:transform .3s ease, box-shadow .3s ease;
  display:flex; flex-direction:column;
}
.svc2-card:hover{ transform:translateY(-6px); box-shadow:0 8px 20px rgba(0,0,0,.15); }
.svc2-card img{ width:100%; height:180px; object-fit:cover; transition:transform .35s ease; }
.svc2-card:hover img{ transform:scale(1.05); }
.svc2-card h3{ font-size:1.2rem; color:#FFD700; margin:1rem 0 .5rem; text-align:center; }
.svc2-card p{ margin:0 1rem 1.2rem; color:#444; font-size:.95rem; line-height:1.45; text-align:center; }
.svc2-btn{
  background:#0059b3; color:#fff; padding:.6rem 1rem; border-radius:6px;
  text-decoration:none; font-weight:600; margin:0 auto 1rem; display:inline-block;
  transition: background-color .25s ease, transform .25s ease;
}
.svc2-btn:hover{ background:#003f80; transform:translateY(-1px); }

/* Flechas */
.svc2-ctrl{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:0; border-radius:50%;
  background:#ffffff; color:#003366;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
  cursor:pointer; font-size:20px; display:grid; place-items:center;
  transition: transform .2s, filter .2s;
}
.svc2-ctrl:hover{ transform:translateY(-50%) scale(1.05); filter:brightness(1.02); }
.svc2-ctrl:focus{ outline:3px solid #3b82f6; outline-offset:2px; }
.svc2-prev{ left:8px; } .svc2-next{ right:8px; }

/* Puntos */
.svc2-dots{ display:flex; justify-content:center; gap:.5rem; margin-top:1rem; }
.svc2-dots button{
  width:10px; height:10px; border-radius:50%; border:0;
  background:#e4ecf7; cursor:pointer; transition:transform .2s, background .2s;
}
.svc2-dots button:hover{ transform:scale(1.1); }
.svc2-dots button.active{ background:#3399ff; transform:scale(1.15); }
.svc2-dots button:focus{ outline:2px solid #3b82f6; outline-offset:2px; }

/* Barra de progreso */
.svc2-progress{
  position:absolute; left:3.2rem; right:3.2rem; top:-8px; height:3px;
  background:#eaf2ff; border-radius:2px; overflow:hidden;
}
.svc2-progress span{ display:block; height:100%; width:0%; background:#FFD700; transition:width .35s ease; }

/* Scrollbar oculto */
.svc2-track::-webkit-scrollbar{ height:0; width:0; }
.svc2-track{ scrollbar-width:none; }

/* Responsive */
@media (max-width:900px){
  .svc2-wrap{ padding:0 2.2rem; }
  .svc2-card{ flex:0 0 260px; }
}
@media (max-width:560px){
  .svc2-card{ flex:0 0 86vw; }
}

/* Accesibilidad y reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .svc2-track, .svc2-card, .svc2-card img, .svc2-progress span{ transition:none !important; }
}


.svc2-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0059b3;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
  max-width: 220px;
  margin: 1.5rem auto 0; /* auto en los lados centra */
}

.svc2-btn:hover {
  background-color: #003f80;
  transform: translateY(-2px);
}


