:root {
    --blanco: #ffffff;
    --oscuro: #212121;
    --primario: #CD444B; /* Rojo */
    --secundario: #57AE79; /* Verde */
	--terciario: #F4D254; /* Amarillo */
    --gris: #757575;
    --grisclaro: #dfe9f3;
}

html {
    overflow-x: hidden;
    font-size: 62.5%;
    box-sizing: border-box; /* Modelo Caja */
}

*, *:before, *:after {
    box-sizing: inherit;
    text-decoration: none;
}

body {
	position: relative;
	overflow-x: hidden;
    font-size: 16px; /* 1rem = 10px */
    font-family: 'Quicksand_Bold', sans-serif;
    background-color: var(--primario);
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

h1,h2,h3 {
    text-align: center;
}

p {
    font-family: sans-serif;
}

header video {
    display: block;
    margin: 0 auto;
    z-index: -100;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
    background-size: cover;
    background-color: black;
}

.video1 {
    opacity: 1;
}

.video2 {
    opacity: 0;
}

.video3 {
    opacity: 0;
}

.video4 {
    opacity: 0;
}

.titulo span {
    font-size: 2rem;
}

.contenedor {
    width: 85%;
    margin: 5rem auto;
}

.header__thanks {
    background-image: url(..//img/portada.jpg);
    height: 80rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.sombra {
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.37);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.37);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.37);
    background-color: #FFE9E9;
    padding: 2rem;
    border-radius: 1rem;
    border-color: #FFE9E9;
    border-style: outset;
}

.formulario {
    background-color: var(--primario);
    width: min(60rem, 100%); /*utiliza el valor mas pequeno que lo que mide la pantalla*/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}

.formulario fieldset {
    border: none;
}

.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--terciario);
}

.campo {
    margin-bottom: 1rem;
}

.campo label {
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.campo textarea {
    height: 20rem;
}

.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}


.boton {
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 100%;
    text-align: center;
    border: none;
}

.boton__neon {
    display: block;
    width: 50%;
    text-align: center;
    color: var(--secundario);
    font-size: 2rem;
    padding: 0.25em 1em;
    margin: 1rem auto;
    border: var(--secundario) 0.125em solid;
    border-radius: 0.25em;
    text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.5), 0 0 0.45em var(--secundario);
    box-shadow: inset 0 0 0.5em 0 var(--secundario), 0 0 0.5em 0 var(--secundario);
    position: relative;
    
}

.boton__neon::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 0 2em 0.5em var(--secundario);
    opacity: 0;
    background-color: var(--secundario);
    z-index: -1;
    transition: opacity 100ms linear;
}

.boton__neon:hover, .boton__neon:focus {
    background-color: var(--secundario);
    color: var(--oscuro);
    text-shadow: none;
    filter: unset;
}

.boton__neon:hover::before {
    opacity: 1;
}

.boton__neon:hover::after {
    opacity: 1;
}

@media (min-width: 768px) {
    
    .afiche {
        margin: 0 auto;
        width: 60%;
    }

    .navegacion-principal {
        display: flex;
        gap: 2rem;
        width: 90%;
        justify-content: center;
        margin-left: 35rem;
        margin-right: 1rem;
    }

    .header__texto {
        margin-top: 20rem;
    }

    .nav-bg {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .servicios {
        display: grid;

        /* Ejemplo de grid:
        grid-template-columns: 300px 300px;
        grid-template-rows: 200px 800px;
        Ejemplo de grid abreviado:
        grid: 200px 800px / 300px 300px; */
        grid-template-columns: repeat(3, 2fr);
        /*column-gap: se utiliza para agregar margenes a las columnas;*/
        column-gap: 2rem;    
    }

    .servicios2 {
        display: grid;
    
        /* Ejemplo de grid:
        grid-template-columns: 300px 300px;
        grid-template-rows: 200px 800px;
        Ejemplo de grid abreviado:
        grid: 200px 800px / 300px 300px; */
        grid-template-columns: repeat(2, 1fr);

        /*column-gap: se utiliza para agregar margenes a las columnas;*/
        column-gap: 2rem;
    }

        
    .contenedor-campos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 1rem;
    }
    .campo:nth-child(3), .campo:nth-child(4) {
        grid-column: 1 / 3;
    }

    .w-sm-100 {
        width: auto;
    }
    .alinear-derecha {
        justify-content: flex-end;
    }

    .contenedor {
        width: 70%;
    }

    .boton {
        width: auto;
    }
}

.boton:hover {
    cursor: pointer;
}

.nav-bg {
    width: 100%;
    justify-content: center;
    font-family: sans-serif;    
}

@media (min__texto-width: 480px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: center;
    }

    .header__texto {
        text-align: center;
        margin-top: 5rem; 
    }

}


.texto__sombra__negra {
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    text-decoration: none;
}


.media-icons {
    top: 75%;
    z-index: 999;
    position: fixed;
    gap: 1rem;
    right: 30px;
    flex-direction: column;
    transition: 0.5s ease;
}

.media-icons .social img{
    position: relative;
    height: 25px;
    filter: invert(100%);
    transition: 0.5s ease;
}

.media-icons a:not(:last-child) {
    margin-bottom: 10px;
}

.media-icons a:hover{
    transform: scale(1.3);
}

.social {
    height: 4rem;
    width: 4rem;
    padding-left: 7.5px;
    padding-top: 7.5px;
    /* mas compactibilidad con exploradores */
    -webkit-border-radius: 50%;
    -moz-border-radius:50%;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--secundario);
    box-shadow: inset 0 0 0.5em 0 var(--secundario), 0 0 0.5em 0 var(--secundario);
    align-items: center;
    justify-content: center;
    position: relative;   
    border:5px white;
    z-index: 999;
}

.logo__flex {
    background-color: white;
    display: flex;
    justify-content: center;
}

.logotipo {
    max-height: 8rem;
}


.afiche img{
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    width: 90%;
}

.header {
    height: 80rem;
    position: relative;
    margin-bottom: 2rem;
}

.vid {
    height: 400px;
    margin: 10px;
    align-items: center;
}

.contenido-hero {
    background-color: rgba(0, 0, 0, .4);
    /* nueva background-color: rgb(0 0 0 / 40%);*/
    width: 100%;
    height: 100%;
    position: absolute;
    margin-bottom: 2rem;
}

/* Animaciones */

.header__texto h1 {
    color: var(--blanco);

    animation-name: aparecer;
    animation-duration: 5s;
    animation-iteration-count: 1;
}

.animado {
    opacity: 0;
    transition: all 0.5s;
}

@keyframes aparecer {

    0%{
        opacity: 0.1;
    }

    100%{
        opacity: 1;
    }
}

.mostrarIzquierda {
    animation: mostrarIzquierda 1s;
}

@keyframes mostrarIzquierda {
    0% {
        transform: translateX(-60px);
    }
    100% {
        transform: translateX(0);
    }
}

.logo__nombre {
    animation: glitch 1s linear infinite;
    letter-spacing: 3px;
    font-weight: 400;   
}

.logo__nombre::before, .logo__nombre::after {
    content: "!!CLICK!! JCWebDesigner !!CLICK!!";
    position: absolute;
    left: 0;
}

@keyframes glitch{
    2%,64%{
        transform: translate(3px, 0) skew(0deg);
    }
    4%,60%{
        transform: translate(-2px, 0) skew(0deg);
    }
    62%{
        transform: translate(0, 0) skew(5deg);
    }
}

.logo__nombre::before{
    animation: glitchTop is linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 40%);
    webkit-clip-path: polygon(0 0, 100% 0, 100% 35%, 0 40%);
}

@keyframes glitchTop{
    2%,64%{
        transform: translate(2px, -2px);
    }
    4%,60%{
        transform: translate(-2px, 2px);
    }
    62%{
        transform: translate(15px, -1px) skew(-13deg);
    }
}

.logo__nombre::after{
    animation: glitchBottom 1.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBottom{
    2%,64%{
        transform: translate(0, 0);
    }
    4%,60%{
        transform: translate(0, 0);
    }
    62%{
        transform: translate(-30px, 5px) skew(21deg);
    }
}

/* Fin Animaciones */


.ubicacion {
    display: flex;
    align-items: flex-end;
}


.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    color: var(--primario);
    font-weight: normal;
}

h3 {
    color: var(--secundario);
    font-weight: normal;
}

.servicio p {
    line-height: 2;
    text-align: center;
}


.servicios2 {
    text-align: center;
}

li {
    list-style-image: url(../img/vineta.png);
}

.iconos {
    height: 150px;
    width: 150px;
    /* mas compactibilidad con exploradores */
    -webkit-border-radius: 50%;
    -moz-border-radius:50%;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border:5px white;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-evenly;
    border-style: double;
}

.flex {
    display: flex;
}

.footer {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
