:root {
    color-scheme: light;
    --nf-ink: #193b35;
    --nf-muted: #52645e;
    --nf-brand: #28765f;
    --nf-brand-dark: #1d5a49;
    --nf-accent: #f0c886;
    --nf-paper: #fffdf8;
    --nf-surface: #f3f7f3;
    --nf-border: #dce7df;
    --nf-shadow: 0 12px 34px rgb(25 59 53 / 10%);
    --nf-radius: 18px;
    background: var(--nf-paper);
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

html {
    scroll-snap-type: none;
}

.hero {
    background-attachment: scroll;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid #b76d11;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: white;
    color: var(--nf-ink);
}

.skip-link:focus {
    top: 12px;
}

.sticky-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--nf-brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.sticky-contact:hover {
    background: var(--nf-brand-dark);
    color: #fff;
}

.sticky-contact {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 30;
    min-height: 48px;
    gap: 8px;
    padding: 10px 18px;
    box-shadow: 0 5px 20px rgb(25 59 53 / 25%);
}

main,
.contenedor,
.container,
.contenedor-principal {
    scroll-margin-top: 96px;
}

.contenedor,
.container,
.contenedor-principal {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.contenedor,
.container,
.contenedor-principal,
.contenedorr {
    border-color: var(--nf-border);
    border-radius: var(--nf-radius);
}

.producto,
.pricing-card,
.service-column > *,
.servicio {
    border-color: var(--nf-border);
    border-radius: 14px;
}

.contenido-hero,
.hero h1 {
    text-wrap: balance;
}

.service-button,
.boton,
.pricing-btn {
    min-height: 44px;
}

.error-message {
    color: #9c241c;
    text-align: center;
}

dialog.logout-confirmation {
    width: min(92vw, 440px);
    max-width: 440px;
    padding: 28px;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius);
    background: var(--nf-paper);
    color: var(--nf-ink);
    box-shadow: 0 24px 80px rgb(0 0 0 / 25%);
}

dialog.logout-confirmation::backdrop {
    background: rgb(15 29 25 / 58%);
    backdrop-filter: blur(3px);
}

.logout-confirmation h2 {
    margin: 0 0 10px;
}

.logout-confirmation p {
    color: var(--nf-muted);
}

.logout-confirmation__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.logout-confirmation__actions form {
    display: inline-flex;
}

.logout-confirmation__actions button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--nf-border);
    border-radius: 10px;
    background: white;
    color: var(--nf-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.logout-confirmation__actions button[type="submit"] {
    border-color: var(--nf-brand);
    background: var(--nf-brand);
    color: white;
}

.logout-confirmation__actions button:disabled {
    cursor: wait;
    opacity: .65;
}

iframe {
    max-width: 100%;
}

main h2,
.contenedor h2,
.container h2,
.contenedor-principal h2 {
    line-height: 1.3;
    text-wrap: balance;
}

.services-grid,
.servicios,
.productos,
.cards,
.contenedor-principal {
    gap: 24px;
}

.service-button,
.boton,
.btn,
button {
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.service-button:hover,
.boton:hover,
.btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 760px) {
    .sticky-contact {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
