/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/**** Fin Reseteo CSS           ****/
* {
    box-sizing: border-box;
}
#imagenBanner {  
    width: 100%;
}
.panel_creaciones {
    display: none;
}
#panel_nav, #capaBanner, footer{
    border: 0px;
}
.rejilla {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    grid-template-rows: auto minmax(12px, 51px) minmax(600px, 3fr) auto;
    grid-gap: 5px;
    background-color: #CCC;
    border-radius: 3px;
}
.rejilla #capaBanner{
    grid-column: 1 / -1;
    grid-row: 1;
}
.rejilla #panel_nav{
    grid-column: 1 / -1;
    grid-row: 2;
}
.rejilla .celda_tabla_nav{
    position: relative;
    float: left;
    color: #026;
    background-color: rgba(128,32,32,0.5);
    font-family: /*sans-serif;*/ 'Agency FB';
    font-size: 1.4em;
    font-weight: bold;
    margin: 3px;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.5)/*#333*/;
    text-align: center;
    letter-spacing: 0;
    transition: 0.4s;
    size: auto;
}
.rejilla .celda_tabla_nav:hover{
    /*width: 1fr;*/
    color: yellow;
    background-color: rgba(64,16,16,0.8);
    margin: 1px;
    border-radius: 8px;
    letter-spacing: 6px;
    box-shadow: 0 0;
}
.rejilla .celda_tabla_nav:active{
    color: red;
    background-color: greenyellow;
    top: 4px;
    box-shadow: 0 0;
}
.rejilla .panel_creaciones {
    color: #620;
    background-color: rgba(32,32,128,0.5);
    grid-row-end: span 2;
}
.rejilla #contenedor{
    grid-column: 1 / -1;
    grid-row: 3;
}
.rejilla footer {
    grid-column: 1 / -1; /* de principio a fin */
    grid-row: 4;
    text-align: center;
    font-weight: bold;
}
.rejilla .panel_creaciones {
    grid-template-rows: 1fr;
    grid-template-columns: repeat(2, 51px);
}
#imgEmpresario {
     width: 33%;
     position: relative;
     float: left;
}
#imgCaca {
    width: 33%;
    position: relative;
    float: left;
}
#video {
    position: relative;
    width: 100%;
}
#contenedor {
    width: 100%;
    max-width: inherit;
/*    max-height: 1290px;*/
    margin: 0 auto;
    overflow: hidden;
    display: block;
}
#contenedor figure { 
    margin: 0 10px 4px 5px;
    width: 100%;
}
#contenedor figcaption {
    font-style: italic;
    font-size:12px;
    color: gray;
}
#contenedor > video {
    position: relative;
    float: left;
    width: 33%;
    border-radius: 4px;
    padding: 1px;
    opacity: 0.3;
    transition: 0.3s;
    filter: url(#myblur);
        
}
#contenedor > .video_up:hover{
    transform:  scale(1.5)
                translate(0,16%);
    opacity: 1;
    filter: none;
}
#contenedor > .video_down:hover{
    transform:  scale(1.5)
                translate(0,-16%);
    opacity: 1;
    filter: none;
}
#contenedor > .video_izq:hover{
    transform:  scale(1.5)
                translate(16%,0);
    opacity: 1;
    filter: none;
}
#contenedor > .video_der:hover{
    transform:  scale(1.5)
                translate(-16%,0);
    opacity: 1;
    filter: none;
}
.textoP{
    font-size: 100%;
    border-radius: 4px;
    background-color: white;
    padding: 4px;
    margin: 4px;
}
@media screen and (min-width: 400px) and (max-width: 1079px) {
    .rejilla .celda_tabla_nav {
        font-size: 0.9em;
        padding: 10px;
    }
    .textoP{
	font-size: 0.9em;
    }
}
@media screen and (max-width: 399px) {
    .rejilla .celda_tabla_nav {
        font-size: 0.5em;
        padding: 6px;
    }
    .textoP{
	font-size: 0.5em;
    }
}