/* ============================================================
   CONTACTO — contact.css
   Ubicar en: web/css/contact.css
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.ct-hero {
  background-color: #2e7d32;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 64px 24px 72px;
  text-align: center;

   /* Para hacer el efecto de "full bleed" en desktop: */
   margin-left: calc(-50vw + 50%);
   margin-right: calc(-50vw + 50%);
   padding-left: calc(50vw - 50%);
   padding-right: calc(50vw - 50%);
   margin-top: -65px;
}

.ct-hero__inner { max-width: 600px; margin: 0 auto; }

.ct-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.ct-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
}

.ct-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}

/* ── LAYOUT PRINCIPAL ─────────────────────────────────────── */
.ct-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── FORMULARIO ───────────────────────────────────────────── */
.ct-form-wrap {
  background: #fff;
  border: 1px solid #e8f5e9;
  border-radius: 12px;
  padding: 40px;
}

.ct-form__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.ct-form__subtitle {
  font-size: .88rem;
  color: #888;
  margin-bottom: 28px;
}

.ct-required { color: #e53935; margin-left: 2px; }
.ct-optional { color: #aaa; font-size: .8rem; font-weight: 400; }

/* Grid de campos */
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-field--full { width: 100%; }

.ct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ct-form { display: flex; flex-direction: column; gap: 20px; }

/* Label */
.ct-label {
  font-size: .85rem;
  font-weight: 600;
  color: #333;
}

/* Inputs */
.ct-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .93rem;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  font-family: inherit;
}

.ct-input:focus {
  border-color: #2e7d32;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,125,50,.1);
}

.ct-input--error {
  border-color: #e53935;
  background: #fff8f8;
}

.ct-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* Error message de Yii */
.ct-field .help-block, .help-block-error {
  font-size: .8rem;
  color: #e53935;
  margin-top: 2px;
}

/* Contador de caracteres */
.ct-char-count {
  font-size: .78rem;
  color: #bbb;
  text-align: right;
  margin-top: 4px;
}

/* ── TIPO DE CONSULTA ─────────────────────────────────────── */
.ct-tipo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.ct-tipo-card { cursor: pointer; }

.ct-tipo-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.ct-tipo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  transition: all .2s;
  text-align: center;
}

.ct-tipo-emoji { font-size: 1.6rem; line-height: 1; }

.ct-tipo-label {
  font-size: .75rem;
  font-weight: 600;
  color: #555;
  line-height: 1.2;
}

.ct-tipo-card:hover .ct-tipo-inner {
  border-color: #2e7d32;
  background: #f1f8f1;
}

.ct-tipo-card--active .ct-tipo-inner {
  border-color: #2e7d32;
  background: #e8f5e9;
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}

.ct-tipo-card--active .ct-tipo-label { color: #2e7d32; }

/* Error tipo consulta */
.ct-error {
  font-size: .8rem;
  color: #e53935;
  margin-top: 6px;
}

/* ── BOTONES ──────────────────────────────────────────────── */
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}

.ct-btn--primary {
  background: #2e7d32;
  color: #fff;
}

.ct-btn--primary:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,.3);
  color: #fff;
}

.ct-btn--full { width: 100%; }

/* ── ÉXITO ────────────────────────────────────────────────── */
.ct-success {
  text-align: center;
  padding: 48px 24px;
}

.ct-success__icon { font-size: 3rem; margin-bottom: 16px; }

.ct-success__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 12px;
}

.ct-success__text {
  font-size: .97rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── ASIDE ────────────────────────────────────────────────── */
.ct-aside { display: flex; flex-direction: column; gap: 20px; }

.ct-aside__block {
  background: #fff;
  border: 1px solid #e8f5e9;
  border-radius: 12px;
  padding: 28px 24px;
}

.ct-aside__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.ct-aside__text {
  font-size: .85rem;
  color: #777;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Redes sociales */
.ct-socials { display: flex; flex-direction: column; gap: 10px; }

.ct-social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-decoration: none;
  transition: all .2s;
  background: #fafafa;
}

.ct-social:hover { transform: translateX(4px); border-color: currentColor; }

.ct-social__icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: #fff;
}

.ct-social__info { display: flex; flex-direction: column; }

.ct-social__name {
  font-size: .82rem;
  font-weight: 700;
  color: #1a1a1a;
}

.ct-social__handle { font-size: .75rem; color: #888; }

/* Colores por red */
.ct-social--fb .ct-social__icon  { background: #1877f2; }
.ct-social--fb:hover              { border-color: #1877f2; background: #f0f5ff; }

.ct-social--ig .ct-social__icon  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.ct-social--ig:hover              { border-color: #dc2743; background: #fff5f5; }

.ct-social--tk .ct-social__icon  { background: #010101; }
.ct-social--tk:hover              { border-color: #010101; background: #f5f5f5; }

.ct-social--yt .ct-social__icon  { background: #ff0000; }
.ct-social--yt:hover              { border-color: #ff0000; background: #fff5f5; }

/* Email card */
.ct-aside__block--email { border-color: #c8e6c9; background: #f9fdf9; }

.ct-email-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ct-email-icon {
  font-size: 1.5rem;
  width: 42px; height: 42px;
  background: #e8f5e9;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ct-email-label {
  font-size: .75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 3px;
}

.ct-email-addr {
  font-size: .88rem;
  font-weight: 600;
  color: #2e7d32;
  text-decoration: none;
  word-break: break-all;
}

.ct-email-addr:hover { text-decoration: underline; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .ct-main {
    grid-template-columns: 1fr;
    padding: 36px 20px 60px;
    gap: 28px;
  }

  /* Aside va después del form */
  .ct-aside { order: 2; }
}

@media (max-width: 560px) {
  .ct-form-wrap { padding: 24px 18px; }

  .ct-field-row { grid-template-columns: 1fr; gap: 16px; }

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

  .ct-hero { padding: 48px 20px 56px; }
}