:root {
    --fuenteheading: 'PT Sans', sans-serif;
    --fuenteparrafos: 'Open Sans', sans-serif;
    --blanco: #ffffff;
    --oscuro: #212121;
    --negro: black;
    --primario: #ffc107;
    --secundario: #0097a7;
    --gris: #757575;
    --grisclaro: #dfe9f3;
    --clr-neon: hsl(317 100% 54%);
    --clr-bg: hsl(323 21% 16%);
}

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: var(--fuenteparrafos);
}


.centrar__imagen {
    display: block;
    margin: auto;
}

.parallax__container {
    clip: rect(0, auto, auto, 0);
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -100;
}

.parallax {
    position: fixed;
    top: 0;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.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: rgba(249,249,249,1);
    border-radius: 1rem;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

h1,h2,h3 {
    font-family: var(--fuenteheading);
    text-align: center;
}

p {
    text-align: justify;
}

.logo {
    color: var(--blanco);
}

.logo__nombre {
    font-weight: 400;
    margin: 1rem;
}

.logo__bold {
    font-weight: 700;
}

.logo__descripcion {
    font-size: 2.8rem;
}

.header__thanks {
    background-image: url(..//img/portada.jpg);
    height: 80rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.header__texto {
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem; 
}

.bandera {
    width: 5rem;
}

/* Animaciones */

.header__texto {
    color: var(--blanco);
    /* Animacion */
    animation-name: aparecer;
    animation-duration: 3s;
    animation-iteration-count: 1;
}

@keyframes aparecer {

    0%{
        opacity: 0.1;
    }

    100%{
        opacity: 1;
    }
}

.animado {
    opacity: 0;
    transition: all 0.5s;
}

.mostrarArriba {
    animation: mostrarArriba 1s;
}

@keyframes mostrarArriba {
    0% {
        transform: translateY(60px);
    }
    100% {
        transform: translateY(0);
    }
}



.logo__nombre {
    animation: glitch 1s linear infinite;
    letter-spacing: 3px;   
}

.logo__flex {
    display: flex;
    justify-content: center;
}

.logo__nombre::before, .logo__nombre::after {
    content: "JCWebDesigner";
    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);
    }
}
/* Final de animaciones */

.contenedor {
    width: 85%;
    margin: 10rem auto;
    padding: 2rem;
}

.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;
}

.social {
    height: 51px;
    width: 50px;
    position: fixed;
    bottom: 37px; right: 37px;
    /* mas compactibilidad con exploradores */
    -webkit-border-radius: 20%;
    -moz-border-radius:20%;
    border-radius: 20%;
    -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;
    background-color: var(--secundario);
    z-index: 100;


}

.whatsapp {
    position: fixed;
    height: 40px;
    bottom: 42px; right: 41px;
    filter: invert(100%);
}

.smallimg {
    width: 100%;
}

.boton:hover {
    cursor: pointer;
}

.nav-bg { 
    top: 0;
    width: 100%;
    justify-content: center;
}

.neon-button {
    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;
    
}

/*.navegacion-principal a:before {
    pointer-events: none;
    content: "";
    position: absolute;
    background: var(--secundario);
    top: 120%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: perspective(1em) rotatex(40deg) scale(1, 0.35);
    filter: blur(1.5em);
    opacity: 0.7;
} */

.neon-button::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;
}

.neon-button:hover, .neon-button:focus {
    background-color: var(--secundario);
    color: var(--oscuro);
    text-shadow: none;
}

.neon-button:hover::before {
    opacity: 1;
}

.neon-button:hover::after {
    opacity: 1;
}

.header {
    height: 80rem;
    position: relative;
    margin-bottom: 2rem;
}

.portada {
    display: block;
    margin:0 auto;
    z-index: -100;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-size: cover;
}


.contenido-hero {
    background-color: rgba(0, 0, 0, .7);
    /* nueva background-color: rgb(0 0 0 / 70%);*/
    width: 100%;
    height: 100%;
    padding: 1rem;
    position: absolute;
}

.hero h2, .hero h1, .hero p {
    color: var(--blanco);
}

.ubicacion {
    display: flex;
    justify-content: center;
}

.ubicacion p {
    align-items: center;
}


.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.servicio h3 {
    color: var(--secundario);
    font-weight: normal;
}

.servicio p {
    line-height: 2;
    text-align: center;
}

.servicio .iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 5px white;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.8);
}

.formulario {
    background-color: var(--gris);
    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(--primario);
}

.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;
}

.flex {
    display: flex;
}

.social__flex {
    display: flex;
    width: auto;
    justify-content: center;
    margin: 0 2rem;
}

.texto__sombra__negra {
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}


.texto__sombra__blanca {
    text-align: center;
    color: black;
    font-weight: bold;
    text-shadow: 1px 1px 2px white;
}

.footer {
    background-color: var(--negro);
    padding-top: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    margin-top: 4rem;
}


/* MEDIA QUERIES */

@media (min-width: 480px) {
    .navegacion-principal{
        flex-direction: row;
        justify-content: center;
    }
    .navegacion-principal a {
        width: 50%;
        margin: 0 auto;
    }
}


@media (min-width: 768px) {  

    .header__texto {
        margin-top: 20rem; 
    }

    .smallimg {
        width: 50%;
    }

    .nav-bg {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navegacion-principal {
        display: flex;
        gap: 2rem;
        width: 75%;
        align-items: center;
    }

    .contenedor {
        max-width: 50%;
    }

    .boton {
        width: auto;
    }

    /* .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, 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;
    } 
}


