  :root {
      --azul: #00aeea;
      --azul-oscuro: #075c8f;
      --gris: #5d6971;
      --gris-claro: #f3f8fb;
      --texto: #1d2b34;
      --blanco: #ffffff;
      --sombra: 0 18px 45px rgba(7, 92, 143, 0.16);
      --radio: 22px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: Arial, Helvetica, sans-serif;
      color: var(--texto);
      background: var(--blanco);
      line-height: 1.65;
      overflow-x: hidden;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    .container { width: min(1180px, 92%); margin: auto; }
    .section { padding: 92px 0; }
    .eyebrow {
      color: var(--azul);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1.8px;
      font-size: 13px;
      margin-bottom: 12px;
    }
    .section-title {
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.12;
      color: var(--azul-oscuro);
      margin-bottom: 16px;
    }
    .section-intro { max-width: 760px; color: var(--gris); font-size: 1.06rem; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 15px 24px;
      border-radius: 999px;
      font-weight: 800;
      cursor: pointer;
      border: 0;
      transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    }
    .btn-primary { background: linear-gradient(135deg, var(--azul), var(--azul-oscuro)); color: var(--blanco); box-shadow: var(--sombra); }
    .btn-secondary { background: var(--blanco); color: var(--azul-oscuro); border: 1px solid rgba(0,174,234,.25); }
    .btn:hover { transform: translateY(-3px); box-shadow: 0 22px 45px rgba(7,92,143,.22); }

    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255,255,255,255);
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 24px rgba(0,0,0,.06);
    }
    .topbar {
      background: var(--azul-oscuro);
      color: var(--blanco);
      font-size: .9rem;
      padding: 7px 0;
    }
    .topbar .container { display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
    .nav {
      min-height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 25px;
    }
    .logo img { width: 210px; height: auto; }
    .menu { display: flex; align-items: center; gap: 28px; list-style: none; font-weight: 800; color: var(--azul-oscuro); }
    .menu a { position: relative; padding: 10px 0; }
    .menu a::after {
      content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 3px;
      background: var(--azul); border-radius: 8px; transition: width .25s ease;
    }
    .menu a:hover::after { width: 100%; }
    .dropdown { position: relative; }
    .submenu {
      position: absolute; top: 100%; left: 0; min-width: 245px; list-style: none;
      background: var(--blanco); border-radius: 16px; padding: 12px;
      box-shadow: var(--sombra); opacity: 0; transform: translateY(12px); pointer-events: none;
      transition: .25s ease;
    }
    .dropdown:hover .submenu { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .submenu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--texto); }
    .submenu a:hover { background: var(--gris-claro); color: var(--azul-oscuro); }
    .hamburger {
      display: none; position: fixed; right: 18px; top: 18px; z-index: 1500;
      width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--azul-oscuro);
      box-shadow: var(--sombra); cursor: pointer;
    }
    .hamburger span { display: block; width: 24px; height: 3px; background: var(--blanco); margin: 5px auto; border-radius: 5px; transition: .25s ease; }

    .hero {
      position: relative;
      min-height: 760px;
      display: flex;
      align-items: center;
      background:
        linear-gradient(10deg, rgba(3,42,67,.88)),
        url('instalacion-camara-merida.webp') center/cover no-repeat;
      color: var(--blanco);
      overflow: hidden;
    }
    .hero::before {
      content: ""; position: absolute; inset: auto -15% -30% auto; width: 520px; height: 520px;
      background: rgba(0,174,234,.22); border-radius: 50%; filter: blur(20px); animation: pulse 5s ease-in-out infinite;
    }
    .hero-content { position: relative; max-width: 1200x; animation: fadeUp .9s ease both; }
    h1 { font-size: clamp(2.45rem, 6vw, 5rem); line-height: 1.03; margin-bottom: 22px; letter-spacing: -1.5px; }
    h1 span { color: #58d9ff; }
    .hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 1200px; margin-bottom: 32px; color: rgba(255,255,255,.9); }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
    .hero-badges {
      margin-top: 38px;
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }

    .badge {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      /*background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.18); */
      padding: 16px 22px;
      border-radius: 18px;
      font-weight: 800;
      color: #fff;
      min-width: 210px;
      /*backdrop-filter: blur(14px); 
      box-shadow: 0 12px 28px rgba(0,0,0,.18);*/
      transition: transform .25s ease, background .25s ease;
    }
/*
    .badge:hover {
      transform: translateY(-4px);
      background: rgba(255,255,255,.16);
    }
*/
    .badge::before {
      content: "✓";
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: linear-gradient(135deg, #58d9ff, var(--azul));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      font-weight: 900;
      flex-shrink: 0;
      box-shadow: 0 8px 18px rgba(0,174,234,.35);
    }

    .welcome-grid, .about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
    .image-card { position: relative; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); min-height: 420px; }
    .image-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
    .floating-card {
      position: absolute; left: 24px; bottom: 24px; background: var(--blanco); color: var(--texto);
      border-radius: 18px; padding: 20px; box-shadow: var(--sombra); max-width: 400px;
    }
    .floating-card strong { display: block; color: var(--azul-oscuro); font-size: 2rem; line-height: 1; }
    .feature-list { margin-top: 22px; display: grid; gap: 13px; }
    .feature { display: flex; gap: 12px; align-items: flex-start; color: var(--gris); }
    .check { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: rgba(0,174,234,.14); color: var(--azul-oscuro); display: grid; place-items: center; font-weight: 900; }

    .services { background: var(--gris-claro); }
    .cards { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
    .card {
      background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,.06);
      transition: transform .28s ease, box-shadow .28s ease;
    }
    .card:hover { transform: translateY(-9px); box-shadow: var(--sombra); }
    .card-img { height: 230px; overflow: hidden; }
    .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
    .card:hover .card-img img { transform: scale(1.08); }
    .card-body { padding: 26px; }
    .card h3 { color: var(--azul-oscuro); font-size: 1.35rem; margin-bottom: 10px; }
    .card p { color: var(--gris); margin-bottom: 20px; }
    .link { color: var(--azul-oscuro); font-weight: 900; }

    .gallery { margin-top: 42px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .gallery-item { position: relative; height: 230px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
    .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
    .gallery-item:hover img { transform: scale(1.12); }
    
    .gallery-item:hover::after { transform: translateY(0); }
    .gallery-item { cursor: pointer; }

    .lightbox {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.92);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3000;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s ease;
      padding: 25px;
    }

    .lightbox.active {
      opacity: 1;
      pointer-events: auto;
    }

    .lightbox img {
      max-width: 92%;
      max-height: 88vh;
      border-radius: 20px;
      box-shadow: 0 25px 60px rgba(0,0,0,.4);
      animation: zoomIn .35s ease;
    }

    .lightbox-close {
      position: absolute;
      top: 22px;
      right: 28px;
      color: #fff;
      font-size: 3rem;
      cursor: pointer;
      font-weight: bold;
      line-height: 1;
    }

    @keyframes zoomIn {
      from {
        transform: scale(.82);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .brands { background: var(--gris-claro); }
    .brand-grid { margin-top: 35px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
    .brand { background: var(--blanco); border-radius: 18px; padding: 26px 18px; text-align: center; color: var(--azul-oscuro); font-weight: 900; box-shadow: 0 10px 26px rgba(0,0,0,.05);   justify-content: center;     /* Centrar horizontalmente */
  align-items: center;   display: flex;       /* Centrar verticalmente */ }

    .map-wrap { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); min-height: 420px; }
    iframe { width: 100%; height: 420px; border: 0; display: block; }
    form { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 30px; display: grid; gap: 16px; }
    input, textarea, select {
      width: 100%; padding: 15px 16px; border: 1px solid #d9e8ef; border-radius: 14px;
      font: inherit; outline: none; transition: border .2s ease, box-shadow .2s ease;
    }
    input:focus, textarea:focus, select:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0,174,234,.12); }
    textarea { min-height: 120px; resize: vertical; }
    .form-message { display: none; padding: 13px 15px; border-radius: 14px; background: rgba(0,174,234,.12); color: var(--azul-oscuro); font-weight: 800; }

    footer { background: #062c45; color: rgba(255,255,255,.82); padding: 60px 0 22px; }
    .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 35px; }
    footer h3, footer h4 { color: var(--blanco); margin-bottom: 14px; }
    footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.82); }
    .copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: .92rem; }

    .reveal { opacity: 0; transform: translateY(35px); transition: .75s ease; }
    .reveal.active { opacity: 1; transform: translateY(0); }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }

    @media (max-width: 900px) {
      .topbar { display: none; }
      .hamburger { display: block; }
      .nav { min-height: 76px; }
      .logo img { width: 178px; }
      .menu {
        position: fixed; inset: 0 0 0 auto; width: min(360px, 86%); height: 100vh;
        background: var(--blanco); flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 95px 30px 30px; transform: translateX(105%); transition: transform .28s ease;
        box-shadow: -15px 0 35px rgba(0,0,0,.12); overflow-y: auto;
      }
      .menu.open { transform: translateX(0); }
      .dropdown { width: 100%; }
      .submenu { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; padding: 4px 0 0 12px; background: transparent; }
      .welcome-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
      .cards { grid-template-columns: 1fr; }
      .gallery { grid-template-columns: 1fr 1fr; }
      .brand-grid { grid-template-columns: 1fr 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .hero { min-height: 720px; padding-top: 60px; }
    }

    @media (max-width: 560px) {
      .section { padding: 70px 0; }
      .hero-actions .btn { width: 100%; }
      .gallery { grid-template-columns: 1fr; }
      .brand-grid { grid-template-columns: 1fr; }
      .image-card { min-height: 340px; }
      form { padding: 22px; }
    }