:root {
  --teal: #1fa7a2;
  --teal-dark: #137e7a;
  --charcoal: #444849;
  --ink: #26292a;
  --muted: #697071;
  --bg: #f4f7f7;
  --card: #ffffff;
  --line: #dfe7e7;
  --success: #17876f;
  --shadow: 0 16px 40px rgba(35, 50, 50, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(68,72,73,.08);
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 76px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link { display: flex; align-items: center; text-decoration: none; }
.brand-link img { width: 156px; height: 56px; object-fit: contain; object-position: left center; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; color: var(--charcoal); font-weight: 700; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--teal-dark); }

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(20,30,31,.78) 0%, rgba(20,30,31,.48) 48%, rgba(20,30,31,.10) 100%),
    url('../img/camion-hawa-del-sur.jpg') center 58% / cover no-repeat;
}
.hero-inner { max-width: 1180px; width: 100%; margin: auto; padding: 82px 24px; }
.hero-copy { max-width: 650px; color: #fff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--teal-dark);
}
.hero .eyebrow { color: #7fe1dc; }
.hero h1 { margin: 14px 0 16px; font-size: clamp(44px, 7vw, 78px); line-height: .98; letter-spacing: -.045em; }
.hero p { margin: 0 0 30px; font-size: clamp(18px, 2.2vw, 24px); max-width: 560px; color: rgba(255,255,255,.9); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 22px rgba(31,167,162,.23); }
.btn-primary:hover { transform: translateY(-1px); background: var(--teal-dark); }
.btn-secondary { background: #fff; color: var(--charcoal); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: #bfcaca; }

.section { padding: 78px 24px; }
.container { max-width: 1180px; margin: auto; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section h2 { margin: 6px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; }
.section p.lead { color: var(--muted); font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card, .card {
  background: var(--card);
  border: 1px solid rgba(68,72,73,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card { padding: 28px; }
.info-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: #e6f7f6; color: var(--teal-dark); font-weight: 900; margin-bottom: 18px;
}
.info-card h3 { margin: 0 0 8px; }
.info-card p { margin: 0; color: var(--muted); }

.page-shell { min-height: calc(100vh - 76px); padding: 54px 24px 90px; }
.page-head { max-width: 1180px; margin: 0 auto 26px; }
.page-head h1 { margin: 8px 0 8px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); font-size: 17px; }
.breadcrumb { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.breadcrumb:hover { color: var(--teal-dark); }

.search-wrap { max-width: 1180px; margin: 30px auto 22px; }
.search-box { position: relative; }
.search-box input {
  width: 100%;
  padding: 18px 20px 18px 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  outline: none;
  font-size: 17px;
  box-shadow: 0 8px 22px rgba(30,50,50,.06);
}
.search-box input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,167,162,.10); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 21px; }

.employee-list { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
.employee-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  transition: .2s ease;
}
.employee-row:hover { transform: translateY(-1px); border-color: #bcd9d7; box-shadow: 0 10px 28px rgba(30,50,50,.08); }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(145deg,#d7f2f0,#eef8f8); color: var(--teal-dark); display: grid; place-items: center; font-weight: 900; }
.employee-name { font-weight: 900; font-size: 18px; }
.employee-role { color: var(--muted); font-size: 14px; }
.chevron { color: var(--teal-dark); font-size: 26px; }
.empty-state { display: none; background: #fff; border: 1px dashed #cdd9d9; border-radius: 16px; padding: 28px; color: var(--muted); text-align: center; }

.profile-card { max-width: 1180px; margin: 0 auto 24px; padding: 28px; }
.profile-title { display: flex; gap: 18px; align-items: center; }
.profile-title .avatar { width: 66px; height: 66px; font-size: 20px; }
.profile-title h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }
.profile-title p { margin: 3px 0 0; color: var(--muted); }
.access-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.access-card { padding: 26px; min-height: 160px; text-decoration: none; cursor: pointer; transition: .2s ease; }
.access-card:hover { transform: translateY(-2px); border-color: #bcd9d7; }
.access-card .mini-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e7f7f6; color: var(--teal-dark); margin-bottom: 22px; font-weight: 900; }
.access-card h3 { margin: 0 0 7px; }
.access-card p { margin: 0; color: var(--muted); }

.verify-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 22px; align-items: start; }
.verify-panel { padding: 26px; position: sticky; top: 102px; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; color: var(--success); background: #e7f6f1; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 900; }
.verify-panel h1 { font-size: 30px; line-height: 1.08; margin: 18px 0 10px; letter-spacing: -.03em; }
.meta { display: grid; gap: 12px; margin: 24px 0; }
.meta-row { border-top: 1px solid var(--line); padding-top: 12px; }
.meta-label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.meta-value { display: block; margin-top: 3px; font-weight: 800; }
.qr-box { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
#qr { width: 156px; height: 156px; margin: 14px 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr-note { color: var(--muted); font-size: 12px; }
.pdf-card { padding: 12px; overflow: hidden; }
.pdf-frame { width: 100%; min-height: 790px; border: 0; border-radius: 12px; background: #fff; }
.mobile-pdf { display: none; padding: 24px; text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(22,30,31,.56); display: none; place-items: center; padding: 20px; }
.modal-backdrop.show { display: grid; }
.modal { width: min(440px,100%); background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 26px 70px rgba(0,0,0,.22); text-align: center; }
.modal-mark { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: #e7f7f6; color: var(--teal-dark); font-size: 28px; font-weight: 900; }
.modal h2 { margin: 0 0 8px; }
.modal p { margin: 0 0 20px; color: var(--muted); }

.site-footer { background: var(--charcoal); color: #fff; padding: 36px 24px; }
.footer-inner { max-width: 1180px; margin: auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.72); }

.notice { max-width: 1180px; margin: 14px auto 0; padding: 12px 16px; border-radius: 12px; background: #fff7df; border: 1px solid #f0dc9f; color: #715d22; font-size: 13px; }

@media (max-width: 860px) {
  .grid-3, .access-grid, .verify-layout { grid-template-columns: 1fr; }
  .verify-panel { position: static; }
  .hero { min-height: 540px; background-position: 60% center; }
  .nav { gap: 16px; }
  .pdf-frame { min-height: 650px; }
}
@media (max-width: 600px) {
  .header-inner { min-height: 68px; padding-inline: 18px; }
  .brand-link img { width: 128px; height: 48px; }
  .nav a:first-child { display: none; }
  .hero-inner { padding-inline: 20px; }
  .hero { min-height: 520px; }
  .section, .page-shell { padding-left: 18px; padding-right: 18px; }
  .employee-row { grid-template-columns: 48px 1fr auto; padding: 15px; }
  .avatar { width: 48px; height: 48px; }
  .profile-card { padding: 22px; }
  .pdf-frame { display: none; }
  .mobile-pdf { display: block; }
}

/* Homepage expansion */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.36); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { transform: translateY(-1px); }
.section-soft { background: #edf4f4; }
.about-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr); gap: 34px; align-items: stretch; }
.about-copy { margin-bottom: 0; }
.about-text { color: var(--muted); font-size: 17px; margin: 20px 0 0; }
.about-highlight { padding: 34px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg,#fff,#f1fbfa); }
.highlight-number { color: var(--teal); font-size: clamp(50px,7vw,78px); line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.about-highlight h3 { margin: 12px 0 6px; font-size: 24px; }
.about-highlight p { color: var(--muted); margin: 0 0 18px; }
.text-link { color: var(--teal-dark); text-decoration: none; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.product-card { min-height: 150px; padding: 24px; background: #fff; border: 1px solid rgba(68,72,73,.08); border-radius: 18px; box-shadow: 0 10px 28px rgba(35,50,50,.06); }
.product-card span { display: inline-flex; min-width: 46px; height: 38px; padding: 0 9px; align-items: center; justify-content: center; border-radius: 10px; background: #e4f6f5; color: var(--teal-dark); font-size: 13px; font-weight: 900; }
.product-card h3 { margin: 20px 0 0; font-size: 18px; line-height: 1.25; }
.product-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-card { padding: 28px; }
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #e4f6f5; color: var(--teal-dark); font-size: 12px; font-weight: 900; }
.service-card h3 { margin: 18px 0 8px; }
.service-card p { margin: 0; color: var(--muted); }
.coverage-section { background: linear-gradient(135deg,#116f6c,#20a7a2); color: #fff; }
.coverage-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); gap: 60px; align-items: center; }
.coverage-section h2 { margin: 8px 0 14px; }
.coverage-section p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 620px; }
.eyebrow-light { color: #aef1ed; }
.coverage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coverage-item { padding: 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.coverage-item strong, .coverage-item span { display: block; }
.coverage-item strong { font-size: 19px; }
.coverage-item span { color: rgba(255,255,255,.74); font-size: 13px; margin-top: 4px; }
.contact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.contact-card { text-decoration: none; transition: .2s ease; }
.contact-card:hover { transform: translateY(-3px); border-color: #bddbd9; }
.contact-card .card-link { display: inline-block; margin-top: 16px; color: var(--teal-dark); font-weight: 800; font-size: 13px; }
.contact-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.hours-card { padding: 30px; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours-row:first-of-type { margin-top: 14px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row span { color: var(--muted); }
.hours-row.emergency strong { color: var(--success); }
.cta-card { padding: 34px; border-radius: var(--radius); background: linear-gradient(145deg,var(--teal-dark),var(--teal)); color: #fff; box-shadow: var(--shadow); }
.cta-card h3 { margin: 10px 0 8px; font-size: 30px; line-height: 1.1; }
.cta-card p { color: rgba(255,255,255,.8); margin: 0 0 24px; }
.footer-rich { align-items: center; }
.footer-logo { width: 150px; height: 54px; object-fit: contain; background: #fff; border-radius: 8px; margin-bottom: 10px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.76); text-decoration: none; font-size: 14px; font-weight: 700; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1040px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .product-grid, .contact-grid { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .about-layout, .coverage-layout, .contact-bottom { grid-template-columns: 1fr; }
  .coverage-layout { gap: 30px; }
  .nav a:not(:last-child):not(.active) { display: none; }
}
@media (max-width: 600px) {
  .product-grid, .service-grid, .contact-grid, .coverage-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hours-row { font-size: 14px; }
  .cta-card h3 { font-size: 25px; }
}

/* Refined homepage layouts */
.section-head-centered {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-head-centered .eyebrow { justify-content: center; }
.services-section { background: #f8fbfb; }
.services-section .section-head h2,
.contact-section .section-head h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.service-card {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 18px;
  align-items: start;
  min-height: 190px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e2eceb;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(35,50,50,.055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: #b9dcda;
  box-shadow: 0 16px 34px rgba(35,50,50,.09);
}
.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg,#e7f7f6,#d6efed);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}
.service-card h3 {
  margin: 4px 0 9px;
  font-size: 19px;
  line-height: 1.2;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-section { background: #eef4f4; }
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(320px,.8fr);
  gap: 22px;
  align-items: stretch;
}
.contact-main,
.hours-card {
  background: #fff;
  border: 1px solid #e0eaea;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(35,50,50,.065);
}
.contact-main { overflow: hidden; }
.contact-row {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 26px;
  gap: 16px;
  align-items: center;
  padding: 21px 24px;
  text-decoration: none;
  border-bottom: 1px solid #edf1f1;
  transition: background .2s ease;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { background: #f7fbfb; }
.contact-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e3f5f4;
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 15px;
}
.contact-copy { min-width: 0; }
.contact-copy span,
.contact-copy strong { display: block; }
.contact-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-copy strong {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-arrow {
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 700;
}
.contact-side { display: grid; gap: 16px; }
.hours-card { padding: 26px; }
.hours-title h3 { margin: 5px 0 14px; font-size: 24px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row span { color: var(--muted); }
.hours-row strong { text-align: right; }
.hours-row.emergency strong { color: var(--success); }
.contact-emergency {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(145deg,#126f6c,#22aaa4);
  color: #fff;
  box-shadow: 0 16px 34px rgba(19,126,122,.18);
}
.contact-emergency > span {
  color: #bff4f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.contact-emergency > strong {
  margin: 8px 0 17px;
  font-size: 23px;
  line-height: 1.18;
}
.contact-emergency a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .section-head-centered { text-align: left; margin-bottom: 28px; }
  .section-head-centered .eyebrow { justify-content: flex-start; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; grid-template-columns: 46px minmax(0,1fr); padding: 22px; }
  .service-icon { width: 46px; height: 46px; }
  .contact-side { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 44px minmax(0,1fr) 20px; gap: 13px; padding: 18px; }
  .contact-icon { width: 42px; height: 42px; }
  .contact-copy strong { font-size: 15px; }
  .hours-card, .contact-emergency { padding: 22px; }
}


/* Acceso de personal */
.nav-logout {
  appearance: none;
  border: 1px solid rgba(17,111,108,.18);
  background: #eef8f7;
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.nav-logout:hover { background: #e1f3f1; }
.login-body { min-height: 100vh; background: linear-gradient(135deg,#edf5f4 0%,#f9fbfb 52%,#e4f3f2 100%); }
.login-shell { min-height: calc(100vh - 88px); display: grid; place-items: center; padding: 42px 20px; }
.login-card {
  width: min(100%, 470px);
  background: rgba(255,255,255,.96);
  border: 1px solid #dce8e7;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(28,58,57,.13);
  padding: clamp(30px,5vw,48px);
}
.login-card h1 { margin: 10px 0 10px; font-size: clamp(32px,5vw,44px); line-height: 1.04; }
.login-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 7px; font-size: 13px; font-weight: 800; color: #394948; }
.login-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbdad9;
  background: #fff;
  border-radius: 12px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(32,167,162,.12); }
.login-error { min-height: 21px; margin-top: 4px; color: #a52b2b; font-size: 13px; font-weight: 700; }
.login-button { width: 100%; justify-content: center; margin-top: 2px; }
.login-button:disabled { opacity: .65; cursor: wait; }

.invite-view h1 { margin: 10px 0 10px; font-size: clamp(32px,5vw,44px); line-height: 1.04; }
.invite-view > p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.invite-view[hidden], #normalLoginView[hidden] { display: none !important; }
