/*
display: flex; (Esto convierte el aside en un contenedor flexible.)
justify-content: center; (Centra horizontalmente)
align-items: center; (Centra verticalmente)
.imagennoticia:hover{}(da propiedades cuando se pasa el cursor)
cursor: pointer; (mano en el cursor)
*/

@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
html {
    scroll-behavior: smooth;
}
*{
    margin: 0px;
    padding: 0px;
    
}


@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.principal_parent, .bg-wave{
  animation: loginFadeIn 500ms ease-out both;
}





body{
    
    background: #fff;  /* fallback for old browsers */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    /* background-image: linear-gradient(to top,  #005092 0%, #51bde9 100%); */
}

/* Header fijo arriba */
.cabecera{
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}



.menu {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.opciones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    flex-wrap: nowrap;

}

.opciones li {
    list-style: none;
    padding: 0;
    white-space: nowrap;
}

.opciones li a {
    padding: 8px 15px;
    text-decoration: none;
    color: gray    ;    
    font-family: Arial, Helvetica, sans-serif; /* Arial font */
    font-size: 15px;                /* 12px size */
    border-radius: 6px;
    display: block;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.opciones li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: gray;      /* dark gray underline */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.opciones li a:hover::after {
    width: 80%;
}


.btn_ingresar{
    width: 100px;
  position: relative;
  display: inline-block;
  text-align: center;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  color: #006dc7;
  background: transparent;
  cursor: pointer;
  transition: ease-out 0.5s;
  border: 2px solid #006dc7;
  border-radius: 16px;
  box-shadow: inset 0 0 0 0 #006dc7;
  padding: 6px 10px;
  z-index: 2;
}

.btn_ingresar:hover {
  color: white;
  box-shadow: inset 0 -100px 0 0 #006dc7;
}

.btn_ingresar:active {
  transform: scale(0.9);
}



    /* Barra contenedora */
    #progress-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 6px;
      background: #ddd;
      z-index: 9999;
    }

    /* Barra que se llena */
    #progress-bar {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #006dc7, #7fc3fa);
      transition: width 0.1s ease;
    }






.sec1, .sec3, .sec5, .sec6{
    margin: 20px;
    margin-bottom: 60px;
    scroll-margin-top: 80px; /* compensa la altura del header sticky */
}
    
.sec2{
        padding: 40px 15px;
        display:flex;
        align-items: flex-start;
        gap: 10px;
        max-width: 85%;
        margin: 0 auto;
}
.sec2 > div{
        flex: 1 1 50%;
}

.principal_parent {
    position: relative;   /* ancla para posicionamiento absoluto de .logo */
    overflow: hidden;     /* evita que el contenido se muestre fuera del padre */
    width: 100%;
}

.child1 {
    position: absolute;       /* se superpone sobre la imagen de fondo */
    inset: 0;                 /* ocupa todo el espacio del padre */
    display: flex;            /* contenedor flexible */
    flex-direction: column;   /* apila logo y texto verticalmente */
    align-items: center;      /* centra horizontalmente */
    justify-content: center;  /* centra verticalmente */
    gap: 14px;                 /* separación entre logo y texto */
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;               /* por encima de .imgprincipal */
}


.imgprincipal {
    width:  100%;
    filter: contrast(60%);
    opacity: 1.25;           /* 50% transparency */
    object-fit: cover;      /* fill area while keeping aspect ratio */
    object-position: center top; /* center horizontally, align to top vertically */
    position: relative;
    z-index: 0;
}



.child1 .logo {
    position: static;   /* deja que el flexbox del contenedor lo centre */
    top: auto;
    left: auto;
    transform: none;
    width: clamp(120px, 24vw, 180px);
    height: auto;
    z-index: 1;
    margin-top: -120px;
}
.child1 .escmaule{
    position: static;   /* usa el flujo del contenedor */
    top: auto;
    left: auto;
    transform: none;
    color: #ffffff;
    font-family: 'Pacifico', cursive;
    font-weight: 600;
    font-size: clamp(4rem, 6vw, 6rem);
    line-height: 1.1;
    text-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);  /* center horizontally and vertically */
    z-index: 1;                         /* above background image */
    width: 28vw;                        /* responsive width */
    max-width: 50%;                 /* cap maximum size */
    min-width: 60px;                   /* ensure readable size on small screens */
    height: auto;
}

.escmaule{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  /* center horizontally and vertically */
    z-index: 1;                         /* above background image */
    height: auto;
    font-family: 'Pacifico', serif,  cursive;   /* changed to Pacifico */
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}

.bajada1{
    color: white;
    padding: 15px;
    font-size: 2.5rem;
}
.bajada2{
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    width: 60%;
    font-weight: 400;
}   

.cta-botones{
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.boton1{
    background-color: white;
    color: #006dc7;
    padding: 20px 30px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 400;   
    text-decoration: none;
    transform: scale(1);
    transition: transform 0.4s ease-in-out;
}
 
.boton2{
    background-color: #006dc7;
    color: white;
    padding: 20px 30px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    transform: scale(1);
    transition: transform 0.4s ease-in-out;
}
.boton2:hover, .boton1:hover{
    transform: scale(1.1);
    transition: transform 0.4s ease-out;
}

.sec_child2{
    padding-left: 25px;
}

.titulo1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
    text-align: center;
    font-weight: 800; 
    padding: 15px;   
    padding-top: 30px;              
}
.titulo2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    text-align: left;
    font-weight: 800; 
    padding-bottom: 15px;    
}

.cuerpo1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    text-align: center;  
    padding: 10px; 
    color: grey;
}

.cuerpo2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: grey;
    padding-bottom: 15px;
}

.cuerpo3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    text-align: center;  
    padding: 10px; 
    color: #0050c7;
    font-weight: 600;
}

.sec2_grid2{
    display: flex;
    gap: 20px;
    text-align: center;
}
.sec2_grid2_child1, .sec2_grid2_child2{
    padding: 50px 0px;
    width: 50%;
}


.div_cuerpo{
    width: 50%;
    margin: 0 auto;
    text-align: center;
}
.sec2_ph_1{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.sec3_ph_1{
    width: 80%;
    margin: 0 auto;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    margin: 30px auto;
}






.sec4, .sec5{
    padding: 40px 15px;
}

.valor-card, .sec5_card1_childcard{
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 14px rgba(0,0,0,0.1);
    border: 1.5px solid #e6eef8;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.valores-grid{
    max-width: 1200px;
    margin: 20px auto 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.valor-card:hover, .sec5_card1_childcard:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}
.valor-titulo{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #333333;
    margin-bottom: 8px;
}
.valor-texto{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: grey;
}

.proyecto-card{
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 14px rgba(0,0,0,0.1);
    border: 1.5px solid #e6eef8;
    padding: 24px;
    margin-top: 25px;
    text-align: center;
}
.proyecto-titulo{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #0050c7 /* #006dc7 */;
    margin-bottom: 8px;
}
.proyecto-subtitulo{
    font-weight: 400;
    color: #006dc7;   
    font-size: 18px;
    margin: 0px 0px 25px 0px;
    font-weight:bold;
}
.proyecto-texto1{
  color: grey;
  font-size: 16px;
}
.proyecto-list{
    color: grey;
    font-size: 16px;
    text-align: left;
    max-width: 560px;
    margin: 20px auto 0;
    padding-left: 0;
    line-height: 2.0;
    list-style: none;
}
.proyecto-list li{
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}
.proyecto-list li::before{
    content: "✔";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background-color: #e9f2ff;
    color: #006dc7;
    font-size: 13px;
    font-weight: 700;
}

.sec4_card2{
    background-color: #245FE4;
    height: auto;
    width: 85%;
    margin: 0 auto;
    border-radius: 15px;
    margin-bottom: 60px;
}
.sec4_card2_titulo{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
    padding: 20px;
}

.sec4_card2_texto1{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
    padding: 10px 150px;
}
.sec4_card2_texto2{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    text-align: center;
    padding-top: 15px;
}

.sec4_card2_texto3{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
    text-align: center;
    padding-top: 15px;
}
.sec4_card2_padredgrid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.sec4_card2_childcard{
    padding: 24px;
    text-align: center;
}

.sec5_card1_padredgrid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px;
}

.sec5_photo{
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    margin-bottom: 20px;
}

.sec5_card2_padredgrid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.sec5_card2_childcard{
    padding: 24px;

}

.sec5_card2_titulo{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: left;
    padding: 20px;
}


.sec5_card2_texto1{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
    text-align: left;
    padding: 15px;
}



.sec5_photo2{
    width: 100%;
    max-width: 480px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border: 1px solid #e6eef8;
}



.sec5_list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.sec5_list_item{
    display: flex;
    align-items: center;
    gap: 10px;
}
.sec5_list_item .sec5_card2_texto1{
    padding: 4px 0;
    margin: 0;
}
.sec5_icon{
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: rgba(255,255,255,0.16);
}
.sec5_icon svg{
    display: block;
}


.sec5_rrss_padredgrid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 30px;
    margin-top: 60px;
    justify-items: center;
    align-items: start;
}

.sec5_rrss_childcard{
    width: 100%;
    max-width: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e6eef8;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sec5_rrss_childcard iframe{
    width: 100% !important;
    max-width: 560px;
    border-radius: 10px;
}
.sec5_rrss_childcard blockquote{
    margin: 0 auto;
    border-radius: 10px;
}
.sec5_rrss_childcard:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.14);
}

.sec6_padredgrid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 10px;
    margin-top: 60px;
    justify-items: center;
}


.sec6_contact_list{
    width: 100%;
    max-width: 600px;
    display: grid;
    gap: 16px;
    margin-top: 20px;
}
.sec6_contact_item{
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
}
.sec6_icon{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e9f2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sec6_icon svg{
    display: block;
}
.sec6_contact_label{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
}
.sec6_contact_text{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 15px 0;
    color: grey;
}
.sec6_map_title{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 10px 0 8px 0;
}



.sec6_form{
    width: 100%;
    max-width: 700px;
}
.sec6_form_group{
    margin-top: 30px;
    margin-bottom: 20px;
}
.sec6_form_label{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.sec6_form_control{
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid #e6eef8;
    background-color: #ffffff;
    font-size: 14px;
    color: #333333;
    outline: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}
.sec6_form_control:focus{
    border-color: #006dc7;
    box-shadow: 0 0 0 3px rgba(0,109,199,0.15);
}
.sec6_form_submit{
    margin-top: 6px;
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    background-color: #245FE4;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sec6_form_submit:hover{
    background-color: #1e4ab1;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}




button {
  font-family: inherit;
  font-size: 20px;
  background: royalblue;
  color: white;
  padding: 0.7em 1em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

button span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}
button:hover span{
  transform: translateX(120%);
  opacity: 0;
}

button svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

button:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}

button:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

button:hover span {
  transform: translateX(5em);
}

button:active {
  transform: scale(0.95);
}

@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }

  to {
    transform: translateY(-0.1em);
  }
}












.pie{
    /*background-color: rgb(0, 48, 164);*/
    overflow: hidden;
    padding: 20px;
    background-color: #1e4ab1;
}
.textpie{
    color: #cccccc;
    text-align: center;
    padding-bottom: 10px;
    font-size: 14px;
}
.pieiz {
    float: none;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}
.pieder{
    float: none;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}


.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}
    
.div1 {
    grid-column: span 2 / span 2;
    padding: 25px;
}

.div2 {
    grid-column: span 4 / span 4;
    grid-column-start: 1;
    grid-row-start: 2;
    margin-top: 40px;
}

.div3 {
    grid-column-start: 3;
    grid-row-start: 1;
}

.div4 {
    grid-column-start: 4;
    grid-row-start: 1;
}
     

.maulepie{
    height: auto;
    font-family: 'Pacifico', serif,  cursive;   /* changed to Pacifico */
    color: white;
    font-size: 2.5rem;
    font-weight: 400;
}
.titulopie{
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    margin-bottom: 25px;
}

.textopie{
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    margin-bottom: 10px;
}
.textopie a{
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 1024px){
    .opciones{ flex-wrap: wrap; gap: 12px; }
    .opciones li a{ font-size: 14px; padding: 6px 12px; }
    .sec2{ flex-direction: column; max-width: 95%; }
    .sec2_grid2{ flex-direction: column; }
    .div_cuerpo{ width: 80%; }
    .valores-grid{ grid-template-columns: repeat(2, 1fr); }
    .sec4_card2_padredgrid{ grid-template-columns: repeat(2, 1fr); }
    .sec5_card1_padredgrid{ grid-template-columns: repeat(2, 1fr); margin: 20px; }
    .sec5_rrss_padredgrid{ grid-template-columns: 1fr; }
    .sec6_padredgrid{ grid-template-columns: 1fr; }
    .sec4_card2_texto1{ padding: 10px 40px; }
    .bajada1{ font-size: 2rem; }
    .bajada2{ font-size: 1.1rem; width: 80%; }
}

@media (max-width: 768px){
    .menu{ padding: 12px 0; }
    .opciones{ gap: 8px; }
    .opciones li a{ font-size: 13px; padding: 6px 10px; }
    .principal_parent{ width: 100%; }
    .child1{ gap: 10px; padding: 6px; }
    .child1 .logo{ margin-top: -60px; width: clamp(100px, 32vw, 160px); }
    .child1 .escmaule{ font-size: clamp(2.4rem, 8vw, 3.2rem); }
    .bajada1{ font-size: 1.6rem; padding: 10px; }
    .bajada2{ font-size: 1rem; width: 90%; padding: 10px; }
    .titulo1{ font-size: 28px; padding: 12px; }
    .titulo2{ font-size: 22px; }
    .cuerpo1{ font-size: 16px; padding: 8px; }
    .cuerpo2, .proyecto-texto1, .proyecto-list{ font-size: 15px; }
    .div_cuerpo{ width: 90%; }
    .sec2_ph_1{ border-radius: 10px; }
    .sec3_ph_1{ width: 100%; }
    .valores-grid{ grid-template-columns: 1fr; gap: 14px; }
    .proyecto-list{ max-width: 100%; }
    .sec4_card2{ width: 92%; }
    .sec4_card2_padredgrid{ grid-template-columns: 1fr; }
    .sec5_card1_padredgrid{ grid-template-columns: 1fr; gap: 16px; margin: 15px; }
    .sec5_card2_padredgrid{ grid-template-columns: 1fr; }
    .sec5_list{ grid-template-columns: 1fr; }
    .sec5_photo2{ max-width: 100%; height: auto; }
    .sec5_rrss_padredgrid{ grid-template-columns: 1fr; margin: 15px; }
    .sec6_padredgrid{ grid-template-columns: 1fr; margin: 10px; }
    .sec6_contact_list{ max-width: 100%; }
    .sec6_form{ max-width: 100%; }
    .parent{ grid-template-columns: 1fr; }
    .div1, .div2, .div3, .div4{ grid-column-start: auto; grid-row-start: auto; }
    .maulepie{ font-size: 2rem; }
}
