@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Abhaya Libre', serif;
}
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --bg--primary: #EEEEEE;
    --bg--secondary: #D9D9D9;
    --border-radius: 15px;
    --layout-max: 1440px;
    --layout-gutter: clamp(1rem, 4vw, 3rem);
    --layout-gap-sm: 1rem;
    --layout-gap-md: 1.5rem;
    --layout-gap-lg: 2.5rem;
    --header-height: 72px;
    --bp-tablet: 768px;
    --bp-desktop: 901px;
    --bp-wide: 1024px;
}


body {
    overflow-x: clip;
    max-width: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    width: 100%;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


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

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

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.skip-link:focus:not(:focus-visible) {
    transform: translateY(-120%);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* Global Button - Puede ser como un boton "primario" */
button,
.button-link {
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    max-width: fit-content;
    display: inline-block;
    text-align: center;
}

.button-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.site-footer a {
    opacity: 0.85;
}

.site-footer a:hover {
    opacity: 1;
}

main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

main > section {
    min-width: 0;
    max-width: 100%;
}

.layout-container {
    width: 100%;
    max-width: var(--layout-max);
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
    min-width: 0;
}

.layout-container--bleed {
    display: grid;
    align-items: center;
}

header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--layout-gap-md);
    height: var(--header-height);
    padding-inline: var(--layout-gutter) 0.75rem;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--secondary-color);
}

.site-header__nav {
    display: none;
}

.site-header__nav ul {
    display: grid;
    grid-auto-flow: column;
    gap: clamp(0.75rem, 2vw, 2rem);
    list-style: none;
}
.site-header__nav ul li {
    text-transform: uppercase;
    font-size: 0.875rem;
}

.logged-area {
    grid-column: 2;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    justify-self: end;
    min-width: 0;
}

.logged-area > button,
.logged-area > a {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.25rem;
    max-width: none;
}

.logged-area > button img,
.logged-area > a img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: clamp(280px, 45vh, 420px);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    padding-bottom: 2rem;
    z-index: 1;
    color: var(--secondary-color);
    max-width: 32rem;
}

.hero-content h1 {
    font-weight: 400;
    font-style: Regular;
    font-size: 70px;
    line-height: 50px;
    letter-spacing: 0.6px;
    vertical-align: middle;
    text-transform: capitalize;
    width:max-content;
    
}



/* Products — mobile */

.products {
    padding-block: var(--layout-gap-lg);
}

.products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--layout-gap-md);
    width: 100%;
}

.product-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--layout-gap-sm);
    padding: var(--layout-gap-md);
    background-color: var(--bg--primary);
    border-radius: var(--border-radius);
    min-height: 280px;
    text-align: center;
    justify-items: center;
}

.product-card__header,
.product-card__image,
.product-card__footer {
    grid-template-columns: 2fr;
    grid-row-gap: 0;
    background-color: transparent;
}
.product-card__header {

    z-index: 1;
}

.product-card__image {
    object-fit: contain;
    margin: auto;
}

.product-card__footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: var(--layout-gap-sm);
    width: 100%;
}
.product-card__colors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card__color {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    cursor: pointer;
    max-width: none;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.product-card__color:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.product-card__color[aria-checked="true"] {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.product-card__color:hover {
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.product-card__color--black {
    background-color: #1c1c1c;
}

.product-card__color--silver {
    background-color: #b8b8b8;
}

.product-card__color--white {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.25);
}

/* Dealers */

.dealers {
    padding-block: var(--layout-gap-lg);
}

.dealers__content {
    display: grid;
    gap: var(--layout-gap-md);
    max-width: 42rem;
    overflow-wrap: break-word;
}
.dealers__content h2 {
    font-family: Abhaya Libre;
    font-weight: 400;
    font-style: Regular;
    font-size: 96px;
    line-height: 70px;
    letter-spacing: 0%;
    vertical-align: middle;
}

/* Map banner — mobile */

.map-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: clamp(320px, 40vh, 480px);
    overflow: hidden;
    width: 100%;
}

.map-banner__bg {
    grid-area: 1 / 1;
    width: 100%;
    max-height: 1000%;
    object-fit: contain;
}

.map-banner__panel {
    grid-area: 1 / 1;
    align-self: center;
    justify-self: center;
    margin: var(--layout-gutter);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: calc(100% - (var(--layout-gutter) * 2));
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
    display: grid;
    gap: var(--layout-gap-md);
    text-align: center;
    justify-items: center;
    border-radius: var(--border-radius);
}

.map-banner__panel h2 {
    font-size: 40px;
    line-height: 35px;
}

.carousel {
    padding-block: var(--layout-gap-lg);
    overflow-x: clip;
    width: 100%;
}

.carousel .layout-container {
    padding-inline: 0;
    max-width: 100%;
}

.features__grid {
    --slides-visible: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(
        (100% - (var(--slides-visible) - 1) * var(--layout-gap-md)) / var(--slides-visible)
    );
    gap: var(--layout-gap-md);
    align-items: stretch;
    justify-content: start;
    justify-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--layout-gutter);
    padding-inline: var(--layout-gutter);
    padding-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #9e9e9e var(--bg--secondary);
}

.features__grid::-webkit-scrollbar {
    height: 4px;
}

.features__grid::-webkit-scrollbar-track {
    background-color: var(--bg--secondary);
    border-radius: 999px;
    margin-inline: var(--layout-gutter);
}

.features__grid::-webkit-scrollbar-thumb {
    background-color: #9e9e9e;
    border-radius: 999px;
}

.feature-card {
    scroll-snap-align: start;
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--layout-gap-sm);
    padding: var(--layout-gap-md);
    background-color: var(--bg--primary);
    border-radius: var(--border-radius);
    min-height: 240px;
}

.feature-card__image {
    width: 100%;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 4px);
    max-height: 90%;
    object-fit: fill;
    object-position: center;
}



.tentation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: clamp(300px, 45vh, 520px);
    overflow: hidden;
    width: 100%;
}

.tentation__bg {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tentation__content {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: center;
    padding: var(--layout-gutter);
    max-width: 28rem;
    color: var(--secondary-color);
    z-index: 1;
    text-align: center;
}

.tentation__content h2 {
    font-family: Abhaya Libre;
    font-weight: 400;
    font-style: Regular;
    font-size: 40px;
    line-height: 45px;
}
/* Wheel — mobile */

.wheel-program {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.wheel-program__media {
    order: 1;
    min-height: 240px;
}

.wheel-program__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wheel-program__copy {
    order: 2;
    display: grid;
    align-content: center;
    gap: var(--layout-gap-md);
    padding: clamp(2rem, 6vw, 4rem);
    background-color: var(--secondary-color);
    text-align: center;
    justify-items: center;
}

.wheel-program__copy h2 {
    font-family: Abhaya Libre;
    font-weight: 400;
    font-style: Regular;
    font-size: 40px;
    line-height: 35px;
}
/* Contact — mobile */

.contact {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--layout-gap-md);
    padding: clamp(1.5rem, 4vw, 2.5rem) var(--layout-gutter);
    background-color: #1e1c1c;
    width: 100%;
}

.contact p {
    min-width: 0;
    overflow-wrap: break-word;
    color: var(--secondary-color);
}

/* Footer — mobile */

.site-footer {
    display: grid;
    gap: var(--layout-gap-lg);
    padding: clamp(2rem, 6vw, 5rem) var(--layout-gutter);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 100%;
}

.site-footer__newsletter {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 36rem;
    margin-inline: auto;
    width: 100%;
}

.site-footer__newsletter input {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 8.5rem 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--border-radius);
    background-color: transparent;
    color: var(--secondary-color);
    font: inherit;
}

.site-footer__newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__newsletter input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.site-footer__newsletter button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--border-radius);
    max-width: none;
    white-space: nowrap;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.site-footer__column ul {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.site-footer__back-to-top {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--border-radius);
}

.site-footer__back-to-top:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.products__grid:focus-visible,
.features__grid:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--layout-gap-lg);
    width: 100%;
}

.site-footer__column {
    display: grid;
    gap: 0.75rem;
}

.site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;

    gap: var(--layout-gap-md);
    padding-top: var(--layout-gap-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
}
