:root {
    --blanco:#ffffff;
    --negro:#000000;
    --primario: #784d3c;
    --fuente: font-family: 'Lato', sans-serif;
}
html {
    font-size: 62,5%;
    box-sizing: border-box; /* sirve por ejemplo si
    una caja tiene un alto de 400 px va a seguir teniendo ese alto sin importar el padding*/
 }
 *, *:before, *:after {
    box-sizing: inherit;/*esto es parte del box si*/
  }

 
body {
    font-size: 1.1rem;
    line-height: 2;
    font-family: 'Lato', sans-serif;
    background: #2E2E39;
    color: #ffffff;
    font-weight: 400;

}

.header_portada {
    padding-top: 2rem;
}

@media (max-width:768px) {
    .header_portada {
        padding-top: 0rem;
    }
}


.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

@media (max-width:768px) {
    h2 {
        
        font: 1.3rem;
    }
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    padding-top: 4rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    
    
}
.titulo_prin {
    font-size: 3rem;
    text-align: center;
    padding-top: -2rem;
    margin-bottom: -30px;
    font-family: 'Lato', sans-serif;
    font-weight: 100;
    
}

@media (max-width:768px) {
    .titulo_prin {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        
    }
}

.titulo_prin3 {
    font-size: 2.6rem;
    text-align: center;
    padding-top: -2rem;
    margin-bottom: -30px;
    font-family: 'Lato', sans-serif;
    font-weight: 100;
    
}

@media (max-width:768px) {
    .titulo_prin3 {
        font-size: 2.3rem;
        margin-bottom: 1rem;
        
    }
}



.titulo_sec {
    font-size: 2rem;
    text-align: center;
    padding-top: 0rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
}

@media (max-width:768px) {
    .titulo_sec {
        margin-bottom: 3rem;
   
    }    
}



h1 {
    font-size: 2rem;
    text-align: center;
    padding-top: 0rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
}

@media (max-width:768px) {
    h1 {
        
        font-size: 2.5rem !important;
    }
    h3 {
        
        font-size: 1.3rem !important;
    }
}

h3 {
    font: 1.7rem;

    margin-top: .5rem;
    padding: 0;
}


@media (max-width:768px) {
    .cartasid {
      display: none;
    }
  }
  
  @media (min-width:768px) {
    .cartasidmv {
      display: none;
    }
  }
  
  .cartasidmv {
   display: none;
  }


.contenedor {
    max-width: 70rem;
    width: 90%;
    margin: 0 auto;
}

.main {
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0 3rem 0;
}


.encabezado__sub1 {
    padding: 2rem;
    text-align: center;
}

.encabezado_img {
    padding-top:0rem ;
    width: 500px;
}
@media (max-width:768px)
{
    .encabezado__sub1 {
        padding: 0rem;
    }
    .encabezado_img {
        width: 400px;
    }
}

.encabezado__sub2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    
}

img.mapa {
    width: 100%;

    
}
@media (max-width:768px)
{
    img.mapa {
        display: none;
    
        
    }
}

.rotate {
    animation: rotation 20s infinite linear;
  }
  
  @keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
  }

.mapa__titulo {
font-size: 4rem;
font-weight: 200;
font-family: var(--fuente);

}
.mapa__titulo2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--fuente);
    
}
@media (max-width:768px)
{
    .mapa__titulo2 {
        font-size: 1.5rem;
        font-weight: 700;
    }
}

.flip{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    transition: all 1s ease;
    transform: perspective(600px);
    transform-origin: 100% 50%;
    transform-style: preserve-3d;
    cursor: pointer;
    }
    .flip:hover{
    transform: perspective(600px) rotateY(-180deg) translateX(100%);
    }
    .flip .flip-1,
    .flip .flip-2{
    position: absolute;
    backface-visibility: hidden;
    }
    .flip .flip-2{
    transform: rotateY(-180deg);
    }

.encabezado {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: url(../img/Fondo-Web-Cartas-.jpg);
    background-size: cover;
}



@media (max-width: 768px) {
    .encabezado {
        display: flex;
        flex-direction: column; 
        padding-top: 2rem;
        padding-bottom: 1rem;
       
    }
}

.encabezado6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 0rem;
    padding-bottom: 5rem;
    background: url(../img/Fondo-Web-Cartas-.jpg);
    background-size: cover;
}



@media (max-width: 768px) {
    .encabezado6 {
        display: flex;
        flex-direction: column; 
        padding-top: 0rem;
       
    }
}



.header {
    position: relative;
    
    
}

.caja {
    margin-top: 5rem;
    gap: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    
    
}

@media (max-width: 768px)
{
    .caja {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0rem;
        margin-left: 1rem;
        margin-right: 1rem;

      
    }
   
    .flip:nth-child(4) {
        margin: 22rem 0 0 0;
    }
    .flip:nth-child(3) {
        margin: 22rem 0 0 0;
    }
    
}


.carta {
    width: 25rem;
    margin: 6rem 1rem 0 1rem;
}

.morado, .azul, .celeste, .verde, .amarillo, .naranjo, .rojo {
    height: 80rem;
   
}

@media (max-width: 768px)
{
    .morado, .azul, .celeste, .verde, .amarillo, .naranjo, .rojo {
        height: 200rem;
    }
    
}


.footer_end {
    background-color: #2E2E39;
   
    width:100%;
    
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 5rem;
    padding-bottom: 5rem;
    align-items: center;
}


@media (max-width: 768px)
{
    .footer_end {
        display: flex;
        flex-direction: column;
      
}
}

.footer_pre {
    background: url('../img/fondo-ultima-seccion.jpg');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content:center;
    padding-top: 20rem;
    padding-bottom: 20rem;
    text-align: center;
    width:100%;
    
    top: -30rem;
}

@media (max-width: 768px) {
    .footer_pre {
       padding: 7rem 3rem 7rem 3rem;

    }
}


.morado {
    background-color: #964286;
    position: absolute;
    width:100%;
    height: 100%;
    top: 360%;   
    
}
.azul {
    background-color: #4759a3; 

    position: absolute;
    width:100%;
    height: 100%;
    top: 300%;  
    
}

.celeste {
    background-color: #1698c2;
    position: absolute;
    width:100%;
    height: 100%;
    top: 240%;  
    
}

.verde {
    background-color: #67b965;  
    position: absolute;
    width:100%;
    height: 100%;
    top: 180%; 
  
}

.amarillo {
    background-color: #e4ba10;
    position: absolute;
    width:100%;
    height: 100%;
    top: 120%;  
   
}

.naranjo {
    background-color: #db8920;
    position: absolute;
    width:100%;
    height: 100%;
    top: 60%;  
    
}

.rojo {
    background-color: #ed4d37;
    
}
.btnruleta2 {
        background-color: #933f83;
        padding: 0.8rem 1.5rem;
        display: inline-block;
        text-align: center;
        color:#fff;
        border: 0px;
    border-radius: 3rem;
    text-decoration: none;
    margin-top: 2rem; 
  }
  @media(min-width: 768px)
  {
    .btnruleta2 {
        display: inline-block;
    }
  }

  .btnruleta3 {
    background-color: #c9ab3a;
    padding: 0.1rem 1.5rem;
    display: inline-block;
    text-align: center;
    color:#fff;
    border: 0px;
    text-transform: uppercase;
text-decoration: none;
margin-top: 2rem; 
}
@media(min-width: 768px)
{
.btnruleta3 {
    display: inline-block;
}
}

/* zoom en web */
img.zoom {
    width: 30rem;
    
    margin: 0 auto;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
}
@media (max-width:768px)

 {
    img.zoom {
        width: 22rem;
        
        display: flex;
        align-items: center;
        
    }
 }
 .menu nav ul {
     display: flex;
     flex-direction: row;
     gap: 2rem;
     list-style:none;

 }

 .menu nav ul li a {
     color: #fff;
     text-decoration: none;
     border-radius: 1rem;
     transition: all 0.5s ease;
     padding: 1rem .5rem;
 }
 
 .menu nav ul li a:hover {
    color: #000;
    padding: 1rem .5rem;
    background-color: #fff;
}

.menu {
    
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content:space-around;
    transition: 0.7s;
    align-items: center;
    background: #2E2E39;
    
}

@media (max-width: 768px)
{ 
.logocas {
    width: 13rem;
}
}
@media (max-width: 768px)
{ 
    .menu {
        padding: 2rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content:space-around;
        transition: 0.7s;
        font-size: 1rem;
        
    }
    .menu nav ul {
        
        gap: 0rem;
        
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    
   
    }
    .logocas {
        
    }

}


.boton_header {
    background-color: #d0a909;
    padding: 0.8rem 0.5rem;
    display: inline-block;
    text-align: center;
    color:#fff;
    border: 0px;
}
.boton_header:hover {
    background: rgb(157, 61, 61);
}

.header_web {
    text-align: center;
    padding: 5rem 0rem 5rem 0rem;
    background-image: url('../img/Fondo-Banner-Principal.jpg');
    background-size: cover;
    
}

.cartas_header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 40rem;
    width: 90%;
    margin: 0 auto;
    
}

.foot1 {
    margin: 0 auto;
}

.foot2 {
    margin: 0 auto;
    text-align: center;
}
@media (max-width: 768px)
{ 
    .foot2 {
        margin: 0 auto;

        text-align: center;
        font-size: .7rem;
        
    }
}

.foot3 {
    margin: 0 auto;
}

@media (max-width: 768px)
{ 

.flip:nth-child(1)
{
margin-bottom: 22rem;
}

}

@media (max-width:768px)
 {
     .morado {
         height: 120rem;
     }
 }

 .color1 {
     
     background: #ed4d37;
     display: flex;
     
     flex-direction: column;
     border-top-left-radius: 500px 200px;
     border-top-right-radius: 500px 200px;


     padding-top: 10rem;
     border-top-left-radius: 500px 200px;
      border-top-right-radius: 500px 200px;
 }

 .color2 {
     
    background: #db8920;
  

}

.color3 {

    background: #e4ba10;
  

}

.color4 {
   
    background: #67b965;
   

}

.color5 {
 
    background: #1698c2;
  

}

.color6 {

    background: #4759a3;


}

.color7 {

    background: #964286;
    padding-bottom: 15rem;

}

@media (max-width:768px)
 {
    .color7, .color6, .color5, .color4, .color3, .color2, .color1 {
    }
 }

.caja1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 42rem;
}

.caja2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width:768px)
 {
    .caja1 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13rem;
        padding-bottom: 35rem;
    }
    .caja2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13rem;
    }
 }

 @media (max-width: 768px)
{

.carta {
    width: 20rem;
}
}



.cartax {
    width: 25rem;
    
  }
  @media (min-width: 768px){
    .cartax {
      width: 25rem;
    }
  }

  .cartita_random {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
  }
  
  @media (max-width:768px)
  
   {
    .cartita_random {
      max-width: 400px;
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
      margin: 0 auto;
    }
   }


   .cartaflip {
    width: 21rem;
    cursor: pointer;
    
  }
  
  @media (max-width: 768px) 
  {
    .cartaflip {
      width: 20rem;
      margin-top: 5rem;
    }
  }

  @media (max-width: 1280px) 
  {
    .cartaflip {
      width: 18rem;
      margin-top: 5rem;
    }
  }

  .zoomruleta {
  
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
}



@media (max-width:768px)

 {
    img.zoomruleta {
        
        display: flex;
        align-items: center;
        
    }
 }  


 .cartaroja11:hover, .cartaroja22:hover, .cartaroja33:hover, .cartaroja44:hover, .cartanaranjo11:hover, .cartanaranjo22:hover, .cartanaranjo33:hover, .cartanaranjo44:hover, .cartaamarillo11:hover, .cartaamarillo22:hover, .cartaamarillo33:hover, .cartaamarillo44:hover, .cartaverde11:hover, .cartaverde22:hover, .cartaverde33:hover, .cartaverde44:hover, .cartaceleste11:hover, .cartaceleste22:hover, .cartaceleste33:hover, .cartaceleste44:hover, .cartaazul11:hover, .cartaazul22:hover, .cartaazul33:hover, .cartaazul44:hover, .cartamorado11:hover, .cartamorado22:hover, .cartamorado33:hover, .cartamorado44:hover, .cartanegra11:hover, .cartanegra22:hover, .cartanegra33:hover, .cartanegra44:hover   {
    transform: scale(1.4);
    box-shadow: 1px 10px 15px rgba(0,0,0,0.50);
    transition: all 500ms ease;
}

@media (max-width:768px) {
    .cartaroja11:hover, .cartaroja22:hover, .cartaroja33:hover, .cartaroja44:hover, .cartanaranjo11:hover, .cartanaranjo22:hover, .cartanaranjo33:hover, .cartanaranjo44:hover, .cartaamarillo11:hover, .cartaamarillo22:hover, .cartaamarillo33:hover, .cartaamarillo44:hover, .cartaverde11:hover, .cartaverde22:hover, .cartaverde33:hover, .cartaverde44:hover, .cartaceleste11:hover, .cartaceleste22:hover, .cartaceleste33:hover, .cartaceleste44:hover, .cartaazul11:hover, .cartaazul22:hover, .cartaazul33:hover, .cartaazul44:hover, .cartamorado11:hover, .cartamorado22:hover, .cartamorado33:hover, .cartamorado44:hover, .cartanegra11:hover, .cartanegra22:hover, .cartanegra33:hover, .cartanegra44:hover   {
        transform: scale(1.1);
       
    }
}

#cartitas1 {
 animation-name: cartassup;
 animation-duration: 5s;
 position: relative;
 animation-iteration-count: infinite;
}
 
@keyframes cartassup {
 0% { left: 0px; top: 10px;}
 50% { left: 0px; top: 0px}
 100% { left:  0px; top: 10px;}
}

#cartitas2 {
    animation-name: cartassup2;
    animation-duration: 3s;
    position: relative;
    animation-iteration-count: infinite;
   }
    
   @keyframes cartassup2 {
    0% { left: 50px; top: 0px;}
    50% { left: 0px; top: 0px}
    100% { left:  50px; top: 0px;}
   }

#cartitas3 {
    animation-name: cartassup3;
    animation-duration: 4s;
    position: relative;
    animation-iteration-count: infinite;
   }
    
@keyframes cartassup3 {
    0% { right: 50px; top: 0px;}
    50% { right: 0px; top: 0px}
    100% { right:  50px; top: 0px;}
   }


   .color1_1 {
    margin-top: 10rem;
    background: #db8920;
    padding-top: 10rem;
    border-top-left-radius: 500px 200px;
     border-top-right-radius: 500px 200px;
   }

   .color2_2 {
    margin-top: 10rem;
    background: #e4ba10;
    padding-top: 10rem;
    border-top-left-radius: 500px 200px;
     border-top-right-radius: 500px 200px;

   }

   .color3_3 {
    margin-top: 10rem;
    background: #67b965;
    padding-top: 10rem;
    border-top-left-radius: 500px 200px;
     border-top-right-radius: 500px 200px;
}

.color4_4 {
    margin-top: 10rem;
    background: #1698c2;
    padding-top: 10rem;
    border-top-left-radius: 500px 200px;
     border-top-right-radius: 500px 200px;
}
.color5_5 {
    margin-top: 10rem;
    background: #4759a3;
    padding-top: 10rem;
    border-top-left-radius: 500px 200px;
     border-top-right-radius: 500px 200px;
}

.color6_6 {
    margin-top: 10rem;
    background: #964286;
    padding-top: 10rem;
    border-top-left-radius: 500px 200px;
     border-top-right-radius: 500px 200px;
}


@media (max-width:768px)

 {
    .color1_1, .color2_2, .color3_3, .color4_4, .color5_5, .color6_6  {
        margin-bottom: 0;
    }
 }




 .iconos {
     display: grid;
     grid-template-columns: 1fr 1fr;
     width: 12rem;
     margin: 0 auto;
 }

 @media (max-width:768px)

 {
    .iconos {
        

        width: 10rem;
        margin: 0 auto;
    }
 }

 .scrol {
     height: 100px;
 }

.cartacentrar {
    margin: 0 auto;
}

.login-form{
    min-width: 320px;
    max-width: 350px;
    
    margin: auto;
    padding: 50px;
    border: 2px solid #DF4434;
    margin-top: 100px;
}

.login-form input {
    width: 100%;
    height: 50px;
    border-radius: 7px;
    border-color: white;
    color: black;
    background: white;
    margin-bottom: 5px;
    padding: 10px;
}
.login-form img {
    text-align: center;
}
.logo-form {
    text-align: center;
}

.login-form button {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    background: rgb(157, 61, 61);
    border-radius: 25px;
    border: 0px;
    color: white;
}
.error {
    color: red;
}

.principal_ind {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    
}

@media (max-width:768px)
{
    .principal_ind {
        display: block;
        
        
    }
}

.principal_1 {
    width: 20rem;
}

.principal_2 {
    width: 22rem;
}

@media (max-width:768px)
{
    .principal_1 {
        display: none;
    }
    
    .principal_2 {
        display: none;
    }
  
}


.principal_3 {
    display: flex;
    align-items: center;
    justify-content: left;
    
    padding-top: 5rem;
    padding-bottom: 3rem;
   
}
.principal_3:hover {

    transform: scale(1.1);
    
    transition: all 500ms ease;
}

@media (max-width:768px)
{
.principal_3 {
    justify-content: center;
   margin-top: 2rem;
   padding-top: 0;
}
}


.principal_4 {
    display: flex;
    align-items: center;
    justify-content: right;
    background-size: cover;
    padding-top: 9rem;
    padding-bottom: 9rem;
    
}

.principal_4:hover {

    transform: scale(1.1);
    
    transition: all 500ms ease;
}
@media (max-width:768px)
{
.principal_4 {
   padding-top: 3rem;
   padding-bottom: 0rem;
   justify-content: center;
   
}
}

.numero {
    text-align: center;
    font-weight: 700;
 
}

.principal_5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.btnruleta_inicio {
    background-color: #933f8400;
    padding: 0.8rem 1rem;
    display: inline-block;
    text-align: center;
    color:#fff;
    border: 1px solid white;
border-radius: 3rem;
text-decoration: none;
font-size: 1rem;
margin-top: 2rem;
cursor: pointer;
}
.btnruleta_inicio:hover {
    background-color: #933f83;
}


@media(min-width: 768px)
{
.btnruleta_inicio {
    display: inline-block;
}
}

.bg {
    background: url('../img/fondo.jpg');
    background-size: cover;
    
}
.footer_inicio {
   
    text-align: center;
    padding: 0 24rem 10rem 24rem;
    
}

@media(max-width: 768px)
{
    .footer_inicio {
   
        text-align: center;
        padding: 0 5rem 8rem 5rem;
        
    }
}


.botones_inicio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

.subtitulo1 {
    font-size: 2rem;
    text-align: center;
    padding: 0;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 100;
    
}

.subtitulo2 {
    font-size: 2rem;
    text-align: center;
    padding: 0rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: #c9ab3a;
}

.subtitulo3 {
    font-size: 3rem;
    text-align: center;
    padding-top: 0rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: #fff;
}

.subtitulo_p {
    text-align: center;
    margin: 0px;
}

.marca {
    font-size: 1.5rem;
}

.marca2 {
    font-size: 1.2rem;
}

.subtitulo4 {
    font-size: 2rem;
    text-align: center;
    padding-top: 0rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: #fff;
}

@media(max-width: 768px)
{
    .marca {
        font-size: 1rem;
    }
    .subtitulo1 {
        font-size: 2rem;
        
    }
    .subtitulo2 {
        font-size: 2rem;
        
    }
    .subtitulo3 {
        font-size: 2rem;
        margin-bottom: 2rem;
        
    }
}

.seccion5 {
    padding: 9rem 0 12rem 0;
}

@media(max-width: 768px)
{
    .seccion5 {
        padding: 2rem 0 12rem 0;
    }
}

.rotate-body {
    display: flex;
    align-items: center;
    flex-direction: column;
}