/*
 * Estilos de la página Contáctanos.
 * Ubicación: public/css/web/contacto.css
 * Ajuste --ct-rojo al rojo de tu style.css si difiere.
 */
.ct { --ct-rojo: #d90000; --ct-texto: #1a1a1a; --ct-suave: #4d4d4d; --ct-campo: #f0f0f0; }

.ct__main {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start;
  padding: 80px 48px; scroll-margin-top: 100px; font-family: 'Coolvetica Light';
}
.ct h2 { font-family: 'Coolvetica RG'; line-height: 1.15; }
.ct h2 span:last-child { color: var(--ct-rojo); }

/* Columna izquierda */
.ct__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ct__info h2 { margin: 0; font-size: 34px; }
.ct__info > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ct-suave); }
.ct__info > p a { color: var(--ct-rojo); }
.ct__item {
  display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit;
  padding-bottom: 24px; border-bottom: 1px solid #e2e2e2;
}
.ct__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ct__icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--ct-rojo);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px;
}
.ct__item strong { display: block; font-size: 16px; }
.ct__item small { display: block; margin-top: 2px; font-size: 15px; color: var(--ct-suave); }
.ct__item small a { color: var(--ct-rojo); font-weight: 600; text-decoration: none; }

/* Formulario */
.ct__form {
  flex: 1.2 1 520px; min-width: 0; box-sizing: border-box; background: #fff; border-radius: 20px;
  padding: 40px; box-shadow: 0 8px 32px rgba(0, 0, 0, .08); display: flex; flex-direction: column; gap: 18px;
}
.ct__form h2 { margin: 0; font-size: 26px; }
.ct__fila { display: flex; flex-wrap: wrap; gap: 16px; }
.ct__fila .ct__campo { flex: 1 1 220px; }
.ct__campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct__campo label { font-size: 14px; font-weight: 600; }
.ct__campo label small { font-weight: 400; color: var(--ct-suave); }
.ct__campo input, .ct__campo select, .ct__campo textarea {
  font: inherit; font-size: 16px; padding: 0 16px; border: 1.5px solid transparent;
  border-radius: 10px; background: var(--ct-campo); color: var(--ct-texto); width: 100%; box-sizing: border-box;
}
.ct__campo input, .ct__campo select { height: 50px; }
.ct__campo textarea { padding: 14px 16px; resize: vertical; }
.ct__campo input:focus, .ct__campo select:focus, .ct__campo textarea:focus { outline: 0; border-color: var(--ct-rojo); background: #fff; }
.ct__campo .is-invalid { border-color: var(--ct-rojo); }
.ct__error { display: none; font-size: 13px; color: #b30000; }
.is-invalid ~ .ct__error, .ct__check .ct__error:not(:empty) { display: block; }
.ct__error:not(:empty) { display: block; }

.ct__check label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ct-suave); }
.ct__check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ct-rojo); }
.ct__form .btn.btn-web {
  width: 100%; height: 54px; border: 0; border-radius: 999px; padding: 0 32px;
  background: var(--ct-rojo); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.ct__form .btn.btn-web:hover { background: #b30000; color: #fff; }
.ct__form .btn.btn-web:active { transform: translateY(1px); }
.ct__form .btn.btn-web:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 3px; }
.ct__form .btn.btn-web[disabled] { opacity: .7; cursor: progress; }

/* Aviso tipo toast: aparece y se oculta con transición suave */
.ct__toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1080;
  max-width: min(520px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 16px 22px; border-radius: 14px; font-size: 15px; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}
.ct__toast.is-ok    { background: #14532d; color: #fff; }
.ct__toast.is-error { background: #8a0000; color: #fff; }
.ct__toast.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity .4s ease, transform .4s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .ct__toast, .ct__toast.is-visible { transition: none; }
}

.ct__estado { display: none; border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.ct__estado.is-ok    { display: block; background: #e9f6ec; color: #14532d; }
.ct__estado.is-error { display: block; background: #fdeaea; color: #8a0000; }

/* Honeypot: fuera de pantalla (no display:none, algunos bots lo detectan) */
.ct__trampa { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Mapa */
.ct__mapa { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 0 48px 88px; font-family: 'Coolvetica Light'; }
.ct__mapa-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ct__mapa-info h2 { margin: 0; font-size: 34px; }
.ct__mapa-info p { margin: 0; font-size: 16px; color: var(--ct-suave); }
.ct__badge {
  align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ct-rojo); color: var(--ct-rojo);
}
.ct__mapa-frame { flex: 1.6 1 480px; min-width: 0; height: 380px; border-radius: 20px; overflow: hidden; background: #e4e4e4; }
.ct__mapa-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 767px) {
  .ct__main { padding: 48px 20px; gap: 40px; }
  .ct__form { padding: 24px; }
  .ct__mapa { padding: 0 20px 56px; gap: 28px; }
  .ct__info h2, .ct__mapa-info h2 { font-size: 28px; }
  .ct__mapa-frame { height: 300px; }
}
