/* =========================================================
   ULTRA DESK HARDWARE (hardware.ultradesk.cl)
   Tema Claro "Clean Tech Lab" — Visual, luminoso y directo
   ========================================================= */

:root {
  /* Fondos claros */
  --bg-page: #f5f9fb;
  --bg-surface: #ffffff;
  --bg-alt: #eaf2f6;
  --bg-soft-blue: #e3f0f9;

  /* Textos de alto contraste */
  --ink-900: #09232b;
  --ink-700: #26444e;
  --ink-500: #52707a;

  /* Colores corporativos Ultra Desk */
  --brand-blue: #1e6fb8;
  --brand-blue-hover: #155794;
  --brand-sky: #3fa4de;
  --brand-teal-dark: #0a2e36;

  /* Acentos */
  --accent-green: #2d9a47;
  --accent-green-bg: rgba(45, 154, 71, 0.12);
  --accent-amber: #d4880f;
  --accent-amber-bg: rgba(212, 136, 15, 0.13);
  --accent-sky-bg: rgba(63, 164, 222, 0.14);
  --accent-blue-bg: rgba(30, 111, 184, 0.12);
  --accent-red: #d12b2b;

  /* Bordes y sombras suaves */
  --border-light: #d7e5ec;
  --border-strong: #bdd3df;
  --shadow-sm: 0 4px 14px rgba(10, 46, 54, 0.05);
  --shadow-md: 0 12px 30px rgba(10, 46, 54, 0.09);
  --shadow-lg: 0 20px 44px rgba(10, 46, 54, 0.13);

  /* Tipografías */
  --font-sans: "Quicksand", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background:
    radial-gradient(950px 500px at 90% 0%, rgba(63, 164, 222, 0.14), transparent 65%),
    radial-gradient(800px 480px at 5% 35%, rgba(45, 154, 71, 0.07), transparent 60%),
    var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

#bg-circuit {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* =========================================================
   TOPBAR SUPERIOR
   ========================================================= */
.topbar-strip {
  background: var(--brand-teal-dark);
  color: #e3f2f6;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 101;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52d669;
  box-shadow: 0 0 8px #52d669;
  display: inline-block;
}

.topbar-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #7fd0ff;
}

.topbar-divider {
  opacity: 0.3;
}

.topbar-location {
  color: #bfd8df;
}

.topbar-link {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 500;
}

.topbar-portal-link {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}

.topbar-portal-link:hover {
  background: var(--brand-blue);
  border-color: var(--brand-sky);
}

/* =========================================================
   NAVBAR PRINCIPAL
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(9, 35, 43, 0.04);
  transition: all 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 26px rgba(9, 35, 43, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.nav-brand:hover .nav-brand-icon {
  transform: rotate(15deg) scale(1.05);
}

.nav-brand-wordmark {
  height: 36px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-700);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
  background: var(--accent-blue-bg);
}

.nav-link.nav-cta {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 9px 18px;
  margin-left: 6px;
  box-shadow: 0 4px 12px rgba(30, 111, 184, 0.25);
}

.nav-link.nav-cta:hover,
.nav-link.nav-cta.active {
  background: var(--brand-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  width: 100%;
  height: 2.5px;
  background: var(--ink-900);
  border-radius: 2px;
}

/* =========================================================
   HERO PRINCIPAL CON GALERÍA DE IMÁGENES
   ========================================================= */
.hero-section {
  padding: 52px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--ink-700);
  margin: 0 0 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), #2581d4);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(30, 111, 184, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 111, 184, 0.34);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--ink-900);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--bg-soft-blue);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-700);
}

.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Galería Visual en el Hero */
.hero-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-main-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #ffffff;
}

.showcase-main-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-overlay-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.showcase-overlay-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.showcase-overlay-badge strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-900);
  line-height: 1.2;
}

.showcase-overlay-badge span {
  font-size: 0.76rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.showcase-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.showcase-mini-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 125px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #ffffff;
}

.showcase-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.showcase-mini-card:hover img {
  transform: scale(1.06);
}

.showcase-mini-card span {
  position: absolute;
  inset: auto 10px 10px 10px;
  background: rgba(9, 35, 43, 0.82);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  text-align: center;
}

/* =========================================================
   BARRA DE SÍNTOMAS RÁPIDOS
   ========================================================= */
.symptom-strip {
  padding-bottom: 36px;
}

.symptom-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 15px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.symptom-title {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 0.95rem;
}

.symptom-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.symptom-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-700);
  transition: all 0.2s ease;
}

.symptom-pill:hover {
  border-color: var(--brand-blue);
  background: var(--bg-soft-blue);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

/* =========================================================
   SECCIONES DE CATEGORÍAS Y TARJETAS CON IMAGEN
   ========================================================= */
.service-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-light);
}

.section-light {
  background: rgba(255, 255, 255, 0.6);
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-page) 100%);
}

.section-header {
  max-width: 680px;
  margin-bottom: 34px;
}

.cat-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.cat-blue { background: var(--accent-blue-bg); color: var(--brand-blue); }
.cat-sky { background: var(--accent-sky-bg); color: #1672a8; }
.cat-green { background: var(--accent-green-bg); color: var(--accent-green); }
.cat-amber { background: var(--accent-amber-bg); color: var(--accent-amber); }

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  margin: 0 0 8px;
  color: var(--ink-900);
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-700);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-sky);
}

/* Imagen superior de cada tarjeta */
.card-media {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .card-media img {
  transform: scale(1.06);
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-blue { background: rgba(30, 111, 184, 0.92); color: #ffffff; }
.badge-sky { background: rgba(22, 114, 168, 0.92); color: #ffffff; }
.badge-green { background: rgba(45, 154, 71, 0.92); color: #ffffff; }
.badge-amber { background: rgba(212, 136, 15, 0.94); color: #ffffff; }

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.18rem;
  margin: 0 0 8px;
  color: var(--ink-900);
}

.card-text {
  font-size: 0.9rem;
  color: var(--ink-700);
  margin: 0 0 14px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-700);
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-blue);
  font-weight: 700;
}

.btn-card-action {
  width: 100%;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

/* =========================================================
   BANNER CONEXIÓN CON ULTRADESK.CL
   ========================================================= */
.cross-portal-section {
  padding: 48px 0;
}

.cross-portal-banner {
  background: linear-gradient(135deg, #ffffff 0%, #e4f1fa 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cross-portal-left {
  max-width: 620px;
}

.cross-portal-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-blue);
  display: block;
  margin-bottom: 6px;
}

.cross-portal-left h3 {
  font-size: 1.45rem;
  margin: 0 0 8px;
  color: var(--ink-900);
}

.cross-portal-left p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.cross-portal-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cross-portal-logo {
  max-width: 175px;
  height: auto;
}

/* =========================================================
   SECCIÓN DE CONTACTO
   ========================================================= */
.contact-section {
  padding: 64px 0 80px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.info-card-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.info-brand-head {
  margin-bottom: 14px;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.info-brand-img {
  max-height: 84px;
  width: auto;
}

.info-lead {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin: 0 0 18px;
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  transition: border-color 0.2s, transform 0.2s;
}

a.direct-item:hover {
  border-color: var(--brand-blue);
  transform: translateX(3px);
}

.direct-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: var(--accent-blue-bg); color: var(--brand-blue); }
.icon-green { background: var(--accent-green-bg); color: var(--accent-green); }
.icon-amber { background: var(--accent-amber-bg); color: var(--accent-amber); }

.direct-label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-500);
  font-weight: 600;
}

.direct-val {
  font-size: 0.93rem;
  color: var(--ink-900);
}

.schedule-box {
  background: var(--bg-soft-blue);
  border-left: 4px solid var(--brand-blue);
  padding: 10px 14px;
  border-radius: 8px;
}

.schedule-title {
  display: block;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--brand-blue);
}

.schedule-box p {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--ink-700);
}

/* Formulario */
.hw-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.form-selected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent-blue-bg);
  border: 1px solid var(--brand-sky);
  color: var(--ink-900);
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.form-selected-banner[hidden] {
  display: none !important;
}

.form-selected-banner button {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-700);
  cursor: pointer;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 5px;
}

.req {
  color: var(--accent-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 111, 184, 0.14);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn-submit {
  flex: 1 1 200px;
}

.btn-whatsapp {
  flex: 1 1 200px;
  background: #1fa855;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 168, 85, 0.24);
}

.btn-whatsapp:hover {
  background: #188c45;
  transform: translateY(-2px);
}

.form-feedback {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-feedback.ok {
  color: var(--accent-green);
}

.form-feedback.err {
  color: var(--accent-red);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--brand-teal-dark);
  color: #d3e6ec;
  padding: 50px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-icon-white {
  width: 40px;
  height: 40px;
  filter: invert(1) brightness(2);
}

.footer-wordmark-white {
  height: 32px;
  width: auto;
}

.footer-about {
  font-size: 0.88rem;
  color: #a9c7d0;
  margin: 0 0 12px;
}

.footer-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #8ad4ff;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.98rem;
  margin: 0 0 12px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-contact a {
  font-size: 0.88rem;
  color: #b5d0d8;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.84rem;
  color: #93b4be;
}

.footer-bottom a {
  color: #7fd0ff;
  font-weight: 700;
}

/* =========================================================
   ANIMACIONES AL HACER SCROLL
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 6px;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link.nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .topbar-location {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .showcase-mini-row {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .cross-portal-banner {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   BOTÓN DE CARRITO EN NAVBAR (SOLO ÍCONO + CANTIDAD, SIN MONTO)
   ========================================================= */
.nav-link-prio {
  color: var(--accent-amber) !important;
  background: var(--accent-amber-bg);
}

.nav-link-prio:hover {
  background: rgba(212, 136, 15, 0.22);
}

.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-strong);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.nav-cart-btn:hover,
.nav-cart-btn.active-page {
  border-color: var(--brand-blue);
  background: var(--bg-soft-blue);
  color: var(--brand-blue);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--border-strong);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.cart-badge.has-items {
  background: var(--brand-blue);
  color: #ffffff;
}

/* =========================================================
   SECCIÓN SERVICIO PERSONALIZADO & EMERGENCIAS
   ========================================================= */
.prio-section {
  background: linear-gradient(180deg, #fffdf8 0%, #eaf3f8 100%);
}

.prio-hero-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.prio-title {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin: 0 0 10px;
  color: var(--ink-900);
  line-height: 1.2;
}

.prio-lead {
  font-size: 0.98rem;
  color: var(--ink-700);
  margin: 0 0 16px;
}

.prio-coverage-notice {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-amber);
  border-radius: 10px;
  padding: 14px 16px;
}

.coverage-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cov-tag {
  background: var(--accent-amber-bg);
  color: var(--ink-900);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.cov-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.coverage-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.prio-action-card {
  background: var(--bg-soft-blue);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
}

.prio-action-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: block;
  margin-bottom: 4px;
}

.prio-action-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.prio-action-card p {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.prio-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-full {
  width: 100%;
}

.btn[disabled],
button:disabled {
  opacity: 0.48;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Grilla de tarjetas seleccionables */
.prio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prio-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}

.prio-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-sky);
  box-shadow: var(--shadow-md);
}

.prio-card.selected {
  border-color: var(--accent-green);
  background: #f6fcf8;
  box-shadow: 0 8px 24px rgba(45, 154, 71, 0.12);
}

.prio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.prio-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-700);
}

.prio-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.prio-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--ink-900);
}

.prio-card p {
  font-size: 0.87rem;
  color: var(--ink-700);
  margin: 0 0 16px;
  flex-grow: 1;
}

.prio-card code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

.btn-prio-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-blue);
  background: #ffffff;
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prio-select:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-prio-select.added {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
}

/* =========================================================
   MODAL DEL CARRITO
   ========================================================= */
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cart-modal.open {
  display: flex;
}

.cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 35, 43, 0.55);
  backdrop-filter: blur(4px);
}

.cart-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cart-modal-header {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: block;
}

.cart-modal-header h3 {
  margin: 2px 0 0;
  font-size: 1.22rem;
}

.cart-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-700);
  cursor: pointer;
}

.cart-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
}

.cart-empty-state {
  text-align: center;
  padding: 24px 12px;
  color: var(--ink-700);
}

.cart-empty-state p {
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink-900);
}

.cart-empty-state span {
  font-size: 0.88rem;
}

.cart-items-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.cart-item-cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brand-blue);
  font-weight: 600;
}

.cart-item-name {
  font-size: 0.92rem;
  color: var(--ink-900);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--accent-red);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-summary-box {
  background: var(--bg-soft-blue);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
}

.cart-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}

.cart-sum-visit small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-500);
}

.cart-sum-total {
  border-top: 1px solid var(--border-strong);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 1.08rem;
  color: var(--ink-900);
}

.cart-sector-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--ink-700);
}

.cart-modal-footer {
  padding: 16px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   PÁGINA DEDICADA CARRITO.HTML
   ========================================================= */
.checkout-page-wrap {
  padding: 48px 0 72px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.chk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.chk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chk-card h2 {
  font-size: 1.25rem;
  margin: 0;
}

.chk-clear-link {
  background: none;
  border: none;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.chk-empty-box {
  text-align: center;
  padding: 26px 16px;
  background: var(--bg-page);
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
}

.chk-empty-box p {
  font-weight: 700;
  margin: 0 0 6px;
}

.chk-empty-box span {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.chk-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.chk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.chk-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.chk-item h4 {
  margin: 2px 0 0;
  font-size: 0.95rem;
}

.chk-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chk-remove-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.chk-totals-box {
  background: var(--bg-soft-blue);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px;
}

.chk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.chk-visit-row small {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-500);
}

.chk-total-row {
  border-top: 1.5px solid var(--border-strong);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.18rem;
}

.chk-coverage-card {
  background: #fff9ec;
  border: 1px solid #f0d59c;
  border-radius: var(--radius-md);
  padding: 20px;
}

.chk-coverage-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.chk-coverage-card p {
  margin: 0 0 8px;
  font-size: 0.87rem;
  color: var(--ink-700);
}

.sector-warning-box {
  background: #fff4d6;
  border: 1px solid #e6b84d;
  color: #5c3c00;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.payment-buttons-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-box-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-900);
}

.btn-pay {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-mercadopago {
  background: linear-gradient(135deg, #009ee3, #007eb5);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 158, 227, 0.26);
}

.btn-paypal {
  background: linear-gradient(135deg, #003087, #0070ba);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 48, 135, 0.24);
}

.btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
}

.pay-brand {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
}

.pay-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}

.checkout-status-msg {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-status-msg.ok { color: var(--accent-green); }
.checkout-status-msg.err { color: var(--accent-red); }

@media (max-width: 1024px) {
  .prio-hero-box,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .prio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .prio-grid {
    grid-template-columns: 1fr;
  }
}
