@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

:root {
    --primary-color: #0367A6;
    --secondary-color: #E8689E;
    --font-size-small: 14px;
    --font-size-large: 50px;
    --font-family: "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, 
body {
    width: 100%;
    height: 100%;
    font-family: var(--font-family); /*n*/
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a, p {
    text-decoration: none;
    color: #fff;
    font-size: var(--font-size-small); /*n*/
}
   
.slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slider-images {
    position: absolute;
    width: 100%;
    height: 100%;
}

.img {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slider-counter {
    position: absolute;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    height: 24px;
    display: flex;
    gap: 0.5em;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.slider-counter > div {
    flex: 1;
}

.slider-counter p {
    line-height: 20px;
}

.counter {
    position: relative;
    top: 0px;
    will-change: transfrom;
}

.slider-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 64px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.slider-title-wrapper {
    position: relative;
    width: 100%;
    top: 0px;
    text-align: center;
    will-change: transform;
}

.slider-title-wrapper p {
    font-size: var(--font-size-large); /*n*/
    line-height: 60px;
}
   
.slider-indicators {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    display: flex;
    justify-content: space-between;
}

.slider-indicators p {
    position: relative;
    font-size: 40px;
    font-weight: 200;
    will-change: transform;
}

.slider-preview {
    position: absolute;
    bottom: 2em;
    right: 2em;
    width: 35%;
    height: 50px;
    display: flex;
    gap: 1em;
}

 .preview {
    position: relative;
    flex: 1;
    cursor: pointer;
 }

.preview::after { 
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: 0.3s ease-in-out;
}

.preview.active::after {
    background: rgba(0, 0, 0, 0);

}

@media (max-width: 900px) {
    .slider-indicators {
        width: 90%;
    }

    .slider-preview {
        width: 90%;
        bottom: 5em;
    }

    .slider-title-wrapper p {
        font-size: 30px;

    }
}
/* menu y demas*/
::-webkit-scrollbar {
  display: none;
}
/* logo OtroRenderista */
.logo {
  width: 100%;
  height: 50px;
  position: fixed;
  z-index: 1;
}

h1 {
  width: 100%;
  text-align: center;
  padding-top: .5rem;
  color: var(--primary-color); /*n*/
  font-size: 2rem;
  transition: 1s;
}

.open {
  position: fixed;
  color: var(--primary-color); /*n*/
  padding: 8px 0;
  padding-top: .5rem;
  padding-left: 40px;
  font-size: 2.4rem;
  z-index: 2;
  transition: 1s;
}

 /* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 3; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: var(--primary-color); /*nuevo*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  text-align: center;
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* Enlaces del menú de navegación */
.sidenav a {
  padding: 8px 20px;         /* Espaciado interno ajustado */
  text-decoration: none;     /* Sin subrayado */
  font-size: 18px;           /* Tamaño de fuente */
  color: #fff;               /* Color del texto */
  display: block;            /* Mostrar como bloque, mantiene el menú vertical */
  margin: 0 0 39px 0;        /* Márgenes superior e inferior: 30px */
  transition: color 0.3s ease; /* Suave transición del color */
  width: fit-content;        /* Ancho ajustable al contenido */
  text-align: center;        /* Centrar el texto */
  margin-left: auto;         /* Centrar verticalmente en contenedor */
  margin-right: auto;        /* Centrar verticalmente en contenedor */
}
/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: var(--secondary-color); /* nuevo */
}
/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 0px;
  font-size: 100px;
  margin-left: 50px;
}
/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 0px;
}

/*logo*/
@media (max-width: 1200px) {
  h1 {
    font-size: 1.8rem;
    padding-top: .8rem;
  }
  .open {
    font-size: 2.2rem;
    padding-top: .8rem;
  }
}

@media (max-width: 721px) {
  h1 {
    font-size: 1.6rem;
    padding-top: 1.2rem;

  }
  .open {
    font-size: 2rem;
    padding-top: .8rem;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 1rem;
    padding-top: 1.2rem;
    padding-left: 5rem;
    
  }

  .open {
    font-size: 1.8rem;
    padding-top: .8rem;
  }
}
/*logo*/
/*Videos*/
.videos{
  width: 100%;
  min-height: max-content;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 0 8%;
  gap: 30px;
  transform: translateY(7rem);
  padding-bottom: 5%;

}
.vidvid{
  display: contents;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 30px;
  transform: translateY(0px);
}
/*Videos*/
/* 360*/
.imagen360{
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-top: 5rem;
  padding-bottom: 2rem;
  display: grid;
  justify-content: center;
  gap: 10px;
  transition: .5s;
}

.botonimagen{
  display: flex;
  justify-content: center;

}
/*360*/
/*contacto*/
.otro{
  height:100vh;
  width:100%;  
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition: all 1s;
  }

  h2{
    text-align:center;
    color: var(--primary-color); /*n*/
    font-size: 4rem;
    transition: all 1s;
  }
  
  .roller{
    height: 4.125rem;
    line-height: 4rem;
    position: relative;
    overflow: hidden; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color); /*n*/
    transition: all 1s;
  }
  
  #spare-time{
    font-size: 4rem;
    letter-spacing: 1rem;
    margin-top: 0;
    color: var(--primary-color); /*n*/
    transition: all 1s;
  }
  
  .roller #rolltext {
    position: absolute;
    top: 0;
    animation: slide 5s infinite;  
  }
  
  @keyframes slide {
    0%{
      top:0;
    }
    25%{
      top: -4rem;    
    }
    50%{
      top: -8rem;
    }
    72.5%{
      top: -12.25rem;
    }
  }
  
  @media screen and (max-width: 1200px){
    h2{
    text-align:center;
    color: #0367A6; 
    font-size: 3rem;
  }

    .roller{
    height: 3.6rem; 
    line-height: 3.125rem;  
    }
  
    #spare-time {
      font-size: 3.125rem;
      letter-spacing: 0.1rem;
    }
  
    .roller #rolltext {  
    animation: slide-mob 5s infinite;  
  }
    
    @keyframes slide-mob {
    0%{
      top:0;
    }
    25%{
      top: -3.125rem;    
    }
    50%{
      top: -6.25rem;
    }
    72.5%{
      top: -9.375rem;
    }
  }
  }

  @media screen and (max-width: 600px){
    h2{
    text-align:center;
    color: #0367A6; 
    font-size: 2.125rem;
  }
    
    .roller{
    height: 2.6rem; 
    line-height: 2.125rem;  
    }
    
    #spare-time {
      font-size: 2.125rem;
    }
    
    .roller #rolltext {  
    animation: slide-mob 5s infinite;  
  }
    
    @keyframes slide-mob {
    0%{
      top:0;
    }
    25%{
      top: -2.125rem;    
    }
    50%{
      top: -4.25rem;
    }
    72.5%{
      top: -6.375rem;
    }
  }
  }
/*contacto*/

/*videos responsive*/
@media (max-width: 1200px) {
  .vidvid iframe {
      width: 854px;
      height: 480px;
      transition: 1s;
  }
}

@media (max-width: 900px) {
  .vidvid iframe {
      width: 640px;
      height: 360px;
      transition: 1s;
  }
}

@media (max-width: 700px) {
  .vidvid iframe {
      width: 426px;
      height: 240px;
      transition: 1s;
  }
}

@media (max-width: 500px) {
  .vidvid iframe {
      width: 320px;
      height: 180px;
      transition: 1s;
  }
}
/*videos responsive*/
