/* =====================================================
   CONTACTO
===================================================== */

.ct-shell {
  padding-left: 2rem;
  padding-right: 2rem;
}


/* =====================================================
   BLOQUE PRINCIPAL
===================================================== */

.ct-main {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.ct-main-grid {
  display: grid;
  gap: 5rem;
}


/* =====================================================
   INTRO
===================================================== */

.ct-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.ct-kicker > span:first-child {
  width: 2rem;
  height: 1px;

  background: currentColor;

  opacity: .4;
}

.ct-title {
  margin-top: 2.5rem;

  max-width: 16ch;

  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;

  line-height: .95;
  letter-spacing: -.01em;

  text-transform: uppercase;
}

.ct-title i {
  font-style: normal;
  font-weight: 400;
}

.ct-lead {
  margin-top: 2rem;

  max-width: 36rem;

  color: var(--muted-foreground);

  font-size: 1rem;
  line-height: 1.75;
}


/* =====================================================
   DATOS DE CONTACTO
===================================================== */

.ct-data {
  margin: 4rem 0 0;
}

.ct-data-item {
  padding: 1.5rem 0;

  border-top: 1px solid var(--border);
}

.ct-data-item:last-child {
  border-bottom: 1px solid var(--border);
}

.ct-data-item dt,
.ct-data-item dd {
  margin: 0;
}

.ct-data-item dd {
  margin-top: .75rem;

  font-size: .9rem;
  line-height: 1.6;
}

.ct-data-item a {
  position: relative;
}

.ct-data-item a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: currentColor;

  transition: width .25s ease;
}

.ct-data-item a:hover::after {
  width: 100%;
}

.ct-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}


/* =====================================================
   BARRAS DE MARCA
===================================================== */

.ct-brand-bars {
  margin-top: 3rem;

  display: flex;
  align-items: center;
  gap: .5rem;
}

.ct-brand-bars span {
  width: 2rem;
  height: 3px;
}


/* =====================================================
   FORMULARIO
===================================================== */

.ct-form {
  display: flex;
  flex-direction: column;

  gap: 2rem;

  padding: 2rem;

  border: 1px solid var(--border);

  background:
    color-mix(
      in oklab,
      var(--secondary) 45%,
      var(--background)
    );
}

.ct-field {
  position: relative;
}

.ct-field label {
  display: block;
}

.ct-field input,
.ct-field textarea {
  width: 100%;

  margin-top: .75rem;

  padding: .9rem 0;

  border: 0;
  border-bottom: 1px solid var(--border);

  border-radius: 0;

  background: transparent;
  color: var(--foreground);

  font-family: var(--font-mono);
  font-size: .95rem;

  outline: none;

  transition:
    border-color .25s ease,
    background .25s ease;
}

.ct-field textarea {
  min-height: 130px;

  resize: vertical;
}

.ct-field input:focus,
.ct-field textarea:focus {
  border-bottom-color: var(--ink);
}

.ct-field-error {
  min-height: 1rem;

  margin-top: .5rem;

  font-size: .7rem;
  line-height: 1.4;
}

.ct-submit {
  width: fit-content;

  margin-top: .5rem;

  display: inline-flex;
  align-items: center;
  gap: .75rem;

  padding: .9rem 1.25rem;

  border: 0;

  background: var(--ink);
  color: var(--cream);

  cursor: pointer;

  transition:
    transform .25s ease,
    gap .25s ease;
}

.ct-submit:hover {
  transform: translateY(-2px);
  gap: 1rem;
}

.ct-submit span {
  transition: transform .25s ease;
}

.ct-submit:hover span {
  transform: translateX(3px);
}

.ct-form-message {
  min-height: 1.25rem;

  font-size: .8rem;
  line-height: 1.5;
}


/* =====================================================
   UBICACIÓN
===================================================== */

.ct-location {
  overflow: hidden;
}

.ct-location-grid {
  display: grid;
}

.ct-location-copy {
  padding: 5rem 2rem;
}

.ct-yellow-line {
  background: var(--brand-yellow) !important;
  opacity: 1 !important;
}

.ct-location-copy h2 {
  margin-top: 2.5rem;

  max-width: 15ch;

  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;

  line-height: .95;
  letter-spacing: -.01em;

  text-transform: uppercase;
}

.ct-location-copy p {
  margin-top: 2rem;

  max-width: 32rem;

  color: var(--muted-foreground);

  font-size: .95rem;
  line-height: 1.7;
}

.ct-map-link {
  margin-top: 2.5rem;

  display: inline-flex;
  align-items: center;
  gap: .75rem;

  padding-bottom: .35rem;

  border-bottom: 1px solid var(--ink);

  transition: gap .25s ease;
}

.ct-map-link:hover {
  gap: 1rem;
}


/* =====================================================
   MAPA
===================================================== */

.ct-map {
  min-height: 400px;

  background: var(--secondary);
}

.ct-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;

  display: block;

  border: 0;

  filter: grayscale(1);
}


/* =====================================================
   DEMO
===================================================== */

.ct-demo {
  background: var(--brand-teal);
  color: var(--ink);
}

.ct-demo .ct-shell {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.ct-demo-grid {
  display: grid;
  gap: 3rem;
}

.ct-demo h2 {
  margin-top: 1.5rem;

  max-width: 15ch;

  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;

  line-height: .95;
  letter-spacing: -.01em;

  text-transform: uppercase;
}

.ct-demo-grid > div > p {
  margin-top: 1.75rem;

  max-width: 34rem;

  font-size: .95rem;
  line-height: 1.7;

  opacity: .8;
}


/* =====================================================
   FORMULARIO DEMO
===================================================== */

.ct-demo-form {
  align-self: end;
}

.ct-demo-fields {
  display: grid;
  gap: .75rem;
}

.ct-demo-fields input {
  width: 100%;

  padding: .95rem 1rem;

  border: 1px solid
    color-mix(
      in oklab,
      var(--ink) 25%,
      transparent
    );

  border-radius: 0;

  background:
    color-mix(
      in oklab,
      white 18%,
      transparent
    );

  color: var(--ink);

  font-family: var(--font-mono);
  font-size: .85rem;

  outline: none;
}

.ct-demo-fields input::placeholder {
  color:
    color-mix(
      in oklab,
      var(--ink) 60%,
      transparent
    );
}

.ct-demo-fields input:focus {
  border-color: var(--ink);
}

.ct-demo-button {
  width: fit-content;

  margin-top: 1rem;

  padding: .9rem 1.25rem;

  display: inline-flex;
  align-items: center;
  gap: .75rem;

  border: 0;

  background: var(--ink);
  color: var(--cream);

  cursor: pointer;

  transition:
    transform .25s ease,
    gap .25s ease;
}

.ct-demo-button:hover {
  transform: translateY(-2px);
  gap: 1rem;
}

.ct-demo-note {
  margin-top: 1rem;

  max-width: 32rem;

  font-size: .72rem;
  line-height: 1.5;

  opacity: .65;
}

.ct-demo-message {
  min-height: 1.25rem;

  margin-top: .75rem;

  font-size: .75rem;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (min-width: 768px) {

  .ct-title {
    font-size: 3.5rem;
  }

  .ct-lead {
    font-size: 1.0625rem;
  }

  .ct-form {
    padding: 2.5rem;
  }

  .ct-location-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .ct-location-copy {
    padding: 6rem 3rem;
  }

  .ct-location-copy h2 {
    font-size: 3rem;
  }

  .ct-map,
  .ct-map iframe {
    min-height: 520px;
  }

  .ct-demo-grid {
    grid-template-columns:
      1fr 1fr;

    gap: 5rem;

    align-items: end;
  }

  .ct-demo h2 {
    font-size: 3rem;
  }

}


@media (min-width: 1024px) {

  .ct-shell {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .ct-main {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .ct-main-grid {
    grid-template-columns:
      1fr 1fr;

    gap: 8rem;

    align-items: start;
  }

  .ct-title {
    font-size: 4.5rem;
  }

  .ct-form {
    padding: 3rem;
  }

  .ct-location-copy {
    padding:
      7rem
      4rem;
  }

  .ct-location-copy h2 {
    font-size: 3.75rem;
  }

  .ct-map,
  .ct-map iframe {
    min-height: 600px;
  }

  .ct-demo .ct-shell {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .ct-demo h2 {
    font-size: 3.75rem;
  }

}