* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    min-height: 100vh;
}

:root {
    --ink: #141b2e;
    --paper: #fff;
    --brass: #b08d57;
    --clay: #8b5e3c;
    --sage: #6b7a63;
    --line: #d8d2c4;
    --cta: orange;
    --color-success: #176b45;
    --color-error: #b42318;
    --display: "Fraunces", georgia, serif;
    --body: "Work Sans", sans-serif;
    --mono: "IBM Plex Mono", monospace;
    --wrap: 72rem;
}

.wa-float {
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wa-float svg {
    width: 1.9rem;
    height: 1.9rem;
    fill: currentcolor;
}

.wa-float:hover,
.wa-float:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgb(0 0 0 / 35%);
}

.wa-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Pulso sutil para llamar la atención */
@media (prefers-reduced-motion: no-preference) {
    .wa-float::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25d366;
        z-index: -1;
        animation: wa-pulse 2.4s ease-out infinite;
    }

    @keyframes wa-pulse {
        from {
            transform: scale(1); 
            opacity: .6; 
        }
        
        to {
            transform: scale(1.6);
            opacity: 0; 
        }
    }
}

.form-message {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Feedback modal */

.form-feedback-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgb(20 27 46 / 68%);
}

.form-feedback-modal__dialog {
    width: min(100%, 28rem);
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--paper);
    color: var(--ink);
    text-align: center;
    box-shadow: 0 1.25rem 3.5rem rgb(20 27 46 / 30%);
}

.form-feedback-modal__dialog h2 {
    margin: 0 0 0.75rem;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.75rem;
    line-height: 1.15;
}

.form-feedback-modal__dialog p {
    margin: 0 0 1.5rem;
    font-family: var(--body);
    line-height: 1.6;
}

.form-feedback-modal__dialog button {
    min-height: 2.75rem;
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.form-feedback-modal__dialog button:hover {
    background: var(--clay);
}

.form-feedback-modal__dialog button:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 3px;
}

[data-async-form] button[type="submit"] {
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
}

[data-async-form] button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
}