:root {
  --cg-primary: #9e1f63;
  --cg-primary-dark: #7a1750;
  --cg-primary-light: #f6e6ee;
  --cg-secondary: #4e5569;
  --cg-secondary-light: #eceef2;
  --cg-white: #ffffff;
  --cg-ink: #2a2d38;
  --cg-radius: 14px;
  --cg-shadow: 0 10px 30px rgba(78, 85, 105, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(45deg, var(--cg-primary) 0%, var(--cg-secondary) 100%);
  color: var(--cg-ink);
  min-height: 100vh;
}

/* -------- Header / Hero -------- */
.cg-hero {
  background: transparent;
  padding: 2.25rem 1rem 4.5rem;
  color: var(--cg-white);
}

.cg-logo {
  height: 40px;
  width: auto;
}

.cg-hero h1 {
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  margin-bottom: 0.9rem;
}

.cg-hero p {
  font-weight: 400;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin-bottom: 0;
}

/* -------- Form card -------- */
.cg-card {
  background: var(--cg-white);
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
  margin-top: -2.25rem;
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 768px) {
  .cg-card {
    padding: 2.5rem 3rem 2.75rem;
  }
}

.cg-section-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cg-secondary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cg-section-title i {
  color: var(--cg-primary);
}

.cg-required {
  color: var(--cg-primary);
  font-weight: 700;
}

label.form-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cg-ink);
}

.form-text {
  font-size: 0.8rem;
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 1.5px solid #dfe2e8;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 0.2rem rgba(158, 31, 99, 0.15);
}

textarea.form-control {
  min-height: 90px;
}

/* -------- Actividad: tarjetas seleccionables -------- */
.cg-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .cg-activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cg-activity-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cg-activity-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  border: 1.5px solid #dfe2e8;
  border-radius: 12px;
  padding: 0.9rem 0.5rem;
  min-height: 92px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cg-secondary);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.cg-activity-option label i {
  font-size: 1.4rem;
  color: var(--cg-secondary);
  transition: color 0.15s ease;
}

.cg-activity-option input:checked + label {
  border-color: var(--cg-primary);
  background: var(--cg-primary-light);
  color: var(--cg-primary);
}

.cg-activity-option input:checked + label i {
  color: var(--cg-primary);
}

.cg-activity-option input:focus-visible + label {
  outline: 2px solid var(--cg-primary);
  outline-offset: 2px;
}

/* -------- Botón enviar -------- */
.cg-submit {
  background: var(--cg-primary);
  border: none;
  color: var(--cg-white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  width: 100%;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.cg-submit:hover:not(:disabled) {
  background: var(--cg-primary-dark);
}

.cg-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.cg-submit:disabled {
  opacity: 0.7;
}

/* -------- Honeypot: oculto visualmente pero presente para bots -------- */
.cg-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------- Footer -------- */
.cg-footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
}

.cg-footer img {
  height: 24px;
  opacity: 0.85;
}

/* -------- Pantalla de éxito -------- */
.cg-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.cg-success.is-visible {
  display: block;
}

.cg-success i {
  font-size: 3.2rem;
  color: var(--cg-primary);
  margin-bottom: 1rem;
}

.cg-success h2 {
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cg-success p {
  color: var(--cg-secondary);
  margin-bottom: 1.5rem;
}

.cg-form-wrapper.is-hidden {
  display: none;
}

.invalid-feedback {
  font-size: 0.82rem;
}

/* Ajuste táctil general para uso en tablet/celular en stand */
@media (max-width: 576px) {
  .cg-hero {
    padding: 1.75rem 1rem 3rem;
  }
}
