:root{
  --topbar-h: 72px;
  --txt: #0f172a;
  --muted: rgba(255,255,255,0.78);
  --muted-border: rgba(255,255,255,0.18);
  --shadow: 0 14px 40px rgba(0,0,0,0.25);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--txt);
  background: #ffffff;
}

/* ============================= */
/* BARRA SUPERIOR */
/* ============================= */

.topbar{
  position: relative;
  z-index: 10;
  height: var(--topbar-h);
  background: #ffffff;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.topbar-inner{
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Grupo select + botón */
.topbar-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================= */
/* SELECT */
/* ============================= */

.sel-modulo{
  appearance: none;
  border: 1px solid rgba(15,23,42,0.14);
  background: #ffffff;
  color: var(--txt);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.sel-modulo:hover{
  border-color: rgba(15,23,42,0.25);
}

.sel-modulo:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(15,23,42,0.10);
  border-color: rgba(15,23,42,0.25);
}

/* ============================= */
/* BOTÓN VERDE */
/* ============================= */

.btn-buscar{
  appearance: none;
  border: 3px solid #16a34a;
  background: transparent;
  color: #16a34a;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, color .2s ease;
}

.btn-buscar:hover{
  background: #16a34a;
  color: #ffffff;
}

.btn-buscar:active{
  transform: translateY(1px);
}

.btn-buscar:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero{
  position: relative;
  height: calc(100vh - var(--topbar-h));
  min-height: 420px;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-image: url("../img/rexitmovil-ultrawide.png?v=1.0.1");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 18px;
}

.hero-text{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid var(--muted-border);
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px){

  :root{ --topbar-h: 64px; }

  .brand{
    font-size: 20px;
  }

  .topbar-actions{
    gap: 10px;
  }

  .sel-modulo{
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 13px;
  }

  .btn-buscar{
    padding: 9px 14px;
    border-width: 2px;
    border-radius: 11px;
    font-size: 13px;
  }

  .hero-overlay{
    padding-top: 26px;
  }

  .hero-text{
    font-size: 16px;
    border-radius: 12px;
  }
}

@media (max-width: 420px){

  .topbar-inner{
    padding: 0 12px;
  }

  .brand{
    font-size: 18px;
  }

  .sel-modulo{
    padding: 8px 10px;
    font-size: 12px;
  }

  .btn-buscar{
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-text{
    font-size: 15px;
  }
}