/**
 * @file
 * Positioning for a fixed-width, desktop-centric layout.
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

/**
 * Center the page.
 *
 * If you want to make the page a fixed width and centered in the viewport,
 * this is the standards-compliant way to do that.
 */
 body {
	 background:#f8f8f8;
 }
#page,
.region-bottom {
  margin-left: auto;
  margin-right: auto;
  width: 980px;
  border-left: 1px solid #666;
  border-right: 1px solid #666;
  background:#FFF;
}

/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding-left: 10px;
  padding-right: 10px;
  border-left: 0 !important;
  border-right: 0 !important;
  word-wrap: break-word;
  *behavior: url("/path/to/boxsizing.htc");
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}
#footer {
/*background:url(../../images/bg-pie.png) top left repeat-x, -webkit-gradient(linear, 0% 100%, 0% 27%, from(#333333), to(#5e5e5e));*/
background:url(../../images/bg-foot.jpg) top left repeat-x #303030;
}

/* Containers for grid items and flow items. */
#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before,
#header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

/* BARRA PRINCIPAL DE NAVEGACIÓN */
#main {
  /* Move all the children of #main down to make room. */
  padding-top: 2.70em;
  position: relative;
}

#navigation {
  /* Move the navbar up inside #main's padding. */
  position: absolute;
  top: 0;
  margin: 0;
  height: 2.45em;
  width: 960px;
  background: url(../../images/bg-menubar.gif) repeat-x;
}

#block-search-form {
	float: right;
}


/**
 * The layout when there is only one sidebar, the left one.
 */

/* Span 4 columns, starting in 2nd column from left. */
.sidebar-first #content {
  float: left;
  width: 764px;
  margin-left: 196px;
  margin-right: -980px;
}

/* Span 1 column, starting in 1st column from left. */
.sidebar-first .region-sidebar-first {
  float: left;
  width: 176px;
  margin-left: 0px;
  margin-right: -196px;
}

/**
 * The layout when there is only one sidebar, the right one.
 */

/* Span 4 columns, starting in 1st column from left.
.sidebar-second #content {
  float: left;
  width: 764px;
  margin-left: 0px;
  margin-right: -784px;
} */

.sidebar-second #content {
  float: left;
  width: 656px;
  margin-left: 0px;
  margin-right: -668px;
}

/* Span 1 column, starting in 5th column from left. 
.sidebar-second .region-sidebar-second {
  float: left;
  width: 176px;
  margin-left: 784px;
  margin-right: -980px;
}*/

.sidebar-second .region-sidebar-second {
float: left;
width: 295px;
margin-top: 0.5em;
margin-left: 656px;
margin-right: -980px;
}

/**
 * The layout when there are two sidebars.
 */

/* Span 3 columns, starting in 2nd column from left. */
.two-sidebars #content {
  float: left;
  width: 568px;
  margin-left: 196px;
  margin-right: -784px;
}

/* Span 1 column, starting in 1st column from left. */
.two-sidebars .region-sidebar-first {
  float: left;
  width: 176px;
  margin-left: 0px;
  margin-right: -196px;
}

/* Span 1 column, starting in 5th column from left. */
.two-sidebars .region-sidebar-second {
  float: left;
  width: 176px;
  margin-left: 784px;
  margin-right: -980px;
}


/* REDEFINICIÓN O APLICACIÓN DE NUEVAS CSS CREADAS O DEFINICIÓN DE NUEVAS REGIONES */

/* HEADER */

#header {
	display:block;
	height:116px;
	background: url(../../images/bg-cabecera.gif) repeat-x;
}

#ultimahora {
	margin: 0;
	height: auto;
	width: 960px;
	overflow: hidden;
	display: block;
	padding: 0 10px 0 10px;
	clear: both;
}

/* Resto de elementos de header están definidos en misc.css */
