:root{
    
  --orange:#FF6600;
  --blue:#0A2342;
  --yellow:#FFCC00;
  --text:#111827;
  --muted:#6b7280;
  --soft:#f6f7fb;
  --shadow: 0 14px 40px rgba(0,0,0,.12);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.08);
  --radius: 14px;
  --overlayA: rgba(10,35,66,.40);
  --overlayB: rgba(10,35,66,.46);
}

*{ margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI', system-ui, -apple-system, sans-serif; }
html, body {
    overflow-x: hidden !important; /* OBLIGATORIO: Corta lo que sobresale */
    max-width: 100vw !important;   /* OBLIGATORIO: Ancho máximo igual a la pantalla */
    width: 100%;
    margin: 0; 
    padding: 0;
    position: relative;
}
a{ text-decoration:none; color:inherit; transition:.25s ease; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
.container{ max-width:1200px; margin:0 auto; padding:0 20px; }

/* Micro Animations */
.hover-lift{ transition: transform .22s ease, box-shadow .22s ease; }
.hover-lift:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.hover-zoom img{ transition: transform .45s ease; }
.hover-zoom:hover img{ transform: scale(1.04); }
.floaty{ animation: floaty 3.2s ease-in-out infinite; }
@keyframes floaty{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} }
.shine{ position:relative; overflow:hidden; }
.shine::after{
  content:""; position:absolute; top:-50%; left:-40%; width:60%; height:200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: rotate(18deg); animation: shine 3.6s infinite;
}
@keyframes shine{ 0%{ left:-60%; } 55%{ left:120%; } 100%{ left:120%; } }

/* Preloader */
.preloader-overlay{
  position:fixed; inset:0; z-index:99999;
  background: #f4f4f4; display:flex; justify-content:center; align-items:center; padding:20px;
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader-hidden{ opacity:0; visibility:hidden; }
.loader-card{
  width:min(560px, 95vw); background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.06); border-radius: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); padding: 28px 22px; text-align:center;
}
.logo-loader{ width:120px; margin:0 auto 12px; }
.loading-title{ font-weight:900; letter-spacing:.6px; font-size:1.1rem; text-transform:uppercase; }
.loading-sub{ margin-top:6px; color:#374151; font-weight:700; font-size:.95rem; }
.progress-wrap{ margin-top:18px; }
.progress-bar{ height:10px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.progress-fill{ height:100%; width:0%; background: linear-gradient(90deg, var(--blue), var(--orange), var(--yellow)); border-radius:999px; transition: width .18s linear; }
.progress-meta{ display:flex; justify-content:space-between; margin-top:10px; font-weight:800; font-size:.95rem; }
.loader-badges{ margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.loader-badges span{ display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; background: rgba(255,255,255,.95); border: 1px solid rgba(0,0,0,.06); font-weight:800; font-size:.92rem; }
.loader-badges i{ color:var(--orange); }

/* Top Bar */
.top-bar{ background:#05152a; color:#fff; padding:8px 0; font-size:.92rem; border-bottom:1px solid rgba(255,255,255,.08); }
.top-bar-content{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.tb-left i, .tb-right i{ color:var(--orange); margin-right:6px; }
.tb-right a{ margin-left:15px; font-weight:800; opacity:.95; }

/* Navbar */
.navbar { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-soft); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 50px; width: auto; }
.brand-info { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.4rem; font-weight: 900; color: var(--blue); text-transform: uppercase; }
.brand-sub { font-size: 0.75rem; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.text-orange { color: var(--orange); }

.nav-links{ display:flex; align-items:center; gap:22px; }
.nav-links a{ font-weight:800; font-size:1.02rem; opacity:.92; }
.nav-links a:hover{ color:var(--orange); opacity:1; }
.nav-links .active{ color:var(--orange); opacity:1; }
.btn-nav{ background: var(--orange); padding: 10px 16px; border-radius: 10px; color: #fff !important; font-weight:900 !important; }
.btn-nav:hover{ background: var(--blue); }

.burger{ display:none; background:transparent; border:none; cursor:pointer; width:44px; height:38px; position:relative; z-index: 2001; }
.burger span{ position:absolute; left:10px; right:10px; height:3px; background:var(--blue); border-radius:99px; transition:.25s ease; }
.burger span:nth-child(1){ top:10px; }
.burger span:nth-child(2){ top:18px; }
.burger span:nth-child(3){ top:26px; }
.burger.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); background: #fff; }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); background: #fff; }

/* Backdrop para el menú móvil */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1100;
  opacity: 0; visibility: hidden; transition: 0.3s ease; backdrop-filter: blur(4px);
}
.nav-backdrop.active { opacity: 1; visibility: visible; }
.mobile-close-btn { display: none; } /* Solo se ve en móvil */

/* FAB (Floating Button) */
.fab{ position:fixed; right:20px; bottom:30px; z-index:1500; }
.fab-main{
  display:flex; align-items:center; gap:10px; padding: 12px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20); background: var(--blue); color:#fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.22); cursor:pointer;
}
.fab-main i{ color: var(--yellow); font-size: 1.2rem; }
.fab-label{ font-weight:900; letter-spacing:.3px; }
/* Acciones desplegables hacia arriba */
.fab-actions{
  display:flex; flex-direction: column-reverse; gap:12px; align-items: center;
  position: absolute; bottom: 70px; right: 0; width: 100%;
  opacity:0; transform: translateY(20px); pointer-events:none; transition: .25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fab.open .fab-actions{ opacity:1; transform: translateY(0); pointer-events:auto; }
.fab-btn{
  width:50px; height:50px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  color:#fff; box-shadow: 0 6px 16px rgba(0,0,0,.30); font-size: 1.5rem; transition: transform 0.2s;
}
.fab-btn:hover { transform: scale(1.1); }
.fab-btn.whatsapp{ background:#25D366; }
.fab-btn.phone{ background: var(--orange); }
.fab-btn.mail{ background:#333; }

/* Hero */
.hero{ position:relative; overflow:hidden; }
.slider{ position:relative; height: 85vh; min-height: 520px; }
.slide{ position:absolute; inset:0; opacity:0; background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; transition: opacity 1s ease; }
.slide.current{ opacity:1; animation: zoomEffect 18s linear infinite; }
@keyframes zoomEffect{ 0%{ transform: scale(1);} 100%{ transform: scale(1.06);} }
.slide-content{ position:relative; z-index:2; color:#fff; padding: 70px 0 130px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-badges{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.badge{ display:inline-flex; align-items:center; gap:8px; padding: 8px 12px; border-radius:999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); font-weight:900; }
.slide-content h1{ font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; text-transform: uppercase; margin-bottom: 15px; max-width: 900px; }
.slide-content p{ font-size: clamp(1rem, 1.5vw, 1.3rem); margin-bottom: 25px; max-width: 800px; line-height: 1.6; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.btn-main{ display:inline-flex; align-items:center; gap:10px; background: var(--orange); color:#fff; padding: 14px 24px; font-weight: 900; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.btn-ghost{ display:inline-flex; align-items:center; gap:10px; padding: 14px 24px; border-radius: 12px; border: 2px solid #fff; color:#fff; font-weight: 900; background: rgba(0,0,0,.2); }
.hero-micro{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 30px; }
.micro-item{ padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,.15); font-weight: 700; display:flex; align-items: center; gap: 8px; }
.micro-item i { color: var(--yellow); }

.slider-controls{ position:absolute; bottom: 30px; left:0; right:0; display:flex; justify-content:space-between; z-index: 6; pointer-events:none; }
.slider-controls button, .slider-dots { pointer-events: auto; }
.slider-btn{ width:48px; height:48px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; display:flex; justify-content:center; align-items:center; font-size: 1.2rem; }
.slider-dots{ display:flex; gap:10px; align-items:center; }
.dot{ width:12px; height:12px; border-radius:50%; background: rgba(255,255,255,0.4); border:none; cursor: pointer; transition: 0.3s; }
.dot.active{ width:14px; height:14px; background: var(--orange); transform: scale(1.2); }

/* Hero Bottom Cards */
.hero-bottom{ background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9)); padding: 20px 0 50px; position:relative; margin-top: -80px; z-index: 10; }
.hero-bottom-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hb-card{ background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-soft); display:flex; gap: 15px; align-items: flex-start; }
.hb-card i { font-size: 2rem; color: var(--orange); }
.hb-card h4 { font-weight: 800; font-size: 1.1rem; margin-bottom: 5px; }
.hb-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* Sections General */
.section-padding{ padding: 80px 0; }
.section-header{ text-align:center; margin-bottom: 40px; }
.section-header h2{ font-size: 2.2rem; color: var(--blue); text-transform: uppercase; font-weight: 900; }
.line{ width:80px; height:5px; background: var(--orange); margin: 15px auto; border-radius: 10px; }
.section-sub{ color: var(--muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.bg-soft{ background: var(--soft); }

/* About */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h3 { font-size: 1.8rem; color: var(--blue); margin-bottom: 20px; font-weight: 800; }
.about-text p { margin-bottom: 15px; line-height: 1.7; color: #4b5563; }
.about-highlights { display:grid; gap: 15px; margin-top: 20px; }
.highlight { display:flex; gap: 15px; padding: 15px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-soft); align-items: center; }
.highlight i { font-size: 1.5rem; color: var(--blue); background: #e0e7ff; padding: 10px; border-radius: 10px; width: 50px; height: 50px; display:flex; justify-content:center; align-items:center; }
.about-photo img { border-radius: 16px; box-shadow: var(--shadow); }
.about-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.stat { text-align: center; background: #fff; padding: 15px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.stat-num { display:block; font-size: 1.8rem; font-weight: 900; color: var(--orange); }
.stat-label { font-size: 0.8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; }

/* Parallax */
.parallax-section{ background-attachment: fixed; background-size: cover; background-position: center; position:relative; padding: 100px 0; color:#fff; }
.overlay-layer{ background: rgba(10,35,66,.85); padding: 60px 0; height: 100%; width: 100%; position: absolute; top:0; left:0; display:flex; align-items:center; }
.overlay-layer .container { position: relative; z-index: 2; width: 100%; }
.features-row { display:flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.feature-item { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); padding: 30px; border-radius: 16px; text-align:center; width: 300px; border: 1px solid rgba(255,255,255,0.2); }
.feature-item i { font-size: 2.5rem; color: var(--yellow); margin-bottom: 15px; }
.feature-item h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.parallax-cta { margin-top: 40px; }

/* Services */
.primary-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.primary-card{ background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); padding: 20px; transition: 0.3s; }
.p-card-img { height: 200px; border-radius: 12px; overflow: hidden; margin-bottom: 15px; }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.primary-icon { background: #eff6ff; color: var(--blue); width: 45px; height: 45px; display:flex; justify-content:center; align-items:center; border-radius: 10px; font-size: 1.2rem; }
.primary-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.primary-card p { color: #6b7280; line-height: 1.5; margin-bottom: 15px; }
.btn-service { display:block; width: 100%; padding: 12px; text-align:center; background: #f3f4f6; color: var(--blue); font-weight: 700; border-radius: 8px; transition: 0.2s; }
.btn-service:hover { background: var(--blue); color: #fff; }

/* Video Wide */
.video-wide { background-size: cover; background-position: center; min-height: 500px; display:flex; align-items: center; justify-content:center; position: relative; }
.video-wide-overlay { background: rgba(10,35,66,0.7); width: 100%; height: 100%; position: absolute; display:flex; align-items:center; justify-content:center; }
.video-wide-content { text-align: center; color: #fff; z-index: 2; padding: 20px; }

/* Gallery */
.gallery-filters { display:flex; justify-content:center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 30px; border: 1px solid #ccc; background: #fff; font-weight: 700; cursor: pointer; }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.gallery-masonry { columns: 3; column-gap: 20px; }
.gallery-tile { width: 100%; margin-bottom: 20px; break-inside: avoid; border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; display: block; padding: 0; border: none; }
.gallery-tile img { width: 100%; display: block; transition: 0.3s; }
.gallery-tile:hover img { transform: scale(1.05); }
.tile-cap { position: absolute; bottom: 15px; left: 15px; background: rgba(0,0,0,0.7); color: #fff; padding: 5px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display:none; justify-content:center; align-items:center; }
.modal.show { display:flex; }
.modal-backdrop { position:absolute; inset:0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.modal-card { position: relative; background: #fff; width: 90%; max-width: 900px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 2001; }
.modal-close { position: absolute; top: 15px; right: 15px; background: #fff; border:none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 2002; display:flex; justify-content:center; align-items:center; font-size: 1.2rem; }
.video-frame-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.video-frame-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Contact Form */
.contact-section-bg { background: var(--blue); padding: 80px 0; }
.contact-card-wrapper { display:flex; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.contact-info-side { flex: 1; background: #0f2b4d; color: #fff; padding: 40px; }
.contact-info-side h3 { color: var(--yellow); font-size: 2rem; margin-bottom: 15px; }
.info-row { margin-top: 20px; display:flex; gap: 10px; align-items: center; font-size: 1.1rem; }
.contact-form-side { flex: 1.5; padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display:block; font-weight: 700; margin-bottom: 8px; color: var(--blue); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; }
.submit-btn { width: 100%; padding: 15px; background: var(--orange); color: #fff; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: var(--blue); }

/* Coverage */
.coverage-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.city-badges span { display:inline-block; margin: 3px; padding: 5px 12px; background: #e0f2fe; color: var(--blue); border-radius: 15px; font-size: 0.9rem; font-weight: 600; }
.map-container iframe { border-radius: 16px; }

/* Footer */
footer { background: #020617; color: #94a3b8; padding-top: 60px; }
.footer-content { display:flex; justify-content: space-between; padding-bottom: 40px; flex-wrap: wrap; gap: 30px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; }
.footer-contact a { display:block; margin-bottom: 10px; color: #cbd5e1; }
.copyright { border-top: 1px solid #1e293b; text-align: center; padding: 20px; }

/* =========================================
   MEDIA QUERIES (ADAPTACIÓN MÓVIL Y TABLET)
   ========================================= */
@media (max-width: 768px) {
  
  /* Botón hamburguesa visible */
  .burger { 
      display: block; 
      z-index: 2001; 
  }
  
  /* EL MENÚ LATERAL (DRAWER) */
  .nav-links {
    position: fixed; 
    top: 0; 
    
    /* CAMBIO CLAVE: En lugar de transform, lo mandamos lejos con right */
    right: -100%; 
    
    width: 280px; 
    height: 100vh; 
    background: #0f172a; 
    
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    padding: 80px 20px 20px 20px; 
    
    /* ESTADO CERRADO: */
    opacity: 0;                  
    visibility: hidden;          /* Invisible para el navegador */
    
    /* Transición suave */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease,
                visibility 0.4s; 
    
    z-index: 1200;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  
  /* ESTADO ABIERTO */
  .nav-links.open { 
    right: 0;                /* Se pega a la derecha */
    opacity: 1;              /* Se hace visible */
    visibility: visible;     /* El navegador lo reconoce */
    box-shadow: -10px 0 30px rgba(0,0,0,0.7); /* Sombra fuerte para separar */
  }

  /* ESTILOS INTERNOS DEL MENÚ */
  .nav-links li { 
      width: 100%; 
      border-bottom: 1px solid rgba(255,255,255,0.05); 
  }
  .nav-links a {
    display: block; 
    padding: 15px 0; 
    color: #fff; 
    font-size: 1.1rem;
    text-align: left;
  }
  /* Botón Get Quote en el menú */
  .nav-links .btn-nav {
    margin-top: 20px; 
    text-align: center; 
    background: var(--orange); 
    color: #fff !important;
    border: none;
    width: 100%;
    display: block;
  }

  /* Botón cerrar "Close Menu" dentro del drawer */
  .mobile-close-btn { 
      display: block; 
      margin-bottom: 20px;
      border: none !important;
  }
  #closeMenuBtn {
    background: transparent; 
    border: none; 
    color: #94a3b8; 
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px; 
    cursor: pointer;
    padding: 0;
  }

  /* AJUSTES BOTÓN FLOTANTE (FAB) */
  .fab {
    bottom: 20px; 
    right: 15px;
  }
  .fab-main {
    width: 55px; height: 55px; 
    padding: 0; 
    justify-content: center;
    border-radius: 50%;
  }
  .fab-label { display: none; } 
  .fab-main i { font-size: 1.4rem; }
  
  .fab-actions {
      bottom: 65px; 
      right: 2px;
  }

  /* OCULTAR ELEMENTOS PESADOS EN MÓVIL */
  .badge-hide-mobile,
  .micro-hide-mobile,
  .hero-bottom-hide-mobile,
  .highlight-hide-mobile,
  .stats-hide-mobile,
  .feature-hide-mobile,
  .process-hide-mobile,
  .city-hide-mobile,
  .top-bar { 
    display: none !important; 
  }
  
  /* Ajustes generales de layout móvil */
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-main, .btn-ghost { width: 100%; justify-content: center; }
  .about-grid, .coverage-grid { grid-template-columns: 1fr; }
  .contact-card-wrapper { flex-direction: column; }
  .hero-bottom-grid { grid-template-columns: 1fr; }
  .section-padding { padding: 50px 0; }
  .slide-content h1 { font-size: 1.8rem; }
  .gallery-masonry { columns: 1; }
}