:root {
    color-scheme: dark;

    /* Formula Motos: amarillo del wordmark como acento, rojo solo de apoyo */
    --c-bg: #0e0e0f;
    --c-surface: #18181a;
    --c-surface-hover: #202023;
    --c-line: #2a2a2e;
    --c-text: #f4f2ec;
    --c-muted: #9b9890;
    --c-accent: #ffd100;
    --c-accent-ink: #111111;
    --c-red: #45d914;

    --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;

    --r-sm: 6px;
    --r-md: 10px;

    --t-fast: 180ms;
    --t-enter: 320ms;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

::selection {
    background: var(--c-accent);
    color: var(--c-accent-ink);
}

html {
    scrollbar-color: #3a3a3f var(--c-bg);
}

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

body {
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.4;
    color: var(--c-text);
    margin: 0;
    min-height: 100vh;
    background-color: var(--c-bg);
    /* trazos de velocidad en diagonal + halo amarillo detrás del logo */
    background-image:
        radial-gradient(60% 40% at 50% 0%, rgba(255, 209, 0, .14), transparent 70%),
        repeating-linear-gradient(-62deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px);
    background-attachment: fixed;
}


#content {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: var(--s-7) var(--s-4) var(--s-6);
}

/* Header / wordmark */
.brand {
    text-align: center;
    margin-bottom: var(--s-6);
}

.brand-name {
    margin: 0;
    line-height: 0;
}

/* el logo viene sobre negro: lighten funde el fondo con el de la página */
.brand-logo {
    display: block;
    max-width: 340px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    mix-blend-mode: lighten;
}

.brand-tag {
    margin: var(--s-5) 0 0;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--c-muted);
    text-wrap: balance;
}

.brand-tag strong {
    color: var(--c-text);
    font-weight: 600;
}

/* Lista de contacto */
#menu-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.branch {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    animation: enter var(--t-enter) var(--ease-out) both;
}

.branch:nth-child(2) {
    animation-delay: 70ms;
}

.branch:nth-child(3) {
    animation-delay: 140ms;
}

.branch-name {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin: 0 var(--s-1) var(--s-1);
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--c-muted);
}

.branch-name::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    transform: rotate(45deg);
}

.branch-name::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-line);
}

.link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--s-4);
    min-height: 64px;
    padding: var(--s-3) var(--s-4);
    color: var(--c-text);
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: background-color var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}

.link-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--c-accent);
    transition: background-color var(--t-fast) ease-out;
}

.link-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-text b {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.link-text small {
    font-size: 13px;
    line-height: 1.25;
    color: var(--c-muted);
}

.link-arrow {
    flex: none;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .5;
    transition: transform var(--t-fast) ease-out, opacity var(--t-fast) ease-out;
}

.link:hover,
.link:focus-visible {
    background: var(--c-surface-hover);
    border-color: #3a3a3f;
}

.link:hover .link-arrow,
.link:focus-visible .link-arrow {
    transform: translateX(4px) rotate(45deg);
    opacity: 1;
}

.link:hover .link-icon,
.link:focus-visible .link-icon {
    background: #ffe14d;
}

.link:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

/* CTA principal: WhatsApp */
.link-primary {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-accent-ink);
}

.link-primary .link-icon {
    background: var(--c-accent-ink);
}

.link-primary .link-icon img {
    filter: brightness(0) invert(1);
}

.link-primary .link-text small {
    color: rgba(17, 17, 17, .7);
}

.link-primary:hover .link-icon,
.link-primary:focus-visible .link-icon {
    background: var(--c-red);
}

.link-primary:hover,
.link-primary:focus-visible {
    background: #ffdc33;
    border-color: #ffdc33;
}

.link-primary:focus-visible {
    outline-color: var(--c-text);
}

.claim {
    margin: var(--s-6) 0 0;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--c-muted);
    text-wrap: balance;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .branch {
        animation: none;
    }

    .link,
    .link-icon,
    .link-arrow {
        transition: none;
    }
}