/* ===== cta.css — CTA con formulario de contacto ===== */

.cta {
  background: #f5f5f3;
  padding: 100px 0;
}

.cta-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* ===== Header ===== */
.cta-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.cta-eyebrow-line {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2271b2, #018a38);
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0 0 1rem;
}

.cta-title-grad {
  color: #2c8fd6;
}

.cta-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: #6B7280;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Card del formulario ===== */
.form-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: .4rem;
}

.form-input {
  width: 100%;
  background: #f9f9f7;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: .85rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  color: var(--black);
  outline: none;
  transition: border-color .2s ease;
}

.form-input:focus {
  border-color: #2271b2;
}

.form-input::placeholder {
  color: #aaa;
}

.form-select {
  cursor: pointer;
}

/* Placeholder gris del select cuando no hay selección */
.form-select:invalid {
  color: #aaa;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* ===== Botón submit ===== */
.form-submit {
  width: 100%;
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #018a38;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.form-submit span {
  transition: transform .2s ease;
}

.form-submit:hover {
  transform: translateY(-1px);
  background: #016b2c;
}

.form-submit:hover span {
  transform: translateX(3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .cta {
    padding: 72px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 1.6rem;
  }
}

/* ══════════════════════════════════
   Ventanas de feedback del formulario (éxito / error)
   (mismo estilo glass que las de reportes, prefijo cta-)
══════════════════════════════════ */
.cta-feedback {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.cta-feedback.is-open {
  opacity: 1;
  visibility: visible;
}

.cta-feedback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cta-feedback-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: scale(0.95);
  transition: transform .3s;
}

.cta-feedback.is-open .cta-feedback-card {
  transform: scale(1);
}

.cta-feedback-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-feedback-icon i {
  font-size: 36px;
}

.cta-feedback-icon--ok {
  background: rgba(1, 138, 56, .18);
  border: 1px solid rgba(1, 138, 56, .4);
}

.cta-feedback-icon--ok i {
  color: #2fbd6a;
}

.cta-feedback-icon--err {
  background: rgba(226, 75, 74, .18);
  border: 1px solid rgba(226, 75, 74, .4);
}

.cta-feedback-icon--err i {
  color: #f08584;
  font-size: 34px;
}

.cta-feedback-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 .5rem;
}

.cta-feedback-text {
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .65);
  margin: 0 0 1.5rem;
}

.cta-feedback-btn {
  width: 100%;
  padding: .8rem;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  background: #2271b2;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.cta-feedback-btn:hover {
  background: #1b5e96;
  transform: translateY(-2px);
}
