@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@700&family=Roboto:ital,wght@0,300;0,700;1,300;1,700&display=swap');

/* Colores *********************************/
:root {
    --negro: #222;
    --gris-oscuro: #53565A;
    --gris-claro: #dcdcdc;
    --blanco: #fff;
    --accent: #F9423A;
    --accent2: #3A5DAE;
    --ancho-maximo: 1280px;
}

/* Reset ***********************************/
*, *:before, *:after { box-sizing: inherit; }
* {
    margin: 0;
    padding: 0;
    font: inherit;
}
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    min-height: 100dvh;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

/* Definiciones básicas ***********************/
body {
    color: var(--blanco);
    background-color: var(--negro);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    max-width: 100vw;
    max-width: 100dvw;
    overflow-x: hidden;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
strong {
    font-weight: 700;
    text-transform: uppercase;
}

/* Elementos gráficos  ***********************/
.contenedor {
    margin: 2em auto;
    width: 94%;
    max-width: var(--ancho-maximo);
}
.centrado { text-align: center; }
.justificado { text-align: justify; }
.izquierda { text-align: left; }
.derecha { text-align: right; }
.separador { height: 2rem; }
.listaIconos {
    list-style: none;
    padding-left: 0;
    font-size: 18px;
    margin: 1rem auto;
}
.listaIconos > * {
    display: flex;
    margin-bottom: 1rem;
}
.listaIconos li::before {
    color: var(--accent2);
    font-size: 36px;
    vertical-align: middle;
    margin-right: 1rem;
}
.listaIconos li strong, #servicios li strong {
    color: var(--accent);
}
.accent { color: var(--accent) !important; }
.accent2 { color: var(--accent2) !important; }
.fondo-negro { 
    color: var(--blanco);
    background-color: var(--negro);
}
.fondo-accent {
    color: var(--blanco);
    background-color: var(--accent);
}
.fondo-accent2 {
    color: var(--blanco);
    background-color: var(--accent2);
}
.fondo-gris {
    color: var(--blanco);
    background-color: var(--gris-oscuro);
}
.fondo-claro {
    color: var(--negro);
    background-color: var(--gris-claro);
}

.fondo-negro h1,
.fondo-negro h2,
.fondo-negro h3,
.fondo-negro h4,
.fondo-accent h1,
.fondo-accent h2,
.fondo-accent h3,
.fondo-accent h4,
.fondo-accent2 h1,
.fondo-accent2 h2,
.fondo-accent2 h3,
.fondo-accent2 h4 {
    color: var(--blanco);
}

.tabla-bicolor td {
    color: var(--blanco);
    padding: 12px 24px;
}
.tabla-bicolor strong {
    font-size: large;
    font-weight: 700;
    display: inline-block;
    width: 100%;
}

.tabla-bicolor tr:nth-child(even) {
    background-color: #2258349d;

}

.tabla-bicolor tr:nth-child(odd) {
    background-color: #ca9914ad;
}


/* Encabezado ***********************************/
.sticky-header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 300;
    padding: 1rem 0;
    width: 100%;
    background-color: var(--accent2);
}

.sticky-header > nav {
    width: 100;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.site-logo {
    max-width: 200px;
    margin: 0 16px;
}

.site-logo img {
    max-width: 180px;
    margin: 0 auto;
}

#menubtn:before,
.sticky-header a.icon-cancel:before {
    font-size: 18px;
    padding: 0.5rem;
    border: 3px solid;
    border-radius: 8px;
    line-height: 1rem;
    color: var(--blanco);
    cursor: pointer;
    text-decoration: none;
}

#menubtn:target,
.sticky-header a.icon-cancel {
    display: none;
}

#menubtn:target~a.icon-cancel {
    display: initial;
}

#menubtn:target~.menu {
    opacity: 1;
    height: 18rem;
    transition: all 0.5s;
}

.menu {
    list-style: none;
    line-height: 2.5em;
    font-size: 15px;
    position: absolute;
    top: 42px;
    padding: 2rem;
    width: 100%;
    height: 0px;
    overflow-y: hidden;
    background-color: var(--accent2);
    opacity: 0;
    transition: all 0.5s;
    box-sizing: border-box;
}

.menu a,
.menu a:visited {
    color: var(--blanco);
    text-decoration: none;
}

.menu a:hover {
    color: var(--accent);
    transition: all 0.5s;
}
#menubtn, a.icon-cancel {
    padding-right: 0.5rem;
  }

/* Banner animado *****************************************/
#hero-header {
    display: none;
}

#hero-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1em;
    color: var(--blanco);
    border-bottom: none;
}

#hero-header h1 span {
    color: var(--accent);
}

#hero-header p {
    max-width: 780px;
    margin: 1rem auto 3rem;
    font-size: 18px;
}

.btnbar {
    display: flex;
    justify-content: center;
}

.boton {
    color: var(--blanco) !important;
    border: 2px solid;
    border-radius: 3px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
}

.boton.accent {
    background-color: var(--accent);
    border: none;
}

.boton.accent2 {
    background-color: var(--accent2);
    border: none;
}

#typedBanner {
    background: var(--gris-oscuro) url(../img/main.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: soft-light;
    text-align: center;
    min-height: 50vh;
    padding: 8rem 2rem 2rem;
}

.typed-cursor {
    color: var(--blanco) !important;
}

#homeSlider {
    height: 65vh;
    text-align: center;
    padding: 6rem 0 0;
}

#homeSlider .vegas-timer-progress {
    background-color: var(--accent);
}
/* Descomentar para banner animado tipo Slider */
body.Bienvenida #hero-header {
    display: block;
    background-color: var(--negro);
}

/* Descomentar para banner animado tipo tecleado */

/* Columnas *****/
.columnas {
    display: flex;
    flex-direction: column;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}

.columnas > * {
    padding: 0.5rem;
    margin: 0.5rem 0;
    flex-basis: 50%;
}

.columnas.full>* {
    padding: 1rem;
}

.columnas h3 {
    color: var(--accent2);
}

.enmarcado.accent {
    border: 6px solid var(--accent);
}

.enmarcado.accent2 {
    border: 6px solid var(--accent2);
}

.redondo {
    border-radius: 50%;
    overflow: hidden;
}

/* Servicios *******/
#servicios h3:before {
    font-size: 3rem;
    display: block;
    margin: 0 auto 0.5rem;
}
#servicios ol {
    counter-reset: item;
    list-style: none;
    margin: 1.5rem 0;
  }
  #servicios ol li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
   #servicios ol li:before {
     display: block;
     min-width: 44px;
     content: counter(item);
     counter-increment: item;
     color: var(--blanco);
     background-color: var(--accent2);
     font-size: 24px;
     text-align: center;
     line-height: 44px;
     font-weight: 700;
     margin-right: 0.7rem;
  }

/* Resultados ********/
#resultados h4::before {
    font-size: 46px;
    display: block;
    margin: 0 auto;
  }
  #resultados p {
    margin-top: 0px;
  }

/* Formulario de contacto *****/
#contacto a,
#contacto a:visited {
    color: var(--negro);
    text-decoration: none;
    font-weight: 700;
    margin: auto 0.3rem;
}

#contacto a:hover {
    color: var(--accent);
}

#contacto a.icon-whatsapp:before {
    font-size: 1.18em;
}

#cntFform {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 80%;
    max-width: 500px;
    margin: 2rem auto;
}

#cntFform * {
    flex-basis: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

#cntFform input,
#cntFform textarea {
    border: 1px solid var(--gris-claro);
    padding: 0.5rem;
    border-radius: 4px;
}

#cntFform textarea {
    height: 4em;
}

#cntFform input[type=submit] {
    color: var(--blanco);
    background-color: var(--accent2);
    font-weight: 700;
    border: none;
}

#cntFform input[type=submit]:hover {
    background-color: var(--accent);
}

#cntFform label.error {
    color: var(--accent);
    background-color: transparent;
    border: none;
    font-size: 1.1em;
    font-weight: 700;
}

#cntFsuccess {
    display: block;
    background-color: #dbf4d3;
    padding: 1rem;
    min-width: 97%;
    flex-basis: 100%;
    border-radius: 4px;
}

#cntFerror {
    display: block;
    background-color: #f8b6b6;
    padding: 1rem;
    min-width: 97%;
    flex-basis: 100%;
    border-radius: 4px;
}

/* Pie de página ********************************/
.mainfooter {
    padding: 2rem;
    color: var(--gris-claro);
    background-color: var(--negro);
}
.mainfooter li { line-height: 2.2em;}
.mainfooter li:before {
	color: var(--gris-claro);
	font-size: 1.5em;
	padding-right: 8px;
	}

.socialicons {
    display: flex;
    width: fit-content;
    gap: 1rem;
    margin: 1rem auto;
    list-style: none;
}

.socialicons>li {
    font-size: 46px;
}

.socialicons a,
.socialicons a:visited {
    color: var(--gris-claro);
    text-decoration: none;
}

.socialicons a:hover {
    color: var(--blanco);
}


/* Area de contenidos ***************************/
.contenido {
    color: var(--negro);
    background-color: var(--blanco);
    flex-grow: 1;
}

.contenido h1,
.contenido p {
    margin: 1rem 0;
}

.contenido>section {
    padding: 4rem 1rem;
}


/* Media Queries */

@media screen and (min-width: 920px) {
    .sticky-header > nav {
        justify-content: space-between;
        align-items: flex-start;
    }

    #menubtn {
        display: none;
    }

    .menu {
        display: flex;
        opacity: 1;
        flex-basis: 40%;
        width: fit-content;
        height: 2em;
        margin: 0 20px 0 0;
        padding: 0;
        position: unset;
        flex-grow: 1;
        justify-content: flex-end;
        align-self: flex-start;
        transition: none;
    }

    .menu li a {
        margin-left: 3rem;
    }

    #hero-header h1 {
        font-size: 62px;
    }

    .columnas {
        flex-direction: row;
    }

    .columnas > * {
        padding: 2rem;
        margin: 0 0.5rem;
    }
}