/* === Race Sport local font === */
@font-face {
    font-family: 'Race Sport';
    src: url('../assets/fonts/RaceSport.ttf') format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #008037;
    --primary-700: #004d26;
    --accent: #ffc107;
    --text: #1c1c1c;
    --muted: #666;
    --bg: #fff;
    --light: #eef8f0;
    --maxw: 1100px;
    --radius: 12px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/Satoshi-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/Satoshi-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/fonts/Satoshi-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap
}

body {
    margin: 0;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    /*background-color: #00f59b;*/
    /*background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");*/
    line-height: 1.55
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
    color: #f8fafc;
}

.nav {
    max-width: var(--maxw);
    margin: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary)
}

.brand img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block
}

@media (max-width: 760px) {
    .brand img {
        width: 40px;
        height: 40px
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0
}

.brand, nav a {
    font-family: 'Race Sport', 'Satoshi', sans-serif
}

nav a {
    text-decoration: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease
}

nav a:hover, nav a:focus {
    background: var(--light);
    color: var(--primary-700);
    outline: none
}

.burger {
    margin-left: auto;
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer
}

@media (max-width: 760px) {
    nav {
        display: none;
        width: 100%
    }

    nav.open {
        display: block
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0
    }

    .burger {
        display: block
    }
}

.hero {
    background: linear-gradient(180deg, #fff, #f4fbf6)
}

.wrap {
    max-width: var(--maxw);
    margin: auto;
    padding: 28px 16px
}

.lead {
    color: var(--muted);
    margin-top: 6px
}

.slider {
    position: relative;
    max-width: 1100px; /* Ajusta este valor según el ancho de tu contenido */
    margin: 0 auto; /* Centra el slider */
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform .6s ease
}

.slide {
    flex: 1 0 100%
}

.slide img {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: block;
}

.dots {
    position: relative;
    left: 0;
    right: 0;
    bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    cursor: pointer
}

.dot.active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .15) inset;
    transform: scale(1.05)
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .32);
    color: #fff;
    border: 0;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer
}

.slider-btn:hover {
    background: rgba(0, 0, 0, .55)
}

.prev {
    left: 10px
}

.next {
    right: 10px
}

.fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw)
}

section {
    padding: 20px 16px
}

section:nth-of-type(even) {
    background: #fafbfe
}

.grid {
    display: grid;
    gap: 16px
}

@media (min-width: 860px) {
    .grid-2 {
        grid-template-columns:1fr 1fr
    }

    .grid-3 {
        grid-template-columns:repeat(3, 1fr)
    }
}

.card {
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    padding: 18px
}

.cards {
    display: grid;
    gap: 16px
}

@media (min-width: 860px) {
    .cards {
        grid-template-columns:repeat(3, 1fr)
    }
}

.card.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px
}

.card.icon img {
    width: 120px;
    height: 120px
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    font-weight: 600
}

.btn:hover {
    background: var(--accent);
    color: #0f172a
}

footer {
    background: linear-gradient(360deg, #0f172a 0%, #1e3a8a 100%);
    color: #e7ecff
}

.footer-grid {
    display: grid;
    gap: 18px
}

@media (min-width: 760px) {
    .footer-grid {
        grid-template-columns:2fr 1fr 1fr 1fr
    }
}

.footer a {
    color: #b6c5ff;
    text-decoration: none
}

.footer a:hover {
    text-decoration: underline
}

.sub {
    border-top: 1px solid #1e293b;
    margin-top: 16px;
    padding-top: 12px;
    color: #b3b9c6;
    font-size: .95rem
}

.input, .textarea, .select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    margin: 6px 0 12px
}

.label {
    display: block;
    font-weight: 600;
    margin-top: 2px
}


/* === Flotantes === */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    z-index: 999;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .28);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    display: block
}

.badge-247 {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 200px;
    height: 50px;
    background: #ffc107;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .4px;
    font-family: 'Race Sport', 'Satoshi', sans-serif;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
    z-index: 999;
}

.badge-247 .close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: #0f172a;
    color: #fff;
    line-height: 1;
    font-size: 14px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}

@media (max-width: 640px) {
    .badge-247 {
        top: 12px;
        right: 12px;
        transform: scale(.95)
    }
}

/* Ocultar badge 24/7 en móviles */
@media (max-width: 760px), (pointer: coarse) {
    .badge-247 {
        display: none !important;
    }
}

/* === Carrusel de productos === */
.pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.pc-ctr {
    display: flex;
    gap: 8px
}

.pc-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06)
}

.pc-btn:hover {
    background: var(--light);
    color: var(--primary-700)
}

.pc-view {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pc-view::-webkit-scrollbar {
    display: none
}

.pc-track {
    display: grid;
    grid-auto-flow: column;
    gap: 16px
}

.pc-card {
    width: min(320px, 80vw);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px
}

.pc-card img {
    width: 120px;
    height: 120px;
    object-fit: contain
}

.pc-card h3 {
    margin: 6px 0 0
}

.pc-card p {
    margin: 0;
    color: var(--muted)
}

.pc-card .btn {
    margin-top: 8px
}

.pc-dots {
    display: none;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 12px
}

.pc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: #d7dde5;
    transition: transform .15s ease
}

.pc-dot[aria-current="true"] {
    background: var(--primary);
    transform: scale(1.1)
}


/* Carrusel Home: 4 por vista en desktop, 1–2 en móvil */
.pc-home .pc-card {
    width: min(260px, 80vw); /* ~4 por vista en 1100px de ancho */
}

@media (max-width: 1024px) {
    .pc-home .pc-card {
        width: min(300px, 78vw);
    }

    /* 2-3 por vista */
}

@media (max-width: 640px) {
    .pc-home .pc-card {
        width: min(320px, 86vw);
    }

    /* 1-2 por vista */
}
