/* Distribuidora — CSS autónomo (sin imports externos). */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
}

button, input, textarea, select {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

img, picture, svg, video, canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1, h2, h3, h4, p {
    overflow-wrap: break-word;
}

[hidden] {
    display: none !important;
}

/* Tokens */
:root {
    --black: #111111;
    --white: #ffffff;
    --grey: #a7a7a7;
    --primary: #2b4d8a;
    --primary-hover: #355eaa;
    --madrid: #e36b2c;
    --madrid-hover: #ef7c42;
    --surface-muted: #3c3c3c;
    --surface-hover: #505050;
    --focus: #b8d1ff;
    --radius: 5px;
    --space-l: 3.75rem;
    --space-m: 1.875rem;
    --space-s: .9375rem;
    --space-xs: .4rem;
    --gutter: clamp(1rem, 1.2vw, 1.875rem);
    --duration-fast: 180ms;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 900px) {
    :root {
        --button-height-large: 3.25rem;
    }
}

/* Typography */
@font-face {
    font-family: 'Circular XX';
    src: url('../fonts/CircularXX-Regular.woff2') format('woff2'),
        url('../fonts/CircularXX-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular XX';
    src: url('../fonts/CircularXX-BlackItalic.woff2') format('woff2'),
        url('../fonts/CircularXX-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Circular XX';
    src: url('../fonts/CircularXX-Bold.woff2') format('woff2'),
        url('../fonts/CircularXX-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Circular XX', sans-serif;
    font-size: clamp(1rem, 1.455vw, 1.375rem);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--black);
    color: var(--white);
}

.t-l {
    font-size: clamp(1.625rem, 2.515vw, 2.375rem);
    letter-spacing: -.02em;
    line-height: 1.1;
    font-weight: 900;
    font-style: italic;
}

.t-m {
    font-style: normal;
    font-size: clamp(1rem, 1.455vw, 1.375rem);
    line-height: 1.3;
    font-weight: 400;
}

.t-s {
    font-style: normal;
    font-size: clamp(.8125rem, 1.125vw, 1.0625rem);
    line-height: 1.3;
    font-weight: 400;
}

.t-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    --btn-bg: var(--surface-muted);
    --btn-color: var(--white);
    --btn-hover: var(--surface-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    padding: var(--space-xs) var(--space-s);
    border: 0;
    border-radius: var(--radius);
    background: var(--btn-bg);
    color: var(--btn-color);
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--duration-fast), color var(--duration-fast);
}

.btn--primary {
    --btn-bg: var(--primary);
    --btn-hover: var(--primary-hover);
}

.btn--madrid {
    --btn-bg: var(--madrid);
    --btn-hover: var(--madrid-hover);
}

.btn--large {
    padding: var(--space-s) calc(var(--space-s) * 1.5);
}

.btn:hover {
    background-color: var(--btn-hover);
}

.btn:active {
    filter: brightness(.92);
}

@media (max-width: 900px) {
    .btn {
        padding: .3rem .7rem;
    }

    .btn--large {
        padding: var(--space-s) var(--space-s);
    }
}

/* Layout */
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: var(--space-s);
    left: var(--gutter);
    z-index: 100;
    padding: var(--space-s);
    background: var(--white);
    color: var(--black);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

.distributor {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: var(--space-l) var(--gutter);
    isolation: isolate;
}

.distributor__video,
.distributor__overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.distributor__video {
    overflow: hidden;
}

.distributor__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.distributor__overlay {
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(17, 17, 17, .35) 0%, rgba(17, 17, 17, .55) 50%, rgba(17, 17, 17, .72) 100%),
        rgba(0, 0, 0, .2);
    pointer-events: none;
}

.distributor__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-l);
    text-align: center;
    width: min(100%, 42rem);
    animation: distributor-in 900ms var(--ease) both;
}

.distributor__logo {
    width: clamp(14rem, 28vw, 26rem);
    height: auto;
    /* Optical alignment: the mark sits slightly left inside the SVG. */
    transform: translateX(0.35rem);
}

.distributor__claim {
    max-width: 22ch;
}

.distributor__cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-s);
}

.distributor__cities .btn {
    min-width: 10rem;
}

@keyframes distributor-in {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 700px) {
    .distributor {
        align-items: stretch;
        padding: var(--space-m) var(--gutter) var(--space-l);
    }

    .distributor__content {
        flex: 1;
        width: 100%;
        max-width: none;
        min-height: calc(100svh - var(--space-m) - var(--space-l));
        justify-content: space-between;
        gap: var(--space-m);
    }

    .distributor__logo {
        width: clamp(12rem, 55vw, 18rem);
        align-self: center;
    }

    .distributor__claim {
        max-width: 18ch;
    }

    .distributor__cities {
        width: 100%;
        flex-direction: column;
        gap: var(--space-s);
    }

    .distributor__cities .btn {
        width: 100%;
        min-width: 0;
    }
}
