/* ═══════════════════════════════════════════
   CONTACTO (rediseño)
═══════════════════════════════════════════ */

.ct-page {
  background: var(--bg);
  min-height: calc(100vh - var(--header-height, 68px));
  padding: 44px 0 72px;
}
.ct-wrap { max-width: var(--container, 1200px); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ct-wrap { padding: 0 24px; } }

/* Cabecera */
.ct-head { max-width: 640px; margin-bottom: 34px; }
.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.ct-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
}
.ct-head p { color: var(--ink-soft); font-size: 16px; margin: 10px 0 0; }

.ct-grid { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }

/* Columna de info */
.ct-info { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.ct-info-card {
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding: var(--space-5);
}
.ct-info-card:last-child { border-bottom: none; }
.ct-info-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ct-info-card__ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
}
.ct-info-card__ic svg { width: 20px; height: 20px; }
.ct-info-card h2 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.ct-info-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.ct-info-card a { color: var(--accent); font-weight: 600; word-break: break-word; text-decoration: none; }
.ct-info-card a:hover { text-decoration: underline; }
.ct-socials { display: flex; gap: 10px; margin-top: 4px; }
.ct-social {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.ct-social:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); transform: translateY(-2px); }
.ct-social svg { width: 19px; height: 19px; }

/* Card del formulario */
.ct-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.ct-form { display: flex; flex-direction: column; gap: 18px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--ink-faint); }
.ct-field input:focus,
.ct-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ct-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.ct-field.has-error input,
.ct-field.has-error textarea { border-color: var(--danger); }
.ct-field-error { font-size: 12.5px; color: var(--danger); line-height: 1.4; margin: 2px 0 0; }

/* Autocompletar del navegador: respetar el tema */
.ct-field input:-webkit-autofill,
.ct-field input:-webkit-autofill:hover,
.ct-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--ink);
  border-color: var(--border-strong);
  transition: background-color 9999s ease-in-out 0s;
}

/* Chips de asunto */
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ct-chip {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ct-chip:hover { color: var(--accent); border-color: var(--accent-border); }
.ct-chip.is-active { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }

/* Consentimiento */
.ct-consent-wrap { display: flex; flex-direction: column; gap: 4px; }
.ct-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.ct-consent input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.ct-consent a { color: var(--accent); text-decoration: underline; }
.ct-consent-wrap.has-error .ct-consent { color: var(--danger); }
.ct-consent-wrap.has-error input[type="checkbox"] { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 3px; }

/* Botón de envío */
.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-accent-sm);
  transition: background .15s ease, transform .1s ease;
}
.ct-submit:hover { background: var(--accent-strong); }
.ct-submit:active { transform: scale(.99); }
.ct-submit svg { width: 18px; height: 18px; }
.ct-formnote { font-size: 12px; color: var(--ink-faint); text-align: center; margin: 0; }

/* Honeypot */
.ct-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; pointer-events: none; }

@media (max-width: 860px) {
  .ct-page { padding: 30px 0 56px; }
  .ct-grid { grid-template-columns: 1fr; gap: 16px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-card { padding: 24px 20px; }
}
