/* ============================================================
   Inmaculada — Formularios de Sacramentos (forms.css)
   Conserva el estilo de inputs del proyecto original:
   borde arena, radio 6px, fondo blanco, foco dorado.
   Autónomo: define fallbacks por si el tema no aporta tokens.
   ============================================================ */

.ibv-form-wrap {
  --ibv-gold:   #E2CF98;
  --ibv-bronze: #775A19;
  --ibv-ink:    #351F1A;
  --ibv-ink-2:  #61504C;
  --ibv-ink-3:  #7E706C;
  --ibv-sand:   #F7F3E9;
  --ibv-surface:#FFFFFF;
  --ibv-border: #DBD7D6;
  --ibv-border-soft: rgba(53,31,26,0.14);
  --ibv-dark:   #351F1A;
  --ibv-dark-hover: #32211D;
  --ibv-font-display: 'Abhaya Libre', Georgia, serif;
  --ibv-font-sans: 'Hanken Grotesk', system-ui, sans-serif;

  max-width: 860px;
  margin: 0 auto;
  font-family: var(--ibv-font-sans);
  color: var(--ibv-ink-2);
}

/* Encabezado */
.ibv-form-head { display: flex; align-items: center; gap: 22px; }
.ibv-fh-icon { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.ibv-form-head h2 {
  font-family: var(--ibv-font-display); font-weight: 500; font-size: var(--fs-h1);
  color: var(--ibv-ink); text-align: left; margin: 0; line-height: 1.05;
}
.ibv-fh-sub {
  font-family: var(--ibv-font-display); font-weight: 400; font-size: var(--fs-h3);
  color: var(--ibv-ink-2); line-height: 1.2; margin-top: 2px;
}

.ibv-form-intro {
  color: var(--ibv-ink-2); font-size: var(--fs-lg); line-height: 1.7;
  max-width: 60ch; margin: 24px 0 0;
}
.ibv-form-rule { border: none; border-top: 1px solid var(--ibv-border); margin: 30px 0 0 !important; }

/* Tarjeta del formulario */
.ibv-sac-form-card {
  background: var(--ibv-surface); border: 1px solid var(--ibv-border-soft);
  border-radius: 12px; box-shadow: 0 4px 20px rgba(53,31,26,0.08);
  padding: 40px; margin-top: 30px;
}

/* Bloques */
.ibv-form-block + .ibv-form-block {
  margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--ibv-border-soft);
}
.ibv-form-wrap .ibv-form-block-title {
  font-family: var(--ibv-font-display); font-weight: 700; font-size: var(--fs-h4);
  color: var(--ibv-ink); margin: 0 0 24px;
}

/* Grilla de campos (full / half) */
.ibv-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ibv-col-full { grid-column: 1 / -1; }
.ibv-col-half { grid-column: span 1; }

.ibv-field { display: flex; flex-direction: column; gap: 8px; }
.ibv-field-label {
  font-family: var(--ibv-font-sans); font-size: 14px; font-weight: 600;
  color: var(--ibv-ink);
}
.ibv-req { color: var(--ibv-bronze); }

/* Estilo de input del PROYECTO (conservado): borde arena, radio 6px, blanco */
.ibv-form-wrap .ibv-field-input {
  width: 100%; font-family: var(--ibv-font-sans); font-size: 15px;
  padding: 13px 14px; color: var(--ibv-ink); background: var(--ibv-surface);
  border: 1px solid var(--ibv-border); border-radius: 6px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ibv-form-wrap .ibv-field-input::placeholder { color: var(--ibv-ink-3); }
.ibv-form-wrap .ibv-field-input:focus {
  outline: none; border-color: var(--ibv-bronze);
  box-shadow: 0 0 0 3px rgba(226,207,152,0.4);
}
select.ibv-field-input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23775a19' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
textarea.ibv-field-input { min-height: 96px; resize: vertical; }

/* Nota informativa */
.ibv-form-note {
  display: flex; gap: 12px; margin-top: 32px; padding: 18px 20px;
  background: var(--ibv-sand); border: 1px solid var(--ibv-border-soft);
  border-radius: 8px; color: var(--ibv-ink-2); font-size: 14px; line-height: 1.6;
}
.ibv-form-note i { color: var(--ibv-bronze); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ibv-form-note a { color: var(--ibv-bronze); font-weight: 600; }

/* Botón enviar */
.ibv-form-submit {
  display: block; width: 100%; margin-top: 28px;
  background: var(--ibv-dark); color: #fff; border: none;
  border-radius: 6px; padding: 15px 24px; font-family: var(--ibv-font-sans);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background .18s ease;
	text-transform: uppercase; letter-spacing: 1.4px;
}
.ibv-form-submit:hover { background: var(--ibv-dark-hover); }

/* Estados de resultado */
.ibv-form-success,
.ibv-form-alert {
  display: flex; align-items: center; gap: 10px;
  margin: 24px 0 0; padding: 16px 18px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
}
.ibv-form-success { background: var(--ibv-sand); border-left: 4px solid var(--ibv-bronze); color: var(--ibv-ink); }
.ibv-form-alert   { background: #FBECEC; border-left: 4px solid #B23B3B; color: #7A2222; }

/* Honeypot oculto */
.ibv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Responsive */
@media (max-width: 640px) {
  .ibv-field-grid { grid-template-columns: 1fr; }
  .ibv-col-half { grid-column: 1 / -1; }
  .ibv-sac-form-card { padding: 24px; }
  .ibv-form-head { gap: 16px; }
  .ibv-fh-icon { width: 48px; height: 48px; }
  .ibv-form-head h2 { font-size: 28px; }
}
