#index{
    background:#000;
}

body{
    font-family: 'Raleway';
    font-weight: 400;
    font-size: 16px;
    /*max-width: 1920px;*/
    margin: 0 auto;
    overflow-x: hidden;
}
a{
    color: #044a6e;
    text-decoration: none;
    font-weight: bold;
}
a:hover{
    text-decoration: underline;
}
::-moz-selection{
    background:#044a6e;
    color: #fff;
}
::selection {
    background:#044a6e;
    color: #fff;
}
nav ul{
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}
nav li{
    margin: 0 10px;
    font-family: 'Raleway';
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
}
nav li a{
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Raleway';
    font-weight: 600;
    padding: 12px 0;
    color: #fff;
}
nav li a:hover{
    color:#e7e397;
    text-shadow: 1px 1px 10px #E7E397;
    text-decoration: none;
}

@font-face {
    font-family: 'IcoMoon-Free';
    src: url('../fonts/IcoMoon-Free.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.icon {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'IcoMoon-Free' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}
.icon-switch:before {
    content: "\e9b6";
}


/*---BOTON ON OFF---*/
.onoffswitch {
    position: relative; width: 130px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999999; border-radius: 15px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 45px; padding: 0; line-height: 45px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "OFF";
    content:url('../images/off.png');
    padding-left: 10px;
    background-color: #DE5F63; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "ON";
    content:url('../images/on.png');
    padding-right: 10px;
    background-color: #4AC96E; color: #FFFFFF;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 10px; margin: 5px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 95px;
    border: 2px solid #999999; border-radius: 15px;
    transition: all 0.3s ease-in 0s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}

/*INDEX*/
#index-text p{
    color: #fff;
    text-align: center;
    margin-top: 100px;
}

/*---HEADER---*/
#header-bar{
    background:#044a6e;
    padding: 12px 0;
}
/*#header-logo-wrapper{
    width: 100%;
    background: url('../images/header-background-smd-2016-ok.jpg');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}*/
#header-logo-wrapper {
    width: 100%;
    background: url(../images/header-background-smd-2016-2800.jpg);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
}
#header-logo-wrapper-index{
    width: 100%;
}
/*#header-logo-content{
    background: url('../images/logo-header-smd-2016-ok.png');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 70%;
    padding-bottom: 25%;
    margin: 0 auto;
    position: relative;
    left: -10px;
}*/
#header-logo-content {
    background: url(../images/logo-header-smd-2016-2800.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    margin: 0 auto;
    position: relative;
    left: -60px;
    height: 450px;
}
#header-logo-content-index{
    background-position: 50% 50%;
    background-repeat: no-repeat;
    margin: 0 auto;
    position: relative;
    left: -60px;
    height: 450px;
}

.off{
    background: url('../images/logo-off-landingpage-smd-2016.png');
}
.on{
    background: url('../images/logo-on-landingpage-smd-2016.gif');
}
/*EDICION BOTON LANDING PAGE*/
.onoffswitch {
    transform: rotate(90deg);
    width: 120px;
    margin: 0px auto;
}


/*---CONTENT---*/
#titulo-seccion{
    display: none;
}
#content-boxed {
    width: 765px;
    margin:0 auto;
}
#right{
    width: 100%;
    padding: 50px 0;
}
#left{
    width: 100%;
    padding: 50px 0;
}
#fondo{
    background-attachment: fixed;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 1100px;
}
#seccion{
    text-align: center;
}
.primero{
    background-color: #e7e397;
    background-image: url('../images/television-smd-2016-2800.jpg');
    width: 100%;
    background-size: cover;
    background-position: center;
    /*padding-bottom: 31.5299%;*/
    color: #dc585c;
    font-size: 1.4em;
    height: 600px;
}
.segundo{
    background-color: #eb8b70;
    background-image: url('../images/maquina-smd-2016.jpg');
    width: 100%;
    background-size: cover;
    background-position: center;
    /*padding-bottom: 31.5299%;*/
    color: #534231;
    font-size: 1.3em;
    height: 600px;
}
.segundo #left {
    padding: 140px 0;
}
.tercero{
    background-color: #a5d19d;
    background-image: url('../images/micro-smd-2016.jpg');
    width: 100%;
    background-size: cover;
    background-position: center;
    /*padding-bottom: 31.5299%;*/
    color: #534231;
    font-size: 1.3em;
    height: 850px;
}
.tercero #right {
    padding: 140px 0;
}
.cuarto{
    background-color: #f1a245;
    background-image: url('../images/telefono-smd-2016-2800.jpg');
    width: 100%;
    background-size: cover;
    background-position: center;
    /*padding-bottom: 63.059%;*/
    color: #534231;
    font-size: 1.3em;
    height: 1200px;
}
.cuarto #left {
    padding: 160px 0;
}

#guia-wrapper {
    display: flex;
}
#guia-texto {
    flex: 3;
    align-self: center;
    order: 2;
}
#guia-imagen {
    flex: 2;
    align-self: center;
    order: 1;
}
#guia-imagen img {
    width: 75px;
    max-width: 50%;
}

#aeal-info-wrapper{
    display: flex;
    justify-content: center;
    text-align: left;
}
#aeal-info {
    width: 90%;
    margin: 0 auto;
}


/*---FOOTER---*/
#sponsors h2{
    font-family: 'Raleway';
    color: #bbad9b;
    font-weight: 400;
}
div#sponsors-wrapper {
    padding: 25px;
}
#sponsors-wrapper img {
    width: 40%;
    margin: 0 5%;
}
#footer-separator{
    background: url('../images/barra-footer-smd-2016-2800.png');
    height: 15px;
    background-position: center;
    background-size: cover;
    width: 100%;
}
#footer-info{
    background: url('../images/background-footer-smd-2016-2800.jpg');
    background-position: center;
    background-size: cover;
    width: 100%;
    text-align: center;
    height: 225px;
    padding: 25px 0;
}
#footer-info p{
    line-height: 35px;
    color: #837765;
    font-weight: 600;
}
#patologias{
    width: 500px;
    margin: 0 auto;
}
#mm, #smd, #lma, #lmc, #sm, #lh, #lct, #lbd, #lcm, #llc {
  height: 40px;
  width: 40px;
  background-image: url("../images/logos-aeal-smd-2016.png");
  background-repeat: no-repeat;
  float: left;
  margin: 5px;
}
#mm {
  background-position: 0 0;
}
#smd {
  background-position: -40px 0;
}
#lma {
  background-position: -80px 0;
}
#lmc {
  background-position: -120px 0;
}
#sm {
  background-position: -160px 0;
}
#lh {
  background-position: -200px 0;
}
#lct {
  background-position: -240px 0;
}
#lbd {
  background-position: -280px 0;
}
#lcm {
  background-position: -320px 0;
}
#llc {
  background-position: -360px 0;
}
#mm:hover {
  background-position: 0 -40px;
}
#smd:hover {
  background-position: -40px -40px;
}
#lma:hover {
  background-position: -80px -40px;
}
#lmc:hover {
  background-position: -120px -40px;
}
#sm:hover {
  background-position: -160px -40px;
}
#lh:hover {
  background-position: -200px -40px;
}
#lct:hover {
  background-position: -240px -40px;
}
#lbd:hover {
  background-position: -280px -40px;
}
#lcm:hover {
  background-position: -320px -40px;
}
#llc:hover {
  background-position: -360px -40px;
}
#footer-bar {
    display: flex;
    justify-content: center;
    color: #837765;
}
#footer-bar a{
    color: #837765;
    text-decoration: none;
}
#copyright {
    flex: 1;
    text-align: center;
    align-self: center;
}
#aviso-legal {
    flex: 3;
    text-align: center;
    align-self: center;
}
#aviso-legal ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}
#aviso-legal li {
    margin: 0 5px;
}
#aviso-legal a{
    font-weight: 400;
}
#aviso-legal a:hover{
    color: #044a6e;
}
#rrss {
    flex: 1;
    text-align: center;
    font-size: 1.1em;
    align-self: center;
}
#rrss a {
    margin: 0 10px;
}
#rrss a:hover {
    color: #044a6e;
}
.icon-facebook:before {
    content: "\ea90";
}
.icon-twitter:before {
    content: "\ea96";
}
.icon-youtube:before {
    content: "\ea9d";
}

/*---BOTON DE SUBIR ARRIBA---*/
.button-up {
    display: none;
    padding: 20px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    position: fixed;
    bottom: 0;
    right: -10px;
    font-family: IcoMoon-Free;
    /*border-radius: 10px;*/
}
.button-up:before {
    content: "\ea3a";
    float: left;
}
.button-up-shadow {
    background: #044a6e;
    opacity: 0.85;
    width: 60px;
    height: 60px;
    position: relative;
    top: -20px;
    left: -20px;
    /*border-radius: 10px;*/
    z-index: -1;
}
.button-up:hover .button-up-shadow {
    opacity: 1;
}
.button-off {
    display: none;
    padding: 20px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    position: fixed;
    bottom: 0;
    left: 20px;
    font-family: IcoMoon-Free;
    /*border-radius: 10px;*/
}
.button-off:before {
    content: "\e9b6";
    float: left;
}
.button-off-shadow {
    background: #dc585c;
    opacity: 0.85;
    width: 60px;
    height: 60px;
    position: relative;
    top: -20px;
    left: -20px;
    /*border-radius: 10px;*/
    z-index: -1;
}
.button-off:hover .button-off-shadow {
    opacity: 1;
}