:root {
  --primary: #0b2f4f;
  --secondary: #f2b632;
  --dark: #10202f;
  --light: #f5f8fb;
  --text: #243444;
  --white: #ffffff;
  --muted: #687787;
  --success: #15803d;
  --danger: #b91c1c;
  --border: #dce4eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* =========================
   ENCABEZADO
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(16, 32, 47, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-size: 14px;
  font-weight: 700;
}

.nav-login {
  padding: 9px 13px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 9px;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  background: linear-gradient(
    135deg,
    #0b2f4f 0%,
    #124a70 65%,
    #1c6a8d 100%
  );
  color: var(--white);
  padding: 86px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #f2b632;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 10px 0 18px;
}

.hero p {
  font-size: 18px;
  color: #e8f1f6;
  max-width: 680px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 26px;
  border-radius: 20px;
}

.hero-card h3 {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* =========================
   BOTONES
========================= */

.btn {
  display: inline-block;
  padding: 12px 17px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: #16283a;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-outline {
  border-color: var(--primary);
  background: var(--white);
  color: var(--primary);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* =========================
   SECCIONES
========================= */

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--light);
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: 32px;
  margin: 0 0 7px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* =========================
   TARJETAS
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 25px rgba(16, 32, 47, 0.05);
}

.card h3 {
  margin-top: 0;
}

.icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

/* =========================
   GRID DE DOS COLUMNAS
========================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* =========================
   FORMULARIOS
========================= */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd6df;
  border-radius: 9px;
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =========================
   AVISOS
========================= */

.notice {
  padding: 14px;
  border-radius: 10px;
  margin: 16px 0;
}

.notice.success {
  background: #ecfdf3;
  color: #166534;
}

.notice.error {
  background: #fef2f2;
  color: #991b1b;
}

.notice.info {
  background: #eff6ff;
  color: #1e40af;
}

/* =========================
   BUSCADOR
========================= */

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
}

.result {
  margin-top: 20px;
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.status.ok {
  background: #dcfce7;
  color: #166534;
}

.status.off {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================
   PARADEROS
========================= */

.paraderos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.paradero {
  padding: 22px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}

.paradero strong {
  display: block;
  font-size: 18px;
  color: var(--primary);
}

/* =========================
   TABLAS
========================= */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table th {
  background: var(--light);
}

/* =========================
   DASHBOARD
========================= */

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.kpi b {
  font-size: 30px;
  display: block;
  color: var(--primary);
}

/* =========================
   WHATSAPP
========================= */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 900;
}

/* =========================
   PIE DE PÁGINA
========================= */

.footer {
  background: var(--dark);
  color: #dbe5ec;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer a {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 35px;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: #aebdca;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--white);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(16, 32, 47, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cards,
  .paraderos,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row,
  .kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 68px;
  }

  .hero {
    padding: 58px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .cards,
  .paraderos,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  .search-box {
    flex-direction: column;
  }
}
.brand-logo {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
/* =========================================
   CORRECCIÓN RESPONSIVE FINAL ETNUGEB S.A.
   ========================================= */

@media screen and (max-width: 850px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .site-header {
        width: 100% !important;
        max-width: 100% !important;
    }

    .nav-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 68px !important;
        padding: 10px 16px !important;
    }

    .brand {
        max-width: calc(100% - 55px) !important;
    }

    .brand-logo,
    img.brand-logo {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        object-fit: contain !important;
    }

    .menu-btn {
        display: block !important;
        width: 42px !important;
        height: 42px !important;
        flex-shrink: 0 !important;
    }

    main,
    .etn-home,
    .etn-section,
    .etn-wrap,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .etn-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* HERO */

    .hero-grid,
    .grid-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 24px !important;
    }

    .hero {
        width: 100% !important;
        max-width: 100% !important;
        padding: 55px 0 !important;
    }

    /* IMAGEN PRINCIPAL */

    .etn-hero-photo {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .etn-hero-photo .hero-main-image {
    display: block !important;
    width: 320px !important;
    max-width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

    /* TARJETAS */

    .cards,
    .paraderos {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .card,
    .paradero {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* FORMULARIOS */

    .form-row,
    .kpis {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* BOTONES */

    .actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .actions .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* TABLAS */

    .table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    /* FOOTER */

    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* =========================================
   CORRECCIÓN FINAL MÓVIL ETNUGEB
   ========================================= */

@media screen and (max-width: 850px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .site-header,
    .nav-wrap,
    main,
    .etn-home,
    .etn-section,
    .etn-wrap,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .container,
    .etn-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* HERO */
    .hero,
    .hero-grid,
    .grid-2 {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .hero {
        padding: 45px 0 !important;
    }

    .etn-hero-photo {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 25px 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .etn-hero-photo .hero-main-image {
        display: block !important;
        width: 280px !important;
        max-width: 90% !important;
        height: auto !important;
        max-height: 220px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    /* TARJETAS */
    .cards,
    .paraderos {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        box-sizing: border-box !important;
    }

    .card,
    .paradero {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FORMULARIOS */
    .form-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    /* KPI */
    .kpis {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    /* FOOTER */
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* BOTONES */
    .actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .actions .btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}