@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none; border: none;    
    transition: all .1s linear;
}

section {
    scroll-margin-top: 90px;    
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* scroll-padding-top: 7rem; */
}

body {
    width: 100%;
    margin: auto;
	text-align: justify;
    font-family: 'Poppins', sans-serif;

    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

hr {
    border-bottom: 1px solid #E8E8E8; 
  }

.cab {
    height: 40px;
    background-color: #3a74ae;
    border-bottom: 1px solid #E8E8E8;        

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cab a { 
    color: #fff;
    text-decoration: none;
    margin: 0 5px    
}

.cab a:hover { 
    color: #b8834c;
}

.wrapper {
    width: 80%;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    width: 100%;
    height: 80px;
    background-color: #fff;    
    border-bottom: 1px solid #E8E8E8;             
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    transition: all 0.7s ease;
}

header.abajo{ background: #3a74ae; }
header.abajo p { color: #fff; font-weight: 300; }
header.abajo #menu-btn { color: #fff; }
header.abajo nav a { color: #fff; }

nav a {    
    text-decoration: none;
    margin: 0 14px;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    line-height: 29px;
    color: #23415b; 
}

nav a:hover { 
    color: #b8834c;
    border-bottom: 2px solid #b86125;
}

#menu-btn { display: none;}

.scrollup{
	width:40px;
	height:40px;			
	text-indent:-9999px;
	opacity:0.3;
	position:fixed;
	bottom:50px;
	right:50px;
	display:none;			
	background: url('images/icon_top.png') no-repeat;
}

.logo{
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo p {
    font-size: 20px;    
    padding: 10px;
}

.logo img {
    height: 60px;
    width: auto;    
}

main {
    width: 80%;
    margin: auto;    
}

p {
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 25px;
    color: #666;    
}

h1 {
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    color: #23415b;    
}

h2 {
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 32px;
    color: #b86125;    
}

footer {
    padding: 10px 0;
    background-color: #3a74ae;
    border-top: 1px solid #E8E8E8; 
    box-shadow: 0 0 5px 5px rgba(204,204,204,1);
}

footer i {
    font-size: 30px;
    color: #fff; 
}

footer i:hover {
    color:#b86125;
}

footer p {
    color: #fff;
}

.welcome {
    display: flex;
}

.welcome img {
    width: 90%;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 30px;
}

.card_content {
    display: flex;
    justify-content: space-around;

    margin: 15px 0;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 15%;
    border-radius: 5px;
  }
  
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  }
  
.card img {
    border-radius: 5px 5px 0 0;
    width: 100%;
  }
  
.card .container {
    padding: 2px 16px;
    text-align: center;
  }

.fichas {    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    
    align-items: center;  
    text-align: center; 
}

.fichas img {
    width: 80%;
    padding: 3px;    
    border-radius: 15px;
    border: 5px solid #fff; 
    border-radius: 5px; 
    box-shadow: 0 0 5px 5px rgba(204,204,204,1);
}

.fichas_content {        
    width: 30%;
    border-radius: 5px;    
    background-color: #ffffff;
    padding: 15px 15px;
    margin: 10px;      
    text-align: center;
    border: 2px solid #E8E8E8; 
    box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.5);    
}

/* NOTICIAS */
.news {    
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.news_content {        
    width: 30%;            
    background-color: #ffffff;
    margin: 10px;      
    text-align: center;
    border: 1px solid #E8E8E8;
    padding: 5px;    
}

.news img { width: 100%; }
.news .fecha { text-align: left; color: #b86125; }
.news a { text-align: right; color: #b86125; text-decoration: none;}
.news h2 { color: #23415b; padding:5px 0; }

.news_button {
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
	background-color:#ffffff;
	border-radius:6px;
	border:1px solid #dcdcdc;
	display:inline-block;
	cursor:pointer;
	color:#666666;
	padding:6px 24px;
	text-decoration:none;
	text-shadow:0px 1px 0px #ffffff;    
}

/* FIN NOTICIAS */

.galeria {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.galeria img {
    border: 5px solid #fff; 
    border-radius: 5px; 
    box-shadow: 0 0 5px 5px rgba(204,204,204,1); 
    margin: 10px;    
    transition: .3s ease-in-out;
}

.galeria img:hover {    
    box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.5);
}

.contact_sit img {
    padding: 5px;
	margin-left: 25px;
	background-color: #ffffff;
	border: 1px solid #ccc;
    border-radius: 5px;
}

.contact_sit {
    display: flex;
    justify-content: center;    
}

.contact_sit > div {
    width: 40%;
}

.contact_sit a {
    text-decoration: none;
    color: #23415b;
}

.not_detalle {
    display: flex;
}

.not_detalle img {
    width: 290px;
    height: 290px;
}

.detalle {
    padding: 0px 10px;
}

@media (max-width:768px){
    body {
        overflow-x: hidden;
    }

    #menu-btn {
        display: inline-block;
        color: #b86125;
        font-size: 32px;
        cursor: pointer;
    }

    h1 { font-size: 20px;}
    p { font-size: 15px;}
    h2 { font-size: 18px;}

    header .wrapper {
        width: 95%;
    }

    header .navbar {
        position: absolute;
        top: 110%; right: -110%;
        width: 70%;        
        border-radius: .5rem;
        background-color: #3a74ae;
        text-align: center;
    }

    header .navbar.active {
        right: .5rem;
        transition: .4s linear;
    }

    header .navbar a {
        font-size: 1.1rem;
        margin: .6rem .6rem;
        display: block;
        color: #fff;
    }

    header .navbar a:hover {
        color: #000;
        background-color: #d3d3d3  ;
    }

    header .logo p { font-size: 15px;}

    main {
        width: 95%;
        margin: auto;
    }  

    footer .wrapper {
        width: 95%;
        margin: auto;    
        flex-direction: column;
        text-align: center;
    }

    .fichas{
        display: flex;        
        align-items: center;          
        flex-direction: column;        
    }

    .fichas_content {  
        width: 90%;
    }

    .welcome img {
        display: none;
    }

    .news{
        display: flex;        
        align-items: center;          
        flex-direction: column;        
    }

    .news_content {  
        width: 90%;
    }

    .card {
        width: 30%;
      }

    .cab a {
        font-size: 14px;
    }
    .img_r {
        width: 100%;        
        margin: auto;
    }

    .galeria {
        display: flex;                 
        flex-direction: column;        
        width: 90%;
        margin: auto;
    }
    
    .galeria img {
        width: 100%;
    }

    .contact_sit {        
        display: flex;        
        align-items: center;          
        flex-direction: column;   
        text-align: center;                
    }

    .contact_sit img {
        display: none;
    }

    .contact_sit > div {
        width: 100%;
    }

    .not_detalle{
        display: flex;        
        align-items: center;          
        flex-direction: column;        
    }
}