* { padding: 0px; margin: 0px; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { all: unset; }

@font-face {
    font-family: 'Garet';
    src: url('Assets/Garet-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'GaretHeavy';
    src: url('Assets/Garet-Heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Desktop First */

:root {
    /* Nav bar */
    --nav-padding: 1rem 2rem;
    --nav-imgsize: clamp(0px, 16rem, 40vh);

    --nav-mainoptionsgap: 5rem;
    --nav-mainoptionsfs: 1rem;

    --nav-socialoptionsgap: 1.5rem;
    --nav-socialoptionsimgsize: 2rem;

    --nav-dropdownwidth: 20rem;
    --nav-dropdownpadding: 1.5rem;
    
    /* Hero */
    --hero-padding: 10vh 0vh;
    --hero-marginright: 0rem; /* Unused */
    
    --hero-headerfs: clamp(0px, 5rem, 10vh);

    --hero-subheaderfs: clamp(0px, 3rem, 6vh);
    --hero-subheaderpaddingleft: 0rem;

    --hero-ctabuttonsgap: 3rem;

    /* About us / Services */
    --aboutus-headerfs: clamp(0px, 3rem, 8vh);
    --aboutus-textfs: clamp(0px, 1.5rem, 6vh);
    
    --aboutus-margin: 0vh 15vh;
    --aboutus-padding: 5vh 0vh;
    --aboutus-gap: 2rem;

    --services-circlesize: clamp(0px, 22rem, 40vh);
    --services-margin: 0vh 35vh;
    --services-featuremargin: 0rem 1rem;
    --services-headermargin: 1rem 0rem;

    --services-headerfs: clamp(0px, 1.7rem, 8vh);
    --services-textfs: clamp(0px, 1.2rem, 5vh);

    /* Silkolene */

    --silkolene-padding: 5vh 50vh;
    --silkolene-imgsize: 15rem;
    --silkolene-headermargin: 1rem 0rem;
    --silkolene-infogap: 0.4rem;

    --silkolene-infoheaderfs: clamp(0px, 2rem, 8vh);
    --silkolene-infofs: clamp(0px, 1.2rem, 5vh);

    /* Contact */

    --contact-padding: 5vh 40vh;

    --contact-labelmargin: 0vh 0vh;
    --contact-headerfs: clamp(0px, 2rem, 8vh);
    --contact-textfs: clamp(0px, 1.2rem, 5vh);
    --contact-headermargin: 1rem;
    --contact-linksgap: 0.4rem;

    --contact-linkheaderfs: clamp(0px, 1.2rem, 3vh);
    --contact-linkfs: clamp(0px, 1rem, 2vh);

    /* Footer */

    --footer-padding: 5vh 40vh;
    --footer-imgsize: 15rem;
    --footer-infofs: 1.2rem;
    --footer-generalmargintop: 1rem;
}

/* Nav Bar */

nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    
    font-family: "Garet";
    background-color: #ffffff;
    
    padding: var(--nav-padding);
    z-index: 100;
}
nav img {
    width: var(--nav-imgsize);
}
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
}

.main-options {
    display: flex;
    justify-content: center;
    align-content: center;

    gap: var(--nav-mainoptionsgap);
    font-size: var(--nav-mainoptionsfs);
}

.main-options > li {
    cursor: pointer;
    position: relative;
}
.main-options > li::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.3s ease;
}
.main-options > li:hover::after {
    transform: scaleX(1);
}
.main-options i {
    transition: all 0.2s ease;
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    position: absolute;
    top: 100%;              
    left: 50%;                
    transform: translateX(-50%) translateY(-20px);
    cursor: default;
    border-radius: 1vh;
    display: flex;
    flex-direction: column;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;

    width: var(--nav-dropdownwidth);
    padding: var(--nav-dropdownpadding);
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.dropdown-arrow {
    display: none;
}
.dropdown-content li:not(.dropdown-separator) {
    margin: 6px 0px;
    cursor: pointer;
    transition: all 0.1s ease;
}
.dropdown-content li:hover:not(.dropdown-separator) {
    transform: translateX(15px);
}
.dropdown-content li:hover:not(.dropdown-separator) .dropdown-arrow {
    display: inline-block;
    animation: dropdown-arrow-appear 0.4s forwards ease;
}
.dropdown:hover .dropdown-content {
    transform:translateX(-50%) translateY(0);
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}
.dropdown:hover i {
    transform: rotate(180deg);
}
.dropdown-separator {
    font-family: "GaretHeavy";
    border-bottom: 1px solid gray;
    margin-bottom: 20px;
    margin-top: 10px;
    cursor: default;
}
@keyframes dropdown-arrow-appear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.socials-options {
    justify-content: right;
    gap: var(--nav-socialoptionsgap);
}
.socials-options img {
    width: var(--nav-socialoptionsimgsize);
    transition: all 0.2s ease;
}
.socials-options img:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

/* Hero */

#hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: clamp(420px, 62vh, 760px);
    overflow: hidden; 
}

/* Carrousel */

#hero .hero-slides{
    position: absolute;
    inset: 0;
    z-index: 0;
    --hero-per: 5s;
}

#hero .hero-slides::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45));
    pointer-events: none;
}

#hero .hero-slides img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    will-change: opacity, transform;
    animation: heroFade var(--hero-cycle, calc(var(--hero-per) * 3)) infinite;
}

/* Texto por delante del carrusel */
#hero .hero-cta{
    position: relative;
    z-index: 1;
}

/* Animación base */
@keyframes heroFade{
    0%   { opacity: 0; transform: scale(1.05); }
    4%   { opacity: 1; }
    30%  { opacity: 1; transform: scale(1); }
    34%  { opacity: 0; }
    100% { opacity: 0; transform: scale(1.05); }
}

/* ======== Secuenciación CSS-Only (sin JS) ======== */

#hero .hero-slides img:nth-child(1){ animation-delay: calc(var(--hero-per) * 0); }
#hero .hero-slides img:nth-child(2){ animation-delay: calc(var(--hero-per) * 1); }
#hero .hero-slides img:nth-child(3){ animation-delay: calc(var(--hero-per) * 2); }

#hero .hero-slides img:nth-child(4){ animation-delay: calc(var(--hero-per) * 3); }
#hero .hero-slides img:nth-child(5){ animation-delay: calc(var(--hero-per) * 4); }
#hero .hero-slides img:nth-child(6){ animation-delay: calc(var(--hero-per) * 5); }

#hero .hero-slides.has-4 { --hero-cycle: calc(var(--hero-per) * 4); }
#hero .hero-slides.has-5 { --hero-cycle: calc(var(--hero-per) * 5); }
#hero .hero-slides.has-6 { --hero-cycle: calc(var(--hero-per) * 6); }

@media (prefers-reduced-motion: reduce){
  #hero .hero-slides img{ animation: none; opacity: 1; }
  #hero .hero-slides img:not(:first-child){ display: none; }
}

/**/

.hero-cta {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;

    padding: var(--hero-padding);
    margin-right: var(--hero-marginright);
    justify-content: center;
    justify-items: center;
}
.hero-ctaheader {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    font-family: 'GaretHeavy';
    font-size: var(--hero-headerfs);
    font-weight: bold;
    color: #ffffff;
    text-shadow: 10px 10px 30px rgba(0, 0, 0, 0.75);
}
.hero-ctasubheader {
    display: flex;
    justify-content: center;
    text-align: center;

    font-family: 'Garet';
    font-size: var(--hero-subheaderfs);
    color: #ffffff;
    text-shadow: 10px 10px 30px rgba(0,0,0,0.75);
    width: 60%;
}
.hero-ctabuttons{
  display:flex;
  justify-content:center;
  gap: var(--hero-ctabuttonsgap);
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 60px;
  border-radius:40px;
  font: 600 16px "Garet", sans-serif;
  text-decoration:none;
  line-height:1;
  transition:transform .3s cubic-bezier(.23,1,.32,1), 
             box-shadow .3s, background-color .3s, color .3s, border-color .3s;
  border:2px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background:#ffe500;
  border-color:#ffe500;
  color:#062f6e;
}
.btn-primary:hover{
  background:#062f6e;
  border-color:#062f6e;
  color:#ffe500;
  box-shadow: rgba(0,0,0,.25) 0 8px 15px;
  transform: translateY(-2px);
}
.btn-secondary{
  background:#fff;
  border-color:#fff;
  color:#0b1215;
}
.btn-secondary:hover{
  background:#0b1215;
  border-color:#0b1215;
  color:#fff;
  box-shadow: rgba(0,0,0,.25) 0 8px 15px;
  transform: translateY(-2px);
}
.btn-arrowmargin {
    margin-left: 6px;
}


/* About us / Services */

#aboutus-services {
    display: grid;
    grid-template-rows: 0.4fr 1fr;
    grid-template-areas: "aboutus"
                        "services";

    height: auto;
    padding: var(--aboutus-padding);
    gap: var(--aboutus-gap);

    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Images/Services.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.aboutus {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: var(--aboutus-margin);
    grid-area: aboutus;
}
.aboutus-header {
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--aboutus-headerfs);
    font-weight: bold;
}
.aboutus-text {
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--aboutus-textfs);
    font-weight: normal;
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: var(--services-margin);
}
.feature {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;

    margin: var(--services-featuremargin);
}
.circle {
    width: var(--services-circlesize);
    height: var(--services-circlesize);
    border-radius: 50%;
    background: white;
}

/* Circle carrousel */
.circle.circle-carousel{
  position: relative;
  background: #fff;       
  overflow: visible;        
}

.circle-carousel .circle-viewport{
  position: absolute;
  inset: var(--circle-padding, 6%);
  border-radius: 50%;
  overflow: hidden;            
}

.circle-carousel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  animation: circleFade var(--circle-cycle, calc(var(--circle-per, 4s) * 3)) infinite;
}

@keyframes circleFade{
  0%   { opacity: 0; }
  10%  { opacity: 1; }   
  33%  { opacity: 1; }  
  43%  { opacity: 0; }  
  100% { opacity: 0; }
}

.circle-carousel img:nth-child(1){ animation-delay: calc(var(--circle-per, 4s) * 0); }
.circle-carousel img:nth-child(2){ animation-delay: calc(var(--circle-per, 4s) * 1); }
.circle-carousel img:nth-child(3){ animation-delay: calc(var(--circle-per, 4s) * 2); }
.circle-carousel img:nth-child(4){ animation-delay: calc(var(--circle-per, 4s) * 3); }
.circle-carousel img:nth-child(5){ animation-delay: calc(var(--circle-per, 4s) * 4); }
.circle-carousel img:nth-child(6){ animation-delay: calc(var(--circle-per, 4s) * 5); }

.circle-carousel.has-4{ --circle-cycle: calc(var(--circle-per, 4s) * 4); }
.circle-carousel.has-5{ --circle-cycle: calc(var(--circle-per, 4s) * 5); }
.circle-carousel.has-6{ --circle-cycle: calc(var(--circle-per, 4s) * 6); }

@media (prefers-reduced-motion: reduce){
  .circle-carousel img{ animation: none; opacity: 1; }
  .circle-carousel img:not(:first-child){ display: none; }
}


/**/

.ventamotos {
    background-image: url('Images/Moto.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.partesyaccesorios {
    background-image: url('Images/PartesyAccesorios.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-header {
    text-align: center;
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--services-headerfs);
    margin: var(--services-headermargin);
    font-weight: bold;
}
.feature-text {
    text-align: center;
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--services-textfs);
}
.feature-link {
    font-family: 'Garet';
    color: #ffe500;
    font-weight: bold;
    cursor: pointer;
    font-size: var(--services-textfs);
    transition: all 0.1s ease;
}
.feature-link:hover {
    color: #f1d900;
    text-decoration: underline;
}

/* Silkolene */

#silkolene {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    grid-template-areas: "logo info";
    padding: var(--silkolene-padding);

    height: auto;
    background-color: #ffffff;
}
.silkolene-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    grid-area: logo;
}
.silkolene-logo img {
    width: var(--silkolene-imgsize);
}

.silkolene-info {
    display: flex;
    flex-direction: column;
    justify-content: left;

    grid-area: info;
    gap: var(--silkolene-infogap);
}
.silkolene-header {
    font-family: 'Garet';
    font-size: var(--silkolene-infoheaderfs);
    color: #0b1215;
    font-weight: bold;
}
.silkolene-text {
    font-family: 'Garet';
    font-size: var(--silkolene-infofs);
    color: #0b1215;
    margin: var(--silkolene-headermargin);
}

.silkolene-link {
    font-family: 'Garet';
    font-size: var(--silkolene-infofs);
    color: #0b1215;
    
    cursor: pointer;
    font-weight: bold;
}
.silkolene-link:hover {
    color: #1d2b31;
    text-decoration: underline;
}
/* Contact */

#contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "contactheader contactinfo";
    padding: var(--contact-padding);

    height: auto;
    background-color: #545454;
}
.contactlabel {
    display: flex;
    flex-direction: column;
    align-content: center;
    grid-area: contactheader;

    margin: var(--contact-labelmargin);
}
.contact-header {
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--contact-headerfs);
    margin-bottom: var(--contact-headermargin);
    font-weight: bold;
}
.contact-text {
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--contact-textfs);
}

.contactinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-area: contactinfo;

    margin: var(--contact-labelmargin);
    gap: var(--contact-linksgap);
}
.contact-linkheader {
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--contact-linkheaderfs);
    margin-bottom: var(--contact-headermargin);
    font-weight: bold;
}
.contact-link {
    font-family: 'Garet';
    color: #ffffff;
    font-size: var(--contact-linkfs);
    font-weight: bold;
    cursor: pointer;
    
    text-decoration: underline;
    transition: all 0.1s ease;
}
.contact-link:hover {
    color: #e0e0e0;
}

/* Footer */

footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "info links";

    height: auto;
    padding: var(--footer-padding);
    background-color: #0b1215;
}

.footer-info {
    display: flex;
    flex-direction: column;
    grid-area: info;
}
.footer-info img {
    width: var(--footer-imgsize);
}
.footer-location {
    font-family: 'Garet';
    color: #bebdbd;
    font-size: var(--footer-infofs);
    margin-top: var(--footer-generalmargintop);
    transition: all 0.1s ease;
}
.footer-location:hover {
    cursor: pointer;
    color: #e6e6e6;
}
.footer-scheduleheader {
    font-family: 'Garet';
    color: #bebdbd;
    font-size: var(--footer-infofs);
    margin-top: var(--footer-generalmargintop);
    font-weight: bold;
}
.footer-schedule {
    display: flex;
    width: 80%;
    justify-content: space-between;
    
    font-family: 'Garet';
    color: #bebdbd;
    font-size: var(--footer-infofs);

    margin-top: var(--footer-generalmargintop);
    border-bottom: solid 1px #bebdbd;
}

.footer-links {
    display: flex;
    flex-direction: column;
    grid-area: links;
}
.footer-linksheader {
    font-family: 'Garet';
    color: #bebdbd;
    font-size: var(--footer-infofs);
    margin-top: var(--footer-generalmargintop);
    font-weight: bold;
}
.footer-linkscontainer {
    display: flex;
    flex-direction: column;
    font-family: 'Garet';
    color: #bebdbd;
    font-size: var(--footer-infofs);
    margin-top: var(--footer-generalmargintop);
    text-decoration: underline;
}
.footer-linkscontainer a {
    transition: all 0.1s ease;
}
.footer-linkscontainer a:hover {
    cursor: pointer;
    color: #e6e6e6;
}

/* Mobile */

@media (max-width: 1024px) {

    :root {
        /* Nav bar */
        --nav-padding: 1rem 2rem;
        --nav-imgsize: clamp(0px, 16rem, 40vh);

        --nav-mainoptionsgap: 5rem;
        --nav-mainoptionsfs: 1rem;

        --nav-socialoptionsgap: 1.5rem;
        --nav-socialoptionsimgsize: 2rem;

        --nav-dropdownwidth: 20rem;
        --nav-dropdownpadding: 1.5rem;
        
        /* Hero */
        --hero-padding: 3vh 0vh;
        --hero-marginright: 0rem; /* Unused */
        
        --hero-headerfs: clamp(0px, 3.4rem, 4vh);
        --hero-subheaderfs: clamp(0px, 1.4rem, 6vh);

        --hero-subheaderpaddingleft: 0rem;

        --hero-ctabuttonsgap: 1rem;

        /* About us / Services */
        --aboutus-headerfs: clamp(0px, 1.4rem, 8vh);
        --aboutus-textfs: clamp(0px, 1rem, 6vh);
        
        --aboutus-margin: 0vh 3vh;

        --services-circlesize: clamp(0px, 13rem, 40vh);
        --services-margin: 0vh 3vh;
        --services-featuremargin: 0rem 1rem;
        --services-headermargin: 1rem 0rem;

        --services-headerfs: clamp(0px, 1.4rem, 8vh);
        --services-textfs: clamp(0px, 1rem, 5vh);

        /* Silkolene */

        --silkolene-padding: 0vh 3vh;
        --silkolene-imgsize: 10rem;
        --silkolene-headermargin: 0.5rem 0rem;

        --silkolene-infoheaderfs: clamp(0px, 1.4rem, 8vh);
        --silkolene-infofs: clamp(0px, 1rem, 5vh);

        /* Contact */

        --contact-padding: 3vh 3vh;

        --contact-labelmargin: 0vh 0vh;
        --contact-headerfs: clamp(0px, 1.4rem, 8vh);
        --contact-textfs: clamp(0px, 1rem, 5vh);

        --contact-linkheaderfs: clamp(0px, 1.4rem, 3vh);
        --contact-linkfs: clamp(0px, 1rem, 2vh);

        /* Footer */

        --footer-padding: 1vh 3vh;
        --footer-imgsize: 10rem;
        --footer-infofs: 1rem;
        --footer-generalmargintop: 0.8rem;
    }

    /* Nav bar */
    nav {
        display: none;
    }

    /* Hero */
    #hero {
        min-height: 30rem;
    }

    .btn{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        padding:6px 20px;
        border-radius:40px;
        font: 600 10px "Garet", sans-serif;
        text-decoration:none;
        line-height:1;
        transition:transform .3s cubic-bezier(.23,1,.32,1), 
                    box-shadow .3s, background-color .3s, color .3s, border-color .3s;
        border:2px solid transparent;
        cursor: pointer;
    }

    /* Silkolene */

    #silkolene {
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: "logo" "info";
        height: auto;
        padding: 2rem 0rem;
    }
    .silkolene-logo {
        justify-content: center;
        align-items: center;
        align-content: center;
        justify-items: center;
    }
    .silkolene-info {
        justify-content: center;
        align-content: center;
        align-items: center;
        justify-items: center;
        text-align: center;
    }

    /* About us - Services */

    #aboutus-services {
        height: auto;
    }
    .aboutus {
        padding: 1rem 0rem;
    }
    .aboutus-text {
        justify-content: center;
        text-align: center;
    }
    .services {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;

        gap: 1rem;
    }

    /* Contact */

    #contact {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: 0.1fr 0.1fr;
        grid-template-areas: "contactheader" "contactinfo";
    }

    .contact-header {
        text-align: center;
        justify-content: center;
    }
    .contact-text {
        text-align: center;
        justify-content: center;
        margin-bottom: var(--contact-headermargin);
    }
    .contact-link {
        margin-bottom: var(--contact-headermargin);
    }

    /* Footer */

    footer {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        grid-template-areas: "info" "links";
    }
    .footer-info {
        text-align: center;
        justify-content: center;
        justify-items: center;
        align-content: center;
        align-items: center;
    }
    .footer-links {
        text-align: center;
        justify-content: center;
        justify-items: center;
        align-content: center;
        align-items: center;
    }
}