@charset "utf-8";

*{
    padding: 0px;
    margin: 0px;
    font-family: "Times New Roman', Times, serif"; 
    box-sizing: border-box;
}


@font-face{
  font-family: 'diogenes';
  src: url(../TIPOGRAFIAS/DIOGENES.ttf);
  font-weight: normal;
  font-style: normal;
}


body {
    max-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    
}

.fondo {
    background-color: rgba(0, 0, 0, 1);
    color: #FFF;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    max-height: 100%;
}

/* Nav */
.nav {
    background-color: rgba(255, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 70px;
    box-shadow: 0px 5px 50px rgba(255, 0, 0, 1);     
}

.nav h1 {
    font-family: 'diogenes';
    font-size: 50px;
    padding: 10px;
}

.nav img:first-child {
    position: absolute;
    left: 20px;
    width: 75px;
    min-width: 70px;
}

.nav img:nth-of-type(2){
    position: absolute;
    right: 20px;
    width: 75px;
    min-width: 70px;
}

@media screen and (max-width: 600px ){
    .nav h1 {
        font-size: 30px;
    }

    .nav img:first-child {
        left: 5px;
        width: 70px;
    }

    .nav img:nth-of-type(2){
        visibility: hidden;
    }
    
}

/* Main - Estructura de cubos*/

.main {
    width: 100vw;
    height: 100vh;
    display: flex;
    /* flex-wrap: wrap; */
    /* justify-content: space-evenly; */
    /* margin: 20px 10px; */
    align-items: center;
    justify-content: center;
    
}

/* Estructura de cada cubo de campeonato */
.article {
    width: 45%;
    min-width: 300px;
    min-height: 400px;
    flex-grow: 0;
    border: #FFF groove;
    border-radius: 10px;
    margin: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 15% 60% 25%;
    box-shadow: 5px 5px 5px rgba(245, 245, 245, 0.5);
    
}

.article:hover {
    border: rgba(255, 0, 0, 0.5) groove;
    box-shadow: 10px 15px 10px rgba(255, 0, 0, 0.5);
}

.article:not(:hover){
    filter: opacity(75%);
    transition: 0.5s ease-in-out;
}


.article h2 {
    grid-column-start: 1;
    grid-column-end: 3;
    display: flex;
    justify-content: center;
    align-self: center;
}

@media screen and (max-width: 800px) {
    .article h2 {
        font-size: 20px;
    }
    
}

.container-imagenes {
    grid-column-start: 1;
    grid-column-end: 3;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
}

.container-imagenes .imagen:first-of-type {
    background-image: url(../Imagenes_Index/Servicios/pruebaCarrusel.jpg);
    background-size: cover;
    background-position-x: center;
    width: 40%;
    height: 100%;
}

.container-imagenes .imagen:nth-child(2) {
    background-image: url(../Imagenes_Index/Servicios/PruebaServicios.jpg);
    background-size: cover;
    background-position-x: center;
    width: 40%;
    height: 100%;
}

.article p {
    grid-column-start: 1;
    grid-column-end: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: justify;
    
}

@media screen and (max-width: 850px) {
    .article p {
        font-size: 12px;
    }
    
}


/* Boton volver */
.volver {
    color: black;
    text-decoration: none;
    background-color: rgba(245, 245, 245, 1);
    border: black 5px;
    border-radius: 10%;
    width: 60px;
    height: 30px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
  }

  .volver:hover {
    background-color: rgba(215, 215, 215, 1);
    width: 63px;
    height: 33px;
    transition: 0.5s;
  }