*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f0f0f0;
    color: #333;
}

/* ════════════ BARRA SUPERIOR ════════════ */
.topbar {
    width: 100%;
    background: #1a1a1a;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__icon {
    width: 42px; height: 42px;
    background: #cc0000;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand__icon svg { width: 24px; height: 24px; fill: #fff; }
.brand__text { line-height: 1.25; }
.brand__name {
    display: block; color: #fff;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em;
}
.brand__tagline {
    display: block; color: rgba(255,255,255,0.55);
    font-size: 0.72rem; font-style: italic;
}

.brand__icon {
    width: 42px;
    height: 42px;
    background: #fff; /* opcional */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brand__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ════════════ CARD PRINCIPAL ════════════ */
.fp-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* El card empieza desde arriba sin gap — header oscuro pegado a la topbar */
}

/* Cabecera oscura con título */
.fp-card__header {
    background: #1f1f1f;
    padding: 2.4rem 3rem;
    text-align: center;
}
.fp-card__header-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* Cuerpo blanco */
.fp-card__body {
    background: #ffffff;
    padding: 2.4rem 3rem 2rem;
    text-align: center;
}

/* Descripción */
.fp-desc {
    font-size: 0.87rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

/* Campo */
.fp-field {
    margin-bottom: 0.4rem;
    text-align: left;
}
.fp-label {
    display: block;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 0.4rem;
    text-align: center;
}
.fp-input {
    display: block;
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fp-input:focus {
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}
.fp-input.is-invalid {
    border-color: #cc0000;
}

/* Hint / error debajo del input */
.fp-hint {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.35rem;
    text-align: center;
}
.fp-error {
    display: block;
    font-size: 0.75rem;
    color: #cc0000;
    margin-top: 0.35rem;
    text-align: center;
}

/* Alerta general */
.alert-fp {
    font-size: 0.78rem;
    color: #16213F;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-left: 3px solid #16213F;
    background: rgba(204,0,0,0.04);
    text-align: left;
}

/* Botón rojo */
.btn-enviar {
    display: inline-block;
    padding: 0.72rem 3.5rem;
    background: #16213F;
    color: #fff;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1.4rem;
    transition: background 0.2s;
}
.btn-enviar:hover:not(:disabled) { background: #000000; }
.btn-enviar:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-enviar .spinner-border-sm {
    width: 0.8rem; height: 0.8rem;
    border-width: 2px; margin-right: 0.35rem;
    vertical-align: middle;
}

/* Texto de ayuda */
.fp-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid #eee;
}
.fp-help-link { color: #16213F; text-decoration: none; }
.fp-help-link:hover { color: #000000; text-decoration: underline; }

/* ── Estado éxito ── */
.success-box { text-align: center; padding: 0.5rem 0; }
.success-icon { width: 44px; height: 44px; fill: #2e7d32; margin-bottom: 0.8rem; }
.success-title { font-size: 1.1rem; font-weight: 700; color: #222; margin-bottom: 0.6rem; }
.success-desc  { font-size: 0.84rem; color: #555; line-height: 1.7; margin-bottom: 1.4rem; }
.btn-back {
    display: inline-block;
    padding: 0.65rem 2rem;
    background: #16213F;
    color: #fff;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-back:hover { background: #000000; color: #fff; text-decoration: none; }

/* ════════════ LAYOUT DE PÁGINA ════════════ */
.page-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* El card arranca pegado a la topbar, igual que en la referencia */
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 640px) {
    .topbar { padding: 0.9rem 1.25rem; }
    .fp-card__header,
    .fp-card__body { padding-left: 1.5rem; padding-right: 1.5rem; }
    .fp-card { max-width: 100%; }
    .fp-card__header-title { font-size: 1.5rem; }
}