/* ===========================
   SECCIÓN CONTACTO
   Mobile-first. Form arriba con 3 campos (nombre, teléfono, mensaje)
   + card lateral con datos de contacto.
   En desktop: form a la izquierda, datos a la derecha.
   =========================== */

.ctc {
  background: #fff;
  padding: 72px 22px 88px;
}

.ctc__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ---- Header ---- */
.ctc__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.ctc__title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1F252C;
}

.ctc__title-line {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: #F65F01;
  border-radius: 2px;
  margin-top: -2px;
}

.ctc__lead {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: #4A5560;
  font-weight: 400;
}

.ctc__lead strong {
  color: #1F252C;
  font-weight: 700;
}

/* ---- Form ---- */
.ctc__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.ctc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ctc__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F252C;
}

.ctc__input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: #1F252C;
  background: #fff;
  border: 1.5px solid #E3E6EA;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ctc__input::placeholder {
  color: #9AA4AF;
}

.ctc__input:hover {
  border-color: #CFD4DB;
}

.ctc__input:focus,
.ctc__input:focus-visible {
  outline: none;
  border-color: #F65F01;
  box-shadow: 0 0 0 3px rgba(246, 95, 1, 0.12);
}

.ctc__textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.ctc__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 16px 26px;
  background: #F65F01;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
  margin-top: 4px;
}

.ctc__submit:hover,
.ctc__submit:focus-visible {
  background: #D14E00;
  color: #fff;
}

.ctc__submit:active {
  transform: translateY(1px);
}

.ctc__submit:focus-visible {
  outline: 2px solid #F65F01;
  outline-offset: 3px;
}

/* ---- Mensaje de éxito ---- */
.ctc__success {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #0E8A50;
  background: #ECFDF3;
  border: 1px solid #B7E4C7;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
}

.ctc__success.is-visible {
  display: block;
  animation: ctc-success 0.3s ease;
}

@keyframes ctc-success {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Aside con datos de contacto ---- */
.ctc__aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid #E3E6EA;
  border-radius: 16px;
  padding: 6px 18px;
}

.ctc__info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid #EEF1F4;
  color: #1F252C;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ctc__info:last-child {
  border-bottom: none;
}

.ctc__info:hover,
.ctc__info:focus-visible {
  color: #1F252C;
}

.ctc__info-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: #F65F01;
  width: 22px;
  text-align: center;
}

.ctc__info-value {
  flex: 1;
  min-width: 0;
}

/* Bloque WhatsApp destacado al tope del aside */
.ctc__info--wsp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 4px;
}

.ctc__info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: #4A5560;
  line-height: 1.35;
}

.ctc__info-text strong {
  color: #F65F01;
  font-weight: 700;
  font-size: 15.5px;
}

.ctc__info-icon-wsp {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 22px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.12s ease;
}

.ctc__info--wsp:hover .ctc__info-icon-wsp,
.ctc__info--wsp:focus-visible .ctc__info-icon-wsp {
  background: #1EBE5D;
  transform: scale(1.05);
}

/* ---- Tablet (>= 768px) ---- */
@media (min-width: 768px) {
  .ctc {
    padding: 96px 32px 112px;
  }

  .ctc__lead {
    font-size: 16.5px;
    max-width: 56ch;
  }

  .ctc__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
  }

  .ctc__field:nth-child(3),
  .ctc__form > button,
  .ctc__success {
    grid-column: 1 / -1;
  }

  .ctc__submit {
    width: auto;
    padding: 16px 36px;
    justify-self: flex-start;
  }
}

/* ---- Desktop (>= 1024px): form + aside lado a lado ---- */
@media (min-width: 1024px) {
  .ctc {
    padding: 120px 40px 140px;
  }

  .ctc__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .ctc__main {
    flex: 1.4;
    min-width: 0;
  }

  .ctc__aside {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 96px;
    padding: 10px 22px;
  }

  .ctc__title {
    font-size: 3rem;
  }

  .ctc__lead {
    font-size: 17px;
  }
}

/* ---- Reveal heredado ---- */
#contacto .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#contacto .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ctc__main.reveal {
  transition-delay: 0.05s;
}

.ctc__aside.reveal {
  transition-delay: 0.15s;
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  #contacto .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .ctc__input,
  .ctc__submit,
  .ctc__info-icon-wsp {
    transition: none;
  }
}
