/* Basic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body {
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Pantallas grandes */
#nav {
    background: linear-gradient(to bottom, #f4da47, #ffbc03);
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}

#nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#nav > ul > li {
    position: relative;
}

#nav > ul > li > a {
    display: block;
    padding: 25px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

#nav > ul > li > a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #000;
}

/* Submenús */
#nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #f4da47, #ffbc03);
    min-width: 220px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    flex-direction: column;
    border-radius: 0 0 15px 5px;
}

#nav ul li:hover > ul {
    display: flex;
}

#nav ul ul li {
    width: 100%;
}

#nav ul ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#nav ul ul li:last-child a {
    border-bottom: none;
}

#nav ul ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    padding-left: 25px;
}

/* Bburguer móviles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    height: 700px;
    background-image: url("/assets/img/banner1.png");
    background-repeat: no-repeat; 
    background-position: center;
    background-size: cover; 
}
header img{
    width: 13%;
    margin: 8% 0% 0% 6%;
}
header h1{
    margin: 12% 7% 0% 0%;
    color: #FFFFFF;
    text-shadow: 0 6px 15px rgba(0,0,0,0.75);
    font-size: 250%
}
.general-section{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 7% 0% 2% 0%;
}
.general-section h1{
    width: 100%;
    text-align: center;
    font-weight: 400;
}
#cards{
    display: flex;
    /*position: absolute;*/
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.hr-corta{
  width: 20%;
  height: 5px;
  margin: 0 auto;
  background-color: #FFC602;
  border-radius: 5px;
  border-style: none;
  clear:both;
}
.card h1, .card ul{
  color: #FFFFFF;
  float:initial;
}
.card{
    background-image: linear-gradient(to bottom, #444444, #000000);
    border: 1px solid #FFC602;
    width: 20%;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.75);
    margin: 1%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card img{
    width: 40%;
    margin: 10%;
}
.card h1{
  font-size: 100%;
  padding: 1% 7%;
}
.card a{
  background-color: #FFC602;
  border: 1px solid #FFC602;
  color:#000000;
  padding: 5% 15%;
  margin: 10px;
  font-size: 110%;
  font-family: 'Roboto';
  border-radius:5px;
  transition: color 0.5s, background-color 0.5s;
  text-decoration: none;
}
.card a:hover{
  background-color: #000000;
  border: 1px solid #FFC602;
  color:#ffc602;
}
.card hr{
  border: 1px solid #FFC602;
  width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    width: 50%;
    padding-bottom: 25px;
    margin: 0px auto;
}

.contact-item img {
    margin-right: 3%;
}
.contact-details {
    flex: 1;
}
.article-simple-50{
  width: 45%;
  margin-left: 4%;
  margin-bottom: 2%;
}
.article-simple-50 h2{
    text-align: center;
    width: 100%;
    font-family: 'Roboto', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 120%;
}
.article-simple{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 90%;
}

.article-simple-img{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
}

.article-simple-img img{
  padding-right: 2%;
  width: 40%;
}
.article-simple-img, .article-simple-img a{
    text-align: center;
    width: 70%;
}
.article-simple-img ol{
  padding-left: 2%;
  text-align: justify;
}
.article-simple, .article-simple-50{
  margin-bottom: 2%;
}
.article-simple p, .article-simple-50 p, .article-simple-50 ol{
    font-size: 120%;
    margin-bottom: 2%;
}
.article-simple form{
  width: 50%;
  margin: 0 auto;
}
.article-simple h2{
  width: 100%;
  margin: 0 auto;
  font-weight: 400;
}

.article-simple form input, 
.article-simple form textarea, 
.article-simple form label, 
.button-simple, 
.article-simple form select{
  width: 100%;
  padding: 2%;
  font-family: 'Roboto', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 100%;
}
.article-simple form label{
  margin: 5px 0px 0px 0px;
  display: block;
}

.article-simple img{
    padding: 0% 3% 0% 0%;
    display: inline;
    width: 20%;
}
.article-simple a{
    text-decoration: none;
    color:#333333;
    transition: all 0.75s;
}
.article-simple a:hover{
    text-decoration: underline;
    color:#FFC602;
    text-shadow: 1px 1px 2px #333333;
}
.text-justify{
    text-align: justify;
}
.insti{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}
.estructura-presidente{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.estructura-directorio{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}
.directorio, .enlace{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}
.directorio{
    width: 25%;
}
.enlace{
    width: 33%;
}
.estructura-presidente img{
    padding: 0px;
    width: 15%;
}
.directorio img, .enlace img{
    padding: 0px;
    width: 25%;
}
.enlace img{
    padding: 0px;
    width: 50%;
}
.estructura-presidente h2, .directorio h2, .enlace h2{
    text-align: center;
}
.estructura-presidente h2, .enlace h2{
    font-size: larger;
}
.directorio h2, .enlace h2{
    font-size: medium;
}
.estructura-presidente h2.negro, .directorio h2.negro, .enlace h2.negro{
    font-weight: bolder;
}

.button-simple{
  border-radius: 5px;
  color: #333333;
  background-color:#FFFFFF;
  border: 1px solid #333333;
  transition: all 0.75s;
}
.button-simple:hover{
  color: #000000;
  background-color:#FFC602;
  border: 1px solid #000000
}

.margin10{
  margin: 5% 0% 0% 0%;
}
.comunicado{
  border: 1px solid #000000;
  border-radius: 7px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 0;
  padding: 2% 0% 2% 0%;
}
.comunicado::before {
    content: "";
    background-image: url('/assets/img/anclacabo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
  }
.comunicado h2{
  background-color: #ffc602;
  padding: 1%;
  margin: 2% 0% 2% 0%;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.comunicado h3{
  text-align: center;
  font-size: 150%;
  font-weight: bold;
}
.comunicado h4{
  width: 100%;
  padding: 0% 3% 0% 3%;
  box-sizing: border-box;
  text-align: left;
  font-size: 140%;
  font-weight: bold;
}
.comunicado ol{
  width: 100%;
  padding: 0% 3% 0% 8%;
  box-sizing: border-box;
  text-align: left;
}
.comunicado p{
  color: #333333;
  z-index: 1;
  text-align: justify;
  width: 96%;
}
.comunicado p.right{
  text-align: right;
}
.comunicado img{
  width: 15%;
}
footer{
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #000000;
  margin: 30px 0px 0px 0px;
  padding: 5%;
}
footer h2, footer h3{
  text-align: center;
  font-weight: 75;
  font-family: "WindSong", cursive;
  transition: text-shadow 1s;
  margin: 0;
}
footer h2{
  color:#FFC602;
  font-size: 600%;
}
footer h3{
  color:#FFFFFF;
}
footer h2:hover, footer h3:hover{
  text-shadow: 3px 3px 5px #FFC602;
}
footer h3{
  font-size: 150%;
  font-family: "Roboto";
}
.enlaces{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.enlaces ul{
    list-style: none;
}
.enlaces ul li a{
    text-decoration: none;
    color: #a9a9a9;
    padding: 0px;
    font-size: 80%;
    transition: all 0.5s;
}
.enlaces ul li a:hover{
    color: #FFC602;
}


/* Pantallas pequeñas */
@media (max-width: 768px) {
    .general-section{
        margin: 20% 0% 2% 0%;
    }
    #nav {
        display: flex;
        flex-direction: column;
    }
    .menu-toggle {
        display: flex;
        align-self: flex-end;
    }
    #nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    #nav ul.show {
        display: flex;
    }
    #nav > ul > li {
        width: 100%;
        text-align: left;
    }
    #nav > ul > li > a {
        padding: 2px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    /* Submenús directo */
    #nav ul ul {
        display: flex;
        position: static;
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
        background: rgba(255, 255, 255, 0.2);
    }
    
    #nav ul ul li a {
        padding: 4px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    header{
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    header img{
        width: 40%;
        margin: 15% 0% 0% 0%;
        }
    header h1{
        margin: 2% 0% 0% 0%;
        color: #FFFFFF;
        text-shadow: 0 6px 15px rgba(0,0,0,0.75);
        font-size: 190%
    }
    .card {
        width: 80%;
        margin: 10px auto;
    }
    .card h1{
        font-size: 130%;
        padding: 1% 7%;
    }
    .card a{
        font-size: 130%;
    }
    .contact-item {
        width: 95%;
    }
    .article-simple form{
        width: 95%;
        margin: 0 auto;
    }
    .article-simple form input, 
    .article-simple form textarea, 
    .article-simple form label, 
    .button-simple, 
    .article-simple form select{
        font-size: 110%;
    }
    .article-simple-img{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 85%;
    }
     .article-simple-img a img{
        width: 100%;
    }
    footer h2{
        font-size: 300%;
    }
    footer h3{
        font-size: 160%;
    }
    .estructura-presidente, .estructura-directorio, .directorio{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .estructura-directorio{
        flex-wrap: wrap;
    }
    .directorio, .enlace{
        width: 90%;
    }
    .estructura-presidente img, .directorio img, .enlace img{
        padding: 0px;
        width: 25%;
    }
    .estructura-presidente img, .directorio img, .enlace img{
        padding: 0px;
        width: 35%;
    }
    .directorio h2, .enlace h2{
        font-size: larger;
    }
    .estructura-presidente h2.negro, .directorio h2.negro, .enlace h2.negro{
        font-weight: bolder;
    }

    .insti img{
        width: 15%;
    }
    .comunicado h3{
        text-align: center;
        font-size: 120%;
        font-weight: bold;
    }
    .comunicado p{
        color: #333333;
        z-index: 1;
        text-align: justify;
        width: 96%;
    }
    .comunicado p.right{
        text-align: right;
    }
    .comunicado img{
        width: 25%;
    }
    .enlaces{
        justify-content: space-between;
    }
}

#salutacion-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#salutacion-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#salutacion-overlay.active {
    display: flex;
}

.salutacion-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#salutacion-overlay img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-salutacion {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
    z-index: 10001;
}

.close-salutacion:hover {
    color: #ff0000;
}
#salutacion {
    display: none;
}
body.salutacion-open {
    overflow: hidden;
}