:root {
    --fuenteHeading: 'PT Sans' , sans-serif;
    --fuenteParrafos: 'Open Sans' , sans-serif;
    
    --primario: #ed5900;
    --gris: #cacaca;
    --grisClaro: #ececec;
    --grisOscuro: #4f4f51;
    --blanco: #ffffff;
    --negro: #000000;
}
html {
    box-sizing: border-box;
    font-size: 62.5%;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: var(--fuenteParrafos);
    font-size: 1.5rem;
    line-height: 1.8;
}

/* Globales */
.contenedor {
    width: min(80%, 120rem);
    margin: 0 auto;
}
a {
    text-decoration: none;
}
h1, h2, h3, h4 {
    font-family: var(--fuenteHeading);
    line-height: 1.2;
}
h1 {
    font-size: 2.6rem;
    color: var(--primario);
    border-bottom: 1.4px solid var(--grisClaro);
    padding-bottom: 4rem;
}
h2 {
    font-size: 2rem;
    color: var(--gris);
    margin-top: 1rem;
}
h3 {
    font-size: 1.5rem;
}
img {
    max-width: 100%;
}

/* Utilidades */
.no-margin {
    margin: 0;
}
.no-padding {
    padding: 0;
}
.centrar-texto {
    text-align: center;
}

/*Header*/
.header {
    border-top: 3px solid var(--primario);
}
.logotype {
    cursor: pointer;
    margin: 0 auto;
    max-width: 5rem;
}
.barra {
    padding: 4rem 0 0 0;
}
@media (min-width: 768px) {
    .barra { /* alinear logo y barra enlaces */
        display: flex;
        justify-content: space-between;   
        padding: 4rem 0;    
    }
}
/* Separacion */
.separator {
    background-image: url(../img/separator-image.jpg);
    height: 10rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position:center center ;
}

/* Contenido Principal */
@media (min-width: 768px) {
    .contenido-princiapl{
        display: flex;
    }
}
@media (min-width: 768px) {
    .layout-shifter{ 
        padding-right: 3rem;
        display: grid;
        grid-template-areas: "principal libro"
                             "secundario libro"
                             "parrafo parrafo"
                             "leyenda leyenda";
    }
    .ebook {
        grid-area: libro;
    }
    .descripcion-principal{
        grid-area: principal;
    }
    .descripcion-secundario {
        grid-area: secundario;
    }
    .descripcion-parrafo {
        grid-area: parrafo;
    }
    .leyenda-descarga{
        grid-area: leyenda;
    }
    h1, h2, p {
        text-align: start;
    }
}
.contenido-princiapl {
    text-align: center;    
}
.descripcion-parrafo { 
    font-size: 1.2rem;  
}
.hipervinculo{
    color: var(--primario);
    cursor: pointer;
    text-decoration: underline;
}
.emphasizes {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primario);
}
.ebook {
    margin-top: -2.5rem;
}

/* Download form */
.titulo-formualrio {
    color: var(--primario);
    text-transform: uppercase;
}
.info-formulario,
.check-formulario {
    border: none;
}
.formulario {
    background-color: var(--grisClaro);
    padding: 2rem;
    margin-top: 3rem;
}
@media (min-width: 768px) {
    .textos-formulario{
        color: var(--grisClaro);
        margin: .5rem 1rem;
        padding: 1rem;
        border: 1.4px solid var(--gris);
    }    
   
    .check-formulario {
        font-size: 1.2rem;
        display: block;
        text-align: start;   
    }
}
.check-formulario a {
    color: var(--primario); 
}
.button {
    background-color: var(--primario);
    color: var(--blanco);
    text-transform: uppercase;
    border: none;
    padding: 1rem 6rem;
    font-weight: bold;   
    cursor: pointer; 
}
.info-formulario{
    display: block;
}
label {
    display: block;
    padding-left: 30px;
    text-indent: -20px;
}
.textos-formulario{
    color: var(--negro);
    margin: .5rem 1rem;
    padding: 1rem;
    border: 1.4px solid var(--gris);
}  

/* Footer */
.footer{
    background-color: var(--grisOscuro);
    margin-top: 4rem;
}
@media (min-width: 768px) {
    .navegacion{
        display: flex;
        gap: 2rem;
    }
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .navegacion__enlace {
        border-right: 1px solid var(--grisClaro);
        padding-right: 1.4rem;
    }
}
.navegacion__enlace{
    color: var(--blanco);
    display: block;
    text-align: center;
    font-size: 1.1rem;

}
.navegacion__enlace:last-of-type{
    border: none;
    padding-right: 0;
}

/* Estilos JS */
.error {
    border: 1px solid red;
}
.error-texto {
    color: var(--blanco);
    background-color: red;
    border-radius: .3rem;
    font-size: 1rem;
    text-align: center;
    opacity: .9;
    padding: .5rem;
    text-transform: uppercase;
}
.validacion {
    border: 1.5px solid green;
}

.enviar {
    cursor: not-allowed;
    opacity: .5;
}

/* Spinners */
#spinner {
    display: none;
    justify-content: center;
    padding: 3rem 0;
}
.sk-chase {
    width: 40px;
    height: 40px;
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
}  
.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0; 
    animation: sk-chase-dot 2.0s infinite ease-in-out both; 
}  
.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: var(--primario);
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both; 
}
  
  .sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
  .sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
  .sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
  .sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
  .sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
  .sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
  .sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
  .sk-chase-dot:nth-child(2):before { animation-delay: -1.0s; }
  .sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
  .sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
  .sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
  .sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }
  
@keyframes sk-chase {
    100% { transform: rotate(360deg); } 
}
  
@keyframes sk-chase-dot {
    80%, 100% { transform: rotate(360deg); } 
}
  
@keyframes sk-chase-dot-before {
    50% {
      transform: scale(0.4); 
    } 100%, 0% {
      transform: scale(1.0); 
    } 
}


/* Ventana emergente pop-up */ 
.popup-wrapper {
    display: none;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} 
.popup {
    text-align: center;
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.767);
    margin: 10% auto;
    padding: 3rem;
    position: relative;
    border-radius: 1rem;
    border: .2rem solid var(--primario);
}
.popup h3{
    color: var(--primario);
    font-weight: bold;
}  
.popup-close {
    position: absolute;
    top: 5px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}














