/* ═══════════════════════════════════════════════
   MI FORMULARIO DE CONTACTO — Estilos modernos
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --mfc-azul:       #1a5fa8;
  --mfc-azul-osc:   #134d8a;
  --mfc-azul-claro: #e8f1fb;
  --mfc-acento:     #2d8cf0;
  --mfc-texto:      #1c2b3a;
  --mfc-gris:       #64748b;
  --mfc-borde:      #d1dce8;
  --mfc-fondo:      #f5f8fc;
  --mfc-blanco:     #ffffff;
  --mfc-error:      #e53e3e;
  --mfc-exito:      #38a169;
  --mfc-radio:      10px;
  --mfc-sombra:     0 4px 24px rgba(26,95,168,.12);
  --mfc-trans:      .2s ease;
}

/* ── Contenedor ── */
.mfc-wrapper {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--mfc-blanco);
  border-radius: 20px;
  box-shadow: var(--mfc-sombra), 0 1px 3px rgba(0,0,0,.06);
  max-width: 660px;
  margin: 2rem auto;
  overflow: hidden;
  border: 1px solid var(--mfc-borde);
}

/* ── Header ── */
.mfc-header {
  background: linear-gradient(135deg, var(--mfc-azul) 0%, #2272c3 60%, #3b8fd4 100%);
  padding: 36px 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mfc-header::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  top: -80px; right: -60px;
}
.mfc-header::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  bottom: -50px; left: -30px;
}
.mfc-header-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  margin-bottom: 14px;
  border: 2px solid rgba(255,255,255,.3);
}
.mfc-header-icon svg {
  width: 26px; height: 26px;
  color: #fff;
}
.mfc-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.3px;
}
.mfc-subtitle {
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  margin: 0;
  font-weight: 400;
}

/* ── Formulario ── */
.mfc-form {
  padding: 36px 40px 40px;
  background: var(--mfc-blanco);
}
.mfc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.mfc-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.mfc-row .mfc-field { margin-bottom: 0; }

/* ── Labels ── */
.mfc-label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--mfc-texto);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.mfc-req { color: var(--mfc-error); margin-left: 2px; }

/* ── Inputs ── */
.mfc-input {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--mfc-texto);
  background: var(--mfc-fondo);
  border: 1.5px solid var(--mfc-borde);
  border-radius: var(--mfc-radio);
  outline: none;
  transition: border-color var(--mfc-trans), box-shadow var(--mfc-trans), background var(--mfc-trans);
  box-sizing: border-box;
  appearance: none;
}
.mfc-input:focus {
  border-color: var(--mfc-acento);
  background: var(--mfc-blanco);
  box-shadow: 0 0 0 3px rgba(45,140,240,.15);
}
.mfc-input::placeholder { color: #a0aec0; }
.mfc-input.mfc-input-invalido {
  border-color: var(--mfc-error);
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

/* ── Input con icono ── */
.mfc-input-icon {
  position: relative;
}
.mfc-input-icon svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--mfc-gris);
  pointer-events: none;
  transition: color var(--mfc-trans);
}
.mfc-input-icon .mfc-input {
  padding-left: 38px;
}
.mfc-input-icon:focus-within svg { color: var(--mfc-acento); }

/* ── Select ── */
.mfc-select-wrapper { position: relative; }
.mfc-select { cursor: pointer; padding-right: 36px; }
.mfc-select-arrow {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--mfc-gris);
  pointer-events: none;
}

/* ── Canal (radio buttons con estilo) ── */
.mfc-canal-grupo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.mfc-canal-opcion input[type="radio"] { display: none; }
.mfc-canal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--mfc-fondo);
  border: 2px solid var(--mfc-borde);
  border-radius: var(--mfc-radio);
  font-size: .88rem;
  font-weight: 500;
  color: var(--mfc-gris);
  cursor: pointer;
  transition: all var(--mfc-trans);
  user-select: none;
}
.mfc-canal-btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.mfc-canal-opcion input:checked + .mfc-canal-btn {
  background: var(--mfc-azul-claro);
  border-color: var(--mfc-acento);
  color: var(--mfc-azul);
}
.mfc-canal-btn:hover {
  border-color: var(--mfc-acento);
  background: var(--mfc-azul-claro);
  color: var(--mfc-azul);
}

/* ── Textarea ── */
.mfc-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.mfc-contador {
  text-align: right;
  font-size: .78rem;
  color: var(--mfc-gris);
  margin-top: 5px;
  font-weight: 500;
}

/* ── Errores ── */
.mfc-error {
  font-size: .78rem;
  color: var(--mfc-error);
  margin-top: 4px;
  min-height: 16px;
  font-weight: 500;
}

/* ── Botón principal ── */
.mfc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--mfc-azul) 0%, var(--mfc-acento) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--mfc-trans);
  box-shadow: 0 4px 14px rgba(26,95,168,.35);
  margin-top: 8px;
  letter-spacing: .01em;
}
.mfc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,95,168,.45);
}
.mfc-btn:active { transform: translateY(0); }
.mfc-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.mfc-btn-arrow { width: 18px; height: 18px; transition: transform var(--mfc-trans); }
.mfc-btn:hover .mfc-btn-arrow { transform: translateX(4px); }
.mfc-btn-spinner svg {
  width: 18px; height: 18px;
  animation: mfc-spin 1s linear infinite;
}
@keyframes mfc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Éxito ── */
.mfc-success {
  padding: 56px 40px;
  text-align: center;
}
.mfc-success-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: #e6f9f0;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: mfc-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.mfc-success-icon svg {
  width: 36px; height: 36px;
  color: var(--mfc-exito);
  stroke: var(--mfc-exito);
}
.mfc-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mfc-texto);
  margin: 0 0 10px;
}
.mfc-success p {
  color: var(--mfc-gris);
  font-size: .95rem;
  margin: 0 0 28px;
  line-height: 1.6;
}
.mfc-btn-nuevo {
  background: transparent;
  border: 2px solid var(--mfc-borde);
  border-radius: 10px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--mfc-gris);
  cursor: pointer;
  transition: all var(--mfc-trans);
}
.mfc-btn-nuevo:hover {
  border-color: var(--mfc-acento);
  color: var(--mfc-azul);
}
@keyframes mfc-pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .mfc-header { padding: 28px 24px 24px; }
  .mfc-form { padding: 28px 24px 32px; }
  .mfc-row { grid-template-columns: 1fr; gap: 0; }
  .mfc-canal-grupo { grid-template-columns: 1fr; }
  .mfc-title { font-size: 1.4rem; }
  .mfc-success { padding: 40px 24px; }
}
