/* =========================================================
   CAB INGENIERÍA BIOMÉDICA
   PÁGINA CONTACTO
   Usa ../styles.css como base
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.site-menu a.is-current {
  color: var(--teal-400);
}

.site-header.is-scrolled .site-menu a.is-current {
  color: #008f96;
}


/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 90px;
  background:
    radial-gradient(
      circle at 84% 15%,
      rgba(53, 199, 200, 0.24),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #06172c 0%,
      #092b50 52%,
      #0b4163 100%
    );
}

.contact-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contact-hero__glow--one {
  top: 70px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: rgba(53, 199, 200, 0.09);
  filter: blur(80px);
}

.contact-hero__glow--two {
  left: 38%;
  bottom: -360px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(102, 222, 217, 0.13);
}

.contact-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
  gap: 90px;
  align-items: center;
}

.contact-hero__copy {
  max-width: 760px;
}

.contact-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.2rem, 6vw, 6.1rem);
  line-height: 1.01;
  letter-spacing: -0.058em;
}

.contact-hero h1 span {
  display: block;
  color: var(--teal-400);
}

.contact-hero__lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.07rem;
  line-height: 1.82;
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}

.contact-hero__proof li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.76rem;
  font-weight: 700;
}

.contact-hero__proof li::before {
  content: "";
  position: absolute;
  top: 0.43em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
}


/* Panel derecho */

.contact-hero__panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.045)
    );
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.contact-hero__panel-kicker {
  margin: 0 0 22px;
  color: var(--teal-400);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-hero__quick {
  display: grid;
}

.contact-hero__quick article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.contact-hero__quick article:first-child {
  padding-top: 0;
}

.contact-hero__quick article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--teal-400);
  background: rgba(102, 222, 217, 0.09);
  font-size: 0.68rem;
  font-weight: 800;
}

.contact-hero__quick small,
.contact-hero__quick strong {
  display: block;
}

.contact-hero__quick small {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
}

.contact-hero__quick strong {
  color: var(--white);
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-hero__panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-hero__panel-link span {
  color: var(--teal-400);
  font-size: 1.1rem;
}


/* =========================================================
   RUTAS DE CONTACTO
   ========================================================= */

.contact-paths {
  position: relative;
  z-index: 4;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.contact-paths__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-path-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 25px;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  background: var(--white);
  transition:
    background-color 0.22s ease,
    transform 0.22s ease;
}

.contact-path-card:first-child {
  border-left: 1px solid var(--line);
}

.contact-path-card:hover {
  background: #f1fafb;
  transform: translateY(-3px);
}

.contact-path-card__number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 12px;
  color: var(--teal-500);
  background: var(--cyan-100);
  font-size: 0.68rem;
  font-weight: 800;
}

.contact-path-card strong {
  color: var(--navy-900);
  font-size: 0.95rem;
}

.contact-path-card p {
  margin: 9px 0 20px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.contact-path-card b {
  margin-top: auto;
  color: #087b84;
  font-size: 0.7rem;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.contact-main {
  padding-top: 125px;
  padding-bottom: 125px;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 90px;
  align-items: start;
}

.contact-main__copy {
  position: sticky;
  top: 125px;
}

.contact-main__copy h2 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.052em;
}

.contact-main__copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 24px 0 30px;
  color: var(--muted);
  line-height: 1.8;
}

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

.contact-main__features article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-main__features article > span {
  color: var(--teal-500);
  font-size: 0.68rem;
  font-weight: 800;
}

.contact-main__features strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
}

.contact-main__features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}


/* Caja del formulario */

.contact-form-page {
  padding: 36px;
  border: 1px solid #d9e6e9;
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f5fbfb
    );
  box-shadow: 0 28px 75px rgba(8, 34, 63, 0.1);
}

.contact-form-page__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-form-page__header p,
.contact-form-page__header span {
  margin: 0;
}

.contact-form-page__header p {
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
}

.contact-form-page__header span {
  color: var(--muted);
  font-size: 0.66rem;
}

.contact-form-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form-page__full {
  grid-column: 1 / -1;
}

.contact-form-page label {
  display: grid;
  gap: 8px;
}

.contact-form-page label > span {
  color: var(--navy-900);
  font-size: 0.7rem;
  font-weight: 800;
}

.contact-form-page input,
.contact-form-page select,
.contact-form-page textarea {
  width: 100%;
  border: 1px solid #dce7ea;
  border-radius: 13px;
  outline: none;
  color: var(--navy-900);
  background: var(--white);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form-page input,
.contact-form-page select {
  min-height: 49px;
  padding: 0 14px;
}

.contact-form-page textarea {
  min-height: 145px;
  padding: 14px;
  resize: vertical;
}

.contact-form-page input::placeholder,
.contact-form-page textarea::placeholder {
  color: #9ba7ad;
}

.contact-form-page input:focus,
.contact-form-page select:focus,
.contact-form-page textarea:focus {
  border-color: rgba(34, 180, 188, 0.78);
  box-shadow: 0 0 0 4px rgba(53, 199, 200, 0.1);
}

.contact-form-page__submit {
  width: 100%;
  margin-top: 22px;
}

.contact-form-page__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
  text-align: center;
}


/* =========================================================
   UBICACIÓN
   ========================================================= */

.location-section {
  padding: 0 0 120px;
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 62px;
  align-items: center;
}

.location-map {
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--ice);
  box-shadow: 0 24px 68px rgba(8, 34, 63, 0.08);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 570px;
  border: 0;
}

.location-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.location-info {
  display: grid;
  gap: 8px;
  margin-top: 31px;
}

.location-info article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.location-info article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-500);
  background: var(--cyan-100);
  font-size: 0.66rem;
  font-weight: 800;
}

.location-info small,
.location-info strong {
  display: block;
}

.location-info small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.64rem;
}

.location-info strong {
  color: var(--navy-900);
  font-size: 0.82rem;
  line-height: 1.55;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}


/* =========================================================
   PROCESO
   ========================================================= */

.contact-process {
  background: #eef8f8;
}

.contact-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-process__grid article {
  min-height: 245px;
  padding: 27px;
  border: 1px solid #d3e5e8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.contact-process__grid article > span {
  display: block;
  margin-bottom: 52px;
  color: #8fd7d9;
  font-size: 2.1rem;
  font-weight: 800;
}

.contact-process__grid h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.contact-process__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}


/* =========================================================
   CTA FINAL
   ========================================================= */

.contact-final {
  padding: 100px 0;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 90% 16%,
      rgba(53, 199, 200, 0.34),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #06172c,
      #0b4568
    );
}

.contact-final__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: center;
}

.contact-final__copy {
  max-width: 760px;
}

.contact-final h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.contact-final__copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.contact-final__actions {
  display: grid;
  gap: 10px;
  min-width: 245px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

  .contact-hero__grid {
    gap: 50px;
  }

  .contact-main__grid,
  .location-grid {
    gap: 55px;
  }
}


@media (max-width: 860px) {

  .contact-hero {
    min-height: auto;
  }

  .contact-hero__grid,
  .contact-main__grid,
  .location-grid,
  .contact-final__shell {
    grid-template-columns: 1fr;
  }

  .contact-hero__panel {
    max-width: 600px;
  }

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

  .contact-path-card:nth-child(2) {
    border-right: 0;
  }

  .contact-main__copy {
    position: static;
  }

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

  .contact-final__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}


@media (max-width: 620px) {

  .contact-hero {
    padding: 125px 0 72px;
  }

  .contact-hero h1 {
    font-size: clamp(3rem, 15vw, 4.65rem);
  }

  .contact-hero__lead {
    font-size: 0.96rem;
  }

  .contact-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-hero__actions .btn {
    width: 100%;
  }

  .contact-hero__proof {
    display: grid;
    gap: 9px;
  }

  .contact-hero__panel {
    padding: 25px;
    border-radius: 24px;
  }

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

  .contact-path-card,
  .contact-path-card:first-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-main {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .contact-main__grid {
    gap: 38px;
  }

  .contact-form-page {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .contact-form-page__header {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

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

  .contact-form-page__full {
    grid-column: auto;
  }

  .location-section {
    padding-bottom: 78px;
  }

  .location-map,
  .location-map iframe {
    min-height: 400px;
    height: 400px;
  }

  .location-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .location-actions .btn,
  .location-actions .text-link {
    width: 100%;
  }

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

  .contact-final {
    padding: 78px 0;
  }

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

  .contact-final__actions .btn {
    width: 100%;
  }
}
