* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --primary-color: #e9e9e9;
    --secondary-color: #333333;
    --red-color: #E30713;
    --item-background: #202125b3;
    --item-borderradius: 12px;
} 

.guia-item .guia-items-container {
  display: none;
}

.guia-item.abierto .guia-items-container {
  display: block;
}

.toggle-icon {
  display: inline-block;
  font-size: 24px;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.guia-item.abierto .toggle-icon {
  transform: rotate(45deg);
}


.guia-wrapper{
    background-image: url(../img/bg4.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 3.5rem 0rem;
    min-height: fit-content; 
    background-attachment: fixed;
}


.guia-container{
    max-width: 1200px;
    margin: 0 auto;
    color: var(--primary-color);
}

.guia-container h2{
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.guia-container p{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.guia{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guia-item{
    background: var(--item-background);
    border-radius: var(--item-borderradius);
    box-shadow: var(--item-shadow);
    padding: 1rem;
}

.guia-item-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.guia-item-header h3{
    border-left: 5px solid var(--red-color);
    padding-left: 0.5rem;
}

.guia-item-header h3, .guia-item-header span{
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.guia-item-header span{
    transition: transform 0.3s ease;
    font-size: 2rem;
}

.guia-items-container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#monoplazas-content {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  position: relative;
  background-color: #6c6c6c70;
  border-radius: 12px;
}

canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.hotspot {
  background: var(--item-background);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--primary-color);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
}

.hotspot {
    transition: background 0.5s;
    cursor: default;
}

.hotspot:hover {
  background: var(--red-color);
}

.tooltip {
  position: fixed;
  padding: 6px 10px;
  background-color: #202125c2;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--item-borderradius);
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  font-family: 'Rajdhani', sans-serif;
}

.guia-item-description{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.guia-item-description p{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--primary-color);
    line-height: 1.5;
    margin-bottom: 0;
}

.guia-item-details{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guia-item-detail{
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
}

.guia-item-detail h4{
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    border-left: 5px solid var(--red-color);
    padding-left: 0.5rem;
}

.guia-item-detail p{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.hidden{
    display: none;
}

/* Neumaticos */

.margin-top{
    margin-top: 1rem;
}

.neumaticos-slicks{
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 1rem;
}

.neumaticos-lluvia{
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    margin: 1rem;
}

.neumatico{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 30%;
    text-align: center;
}

.neumatico h5{
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

.neumatico p{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}

.neumaticos-img{
    width: 150px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* BANDERAS */

.guia-banderas-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.guia-bandera{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 30%;
}

.guia-bandera img{
    width: 150px;
    height: 150px;
}

.guia-bandera-text h5{
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.guia-bandera-text p{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
}

/* FORMATOS */

.formato-tradicional{
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formato-sprint{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formato-sprint h4, .formato-tradicional h4{
    font-family: 'Formula1Bold', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.formato-tradicional-details, .formato-sprint-details{
    display: flex;
    flex-direction: column;
}

.formato-tradicional-details h5, .formato-sprint-details h5{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.formato-tradicional-details li, .formato-sprint-details li{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
    list-style-type: none;
    padding-left: 1rem;
}

/* PUNTOS */

.puntos-details-container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.puntos-details-items{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.puntos-details h5{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.puntos-details li{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
    list-style-type: none;
    padding-left: 1rem;
}

.puntos-details li span{
    font-weight: 700;
}

.puntos-details p{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-left: 0.5rem;
    margin: 0.5rem 0;
}


/* RESPOSIVE DESIGN */

@media (max-width: 768px) {
    .guia-container{
        width: 90%;
    }
    .guia-wrapper{
        padding: 2rem 0rem;
    }
    .guia-container h2{
        font-size: 1.8rem;
    }
    .guia-container p{
        font-size: 1.2rem;
    }
    .guia-item-header h3, .guia-item-header span{
        font-size: 1.5rem;
    }
    .guia-item-detail{
        padding-left: 0;
    }
    .neumaticos-slicks{
        margin: 1rem 0;
    }
    .neumaticos-img{
        width: 120px;
    }
    .neumatico{
        width: 35%;
    }
    .neumatico p, .guia-bandera-text p{
        font-size: 0.8rem;
    }
    .neumatico h5, .guia-bandera-text h5{
        font-size: 1rem;
        text-align: center;
    }
    .guia-bandera{
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .guia-bandera img{
        width: 100px;
        height: 100px;
    }
    .guia-bandera-text{
        text-align: center;
    }
}

@media (max-width: 480px) {
    .guia-bandera img {
        width: 100px;
        height: 100px;
    }

    .neumaticos-slicks, .neumaticos-lluvia{
        flex-direction: column;
        gap: 1rem;
        margin: 1rem 0;
    }
    .neumatico{
        width: 100%;
    }
    .neumaticos-img {
        width: 100px;
    }
    .hotspot{
        font-size: 0.5rem !important;
    }
    .tooltip{
        font-size: 0.8rem !important;
    }
}