/*! 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{
     box-sizing: border-box;
   }

   *,*:before,*:after {
     box-sizing: inherit;
   }

   body{
     background-color: #f2f2f2;
     font-family: 'Open Sans', sans-serif;
   }

   h1.nombre-sitio{
     font-family: 'PT Sans', sans-serif;
   }

   /** Globales **/
   .contenedor{
       width: 98%;
       margin: 0 auto;
   }

   .contenido{
     padding-top: 30px;
     padding-bottom: 30px;
   }

   @media only screen and (min-width: 480px){
     .contenedor{
         width: 95%;
     }
   }

   @media only screen and (min-width: 768px){
     .contenedor{
         width: 90%;
     }
   }

   @media only screen and (min-width: 992px){
     .contenedor{
         width: 90%;
         max-width: 1100px;
     }
   }

   .seccion{
     padding: 30px 0;
   }

   .seccion p{
     font-size: 1.1em;
     text-align: center;
     color: #B4B0B0;
   }

   .button{
     background-color: #ffffff;
     padding: 10px 40px;
     color: #C43333;
     font-weight: bold;
     font-family: 'Oswald', sans-serif;
     text-decoration: none;
     font-size: 1em;
     margin-top: 20px;
     display: inline-block;
     transition: all .3s ease;
   }

   .float-right{
     float: right;
   }

   .float-left{
     float: left;
   }

   .button:hover{
     background-color: #C43333;
     color: #ffffff;
   }

   ul{
     list-style: none;
     margin: 0;
     padding: 0;
   }

   @media only screen and (min-width:768px){
     .seccion p{
       font-size: 1.2em;
     }
   }

   h2{
     font-family: 'Oswald', sans-serif;
     font-size: 1.8em;
     color: #778c8d;
     text-align: center;
   }

   h2::after{
     content:'';
     margin: 0 auto;
     background-image: url(../img/separador.png);
     height: 30px;
     width: 100px;
     display: block;
   }

   h3{
     color: #C43333;
   }

   /** Header **/
div.hero {
  height: 100vh;
  background-position: top center;
  background-size: cover;
  background-image: url(../img/encabezado8.jpg);
}


@media only screen and (min-width:781px){
  div.hero {
    height: 100vh;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
    background-image: url(../img/encabezado8.jpg);
  }
}

div.contenido-header {
  padding-top: 10px;
}

@media only screen and (min-width:768px){
  div.contenido-header {
    padding-top: 20px;
  }
}

nav.redes-sociales {
  text-align: center;
}

nav.redes-sociales a{
  color: #C43333;
  font-size: 2em;
  margin-right: 20px;
}

@media only screen and (max-width:768px){
  nav.redes-sociales a:last-child{
    margin-right: 10;
  }
}

div.logo-encabezado{
  width: 80%;
  text-align: center;
}

div.logo-encabezado img {
  width: 100%;
}

@media only screen and (min-width:768px){
  nav.redes-sociales {
    text-align: right;
  }

  div.logo-encabezado img{
    width: 50%;
    float: left;
  }
}

a.active{
  background-color: #ffffff !important;
  color: #0d5bb3 !important;
}

/** Menu **/

div.barra{
  background-color: #C43333;
  padding: 0 0;
}

.fixed {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

#menu ul {
  margin: 0;
  padding: 0;
}

#menu .main-menu {
  display: none;
}

#tm:checked + .main-menu {
  display: block;
}

#menu input[type="checkbox"],
#menu ul span.drop-icon {
  display: none;
}

#menu li,
#toggle-menu,
#menu .sub-menu {
  border-style: solid;
  border-color: rgba(0, 0, 0, .05);
}

#menu li,
#toggle-menu {
  border-width: 0 0 1px;
}

#menu .sub-menu {
  background-color: #C43333;
  border-width: 1px 1px 0;
  margin: 0 1em;
}

#menu .sub-menu li:last-child {
  border-width: 0;
}

#menu li,
#toggle-menu,
#menu a {
  position: relative;
  display: block;
  text-decoration: none;
  color: white;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);
}

#menu,
#toggle-menu {
  background-color: #C43333;
}

#toggle-menu,
#menu a {
  padding: 1em 1.5em;
}

#menu a {
  transition: all .125s ease-in-out;
  -webkit-transition: all .125s ease-in-out;
}

#menu a:hover {
  background-color: white;
  color: #09c;
}

#menu .sub-menu {
  display: none;
}

#menu input[type="checkbox"]:checked + .sub-menu {
  display: block;
}

#menu .sub-menu a:hover {
  color: #444;
}

#toggle-menu .drop-icon,
#menu li label.drop-icon {
  position: absolute;
  right: 1.5em;
  top: 1.25em;
}

#menu label.drop-icon, #toggle-menu span.drop-icon {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  text-align: center;
  background-color: rgba(0, 0, 0, .125);
  text-shadow: 0 0 0 transparent;
  color: rgba(255, 255, 255, .75);
}

#menu .drop-icon {
  line-height: 1;
}

@media only screen and (max-width: 64em) and (min-width: 52.01em) {
  #menu li {
    width: 33.333%;
  }

  #menu .sub-menu li {
    width: auto;
  }
}

@media only screen and (min-width: 52em) {
  #menu .main-menu {
    display: block;
  }

  #toggle-menu,
  #menu label.drop-icon {
    display: none;
  }

  #menu ul span.drop-icon {
    display: inline-block;
  }

  #menu li {
    float: left;
    border-width: 0 1px 0 0;
  }

  #menu .sub-menu li {
    float: none;
  }

  #menu .sub-menu {
    border-width: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 12em;
    z-index: 3000;
  }

  #menu .sub-menu,
  #menu input[type="checkbox"]:checked + .sub-menu {
    display: none;
  }

  #menu .sub-menu li {
    border-width: 0 0 1px;
  }

  #menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }

  #menu li:hover > input[type="checkbox"] + .sub-menu {
    display: block;
  }
}

a.subTitle {
	font-family: Verdana;
	font-weight: bold;
	color: #000000;
	font-size: 10pt;
}

.normParagraph {
	font-family: Arial, Helvetica, serif;
	color: #000000;
	font-size: 10pt;
}

.message{
	font-family: Arial, Helvetica, serif;
	color: #000000;
	font-size: 10pt;
}

.comentParagraph {
	font-family: Verdana;
	color: #000000;
	font-size: 12px;
}

.stCourier {
	font-family: Courier New;
	color: #000000;
	font-size: 11pt
}

.text {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #000000
}

.textTitle {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #000000;
	font-weight: bolder
}

/** Inicio **/
div.contenido-inicio{
  background-image: url(../img/img3.jpg);
  height: 100vh;
  background-position: top center;
  background-size: cover;
}

div.bienvenida {
    background-color: rgba(255,255, 255, .8);
    padding: 15px;
    margin-top: 80px;
}

div.texto-inicio{
  margin-top: 10px;
}

div.texto-inicio p{
  text-align: justify;
  color: #000000;
  padding: 5px 15px 5px 15px;
}

@media only screen and (min-width:768px){
  div.texto-inicio{
    margin-left: 10%;
    width: 75%;
  }

  div.texto-inicio p{
    text-align: justify;
    padding: 20px 0 5px 0;
  }
}

a.linkIbero:visited {
    color: #990033;
}
a.linkIbero:link {
    color: #990033;
}

a.linkIbero:hover {
    color: #990033;
}

a.linkIbero:active {
    color: #990033;
}

/** Materias Main page **/

ul.lista-materias li {
  padding: 10px;
  float: left;
  margin-top: 30px;
}

ul.lista-materias li:first-child {
  margin-top: 0;
}

@media only screen and (min-width: 480px){
  ul.lista-materias li {
    width: 50%;
    margin-top: 0;
  }
}

@media only screen and (min-width: 768px){
  ul.lista-materias li {
    width: 33.3%;
    margin-top: 0;
  }
}

div.materia{
  position: relative;
  overflow: hidden;
  text-align: center;
}

div.materia img{
  max-width: 100%;
}

div.materia p.titulo-materia{
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 15px 10px;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.40);
  width: 100%;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  color: #ffffff;
}

@media only screen and (min-width:768px){
  div.materia img{
    filter: gray;
    -webkit-filter: grayscale(1);
    -webkit-transition: all .5s ease-in-out;
  }

  div.materia img:hover {
    filter: none;
    -webkit-filter: grayscale(0);
    -webkit-transform: scale(1.1);
    /*transform: rotate(3deg);*/
  }

  div.materia:hover p{
    bottom: -10px;
    -webkit-transition: all .5s ease-in-out;
    opacity: 0;
  }
}

div.materia-descripcion{
  position: relative;
  overflow: hidden;
  text-align: center;
}

div.materia-descripcion p{
  font-size: 1em;
  color: #a6aaaa;
}

div.materia-descripcion a{
  margin-top: -5px;
}


/** Servicios **/

.activo{
  border-bottom: 2px solid #0d5bb3;
}

div.descripcion-servicios {
  background-color: rgba(255,255, 255, .8);
  padding: 15px;
  margin-top: 80px;
}

@media only screen and (min-width:768px){
  div.descripcion-servicios {
    width: 95%

  }
}

@media only screen and (min-width:992px){
  div.descripcion-servicios {
    width: 95%

  }
}

nav.menu-servicios {
  width: 100%;
}

@media only screen and (min-width:966px){
  nav.menu-servicios {
    display: table;
  }
}

nav.menu-servicios a {
  display: block;
  text-align: center;
  color: #778c8d;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  margin-bottom: 10px;
  font-size: 1em;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 3px solid #C43333;
}

nav.menu-servicios a.activo::after {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  height: 20px;
  width: 30px;
  background-image: url('../img/flecha.jpg');
  background-position: top-center;
  background-repeat: no-repeat;
  bottom: -20px;
}

@media only screen and (min-width:992px){
  nav.menu-servicios a {
    display: table-cell;
  }
}

nav.menu-servicios a i,
div.detalle-servicio i{
  color: #C43333;
  font-size: 2.8em;
  margin-right: 20px;
  margin-top: 30px;
}

div.ocultar {
  display: none;
}

/** Servicio **/
ul.temas{
  list-style: circle;
}

ul.subtemas{
  list-style: inside;
}

div.detalle-servicio{
  margin-top: 20px;
  border-bottom: 1px solid black;
  padding: 0 20px;
}

div.detalle-servicio:nth-child(2){
  border: none;
}

div.detalle-servicio p {
  margin-bottom: 20px;
  font-size: 1em;
  text-align: justify
}

div.icono-servicios{
  width: 20%;
  float: left;
  /*padding-left: 6%;*/
}

div.texto-servicios{
  width: 80%;
  float: right;
  color: #000 !important;
}

div.texto-servicios p{
  color: #000 !important;
}


/** Footer **/

@media only screen and (max-height:992px) {
  .site-footer{
    margin-top: -16px;
  }
}

p.copyright{
  background-color: #C43333;
  color: #ffffff;
  padding: 35px 0;
  margin: 0;
  text-align: center;
}

/* ==========================================================================
   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;
    }
}
