body {
  background: #f5f5f7;
}

.hero-header {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: var(--hero-viewport-height, 100dvh);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: var(--hero-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("../images/familia_feliz.jpg");
  background-size: cover;
  background-position: center 42%;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-topbar-wrap,
.hero-search-wrap {
  position: relative;
  z-index: 2;
}

.hero-topbar-wrap {
  padding-top: clamp(16px, 5vh, 52px);
}

.hero-search-wrap {
  margin-top: auto;
  padding-bottom: clamp(12px, 5vh, 62px);
}

@media (max-width: 900px) {
  .hero-search-wrap {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  }
}

@media (max-height: 760px) {
  .hero-topbar-wrap {
    padding-top: 12px;
  }

  .landing-search-panel {
    padding: 14px 16px;
    border-radius: 20px;
  }

  .landing-headline {
    margin-bottom: 12px;
    font-size: 22px;
  }

  .landing-picker,
  .landing-search-btn {
    height: 52px;
  }
}

@media (max-width: 900px) and (max-height: 760px) {
  .topbar-compact {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar-compact img {
    height: 44px !important;
    width: auto;
  }

  .landing-search-form {
    gap: 10px;
  }

  .landing-picker,
  .landing-search-btn {
    height: 48px;
  }

  .landing-picker .picker-text {
    font-size: 14px;
  }
}

.landing-search-panel {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.1);
  padding: 16px 24px;
}

.landing-headline {
  margin: 0 0 16px;
  text-align: center;
  color: var(--dark-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .landing-headline {
    font-size: 28px;
  }
}

.landing-search-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 860px) {
  .landing-search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .landing-search-form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.landing-field-wrap {
  min-width: 0;
}

.landing-picker,
.landing-search-btn {
  width: 100%;
  height: 56px;
  border-radius: 14px;
}

.landing-picker {
  border: 1px solid #d1d5db;
  background: rgba(243, 244, 246, 0.9);
  color: var(--dark-text);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.landing-picker .picker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
}

.landing-picker :is(i, .cg-icon) {
  font-size: 14px;
  color: #4b5563;
}

.landing-picker:focus-visible {
  outline: 2px solid #9ca3af;
  outline-offset: 2px;
}

.landing-search-btn {
  border: 1px solid #d1d5db;
  background: #bfc0c4;
  color: #353d47;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.landing-search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.landing-search-btn.is-active {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #ffffff;
  font-weight: 700;
}

.picker-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 60;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.picker-dialog.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.picker-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.picker-dialog-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(92vw, 420px);
  max-height: min(78vh, 520px);
  border-radius: 18px;
  background: rgba(233, 219, 219, 0.98);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.picker-dialog-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.picker-dialog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.25;
}

.picker-dialog-close {
  display: none;
}

.picker-dialog-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  padding: 0 12px;
  min-height: 48px;
}

.picker-dialog-search-wrap :is(i, .cg-icon) {
  color: #5c4f4f;
  font-size: 18px;
}

.picker-dialog-search {
  width: 100%;
  border: 0;
  background: transparent;
  color: #5c4f4f;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.picker-dialog-search::placeholder {
  color: #5c4f4f;
  opacity: 1;
}

.picker-dialog-options {
  overflow-y: auto;
  min-height: 110px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.picker-option {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  color: var(--dark-text);
  text-align: left;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.picker-option.is-selected {
  color: var(--dark-text);
  background: rgba(188, 3, 1, 0.08);
}

.picker-empty {
  margin: 10px 0 0;
  color: #5c4f4f;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 960px) {
  .picker-dialog-panel {
    width: min(92vw, 420px);
  }

  .picker-dialog-title {
    font-size: 18px;
  }

  .picker-dialog-search-wrap {
    min-height: 48px;
  }

  .picker-dialog-search-wrap :is(i, .cg-icon) {
    font-size: 18px;
  }

  .picker-dialog-search {
    font-size: 16px;
  }

  .picker-option {
    padding: 12px 10px;
    font-size: 16px;
  }

  .picker-empty {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .picker-dialog-panel {
    width: calc(100% - 20px);
    padding: 14px;
  }

  .picker-dialog-title {
    font-size: 17px;
  }

  .picker-dialog-search-wrap {
    min-height: 44px;
    border-radius: 10px;
  }

  .picker-dialog-search-wrap :is(i, .cg-icon) {
    font-size: 16px;
  }

  .picker-dialog-search {
    font-size: 15px;
  }

  .picker-option {
    padding: 10px 8px;
    font-size: 15px;
  }
}

.home-services {
  padding-top: 24px;
  padding-bottom: 12px;
}

.home-featured {
  padding-top: 12px;
  padding-bottom: 12px;
}

.home-highlight-block {
  margin-top: 28px;
}

.home-highlight-empty {
  margin: 28px 0 0;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

.max-1100 {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.home-section-title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

.services-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 750px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.landing-service-card {
  height: 280px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.landing-service-title {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.2;
}

.landing-service-description {
  margin: 8px 0 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.landing-service-link {
  margin-top: auto;
  color: var(--brand-red);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.home-allies {
  padding-top: 12px;
  padding-bottom: 24px;
}

@media (max-width: 899px) {
  .home-highlight-block .highlight-nav-btn {
    display: none;
  }

  .home-highlight-block .highlight-rail {
    padding: 6px 0 10px;
  }
}

.allies-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 30px;
}

@media (max-width: 899px) {
  .allies-row {
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .allies-row::-webkit-scrollbar {
    display: none;
  }
}

.ally-item {
  width: 200px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ally-avatar {
  margin: 1px 5px 5px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 246, 255, 0.8));
  border: 1.3px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    -4px -5px 14px rgba(255, 255, 255, 0.55),
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.06);
}

.ally-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ally-label {
  margin-top: 14px;
  color: var(--brand-red);
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
