:root {
  --ink: #172019;
  --muted: #667069;
  --paper: #fffdf7;
  --surface: #ffffff;
  --line: #e7e5db;
  --yellow: #ffd400;
  --yellow-deep: #e1b900;
  --green: #315c42;
  --green-dark: #183a28;
  --terracotta: #555c61;
  --sand: #eee2c9;
  --shadow: 0 18px 55px rgba(30, 48, 35, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 212, 0, .13), transparent 22rem),
    radial-gradient(circle at 96% 28%, rgba(173, 95, 57, .10), transparent 26rem),
    #f5f3ec;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.site-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #122b1d 0%, #315c42 58%, #6f7041 100%);
}

.site-header:before,
.site-header:after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-header:before {
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(30deg, transparent 24%, rgba(255,255,255,.18) 25%, transparent 26%),
    linear-gradient(150deg, transparent 24%, rgba(255,255,255,.12) 25%, transparent 26%);
  background-size: 38px 38px;
}

.site-header:after {
  right: -8rem;
  bottom: -11rem;
  width: 34rem;
  height: 22rem;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 212, 0, .14);
  transform: rotate(-8deg);
}

.header-bar,
.hero,
.page-shell,
.footer-inner {
  width: calc(100% - 32px);
  max-width: 1160px;
  margin: 0 auto;
}

.header-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: #050505;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.brand img { width: 232px; display: block; }

.guide-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}

.guide-mark .mark {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,212,0,.13);
}

.hero {
  position: relative;
  z-index: 2;
  padding: 50px 0 62px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #ffe779;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
}

.page-shell {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  padding-bottom: 64px;
}

.search-panel,
.provider-card,
.results-panel,
.empty-state {
  border: 1px solid rgba(38, 62, 44, .08);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.search-panel { padding: 28px; }

.section-kicker {
  margin: 0 0 4px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.section-copy { margin: 8px 0 22px; color: var(--muted); }

.quick-search {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid rgba(49,92,66,.18);
  border-radius: 16px;
  background: linear-gradient(120deg, #edf4ee, #fff8da);
}

.quick-search > label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.quick-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.quick-search-row .button { min-width: 205px; }
.quick-search small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.search-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.search-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  font-size: 17px;
}

.number-badge {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #172019;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.field { margin-bottom: 12px; }

.field label {
  display: block;
  margin-bottom: 6px;
  color: #404a43;
  font-size: 13px;
  font-weight: 700;
}

select,
input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d7d9d2;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

select:focus,
input[type="text"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(49,92,66,.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(49,92,66,.18);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, background .18s, box-shadow .18s;
}

.button:hover {
  background: var(--green-dark);
  box-shadow: 0 11px 25px rgba(49,92,66,.24);
  transform: translateY(-1px);
}

.button:active { transform: translateY(0); }

.button-full { width: 100%; }
.button-yellow { color: #161b17; background: var(--yellow); }
.button-yellow:hover { color: #fff; background: var(--terracotta); }
.button-ghost { color: var(--green-dark); background: #eef3ef; box-shadow: none; }
.button-ghost:hover { color: #fff; background: var(--green); }

.provider-card { overflow: hidden; margin-bottom: 24px; }

.provider-cover {
  position: relative;
  min-height: 190px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(255,212,0,.16), transparent 20rem),
    linear-gradient(112deg, #090a0b 0%, #202428 62%, #3a4045 100%);
  border-top: 5px solid var(--yellow);
}

.provider-cover:after {
  content: "";
  display: none;
  position: absolute;
  right: 28px;
  bottom: -23px;
  color: rgba(255,255,255,.06);
  font-size: 132px;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
}

.provider-cover > * { position: relative; z-index: 1; }

.provider-card-label {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 99px;
  color: #fff8e8;
  background: rgba(0,0,0,.28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.provider-place {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: #fff1b0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.provider-cover h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1;
  letter-spacing: -.04em;
}

.provider-subtitle {
  max-width: 740px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.75);
  font-size: 17px;
}

.provider-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 30px;
  padding: 30px;
}

.provider-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.provider-actions-panel {
  margin: 0 30px 30px;
  padding: 22px;
  border: 2px solid #d8d8d0;
  border-left: 7px solid var(--yellow);
  border-radius: 15px;
  background: #f7f8f6;
  box-shadow: 0 9px 24px rgba(30,48,35,.07);
}

.provider-actions-heading { display: flex; align-items: baseline; gap: 11px; margin-bottom: 15px; }
.provider-actions-heading span { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.provider-actions-heading strong { font-size: 20px; }
.provider-actions-panel .button { min-height: 56px; font-size: 15px; }

.info-list { display: grid; gap: 12px; }

.info-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 103px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--green);
  background: #e7efe9;
  font-size: 18px;
  font-weight: 900;
}

.info-row small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.info-row a {
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.provider-aside {
  padding: 23px;
  border-radius: 16px;
  color: #fff;
  background: var(--green-dark);
  align-self: start;
}

.provider-aside h3 { margin: 0 0 8px; font-size: 20px; }
.provider-aside p { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: 14px; }
.provider-aside .button + .button { margin-top: 10px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.results-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 28px;
  border: 2px solid #e5bd00;
  border-top: 8px solid var(--yellow);
  background: linear-gradient(135deg, #fff 0%, #fffdf4 72%, #fff7c9 100%);
  box-shadow: 0 18px 48px rgba(29,45,33,.16), 0 0 0 5px rgba(255,212,0,.09);
}

.results-panel:before {
  content: "RESULTADOS DE TU BÚSQUEDA";
  display: inline-flex;
  margin: -2px 0 21px;
  padding: 7px 13px;
  border-radius: 7px;
  color: #111;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.results-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 99px;
  color: #fff;
  background: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.results-grid-stacked { grid-template-columns: 1fr; }

.result-full-list { display: grid; gap: 17px; }
.result-full-card { overflow: hidden; border: 2px solid #dcd8c9; border-left: 8px solid var(--yellow); border-radius: 17px; background: #fff; box-shadow: 0 10px 26px rgba(31,49,36,.09); }
.result-full-head { display: block; padding: 23px; color: #fff; background: linear-gradient(115deg,#111416,#293033); }
.result-full-head h3 { margin: 0; font-size: 27px; line-height: 1.06; }
.result-full-head p { margin: 5px 0 0; color: rgba(255,255,255,.7); }
.result-full-head .result-initial { width: 62px; height: 62px; font-size: 26px; }
.result-full-data { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 18px 20px; }
.result-full-data > div { min-height: 80px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; }
.result-full-data small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.result-full-data strong, .result-full-data a { color: var(--green-dark); font-weight: 800; overflow-wrap: anywhere; }
.result-full-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 10px; padding: 16px 20px 20px; border-top: 2px solid #ece9dc; background: #f5f7f4; }
.result-full-actions .button { min-height: 52px; }
.result-full-contact { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 20px; align-items: center; margin: 0 20px 21px; padding: 20px; border: 2px solid #294e38; border-radius: 15px; color: #fff; background: var(--green-dark); }
.result-full-contact small { color: #ffe16a; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.result-full-contact h4 { margin: 5px 0 14px; font-size: 19px; }
.result-contact-scan { text-align: center; }
.result-contact-scan > strong { display: block; margin-bottom: 9px; }
.result-contact-qr { display: inline-flex; min-width: 150px; min-height: 150px; padding: 7px; border-radius: 9px; background: #fff; }
.result-contact-qr img, .result-contact-qr canvas { display: block; }

.result-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 24px;
  gap: 13px;
  align-items: center;
  min-height: 112px;
  padding: 17px;
  border: 2px solid var(--line);
  border-left: 7px solid var(--yellow);
  border-radius: 14px;
  background: var(--paper);
  text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.result-card:hover {
  border-color: rgba(49,92,66,.35);
  box-shadow: 0 10px 25px rgba(35,54,40,.09);
  transform: translateY(-2px);
}

.result-initial {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  color: var(--green-dark);
  background: var(--yellow);
  font-size: 20px;
  font-weight: 900;
}

.result-name {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.result-address { display: block; margin: 3px 0 2px; color: #414a43; font-size: 14px; line-height: 1.35; }
.result-meta { display: block; color: var(--green); font-size: 14px; font-weight: 700; }
.result-action { padding: 7px 10px; border-radius: 8px; color: #fff; background: var(--green-dark); font-size: 11px; font-weight: 900; white-space: nowrap; }
.result-arrow { color: var(--green); font-size: 25px; font-weight: 300; }

.empty-state {
  margin-bottom: 24px;
  padding: 38px;
  text-align: center;
}

.empty-state strong { display: block; margin-bottom: 6px; font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); }

.site-footer {
  color: rgba(255,255,255,.68);
  background: #13261a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  font-size: 13px;
}

.footer-inner strong { color: #fff; }

@media (max-width: 820px) {
  .search-grid,
  .results-grid,
  .provider-body { grid-template-columns: 1fr; }
  .provider-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-card { grid-template-columns: 56px minmax(0, 1fr) 24px; }
  .result-action { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .header-bar, .hero, .page-shell, .footer-inner { width: calc(100% - 22px); }
  .header-bar { min-height: 70px; gap: 12px; }
  .brand { padding: 6px 8px; }
  .brand img { width: 168px; }
  .guide-mark span:last-child { display: none; }
  .hero { padding: 38px 0 52px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 16px; }
  .page-shell { margin-top: -22px; padding-bottom: 42px; }
  .search-panel, .results-panel { padding: 18px; border-radius: 17px; }
  .search-box { padding: 17px; }
  .quick-search { padding: 16px; }
  .quick-search-row { grid-template-columns: 1fr; }
  .quick-search-row .button { width: 100%; min-width: 0; }
  .section-title { font-size: 24px; }
  .provider-cover { min-height: 168px; padding: 25px 20px; }
  .provider-cover:after { right: 12px; font-size: 88px; }
  .provider-cover h1 { font-size: 42px; }
  .provider-body { padding: 18px; gap: 18px; }
  .provider-actions { grid-template-columns: 1fr; }
  .provider-actions-panel { margin: 0 18px 18px; padding: 17px; }
  .provider-actions-heading { align-items: start; flex-direction: column; gap: 2px; }
  .results-head { align-items: start; flex-direction: column; gap: 10px; }
  .result-card { grid-template-columns: 43px minmax(0, 1fr) 22px; padding: 13px; }
  .result-initial { width: 43px; height: 43px; }
  .result-full-head { padding: 19px 16px; }
  .result-full-head h3 { font-size: 22px; }
  .result-full-data, .result-full-actions { grid-template-columns: 1fr; padding: 14px 16px; }
  .result-full-contact { grid-template-columns: 1fr; margin: 0 16px 16px; padding: 17px; text-align: center; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
