/*
 * Contacto (entrega del 22 de octubre de 2026): formulario con etiquetas arriba en frase normal, campos de
 * 48 px, errores debajo de cada campo y resumen arriba; en computador, columna de ayuda a la derecha.
 * Diseño primero para celular: base hasta 767 px, tableta desde 768 px y computador desde 1024 px.
 * Clases con prefijo ct- para no chocar con Bootstrap 2 ni con las hojas heredadas. Trabaja con
 * nosotros usa esta misma base de formularios y agrega lo suyo en trabaje-caprino.css.
 */
.ct { --ct-gutter: 16px; --ct-radio: 10px; --ct-borde-campo: #8c8c8c; --ct-error: var(--rojo, #92151b); font: 400 16px/1.5 var(--fuente-texto, Roboto, Arial, sans-serif); color: var(--tinta, #363636); }
.ct *, .ct *::before, .ct *::after { box-sizing: border-box; }
.ct :where(a) { color: inherit; }
.ct h1, .ct h2, .ct h3 { font-family: var(--fuente-titulo, 'Roboto Condensed', Arial, sans-serif); font-weight: var(--peso-titulo, 500); line-height: 1.15; margin: 0; color: inherit; text-transform: none; letter-spacing: 0; }
.ct p { margin: 0; }
.ct ul, .ct ol { margin: 0; padding: 0; list-style: none; }
.ct [hidden] { display: none !important; }
.ct :focus-visible { outline: 3px solid var(--rojo, #92151b); outline-offset: 2px; }
.ct-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--ct-gutter); }

/* Botones (mínimo 44 px de alto para el dedo) */
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: var(--peso-fuerte, 500) 15px/1 var(--fuente-texto, Roboto, Arial, sans-serif); letter-spacing: .02em; text-decoration: none; text-transform: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; box-shadow: none; text-shadow: none; }
.ct-btn:hover, .ct-btn:focus { text-decoration: none; }
.ct-btn-rojo { background: var(--rojo, #92151b); color: #fff; }
.ct-btn-rojo:hover, .ct-btn-rojo:focus { background: var(--rojo-oscuro, #741016); color: #fff; }
.ct-btn-rojo[aria-busy="true"] { opacity: .7; cursor: wait; }
.ct-btn-wa { background: #25d366; border-color: #25d366; color: #0b3d1f; }
.ct-btn-wa:hover, .ct-btn-wa:focus { background: #1ebe5a; border-color: #1ebe5a; color: #0b3d1f; }
.ct-btn-borde { border-color: currentColor; color: var(--tinta, #363636); background: transparent; }
.ct-btn-borde:hover, .ct-btn-borde:focus { background: var(--tinta, #363636); border-color: var(--tinta, #363636); color: #fff; }

/* Cabecera: migas, título e introducción */
.ct-cab { background: var(--fondo-calido, #f7f2ec); padding: 8px 0 24px; }
.ct-migas { display: flex; align-items: center; min-height: 40px; font-size: 14px; color: var(--texto-secundario, #595959); }
.ct-migas ol { display: flex; gap: 4px; }
.ct-migas li + li::before { content: "›"; margin-right: 4px; color: var(--ct-borde-campo); }
.ct .ct-migas a { color: var(--texto-secundario, #595959); text-decoration: none; }
.ct .ct-migas a:hover { text-decoration: underline; }
.ct-cab h1 { font-size: 30px; }
.ct-intro { margin-top: 8px !important; color: var(--texto-secundario, #595959); max-width: 680px; }

.ct-cuerpo { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 48px; }

/* Formulario */
.ct-form { display: grid; gap: 18px; }
.ct-fila { display: grid; gap: 18px; }
.ct-form-cab { display: grid; gap: 4px; }
.ct-form-cab h2, .ct-ayuda-col h2 { font-size: 22px; }
.ct-form-cab p { font-size: 14px; color: var(--texto-secundario, #595959); }

.ct-campo { display: grid; gap: 6px; align-content: start; }
.ct .ct-campo label { margin: 0; font: var(--peso-fuerte, 500) 15px/1.3 var(--fuente-texto, Roboto, Arial, sans-serif); color: var(--tinta, #363636); text-transform: none; }
.ct .ct-opcional { font-weight: 400; color: var(--texto-secundario, #595959); }
.ct .ct-campo input:not([type="checkbox"]), .ct .ct-campo select, .ct .ct-campo textarea { display: block; width: 100%; height: auto; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid var(--ct-borde-campo); border-radius: 8px; background: #fff; box-shadow: none; font: 400 16px/1.4 var(--fuente-texto, Roboto, Arial, sans-serif); color: var(--tinta, #363636); -webkit-appearance: none; appearance: none; }
.ct .ct-campo textarea { min-height: 140px; resize: vertical; }
.ct .ct-campo select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23363636' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.ct .ct-campo input::placeholder, .ct .ct-campo textarea::placeholder { color: #8c8c8c; }
.ct .ct-campo input:hover, .ct .ct-campo select:hover, .ct .ct-campo textarea:hover { border-color: var(--tinta, #363636); }
.ct .ct-campo input:focus, .ct .ct-campo select:focus, .ct .ct-campo textarea:focus { outline: 0; border-color: var(--rojo, #92151b); box-shadow: 0 0 0 3px rgba(146, 21, 27, .25); }
.ct .ct-campo select:disabled { background-color: #f2f2f2; color: #8c8c8c; cursor: not-allowed; }
.ct-ayuda { font-size: 13px; color: var(--texto-secundario, #595959); }
.ct-contador { justify-self: end; font-size: 13px; color: var(--texto-secundario, #595959); }

/* Error: borde de 2 px y mensaje con texto, nunca solo color */
.ct .ct-campo .error { display: none; margin: 0; font-size: 14px; color: var(--ct-error); }
.ct .ct-campo.con-error .error { display: block; }
.ct .ct-campo.con-error input:not([type="checkbox"]), .ct .ct-campo.con-error select, .ct .ct-campo.con-error textarea { border: 2px solid var(--ct-error); padding: 11px 13px; }

/* Casilla de autorización (el CSS antiguo oculta las casillas nativas) */
.ct .ct-casilla { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font: 400 15px/1.45 var(--fuente-texto, Roboto, Arial, sans-serif); cursor: pointer; }
.ct .ct-casilla input { visibility: visible; position: static; opacity: 1; width: 22px; height: 22px; margin: 1px 0 0; -webkit-appearance: checkbox; appearance: checkbox; accent-color: var(--tinta, #363636); cursor: pointer; }
.ct .ct-campo.con-error .ct-casilla input { outline: 2px solid var(--ct-error); outline-offset: 2px; }

/* Avisos */
.ct-aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--ct-radio); background: #f6e8e9; color: var(--ct-error); font-size: 15px; }
.ct-aviso svg { flex: none; }
.ct-resumen { scroll-margin-top: 90px; }
.ct-resumen ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.ct .ct-resumen a { color: inherit; text-decoration: underline; }

.ct-enviar { display: grid; gap: 10px; }
.ct-legal { font-size: 13px; color: var(--texto-secundario, #595959); }
.ct .ct-legal a, .ct .ct-casilla a { color: inherit; text-decoration: underline; }

/* Mensaje enviado */
.ct-enviado { display: grid; gap: 12px; padding: 28px 20px; border-radius: var(--ct-radio); background: #e8f3ec; scroll-margin-top: 90px; }
.ct-enviado h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; color: #14532f; }
.ct-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Columna de ayuda */
.ct-ayuda-col { display: grid; gap: 16px; align-content: start; }
.ct-canal { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; padding: 18px; border: 1px solid var(--borde, #d9d9d9); border-radius: var(--ct-radio); background: #fff; }
.ct-ico { grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fondo-calido, #f7f2ec); color: var(--rojo, #92151b); }
.ct-canal h3 { font: var(--peso-fuerte, 500) 17px/1.3 var(--fuente-texto, Roboto, Arial, sans-serif); }
.ct-canal p { font-size: 15px; color: var(--texto-secundario, #595959); }
.ct .ct-dato { font: var(--peso-fuerte, 500) 17px var(--fuente-texto, Roboto, Arial, sans-serif); color: var(--tinta, #363636); text-decoration: none; }
.ct .ct-dato:hover { text-decoration: underline; }
.ct-canal .ct-btn { grid-column: 2; justify-self: start; min-height: 44px; margin-top: 8px; padding: 0 18px; font-size: 14px; }
.ct-canal-wa { background: var(--fondo-calido, #f7f2ec); border-color: var(--fondo-calido, #f7f2ec); }
.ct-canal-wa .ct-ico { background: #25d366; color: #fff; }
.ct-atajos { border-top: 1px solid var(--borde, #d9d9d9); }
.ct .ct-atajos a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--borde, #d9d9d9); text-decoration: none; font-size: 15px; }
.ct .ct-atajos a:hover { color: var(--rojo, #92151b); }
.ct-atajos small { display: block; font-size: 13px; color: var(--texto-secundario, #595959); }
.ct-atajos svg { flex: none; }
.ct-redes { display: flex; gap: 10px; }
.ct .ct-redes a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--borde, #d9d9d9); border-radius: 999px; text-decoration: none; font-size: 14px; }
.ct .ct-redes a:hover { border-color: var(--tinta, #363636); }

/* Tableta: nombre/correo, celular/dirección y departamento/municipio en dos columnas */
@media (min-width: 768px) {
  .ct { --ct-gutter: 24px; }
  .ct-fila { grid-template-columns: 1fr 1fr; }
  .ct-enviar { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
  .ct-enviar .ct-btn { min-width: 220px; }
}

/* Computador: formulario + ayuda en un contenedor centrado */
@media (min-width: 1024px) {
  .ct-cab h1 { font-size: 40px; }
  .ct-cuerpo { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
  .ct-ayuda-col { position: sticky; top: 96px; }
}
@media (min-width: 1280px) {
  .ct-cuerpo { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; }
}
@media (prefers-reduced-motion: reduce) { .ct * { transition: none !important; } }
