/* ==========================================================================
   PIXEL BREW -- bottom.css
   Formulario de contacto, barra de cookies, pagina de envio, utilidades.
   ========================================================================== */

/* ==========================================================================
   pxb-form -- formulario de contacto (2 campos + consentimiento)
   ========================================================================== */
.pxb-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pxb-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pxb-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pxb-muted);
}

.pxb-field input,
.pxb-field textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--pxb-line);
    border-radius: var(--pxb-radius-sm);
    background-color: var(--pxb-surface);
    color: var(--pxb-text);
    font-size: 0.9375rem;
    transition: border-color 180ms var(--pxb-ease), box-shadow 180ms var(--pxb-ease);
}

.pxb-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.pxb-field input:focus,
.pxb-field textarea:focus {
    border-color: var(--pxb-magenta);
    box-shadow: 0 0 0 0.1875rem rgba(255, 47, 160, 0.18);
    outline: none;
}

.pxb-field input:invalid:not(:placeholder-shown),
.pxb-field textarea:invalid:not(:placeholder-shown) {
    border-color: #ff6f6f;
}

.pxb-field-error {
    display: none;
    font-size: 0.8125rem;
    color: #ff8a8a;
}

.pxb-field.is-invalid .pxb-field-error {
    display: block;
}

.pxb-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--pxb-muted);
}

.pxb-consent input {
    margin-top: 0.1875rem;
    accent-color: var(--pxb-magenta);
}

.pxb-consent a {
    color: var(--pxb-magenta);
}

.pxb-honey {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.pxb-form-status {
    min-height: 1.25rem;
    font-size: 0.875rem;
}

.pxb-form-status.is-error {
    color: #ff8a8a;
}

.pxb-form-status.is-ok {
    color: var(--pxb-magenta-hover);
}

/* ==========================================================================
   cookies-bar
   ========================================================================== */
.cookies-bar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: var(--pxb-z-cookies);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 32rem;
    margin-inline: auto;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--pxb-line);
    border-radius: var(--pxb-radius-lg);
    background-color: var(--pxb-surface-raised);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.4);
    transform: translateY(120%);
    transition: transform 260ms var(--pxb-ease);
}

.cookies-bar.is-visible {
    transform: translateY(0);
}

.cookies-bar-text {
    font-size: 0.8125rem;
    color: var(--pxb-muted);
}

.cookies-bar-text a {
    color: var(--pxb-magenta);
}

.cookies-bar-actions {
    display: flex;
    gap: 0.75rem;
}

.cookies-bar-actions .btn-primary,
.cookies-bar-actions .btn-ghost {
    flex: 1;
    min-height: 2.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
}

@media (min-width: 30em) {
    .cookies-bar {
        right: 1.5rem;
        left: auto;
        margin-inline: 0;
    }
}

/* ==========================================================================
   sent -- pagina enviado.html
   ========================================================================== */
.sent-stage {
    display: flex;
    min-height: 60vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
}

.sent-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 0.125rem solid var(--pxb-magenta);
    border-radius: 999px;
    color: var(--pxb-magenta);
}

.sent-steps {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1rem;
}

.sent-steps li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: var(--pxb-muted);
}

.sent-steps li::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 0.75rem;
    height: 0.0625rem;
    background-color: var(--pxb-magenta);
}

/* ==========================================================================
   badges y utilidades varias
   ========================================================================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--pxb-line);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pxb-muted);
}

.divider {
    height: 1px;
    background-color: var(--pxb-line);
    border: 0;
    margin-block: 0;
}

.reveal {
    opacity: 1;
    transform: none;
}

.reveal.is-priming {
    opacity: 0;
    transform: translateY(1.25rem);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 560ms var(--pxb-ease), transform 560ms var(--pxb-ease);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal.is-priming {
        opacity: 1;
        transform: none;
    }

    .path-line-stroke {
        transition: none;
    }
}
