:root {
    --primario: #6834a6;
    --blanco: #FFF;
    --negro: #000000;
    --gris:#5F5959;
    --fuentePrincipal: 'Poppins', sans-serif;
}
html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: var(--fuentePrincipal);
    font-size: 1.6rem;
    line-height: 1.8;
}

h1, h2, h3 {
    font-weight: 900;
    margin: 2rem 0;
}
h1 {
    font-size: 5rem;
}
h2 {
    font-size: 4.6rem;
}
h3 {
    font-size: 3rem;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
[class$="__contenedor"] {
    max-width: 120rem;
    margin: 0 auto;
    width: 90%;
}
[class$="__heading"] {
    text-align: center;
    margin-bottom: 5rem;
}

/* HEADER */

#header{
    background-image: url(../img/header_bg.svg);
    background-repeat: no-repeat;
    background-position: top right;
    padding: 5rem 0;
    background-size: 0rem;
    
}
@media (min-width: 768px) { 
    #header{
        background-size: 57rem;
    }
}
@media (min-width: 992px) { 
    #header{
        background-size: 60rem;
    }
}
@media (min-width: 1280px) { 
    #header{
        background-size: 92rem;
    }
}

@media (min-width: 768px) { 
    .header__barra{
        display:flex;
        justify-content:space-between;
        margin-bottom: 10rem;
    }
}
.header__logo{
    
    width: 15rem;
    margin: 0 auto 3rem auto;
}
@media (min-width: 768px) { 
    .header__logo{
        margin:0;
        width: 20rem;
    }
    .header__grid{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap:4rem;
        align-items: center;
    }
}

.header__heading{
    font-size: 3rem;
    margin-bottom: 0;
    
}
.header__subheading {
    font-size: 2rem;
    text-align: center;
    margin: 0;
    margin-bottom: 5rem;
    font-weight: 500;
    color:grey;
}
@media (min-width: 768px) { 
    .header__heading{
        text-align: left;
        font-size:5rem;
        line-height: 1.2;
    }
    .header__subheading{
        text-align:left;
        font-size: 2.5rem;
    }
}
.header__imagen{
    opacity: 0;
    display: none;
}
@media (min-width: 768px) { 
    .header__imagen{
        
        max-width:30rem;
        margin: 0 auto;
    }
    .header__imagen{
        display: block;
    }
}
.header__boton{
    background-color: var(--primario);
    display: block;
    text-align: center;
    color:var(--blanco);
    padding:1rem;
    margin-bottom: 3rem;
    transition: background-color 0.5s ease;
}
.header__boton:hover{
    background-color: #ae77f1;
}
@media (min-width: 768px) { 
    .header__boton{
        display:inline-block;
        padding:1rem 3rem;
    }
}

 /*NAVEGACION*/

.navegacion{
    display: none;
    
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) { 
    .navegacion{
        display: flex;
        flex-direction:row;
        align-items:flex-start;
        gap:2rem;
    }
   

}
.navegacion__link{
    background: right / 0% 100% no-repeat linear-gradient(#816aa7, #816aa7);
    transition: background-size 500ms, color 500ms;
    
    padding: 0 0.5rem;
    
}
.navegacion__link:hover{
    background: left / 100% 100% no-repeat linear-gradient(#816aa7, #816aa7);
    color:#e4e4e4;
}

@media (min-width: 768px) { 
    .navegacion__link{
        color:#838383;
    }
}

/*Fin NAVEGACION*/

/*Fin HEADER*/

/*MAIN*/

.nucleus__contenedor{
    margin-bottom: 15rem;
}
.nucleus__grid{
    display: flex;
    flex-direction: column-reverse;
}
@media (min-width: 768px) { 
    .nucleus__grid{
        display:grid;
        grid-template-columns:1fr 2fr;
        gap: 5rem;
        align-items: center;
    }
}


.nucleus_imagen{
    background-image: url("../img/mobile_repair.jpg");
    height: 25rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 15px;
}
@media (min-width: 768px) { 
    .nucleus_imagen{
        height: 55rem;
    }
}

.listado__elemento{
    background-color: var(--blanco);
    box-shadow: 0px 0px 15px 3px rgb(0 0 0 / 0.25);
    padding: 2rem;
    margin-bottom: 5rem;
    transition-property: transform;
    transition-duration: 300ms;    
}
.listado__elemento:hover{
    transform: scale(1.1);
}
.listado__heading{
    margin:0;
    font-size: 3rem;
    color:var(--primario);
}
.listado__texto{
    margin:0;
    font-size: 2rem;
}

/*MAP*/
#map{
    height:50rem;
}

#mapa{
    background-color: var(--primario);
    padding: 10rem 0;
    position: relative;
    margin: 10rem 0;
    overflow: hidden;
    color: #FFF;
}

#mapa::before, #mapa::after{
    background-color: var(--blanco);
    content: '';
    height: 20rem;
    width: 120%;
    position: absolute;
}
#mapa::before{
    top: -10rem;
    left: 0;
    transform: rotate(3deg);
}
#mapa::after{
    bottom: -10rem;
    left: 0;
    transform: rotate(-3deg);
}

/*SOBRE NOSOTROS*/
.sobre_nosotros__grid{
    display: flex;
    flex-direction: column-reverse;

}
@media (min-width: 768px) { 
    .sobre_nosotros__grid{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap: 5rem;
        align-items:start;
    }
}
.horario {
    display: flex;
    flex-direction: column;
    align-items: center;
}
h3{
    text-align: center;
    color:var(--primario);
}


/* Estilos generales de la tabla */
table {
    width: 80%;
    border-collapse: collapse;
  }

  /* Estilos de las celdas de datos */
  td {
    padding: 0.5rem;
  }
  
  /* Estilos alternados para filas */
  tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  /* Estilos para la primera columna (días) */
  td:first-child {
    font-weight: bold;
  }
  
  /* Estilos para la última columna (horarios) */
  td:last-child {
    text-align: center;
  }
  



/*CONTACTO*/
  
.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contenedor_contacto_general{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
    width: 100%;
    
}

.icono_contacto{
    width:6rem;
    height: 4rem;
    border-width: 0.1rem;
    padding: 0.5rem 1.5rem;

}

.contenedor_contacto{
    cursor:pointer;
    display: flex;
    flex-direction: row;
    align-items:center;
    gap: 2rem;
    border-width: 0.1rem;
    border-color: #cfcece;
    border-style: solid;
    width: 100%;
    margin-bottom: 1.5rem;   
    transition: background-color 0.5s ease;
}
.contenedor_contacto:hover{
    background-color: var(--primario);
}
.contenedor_contacto a{
    color: #848484;
}
/*FOOTER*/
.footer_contenedor{
    background-color: rgb(31, 30, 30);
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer_contenedor p{
    color:white;
}

/*FIN FOOTER*/

/*BOTON FLOTANTE*/
.boton_flotante{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: rgb(31, 30, 30);
    border-radius: 5rem;
    width: 5rem;
    transition: background-color 0.5s ease;
    cursor:pointer;

}
.boton_flotante:hover{
    background-color: rgb(116, 116, 116);
}
.boton_flotante img{
    padding: 1rem;
}


  