/* --- PÁGINA DE CONTACTO (hereda fondo, navbar y footer de index.css / global.css) --- */
:root {
  --ct-surface: rgba(17, 24, 39, 0.6);
  --ct-field: rgba(255, 255, 255, 0.06);
  --ct-field-focus: rgba(255, 255, 255, 0.1);
  --ct-border: rgba(255, 255, 255, 0.15);
  --ct-accent: #10b981;
  --ct-accent-soft: rgba(16, 185, 129, 0.18);
  --ct-red: #f87171;
  --ct-green: #25d366;
  --ct-green-dk: #1ebe5d;
}

.ct-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 130px 20px 40px;
}

.ct-card {
  background-color: var(--ct-surface);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--ct-border);
  border-radius: 24px;
  padding: 40px;
}

.ct-heading {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 8px;
}

.ct-heading em {
  font-style: normal;
  color: var(--ct-accent);
}

.ct-subheading {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 28px;
}

/* Campos */
.ct-field { margin-bottom: 14px; }

.ct-field > label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.ct-field > label .req { color: var(--ct-accent); margin-left: 1px; }

.ct-field input[type="text"],
.ct-field input[type="tel"],
.ct-field input[type="number"],
.ct-field input[type="date"],
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ct-field);
  border: 1.5px solid var(--ct-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  color-scheme: dark;
}

.ct-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d1d5db' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.ct-field select option { background: #111827; color: #f5f5f5; }

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--ct-accent);
  box-shadow: 0 0 0 3px var(--ct-accent-soft);
  background-color: var(--ct-field-focus);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: rgba(209, 213, 219, 0.45); }

.ct-field textarea { resize: vertical; min-height: 100px; }

.ct-row { display: flex; gap: 12px; }
.ct-row .ct-field { flex: 1; min-width: 0; }

/* Divisor */
.ct-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 18px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.ct-divider::before,
.ct-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ct-border);
}

/* Grilla de servicios */
.ct-servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ct-servicio {
  border: 1.5px solid var(--ct-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.ct-servicio:hover {
  border-color: var(--ct-accent);
  transform: translateY(-2px);
}

.ct-servicio.seleccionado {
  border-color: var(--ct-accent);
  box-shadow: 0 0 0 3px var(--ct-accent-soft);
}

.ct-servicio img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ct-servicio-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--ct-border);
}

.ct-servicio-footer input[type="checkbox"],
.ct-todos input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--ct-accent);
  flex-shrink: 0;
  margin: 0;
  pointer-events: none;
}

.ct-servicio-footer span {
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: none;
}

.ct-servicio.seleccionado::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ct-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.ct-todos {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-style: dashed;
  background: transparent;
}

.ct-todos:hover,
.ct-todos.seleccionado {
  background: var(--ct-accent-soft);
  transform: none;
}

.ct-todos.seleccionado { border-style: solid; box-shadow: none; }
.ct-todos.seleccionado::after { content: none; }

.ct-todos span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ct-accent);
  pointer-events: none;
}

/* Validación */
.ct-error {
  display: none;
  color: var(--ct-red);
  font-size: 0.75rem;
  margin-top: 5px;
}

.ct-field.invalid .ct-error,
.ct-field.invalid-srv .ct-error { display: block; }

.ct-field.invalid input,
.ct-field.invalid select { border-color: var(--ct-red); }

.ct-field.invalid-srv .ct-servicios-grid {
  outline: 1.5px solid var(--ct-red);
  outline-offset: 4px;
  border-radius: 14px;
}

/* Botón enviar */
.ct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  margin-top: 22px;
  background: var(--ct-green);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
}

.ct-btn:hover {
  background: var(--ct-green-dk);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.ct-btn:active { transform: scale(0.98); }
.ct-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

@media (max-width: 576px) {
  .ct-main { padding: 110px 12px 20px; }
  .ct-card { padding: 24px 16px; border-radius: 18px; }
  .ct-row { flex-direction: column; gap: 0; }
}
