/* ============================================================
   DÉBORAS 2026 · REGISTRO DE HOSPEDAJE
   Línea gráfica, colores y tipografía de conferenciadeboras.com.do
   Ministerio Internacional Monte de Dios Horeb
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Prata&display=swap');

@font-face {
  font-family: 'Michiko';
  src: url('../assets/fonts/Michiko-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta oficial Déboras 2026 */
  --cream: #FDF3DC;
  --bone: #FEF7F3;
  --shell: #FAEFEA;       /* Fondo base cálido */
  --blush: #F1CBC2;
  --rose-lt: #EAC0B4;
  --rose: #E2B0A4;
  --nude: #F3DCD1;
  --sand: #EFD9B7;
  --mauve: #C4948E;
  --clay: #B4766A;       /* Color primario / acento / CTA oficial */
  --clay-dk: #96574C;    /* Hover de botones y detalles oscuros */
  --terra: #B47760;
  --brown: #A5746B;
  --ink: #3B2A27;        /* Texto principal oscuro elegante */
  --ink-70: rgba(59, 42, 39, 0.75);
  --ink-50: rgba(59, 42, 39, 0.50);
  --ink-25: rgba(59, 42, 39, 0.25);
  --line: rgba(180, 118, 106, 0.25);
  --line-light: rgba(180, 118, 106, 0.14);
  --card-bg: #FFFFFF;
  --card-border: rgba(180, 118, 106, 0.20);
  --input-bg: #FCF9F7;
  --input-border: rgba(180, 118, 106, 0.26);
  --input-focus: #B4766A;
  --input-focus-glow: rgba(180, 118, 106, 0.18);

  --rose-gold: linear-gradient(135deg, #E8BCB0 0%, #C58E82 38%, #A96C62 70%, #E3B5AC 100%);

  /* Tipografía oficial */
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Michiko", "Prata", cursive;

  --maxw: 620px;
  --radius-card: 22px;
  --radius-input: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 16px 42px -16px rgba(180, 118, 106, 0.20), 0 6px 18px -6px rgba(59, 42, 39, 0.05);
  --shadow-btn: 0 10px 26px -8px rgba(150, 87, 76, 0.48);
  --shadow-btn-hover: 0 14px 32px -10px rgba(150, 87, 76, 0.62);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  position: relative;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--rose);
  color: #FFFFFF;
}

/* ===== FONDOS DECORATIVOS (COMPLETAMENTE CONTENIDOS) ===== */
.bg-ambient {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden !important;
  contain: strict;
}

.bg-ambient__hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background-image: url('../assets/img/bg-hero.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.bg-ambient__blob-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: min(90vw, 400px);
  height: min(90vw, 400px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 203, 194, 0.35) 0%, rgba(254, 247, 243, 0) 70%);
  filter: blur(50px);
}

.bg-ambient__blob-2 {
  position: absolute;
  top: 40%;
  left: -80px;
  width: min(85vw, 360px);
  height: min(85vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 217, 183, 0.25) 0%, rgba(254, 247, 243, 0) 70%);
  filter: blur(50px);
}

.bg-ambient__flor {
  position: absolute;
  bottom: 0;
  right: 0;
  width: min(32vw, 140px);
  height: auto;
  opacity: 0.08;
  transform: rotate(-10deg);
  pointer-events: none;
}

/* ===== HEADER ELEGANTE Y CENTRADO ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  background: rgba(254, 247, 243, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  box-sizing: border-box;
  overflow: hidden;
}

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}

.header__logo {
  width: min(84vw, 290px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.header__divider {
  display: none;
}

.header__subtitle {
  font-size: clamp(0.62rem, 2.2vw, 0.70rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 600px) {
  .header {
    padding: 12px 18px;
  }
  .header__brand {
    flex-direction: row;
    gap: 12px;
  }
  .header__divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: var(--line);
  }
  .header__logo {
    width: 270px;
  }
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 20px 12px 40px;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 480px) {
  .main-wrapper {
    padding: 26px 18px 50px;
  }
}

@media (min-width: 640px) {
  .main-wrapper {
    padding: 34px 22px 60px;
  }
}

/* ===== HERO INTRO ===== */
.hero-intro {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 4px;
}

.hero-intro__mark-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bone) 0%, var(--nude) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px -8px rgba(180, 118, 106, 0.28);
  margin-bottom: 12px;
  animation: floatMark 3.5s ease-in-out infinite;
}

@keyframes floatMark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-intro__mark {
  width: 32px;
  height: auto;
  display: block;
}

.hero-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(241, 203, 194, 0.35) 0%, rgba(239, 217, 183, 0.35) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
  max-width: 100%;
  white-space: nowrap;
}

.hero-intro__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

.hero-intro__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6.2vw, 2.45rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
  word-break: break-word;
}

.hero-intro__title em {
  font-family: var(--script);
  font-style: normal;
  color: var(--clay);
  font-size: 1.18em;
  padding-inline: 3px;
}

.hero-intro__desc {
  font-size: clamp(0.86rem, 2.5vw, 0.96rem);
  color: var(--ink-70);
  max-width: 500px;
  margin: 0 auto 6px;
  line-height: 1.55;
  box-sizing: border-box;
}

/*
 * META HERO:
 * 2 líneas continuas juntas, con espacio prudente sobre ellas
 */
.hero-intro__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 14px;
  line-height: 1.35;
}

.hero-intro__meta-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== FORM CARD ===== */
.form-card {
  width: 100%;
  max-width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 14px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

@media (min-width: 420px) {
  .form-card {
    padding: 26px 20px;
  }
}

@media (min-width: 600px) {
  .form-card {
    padding: 34px 32px;
  }
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rose-gold);
}

/* Banner de error o alerta */
.alert-banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #FDF1F0;
  border: 1px solid #F1B5B1;
  border-radius: 12px;
  color: #8C2E2B;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 18px;
  animation: fadeInDown 0.3s ease forwards;
  box-sizing: border-box;
}

.alert-banner.is-active {
  display: flex;
}

.alert-banner svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== GRUPOS DE CAMPOS ===== */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .form-grid {
    gap: 20px;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  width: 100%;
  box-sizing: border-box;
}

.field-label .required-dot {
  color: var(--clay);
  margin-left: 3px;
  font-size: 0.95rem;
  line-height: 1;
}

.field-label .field-hint {
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-50);
}

/* Label apilado para Cupos disponibles */
.field-label--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 6px;
}

.field-label--stacked .field-label__main {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.field-label--stacked .field-label__sub {
  font-size: 0.70rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-50);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--brown);
  opacity: 0.75;
  pointer-events: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.input-icon--top {
  top: 14px;
}

/*
 * PREVENCIÓN DE AUTO-ZOOM EN IPHONE / SAFARI:
 * font-size: 16px garantiza que iOS Safari jamás amplíe o desplace el zoom al enfocar un input.
 */
.form-input,
.form-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  padding: 12px 14px 12px 42px;
  min-height: 48px;
  line-height: 1.5;
  outline: none;
  transition: all 0.25s ease;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-50);
  font-weight: 300;
  font-size: 0.90rem;
}

.form-input:focus,
.form-textarea:focus {
  background-color: #FFFFFF;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--input-focus-glow);
}

.input-container:focus-within .input-icon {
  color: var(--clay);
  opacity: 1;
}

.form-textarea {
  resize: vertical;
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Helper text & field error */
.field-error-msg {
  display: none;
  font-size: 0.72rem;
  color: #B42318;
  margin-top: 5px;
  font-weight: 500;
}

.field-group.has-error .form-input,
.field-group.has-error .form-textarea {
  border-color: #FDA29B !important;
  background-color: #FFFBFA !important;
}

.field-group.has-error .field-error-msg {
  display: block;
}

/* ===== BOTÓN PRINCIPAL ===== */
.btn-submit-wrap {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  width: 100%;
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--clay);
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  box-sizing: border-box;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.btn:hover {
  background: var(--clay-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

.btn.is-loading .btn__icon {
  display: none;
}

.btn--secondary {
  background: transparent;
  color: var(--clay);
  border-color: var(--line);
  box-shadow: none;
  width: auto;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 0.78rem;
}

.btn--secondary:hover {
  background: var(--clay);
  color: #FFFFFF;
  border-color: var(--clay);
  box-shadow: var(--shadow-btn);
}

/* ===== SUCCESS STATE ===== */
.success-card {
  display: none;
  text-align: center;
  padding: 24px 14px;
  animation: fadeInUp 0.45s ease forwards;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .success-card {
    padding: 32px 24px;
  }
}

.success-card.is-active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF7F3 0%, #F1CBC2 100%);
  border: 1px solid var(--clay);
  box-shadow: 0 10px 24px -8px rgba(180, 118, 106, 0.40);
  margin-bottom: 18px;
}

.success-badge svg {
  width: 30px;
  height: 30px;
  color: var(--clay);
}

.success-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}

.success-title em {
  font-family: var(--script);
  font-style: normal;
  color: var(--clay);
  font-size: 1.2em;
}

.success-subtitle {
  font-size: 0.90rem;
  color: var(--ink-70);
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.55;
  box-sizing: border-box;
}

.success-subtitle strong {
  color: var(--ink);
  font-weight: 600;
}

.summary-box {
  max-width: 100%;
  margin: 0 auto 20px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px;
  text-align: left;
  box-sizing: border-box;
}

.summary-box__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  gap: 7px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.summary-row__label {
  color: var(--ink-50);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.summary-row__label svg {
  width: 13px;
  height: 13px;
}

.summary-row__val {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

.summary-row__val--highlight {
  color: var(--clay);
  font-weight: 700;
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== FOOTER OFICIAL CON FORMATO EXACTO ===== */
.footer {
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  background: var(--ink);
  color: var(--nude);
  padding: 36px 16px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  overflow: hidden;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
}

.footer__logo {
  width: min(84vw, 290px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 6px;
  object-fit: contain;
  filter: brightness(1.7) saturate(0.85);
}

.footer__block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
  width: 100%;
  box-sizing: border-box;
}

.footer__line {
  margin: 0;
  font-size: clamp(0.76rem, 2.2vw, 0.84rem);
  letter-spacing: 0.06em;
  color: rgba(253, 243, 220, 0.85);
  word-break: break-word;
}

.footer__line--strong {
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.76rem, 2.3vw, 0.86rem);
}

.footer__copy {
  font-size: 0.70rem;
  color: rgba(253, 243, 220, 0.45);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Toast flotante */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--ink);
  color: #FFFFFF;
  border: 1px solid var(--clay);
  border-radius: 12px;
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.is-show {
  transform: translateY(0);
  opacity: 1;
}
