/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body { 
 color:#506172;
 margin:0;
 padding:0;
 font-size: 14px;
}

@font-face{
 font-family: "titulo";
 src:url(fuente/Roboto/Roboto-Bold.ttf);
}

@font-face{
 font-family: "parrafo";
 src:url(fuente/arial.ttf);
}

a { color:#428F5D; text-decoration: none; }
a:hover { color: #428F5D; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: titulo; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header{
  width:100%;
  height:99px;
  margin: 0;  
  overflow: hidden;
  background-color:#fff;  
}

/*--------------------------------------------------------------
# Banner
--------------------------------------------------------------*/
/* ===== BANNER ===== */

#DIGA-front {
width: 100%;
  height: 45vh;
  min-height: 320px;
  background: url("http://www.lamolina.edu.pe/diga/assets/img/banner_diga.jpg") center center no-repeat;
  background-size: cover;
  position: relative;
}


#DIGA-front::before {
  content: "";
  position: absolute;
  inset:0;
}

#DIGA-front .container { position: relative;
  height: 100%; }

/* ===== FRANJA CAPTION ===== */

#DIGA-front .caption {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: rgba(52, 96, 75, 0.75);
  padding: 28px 60px;
  max-width: 75%;
}
/* TEXTO */

#DIGA-front .caption h1 {
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  #DIGA-front {
    height: auto;
    min-height: 240px;
  }

  #DIGA-front .caption {
    position: static;
    transform: none;
    margin: 80px auto 0;
    max-width: 90%;
    text-align: center;
  }
}
/*--------------------------------------------------------------
# Navbar (Bootstrap 5)
--------------------------------------------------------------*/
.navbar{ min-height:4em; }

.navbar .navbar-nav .nav-link{
 font-family: parrafo;  
 font-size:0.87em;
 color: #428F5D;
 border:1px solid #428F5D;
 margin: 0 3px;
}

.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .show>.nav-link {
 color: #fff;
 background:#428F5D;
}

.navbar .dropdown-menu {
 background-color: rgba(255,255,255, 0.95); 
 border:1px solid #428F5D;
}

.navbar .dropdown-menu .dropdown-item{
 color:#428F5D;
 font-size:0.85rem;
}

.navbar .dropdown-menu .dropdown-item:hover{
 background-color: rgba(66,143,93,0.1);
 color:#428F5D;
}

.navbar .navbar-toggler {
 background-color: #beacc3;
 border-color: rgba(255, 255, 255, 0.85);
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section { padding: 60px 0; }

/*--------------------------------------------------------------
# Seccion titulos
--------------------------------------------------------------*/
.seccion-titulo {
 text-align: center;
 padding-bottom: 30px;
}

.seccion-titulo h1 {
 font-size: 2em;
 color: #428f5d; 
 position: relative;
 padding-bottom: 20px;
 margin: 0 0 65px;  
 font-weight: 500;
 text-transform: uppercase;
}

.seccion-titulo h1::before {
 content: "";
 position: absolute;
 width: 140px;
 bottom: 0;
 left: 50%;
 margin-left: -70px;
 height: 1px;
 background: #006600;
}

/*--------------------------------------------------------------
# Contenidos base
--------------------------------------------------------------*/
.presentacion p,
.funciones p,
.paragraph p {
 font-family: parrafo;
 font-size: 1em;
 text-align: justify;
 line-height: 1.5;
 color:#506172;
}

.vineta{
 font-family: parrafo; 
 line-height: 1.5;
 font-size:1em;
 color:#506172;
 margin: 8px 45px;
}

/*--------------------------------------------------------------
# Imágenes centradas
--------------------------------------------------------------*/
.cuadro-foto {
 display: flex;
 align-items: center;
 justify-content: center;
}

.cuadro-foto img{
 width:50%; 
 padding:16px 18px;
 margin: 8px auto;
 display:block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-area .main-footer { 
 display: flex;
 align-items: center;
 justify-content: center;  
 padding: 50px 15px 65px;
}

.footer-area .main-footer .address h2 {
 font-family: titulo;
 font-size: 1.375em;
 text-align: center;
 margin: 0 0 10px;
 font-weight: 700;
 color: #428f5d;
}

.footer-area .main-footer .address p {
 font-family: parrafo; 
 font-size: 1em;
 line-height: 1.4; 
 color: #444; 
 text-align: center; 
}

.footer-area .main-footer .address .contact{
 padding: 0;
 max-width: 720px;
 margin: auto;
 text-align: center;
}

.footer-area .main-footer .address .contact ul{  
 list-style: none; 
 margin: 0;
 padding:0;
}

.footer-area .main-footer .address .contact li {
 font-family: parrafo; 
 color: #444;
 font-size: 1em;
 line-height: 1.6;
}

.footer-area .main-footer .address .contact li a {
 color: #428f5d;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px){
 #DIGA-front { height:35vh; }
 #DIGA-front .caption { padding: 12px 30px; }
 #DIGA-front .caption h1 { font-size: 1.8em; }
 .cuadro-foto img { width:90%; }
}
