/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* HTML */
html{
    font-size: 100%;
}

body{
    display: flex;
    flex-direction: column;
    max-width: 1365px;
    margin: 0 auto;
}

/* Header */ 
header.principal{
    background-image: url('../img/fondo_pc.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    height: 92vh;
    order: 1;
}

header img{
    width: 60%;
    margin-top: 1%;
}

header .patrocinadores{
    position: absolute;
    left: 0;
    bottom: 50px;
    width: 100%;
    text-align: center;
    background-color: white;
    padding-bottom: 1%;
    opacity: 0.75;
}

header .patrocinadores p{
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    color: navy;
    text-shadow: 1px 1px 1px black;
}

header .patrocinadores img{
    width: 20%;
    margin: 0 4%;
    opacity: 1;
}

header #logo2{
    width: 18%;
}

#correo header{
    text-align: center;
}

/* Aviso de Cookies */
.cookies{
    background-color: brown;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
}

.cookies h3, .cookies p{
    padding-left: 10px;
}

.cookies-cerrar {
    font-size: 11px;
    line-height: 20px;
    display: block;
    width: 75px;
    padding: 2px 10px 0 10px;
    margin: 0 auto 4px;
    text-align: center;
    border-radius: 3px;
    color: yellow;
    background-color: black;
}

.cookies-cerrar:hover{
    cursor: pointer;
    color: white;
}

.cerrar{
    display: none;
}

/* Redes Sociales */
#redes {
    position: fixed;
    top: 7px;
    right: 7px;
}

#redes li{
	display: inline;
    margin-left: 12px;
}

#redes li a{
	color: black;
}

#redes li a:hover{
	color: red;
}

/* Menu Nav */
nav{
    height: 60px;
    line-height: 60px;
    position: relative;
    order: 2;
}

.menu{
    margin: 0 30px 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.menu a{
    text-decoration: none;
    color: #002945;
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 60px;
    clear: right;
    background-color: white;
}

.menu a:hover{
    color: #cf132b;
    font-weight: bolder;
    font-size: 1.1rem;
}

label{
    margin: 0 40px 0 0;
    font-size: 26px;
    line-height: 60px;
    display: none;
    width: 26px;
    float: right;
}

#toggle{
    display: none;
}

/* Section */
section{
    order: 3;
}

article h1{
    text-align: center;
    font-size: 2em;
    font-family: 'Montserrat', sans-serif;
}

/* Quienes Somos */
article#about{
	width: 95%;
	text-align: center;
	margin: 10% auto;
	overflow: hidden;
    height: 100vh;
}

article#about h2{
	width: 90%;
	margin: 5% auto;
	padding: 1%;
}


article#about img{
	margin: 3%;
	-webkit-animation: move 60000ms linear infinite;
    -moz-animation: move 60000ms linear infinite;
    -ms-animation: move 60000ms linear infinite;
}

@-webkit-keyframes move{
    from {
        -webkit-transform: translateX(-60%);
    }
	50%{
		-webkit-transform: translateX(0%);
	}
    to {
        -webkit-transform: translateX(-60%);
    }
}

/* Servicios */
@font-face {
    font-family: 'WebSymbolsRegular';
    src: url('websymbols/websymbols-regular-webfont.eot');
    src: url('websymbols/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'),
        url('websymbols/websymbols-regular-webfont.woff') format('woff'),
        url('websymbols/websymbols-regular-webfont.ttf') format('truetype'),
        url('websymbols/websymbols-regular-webfont.svg#WebSymbolsRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

#servicios{
	height: 100vh;
	text-align: center;
	margin: 5% 2%;
	padding: 2%;
}

.ca-menu{
    padding:0;
    margin:20px auto;
    width: 95%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	min-width: 300px;
}

.ca-menu li{
    width: 290px;
    height: 450px;
    overflow: hidden;
    background: #fff;
    -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    -moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-right: 4px;
    transition: all 300ms linear;
	align-self: center;
}

.ca-menu li:last-child{
    margin-right: 0px;
}

.ca-menu li a{
    text-align: left;
    width: 100%;
    height: 100%;
    display: block;
    color: #333;
    position: relative;
}

.ca-icon{
    font-family: 'WebSymbolsRegular', cursive;
    font-size: 60px;
    color: #333;
    text-shadow: 0px 0px 1px #333;
    line-height: 150px;
    position: absolute;
    width: 100%;
    height: 50%;
    left: 0px;
    top: 0px;
    text-align: center;
    transition: all 400ms linear;
}

.ca-content{
    position: absolute;
    left: 0px;
    width: 100%;
    height: 50%;
    top: 50%;
}

.ca-main{
    font-size: 24px;
    opacity: 0.8;
    text-align: center;
    transition: all 200ms linear;
}

.ca-sub{
    text-align:center;
    font-size: 16px;
    color: #666;
    line-height: 40px;
    opacity: 0.8;
    transition: all 200ms linear;
}

.ca-menu li:hover{
    background-color: #000;
}

.ca-menu li:hover .ca-icon{
    color: #fff;
    font-size: 90px;
}

.ca-menu li:hover .ca-main{
    color: #00ccff;
    -webkit-animation: moveFromLeftRotate 1000ms ease;
    -moz-animation: moveFromLeftRotate 1000 ease;
    -ms-animation: moveFromLeftRotate 1000ms ease;
}

.ca-menu li:hover .ca-sub{
    color: #fff;
    -webkit-animation: moveFromBottom 750ms ease;
    -moz-animation: moveFromBottom 750ms ease;
    -ms-animation: moveFromBottom 750ms ease;
}

@-webkit-keyframes moveFromLeftRotate{
    from {
        -webkit-transform: translateX(-100%) rotate(-90deg);
    }
    to {
        -webkit-transform: translateX(0%) rotate(0deg);
    }
}

@-moz-keyframes moveFromLeftRotate{
    from {
        -moz-transform: translateX(-100%) rotate(-90deg);
    }
    to {
        -moz-transform: translateX(0%) rotate(0deg);
    }
}

@-ms-keyframes moveFromLeftRotate{
    from {
        -ms-transform: translateX(-100%) rotate(-90deg);
    }
    to {
        -ms-transform: translateX(0%) rotate(0deg);
    }
}

@-webkit-keyframes moveFromBottom {
    from {
        -webkit-transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0%);
    }
}

@-moz-keyframes moveFromBottom {
    from {
        -moz-transform: translateY(100%);
    }
    to {
        -moz-transform: translateY(0%);
    }
}

@-ms-keyframes moveFromBottom {
    from {
        -ms-transform: translateY(100%);
    }
    to {
        -ms-transform: translateY(0%);
    }
}

/* Negocios */
#pag_negocios header{
   display: flex;
   justify-content: space-between;
}

header #redes-sociales{
    list-style: none;
    display: flex;
    width: 40%;
    justify-content: space-around;
    align-self: baseline;
}

#redes-sociales li a{
    color: black;
}

#redes-sociales li a:hover{
	color: red;
}

section#negocios{
    display: flex;
    flex-wrap: wrap;
}

div.negocio{
    width: 45%;
    margin: 1% auto;
    border: 3px solid black;
    border-radius: 2%;
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    background-color: #BDCFD0;
    min-height: 280px;
    display: flex;
    justify-content: space-around;
    min-width: 520px;
    max-width: 570px;
}

div.imagen-negocio{
    margin-top: 6%;
}

div.nombre-negocio, div.loc-negocio, div.ref-negocio{
   text-align: center;
}

div.loc-negocio{
    color: red;
}

div.observaciones ul{
    list-style: square;
}

div.observaciones ul li{
    line-height: 30px;
    font-weight: bold;
    font-size: 130%;
}

#pag_negocios footer{
    display:block;
}

/* Emprendedores */
#pag_emprendedores header{
    display: flex;
    justify-content: space-between;
}

#pag_emprendedores footer{
    display: block;
}

/* Cita usuarios */
#cita{
	height: 100vh;
    text-align: center;
	margin: 5%;
    padding: 1%;
}

#cita fieldset{
	border: 0;
}

#cita table{
	width: 100%;
	margin: 1% auto;
}

#cita table{
	text-align: center;
}

#cita tr{
	height: 55px;
}

.datos_usuario{
	background-color: transparent;
	border: 2px solid #f38a00;
	width: 65%;
	padding: 1% 0.5em;
}
	
.boton_registro {
	border: 0 none;
	height: 2.20em;
	background-color: #f38a00;
	font-weight: bold;
	color: #FFF;
	padding: 0 1em;
	border-radius: 10%;
	margin-left: 2%;
}

/* Mapa */
article#mapa{
	padding: 1%;
    height: 100vh;
    text-align: center;
}

article#mapa iframe{
	width: 96%;
	height: 80vh;
    margin: 0 auto;
}

/* Footer */
footer{
	height: 100vh;
    text-align: center;
    padding: 0;
    font-size: 150%;
    order: 4;
}

footer img{
	width: 45%;
    margin-top: 1%;
    margin-bottom: 1%;
}

footer ul{
	list-style: none;
    width: 40%;
    margin: 0 auto;
}

footer ul#datos-contacto li{
    margin: 5px 0;
}

footer ul#logos-redes{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

footer ul#logos-redes li a{
    color: black;
}

footer ul#logos-redes li a:hover{
    color: red;
}

footer #politicas{
    display: flex;
    justify-content: space-around;
    font-size: 0.95rem;
}

/* Flecha Inicio */
#to-top, #to-top-movil {
  position: fixed;
  bottom: 7px;
  right: 7px;
}

#to-top-movil{
    display: none;
}

@media only screen and (max-width: 767px){
    h1{
        font-size: 1.8em;
    }
    
    /* Header */
    header.principal{
        order: 2;
    }
    
    header img{
        width: 60%;
    }
    
    header .patrocinadores{
        bottom: 0px;
    }

    header .patrocinadores img{
        width: 40%;
    }
    
    header #logo2{
        width: 27%;
    }
    
    #pag-negocios header ul{
        width: 40%;
        display: flex;
        justify-content: space-around;
    }
    
    /* Menú Navegación */
    nav{
        order: 1;
    }
    
    label{
        display: block;
        cursor: pointer;
    }
    
    .menu{
        text-align: center;
        width: 100%;
        display: none;
    }
    
    .menu a{
        display: block;
        border-bottom: 2px solid violet;
        margin: 0;
    }
    
    #toggle:checked + .menu{
        display: block;
    }
    
    /* Redes Sociales */
    #redes{
        display: none;
    }
    
    /* Quienes Somos */
    article#about h2{
        width: 90%;
        margin: 3% auto;
        padding: 1%;
        font-size: 1.5rem;
    }
    
    /* Servicios */
    #servicios{
        height: 160vh;
        text-align: center;
        margin: 5% 2%;
        padding: 2%;
    }
    
    .ca-menu{
        width: 99%;
        justify-content: space-around;
        min-width: 220px;
        flex-grow: 1.6;
    }

    .ca-menu li{
        width: 220px;
        height: 300px;
        margin: 1% 0;
        align-self: center;
    }
    
    .ca-menu li a{
        text-align: center;
        width: 98%;
        height: 100%;
    }
    
    .ca-main{
        font-size: 18px;
    }
    
    .ca-sub{
       font-size: 14px;
    }
    
    div.negocio{
        width: 85%;
        min-height: 280px;
        min-width: 520px;
    }
    
    /* Cita */
    #cita{
        height: 100vh;
        text-align: center;
        margin: 5%;
        padding: 1%;
        font-size: 120%;
    }

    #cita tr{
        height: 75px;
    }
    
    .datos_usuario{
        width: 85%;
    }

    .boton_registro {
        border: 0 none;
        height: 2.20em;
        background-color: #f38a00;
        font-weight: bold;
        color: #FFF;
        padding: 0 1em;
        border-radius: 10%;
        margin-left: 2%;
    }
    
    /* Mapa */
    article#mapa iframe{
        height: 80vh;
    }
    
    /* Pie de Página */
    footer img{
        width: 80%;
        margin-top:1%;
    }
    
    /* Flecha Inicio */
    #to-top{
        display: none;
    }
    
    #to-top-movil{
        display: block;
    }
}

@media only screen and (max-width: 499px){
    article h1{
        font-size: 1.3em;
    }
    
    header{
        text-align: center;
    }
    
    header img{
        width: 100%;
    }
    
     header .patrocinadores img{
        width: 42%;
    }
    
    header #logo2{
        width: 40%;
    }
    
    /* Menú Navegación */
    nav{
        order: 1;
    }
    
    label{
        display: block;
        cursor: pointer;
    }
    
    .menu{
        text-align: center;
        width: 100%;
        display: none;
    }
    
    .menu a{
        display: block;
        border-bottom: 2px solid violet;
        margin: 0;
    }
    
    /* Redes Sociales */
    #redes{
        display: none;
    }
    
    
    /* Quienes Somos */
    article#about h2{
        width: 90%;
        margin: 3% auto;
        padding: 1%;
        font-size: 1.3rem;
    }
    
    /* Servicios */
    #servicios{
        height: auto;
        text-align: center;
        margin: 5% 2%;
        padding: 2%;
    }
    .ca-menu{
        width: 99%;
        justify-content: space-around;
        min-width: 220px;
        flex-grow: 1.6;
    }

    .ca-menu li{
        width: 220px;
        height: 300px;
        margin: 1% 0;
        align-self: center;
    }
    
    .ca-menu li a{
        text-align: center;
        width: 98%;
        height: 100%;
    }
    
    .ca-main{
        font-size: 16px;
    }
    .ca-sub{
       font-size: 14px;
    }
    
    /* Negocios */
    #pag_negocios header img{
        width: 100%;
    }
    
    #pag_negocios footer{
        margin-top: 5%;
    }
    
    div.negocio{
        width: 70%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 320px;
        margin-bottom: 3%;
    }
    
    div.imagen-negocio{
        align-self: center;
    }
    
    div.datos-negocio{
        margin-left: 10px;
    }
    
     #pag_negocios #redes-sociales{
        display: none;
    }
    
    #pag_negocios footer{
        display: block;
    }
    
    /* Emprendedores */
    #pag_emprendedores header{
        text-align: center;
        width: 100%;
    }
    
    #pag_emprendedores header img{
        width: 100%;
    }
    
    #pag_emprendedores #redes-sociales{
        display: none;
    }
    
    #pag_emprendedores footer{
        display: block;
    }
    
    /* Cita */
    #cita{
        height: auto;
        text-align: center;
        margin: 5%;
        padding: 1%;
        font-size: 120%;
    }

    #cita tr{
        height: 70px;
    }
    
    .datos_usuario{
        width: 85%;
    }

    .boton_registro {
        border: 0 none;
        height: 2.20em;
        background-color: #f38a00;
        font-weight: bold;
        color: #FFF;
        padding: 0 1em;
        border-radius: 10%;
        margin-left: 2%;
    }
    
    /* Mapa */
    article#mapa{
        height: auto;
        margin: 5% 1%;
    }
    
    article#mapa iframe{
        height: 75vh;
    }
    
    /* Pie de Página */
    footer img{
        width: 95%;
        margin-top: 5%;
    }
    
    footer ul{
        list-style: none;
        width: 90%;
        margin: 0 auto;
    }
    
    footer .logos{
        display: none;
    }
    
    footer .enlace_correo{
        font-size: 18px;
    }
    
    /* Flecha Inicio */
    #to-top{
        display: none;
    }
    
    #to-top-movil{
        display: block;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
