.catalog-page {
  min-width: 320px;
  background: #f4f9f9;
}

.catalog-page button,
.catalog-page input {
  font: inherit;
}

.catalog-page button {
  cursor: pointer;
}

.catalog-page button:disabled {
  cursor: wait;
}

.catalog-shell {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
}

.catalog-submenu-current {
  color: var(--teal-dark);
  background: rgba(24, 170, 168, .1);
}

.catalog-hero {
  min-height: 580px;
  padding: clamp(64px, 8vw, 106px) 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(108deg, rgba(10, 74, 77, .96) 0%, rgba(8, 110, 109, .91) 48%, rgba(15, 143, 139, .77) 100%),
    url("../../img/gasolinera-por-la-noche.jpg") center / cover no-repeat;
}

.catalog-hero::before,
.catalog-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.catalog-hero::before {
  width: 520px;
  height: 520px;
  top: -310px;
  left: -190px;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .025);
}

.catalog-hero::after {
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -280px;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, .025);
}

.catalog-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .75fr);
  gap: clamp(48px, 8vw, 104px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.catalog-hero__copy {
  max-width: 590px;
}

.catalog-eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-family: "Lato", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.catalog-hero .catalog-eyebrow {
  color: #9cf0ed;
}

.catalog-hero h1 {
  max-width: 610px;
  margin: 0 0 24px;
  color: #fff;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(43px, 5.2vw, 67px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.catalog-hero__copy > p:not(.catalog-eyebrow) {
  max-width: 540px;
  margin: 0;
  color: rgba(237, 255, 255, .82);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.catalog-search-types {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}

.catalog-search-types li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(198, 250, 248, .23);
  border-radius: 999px;
  color: rgba(244, 255, 255, .88);
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25px;
}

.info-busqueda {
    margin: 10px 0;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

.info-busqueda ul {
    margin: 0 0 8px;
    padding-left: 20px;
}

.info-busqueda li {
    margin: 2px 0;
}

.info-busqueda li::marker {
    color: #f8f7f2;
}

.info-busqueda p {
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.info-busqueda strong {
    color: #fff;
    font-weight: 600;
}

.catalog-search-card {
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 22px;
  color: #284e51;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 66px rgba(2, 48, 51, .25);
}

.catalog-search-card__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 23px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 22px rgba(9, 154, 152, .22);
}

.catalog-search-card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.catalog-search-card__label {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.catalog-search-card h2 {
  margin: 0 0 27px;
  color: #173f42;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.15;
}

.catalog-search-form label {
  display: block;
  margin-bottom: 9px;
  color: #375e61;
  font-size: 13px;
  font-weight: 700;
}

.catalog-search-control {
  min-height: 61px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(35, 119, 120, .26);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(20, 83, 86, .07);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.catalog-search-control:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 170, 168, .12), 0 9px 22px rgba(20, 83, 86, .08);
}

.catalog-search-control input {
  min-width: 0;
  padding: 0 17px;
  border: 0;
  border-radius: 12px 0 0 12px;
  color: #23474a;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.catalog-search-control input::placeholder {
  color: #87999b;
}

.catalog-search-control button {
  min-width: 120px;
  margin: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.catalog-search-control button:not(:disabled):hover,
.catalog-search-control button:not(:disabled):focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  outline: none;
}

.catalog-search-control button:disabled {
  opacity: .58;
}

.catalog-search-control button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.catalog-search-help {
  margin: 9px 0 0;
  color: #788d8f;
  font-size: 11px;
  line-height: 1.45;
}

.catalog-permit-warning {
  margin-top: 13px;
  padding: 16px 17px;
  border: 1px solid #edb8b8;
  border-left: 4px solid #bd5555;
  border-radius: 10px;
  color: #693c3c;
  background: #fff5f5;
  box-shadow: 0 8px 18px rgba(125, 52, 52, .08);
  font-size: 12px;
  line-height: 1.5;
}

.catalog-permit-warning[hidden] { display: none; }
.catalog-permit-warning h3 { margin: 0 0 8px; color: #8f3535; font-size: 14px; }
.catalog-permit-warning p { margin: 8px 0 0; }
.catalog-permit-warning ul { margin: 9px 0; padding-left: 20px; }
.catalog-permit-warning li + li { margin-top: 4px; }
.catalog-permit-warning code { padding: 2px 5px; border-radius: 4px; color: #703c3c; background: rgba(189, 85, 85, .1); font: 700 11px/1.35 Consolas, monospace; }

.catalog-status {
  min-height: 0;
  margin-top: 17px;
  padding: 12px 14px;
  border-radius: 9px;
  color: #365b5e;
  background: #edf8f7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.catalog-status:empty {
  display: none;
}

.catalog-status--error {
  color: #873d3d;
  background: #fff0f0;
}

.catalog-status--success {
  color: #176663;
  background: #e8f8f5;
}

.catalog-results {
  min-height: 570px;
  padding: clamp(66px, 8vw, 106px) 0 clamp(78px, 9vw, 124px);
  background:
    linear-gradient(rgba(24, 170, 168, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 170, 168, .03) 1px, transparent 1px),
    #f7fbfb;
  background-size: 52px 52px;
}

.catalog-results__intro {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
}

.catalog-results__intro h2 {
  margin: 0;
  color: #173f42;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(31px, 4vw, 45px);
  line-height: 1.1;
}

.catalog-results__intro > p {
  max-width: 430px;
  margin: 0;
  color: #6c8184;
  font-size: 13px;
  line-height: 1.6;
}

.catalog-results__content {
  min-height: 270px;
}

.catalog-empty-state,
.catalog-message-state,
.catalog-loading-state {
  min-height: 270px;
  padding: 44px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 1px dashed rgba(24, 170, 168, .3);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.catalog-empty-state__icon,
.catalog-message-state__icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: rgba(24, 170, 168, .1);
}

.catalog-empty-state__icon svg,
.catalog-message-state__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.catalog-empty-state h3,
.catalog-message-state h3 {
  margin: 0 0 8px;
  color: #294e51;
  font-family: "Lato", Arial, sans-serif;
  font-size: 20px;
}

.catalog-empty-state p,
.catalog-message-state p {
  max-width: 520px;
  margin: 0;
  color: #718588;
  font-size: 13px;
  line-height: 1.6;
}

.catalog-message-state--error {
  border-color: rgba(177, 72, 72, .28);
}

.catalog-message-state--error .catalog-message-state__icon {
  color: #a14a4a;
  background: #fff0f0;
}

.catalog-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 3px solid rgba(24, 170, 168, .17);
  border-top-color: var(--teal-dark);
  border-radius: 50%;
  animation: catalog-spin .75s linear infinite;
}

.catalog-loading-state p {
  margin: 0;
  color: #4e6f72;
  font-size: 13px;
  font-weight: 700;
}

@keyframes catalog-spin {
  to { transform: rotate(360deg); }
}

.catalog-match-heading {
  margin-bottom: 23px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-match-heading h3 {
  margin: 0 0 7px;
  color: #244b4e;
  font-family: "Lato", Arial, sans-serif;
  font-size: 23px;
}

.catalog-match-heading p {
  margin: 0;
  color: #6f8386;
  font-size: 13px;
}

.catalog-result-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(24, 170, 168, .1);
  font-size: 11px;
  font-weight: 800;
}

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

.catalog-match {
  min-height: 155px;
  padding: 23px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  gap: 16px;
  align-items: start;
  text-align: left;
  border: 1px solid rgba(24, 170, 168, .18);
  border-radius: 15px;
  color: #294e51;
  background: #fff;
  box-shadow: 0 11px 27px rgba(20, 77, 80, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-match:hover,
.catalog-match:focus-visible {
  border-color: rgba(24, 170, 168, .55);
  box-shadow: 0 17px 34px rgba(20, 77, 80, .12);
  transform: translateY(-3px);
  outline: none;
}

.catalog-match__badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-size: 12px;
  font-weight: 800;
}

.catalog-match__content strong {
  display: block;
  margin-bottom: 11px;
  color: #21474a;
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.catalog-match__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #718588;
  font-size: 11px;
  line-height: 1.4;
}

.catalog-match__arrow {
  padding-top: 12px;
  color: var(--teal-dark);
  font-size: 25px;
  line-height: 1;
}

.catalog-back-button {
  margin: 0 0 17px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(24, 170, 168, .25);
  border-radius: 9px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  transition: background-color .2s ease, border-color .2s ease;
}

.catalog-back-button:hover,
.catalog-back-button:focus-visible {
  border-color: var(--teal);
  background: #effaf9;
  outline: none;
}

.catalog-station {
  overflow: hidden;
  border: 1px solid rgba(24, 170, 168, .17);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 19px 46px rgba(19, 76, 79, .1);
}

.catalog-station__header {
  padding: clamp(27px, 4vw, 42px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  background: linear-gradient(118deg, #0a7473, #12a6a2);
}

.catalog-station__eyebrow {
  margin: 0 0 9px;
  color: #adf1ef;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.catalog-station__header h3 {
  max-width: 720px;
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(25px, 3.3vw, 38px);
  line-height: 1.15;
}

.catalog-station__number {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 800;
}

.catalog-station__body {
  padding: clamp(25px, 4vw, 42px);
}

.catalog-station__metadata {
  margin: 0 0 31px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-station__metadata div {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid rgba(24, 170, 168, .13);
  border-radius: 11px;
  background: #f6fbfb;
}

.catalog-station__metadata dt {
  margin-bottom: 6px;
  color: #7a8d8f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.catalog-station__metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #294e51;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.catalog-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 23px;
}

.catalog-detail-section {
  min-width: 0;
  padding: clamp(21px, 3vw, 29px);
  border: 1px solid rgba(24, 170, 168, .14);
  border-radius: 15px;
}

.catalog-detail-section__heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-detail-section__heading span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--teal-dark);
  background: rgba(24, 170, 168, .1);
  font-size: 17px;
  font-weight: 800;
}

.catalog-detail-section h4 {
  margin: 0;
  color: #274c4f;
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
}

.catalog-contact-list {
  display: grid;
  gap: 10px;
}

.catalog-contact {
  padding: 15px;
  border-radius: 10px;
  background: #f5fafa;
}

.catalog-contact__type {
  margin: 0 0 5px;
  color: #7c8f91;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.catalog-contact__value {
  margin: 0;
  overflow-wrap: anywhere;
  color: #31575a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.catalog-contact__actions {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-action-link {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  appearance: none;
  cursor: pointer;
  padding: 0 10px;
  font: inherit;
  border: 1px solid rgba(24, 170, 168, .22);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  transition: color .2s ease, background-color .2s ease;
}

.catalog-action-link:hover,
.catalog-action-link:focus-visible {
  color: #fff;
  background: var(--teal-dark);
  outline: none;
}

.catalog-action-link--whatsapp {
  color: #16864e;
  border-color: rgba(22, 134, 78, .23);
}

.catalog-action-link--whatsapp:hover,
.catalog-action-link--whatsapp:focus-visible {
  background: #16864e;
}

.catalog-no-data {
  margin: 0;
  padding: 16px;
  border-radius: 9px;
  color: #718588;
  background: #f5fafa;
  font-size: 12px;
  line-height: 1.55;
}

.catalog-no-data--notice {
  margin-top: 10px;
}

.catalog-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.catalog-schedule-table th,
.catalog-schedule-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(24, 170, 168, .12);
}

.catalog-schedule-table th {
  color: #738789;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.catalog-schedule-table td {
  color: #365b5e;
  font-weight: 700;
}

.catalog-schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .catalog-hero__layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .catalog-hero__copy {
    max-width: 650px;
  }

  .catalog-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .catalog-shell {
    width: min(calc(100% - 32px), 1180px);
  }

  .catalog-hero {
    padding: 56px 0 66px;
  }

  .catalog-hero__layout {
    gap: 40px;
  }

  .catalog-results__intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .catalog-matches {
    grid-template-columns: 1fr;
  }

  .catalog-station__metadata {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .catalog-hero h1 {
    font-size: clamp(39px, 12vw, 51px);
  }

  .catalog-search-types {
    gap: 7px;
  }

  .catalog-search-types li {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  .catalog-search-card {
    padding: 27px 20px;
    border-radius: 17px;
  }

  .catalog-search-control {
    display: block;
    padding: 5px;
  }

  .catalog-search-control input {
    width: 100%;
    height: 52px;
    padding: 0 12px;
    border-radius: 9px;
  }

  .catalog-search-control button {
    width: 100%;
    min-height: 49px;
    margin: 0;
  }

  .catalog-results {
    padding-top: 57px;
  }

  .catalog-match-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-match {
    min-height: 0;
    padding: 18px;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 12px;
  }

  .catalog-match__badge {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 10px;
  }

  .catalog-station__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-station__body {
    padding: 20px;
  }

  .catalog-detail-section {
    padding: 19px 16px;
  }

  .catalog-schedule-table,
  .catalog-schedule-table tbody,
  .catalog-schedule-table tr,
  .catalog-schedule-table td {
    display: block;
    width: 100%;
  }

  .catalog-schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .catalog-schedule-table tr {
    margin-bottom: 9px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f5fafa;
  }

  .catalog-schedule-table tr:last-child {
    margin-bottom: 0;
  }

  .catalog-schedule-table td {
    padding: 6px 0;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid rgba(24, 170, 168, .09);
  }

  .catalog-schedule-table td::before {
    content: attr(data-label);
    color: #7a8d8f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-spinner {
    animation-duration: 1.8s;
  }

  .catalog-match,
  .catalog-search-control button {
    transition: none;
  }

  .catalog-match:hover,
  .catalog-match:focus-visible,
  .catalog-search-control button:not(:disabled):hover,
  .catalog-search-control button:not(:disabled):focus-visible {
    transform: none;
  }
}
