/* ── CP Contact ──────────────────────────────────────────────────────── */

.cp-contact {
  padding: 80px 0 96px;
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)),
    url('../img/fondo.jpg');
  background-size: 520px auto;
  background-repeat: repeat;
}

/* ── Hero ─── */
.cp-contact__hero {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.cp-contact__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6fbd4f;
  margin-bottom: 14px;
}

.cp-contact__hero h1 {
  margin: 0 0 16px;
  color: #162133;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-weight: 800;
}

.cp-contact__hero h1 span {
  color: #8bdc65;
  font-weight: 400;
}

.cp-contact__hero p {
  margin: 0 auto;
  max-width: 620px;
  color: #5f6672;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* ── Form wrap ─── */
.cp-contact__form-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.cp-contact__form-card {
  width: min(100%, 900px);
  background: #fff;
  border: 1px solid rgba(23, 23, 23, .08);
  border-radius: 20px;
  padding: 40px 38px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
}

.cp-contact__form-head {
  margin-bottom: 24px;
}

.cp-contact__form-head h2 {
  margin: 0 0 8px;
  color: #162133;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.cp-contact__form-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

/* ── Notices ─── */
.cp-contact__notice {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.65;
}

.cp-contact__notice.is-success {
  background: rgba(139, 220, 101, .12);
  border: 1px solid rgba(139, 220, 101, .3);
  border-left: 3px solid #8bdc65;
  color: #14532d;
}

.cp-contact__notice.is-error {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .2);
  border-left: 3px solid #ef4444;
  color: #991b1b;
}

/* ── Form ─── */
.cp-contact__form {
  display: grid;
  gap: 18px;
}

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

.cp-contact__field {
  display: grid;
  gap: 8px;
}

.cp-contact__field > span {
  color: #162133;
  font-size: .9rem;
  font-weight: 700;
}

.cp-contact__field input,
.cp-contact__field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 13px 15px;
  background: #fff;
  color: #162133;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.cp-contact__field input:focus,
.cp-contact__field textarea:focus {
  border-color: #8bdc65;
  box-shadow: 0 0 0 4px rgba(139, 220, 101, .14);
}

.cp-contact__field textarea {
  min-height: 160px;
  resize: vertical;
}

/* Contador de caracteres */
.cp-contact__char-count {
  font-size: .82rem;
  color: #9ca3af;
  text-align: right;
  margin-top: -4px;
  transition: color .2s;
}

.cp-contact__char-count.is-warning { color: #f59e0b; }
.cp-contact__char-count.is-limit   { color: #ef4444; font-weight: 700; }

/* Honeypot */
.cp-contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Acciones ─── */
.cp-contact__form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  margin-top: 4px;
}

.cp-contact__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #6fbd4f;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.cp-contact__submit:hover {
  background: #5aa83c;
  transform: translateY(-1px);
}

.cp-contact__form-actions p {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
  font-size: .86rem;
  text-align: center;
}

.cp-contact__form-actions p i {
  color: #8bdc65;
  flex-shrink: 0;
}

/* ── Tarjetas ─── */
.cp-contact__cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cp-contact__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border: 1px solid rgba(139, 220, 101, .3);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

/* Info items (tarjeta Datos de contacto) */
.cp-contact__info {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.cp-contact__info-item strong {
  display: block;
  margin-bottom: 6px;
  color: #162133;
  font-size: .93rem;
  font-weight: 800;
}

.cp-contact__info-item span {
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.6;
}

.cp-contact__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 220, 101, .10);
  color: #6fbd4f;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cp-contact__card h2 {
  margin: 0;
  color: #162133;
  font-size: 1.1rem;
  font-weight: 800;
}

.cp-contact__card p {
  margin: 0;
  color: #6b7280;
  font-size: .93rem;
  line-height: 1.68;
  flex: 1;
}

.cp-contact__meta {
  color: #6fbd4f;
  font-size: .86rem;
  font-weight: 700;
}

.cp-contact__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 40px;
  border: 1.5px solid #8bdc65;
  border-radius: 8px;
  background: transparent;
  color: #3a8a25;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  align-self: flex-start;
  margin-top: auto;
  white-space: nowrap;
}

.cp-contact__card-btn:hover {
  background: #8bdc65;
  border-color: #8bdc65;
  color: #0f3d06;
}

/* ── Responsive ─── */
@media (max-width: 1080px) {
  .cp-contact__cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cp-contact {
    padding: 60px 0 72px;
  }

  .cp-contact__hero {
    margin-bottom: 36px;
  }

  .cp-contact__form-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .cp-contact__field-grid {
    grid-template-columns: 1fr;
  }

  .cp-contact__form-actions {
    align-items: stretch;
  }

  .cp-contact__submit {
    justify-content: center;
  }
}
