*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

button{
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 16px;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: blueviolet;
}

button:hover{
    background-color: rgb(101, 33, 165);
}

.button{
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: blueviolet;
    text-decoration: none;
}

.button:hover{
    background-color: rgb(101, 33, 165);
}

.container{
    max-width: 1400px;
    margin: auto;
}

.color-acento{ color: blueviolet; }

.img-circle {
    border-radius: 50%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
}

.align-items-stretch {
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
}

.flex-column {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
}

/* INICIO NAVBAR */

#navbar-icons {
    display: flex;
    align-items: center; 
    margin-bottom: 20px; 
}

#navbar-icons a{
    color: #5a0691;
}

#navbar-icons a:hover{
    color: #5158A3;
}

/* FIN NAVBAR */

/* INICIO BOTON TRANSPARENTE */
.button-transparente {
    background-color: #fff;
    border: 2px solid #5a0691;
    color: #5a0691;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    border-radius: 20px; /* Borde redondeado */
    width: auto; /* No tomar todo el ancho del contenedor */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.button-transparente:hover {
    background-color: #5a0691;
    color: white;
    border-color: #5a0691;
}

.button-transparente2 {
    background-color: #5a0691;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    border-radius: 20px; /* Borde redondeado */
    width: auto; /* No tomar todo el ancho del contenedor */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.button-transparente2:hover {
    background-color: #fff;
    color: #5a0691;
    border-color: #5a0691;
}

/* FIN BOTON TRANSPARENTE */

/* INICIO HEADER */

header {
    position: relative;
    background-color: rgb(245, 245, 245);
    padding: 20px 0;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .logo img {
    height: 30px;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav {
    display: flex;
    justify-content: center; /* Centra los enlaces en pantallas pequeñas */
    align-items: center;
    flex-direction: row; /* Asegura disposición horizontal */
}

header a {
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

header a:hover {
    color: blueviolet;
}

/* FIN HEADER */

/* INICIO BANNER PRINCIPAL */

#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 60vh;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("../media/hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 70% 10%;
}

#hero h1{
    color: white;
}

#hero h3{
    color: white;
}

#hero button{
    font-size: 1.75em;
}


/* FINAL BANNER PRINCIPAL */

/* INICIO DEFINICION */

#definicion{
    background: #5a0691;
    color: #efefef;
    text-align: center;
}

#definicion h2{
    margin-top: 0;
    font-size: 3.2em;
}

#definicion .container{
    width: 100%;
    padding: 60px 12px;
    display: flex;
    flex-direction: column;
}

#definicion .container a{
    color: #efefef;;
    font-weight: bold;
    text-decoration: none;
}

#definicion .container a:hover{
    background: #efefef;
    color: #5a0691;
}

#definicion .container ul li{
    margin-bottom: 10px;
    margin-bottom: 10px;
    padding-left: 30px; 
    text-align: left;
}

/* FINAL DEFINICION */

.logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.logos-container img {
    height: 80px;        /* ← Uniforma todos los logos */
    object-fit: contain; /* ← Mantiene proporción sin distorsión */
    width: auto;
    filter: grayscale(0%); /* Puedes poner 70% si quieres un estilo más corporativo */
    transition: transform 0.3s ease;
}

.logos-container img:hover {
    transform: scale(1.08); /* Efecto limpio al pasar el cursor */
}

/* INICIO AREAS */

#mision{
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 0; 
}

#mision::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../media/TEXTURA_LITORAL.png') repeat;
    background-size: 700px 180px; /* Ajusta el tamaño de la imagen */
    opacity: 0.1; /* Ajusta la opacidad del fondo aquí */
    z-index: -1; /* Asegura que el fondo esté detrás de los contenidos */
}

#mision .container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 60px 12px;
}

#mision h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 3.2em;
}


/* FIN AREAS */



.programs {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 0;
}

.programs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../media/TEXTURA_LITORAL.png') repeat;
  background-size: 700px 180px; /* Ajusta el tamaño de la imagen */
  opacity: 0.1; /* Ajusta la opacidad del fondo aquí */
  z-index: -1; /* Asegura que el fondo esté detrás de los contenidos */
}

.card-container {

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 24px 12px;


}

.card-container h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 2.5em;
}

.card-container h5 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 1.5em;
}

.card {

    flex: 1 1 300px;
    height: 360px;
    padding: 2rem 1rem;
    background: #fff;
    position: relative;
    display: flex;
    align-items: flex-end;
    box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.05);
    transition: 0.5s ease-in-out;
    margin-bottom: 30px;
}

.card:hover{
    transform: translateY(20px);
}

.card:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 0, 191, 0.525), rgb(7, 53, 181));
  z-index: 2;
  transition: 0.5s all;
  opacity: 0;
}

.card:hover:before{
  opacity: 1;
}

.card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.card .info{
  position: relative;
  z-index: 3;
  color: #fff;
  opacity: 0;
  transform: translateY();
  transition: 0.5s all;
}

.card:hover .info{
  opacity: 1;
  transform: translateY(0px);
}

.card .info h1{
  margin: 0;
}

.card .info p{
  letter-spacing: 1px;
  font-size: 15px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.card .info .btn{
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: transparent; /* Fondo transparente */
  border: 2px solid white; /* Borde blanco */
  color: white; /* Texto blanco */
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 30px; /* Bordes redondeados */
  transition: background-color 0.3s, color 0.3s; /* Transiciones suaves */
}

.card .info .btn:hover{
  background-color: white; /* Fondo blanco al pasar el ratón */
  color: rgb(7, 53, 181); /* Texto negro al pasar el ratón */
}

/* FIN NORMATIVIDAD */

.hero-split .split{
    display:flex;
    gap:24px;              /* espacio entre columnas */
    align-items:stretch;
  }
  .hero-split .split__media,
  .hero-split .split__form{
    flex:1 1 50%;
  }

  /* Imagen llena su columna */
  .hero-split .split__media{
    position:relative;
  }
  .hero-split .split__media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;      /* llena el div sin deformarse */
    border-radius:16px;
  }

  /* Iframe ocupa toda su columna */
  .hero-split .split__form iframe{
    width:100%;
    height:100%;
    min-height:520px;      /* ajusta según necesites */
    border:none;
    border-radius:16px;
  }

  /* Responsive: en pantallas pequeñas se apilan */
  @media (max-width: 768px){
    .hero-split .split{
      flex-direction:column;
    }
    .hero-split .split__form iframe{
      min-height:640px;    /* un poco más alto en mobile */
    }
  }

/* INICIO BOTON IR ARRIBA */

.ir-arriba {
    display: inline-block;
    padding: 20px;
    background: #5a0691;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: 1px solid #d0d0d0;
    z-index: 9999; /* Asegura que el botón esté por encima de todos los elementos */
}

/* FIN BOTON IR ARRIBA */

/* INICIO FOOTER */

.pie-pagina {
    width: 100%;
    background-color: #5a0691;
}

.pie-pagina .grupo-1 {
    background-color: #5158A3;
    padding: 45px 10px;
    text-align: center;
    color: #fff;
}

#navbar-icons {
    
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
}

#navbar-icons .icons {
    flex: 1 1 18%;
    margin-bottom: 20px;
}

#navbar-icons i {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 10px;
}

#navbar-icons h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.pie-pagina .grupo-1 h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.pie-pagina .grupo-1 h2 i {
    margin-right: 0px;
}

.pie-pagina .grupo-2{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    padding: 45px 0px;
}

.pie-pagina .grupo-2 .box figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pie-pagina .grupo-2 .box img{
    width: 200px;
    justify-content: center;
    align-items: center;
}

.pie-pagina .grupo-2 .box h2{
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
}

.pie-pagina .grupo-2 .box h4{
    color: #fff;
}

.pie-pagina .grupo-2 .box p{
    color: #efefef;
    margin-bottom: 2px;
    font-size: 15px;
}

.pie-pagina .grupo-2 .box a{
    color: #fff;
}

.pie-pagina .grupo-2 .red-social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    color: #fff;
    margin-right: 10px;
    background-color: #5158A3;
    text-align: center;
    transition: all 300ms ease;
}

.pie-pagina .grupo-2 .red-social a:hover{
    color: aqua;
}

.pie-pagina .grupo-3{
    background-color: rgb(30, 30, 30);
    padding: 15px 10px;
    text-align: center;
    color: #fff;
}

/* FIN FOOTER */

/* Breakpoints */

/* ESCRITORIO GRANDE (LG revisamos en 1366px en adelante) */
@media (min-width: 1200px) {
    /* Puedes agregar cualquier regla específica para esta resolución aquí */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    header nav a {
        display: inline-block;
        padding: 5px 20px;
    }

    #hero {
        height: 70vh;
        background-position: center center;
    }

    #hero h1 {
        font-size: 4em;
    }

    #definicion h2 {
        font-size: 3.2em;
    }

    #definicion .container {
        padding: 80px 20px;
    }

    #areas h2 {
        font-size: 3.2em;
    }

    #areas .container {
        padding: 80px 20px;
    }

    #oferta h2 {
        font-size: 3.2em;
    }

    #oferta .container {
        padding: 80px 20px;
    }

    #guias h2 {
        font-size: 3.2em;
    }

    #guias .container {
        padding: 80px 20px;
    }

    #guias .cuadrado {
        width: 260px;
        height: 140px;
    }

    #guias .cuadrado img {
        width: 100%;
        height: auto;
        display: block;
    }

    #navbar-icons {
        flex-direction: row;
    }

    .pie-pagina .grupo-2 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ESCRITORIO MEDIANO O TABLET HORIZONTAL (MD revisamos en 1024px) */
@media (max-width: 1199px) and (min-width: 992px) {
    /* Ajusta los estilos para pantallas medianas */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    header nav a {
        display: inline-block;
        padding: 5px 16px;
    }

    .flip-box { width: calc(50% - 20px); }

    #hero {
        height: 65vh;
        background-position: center center;
    }

    #hero h1 {
        font-size: 3.5em;
    }

    #definicion h2 {
        font-size: 2.8em;
    }

    #definicion .container {
        padding: 70px 16px;
    }

    #areas h2 {
        font-size: 2.8em;
    }

    #areas .container {
        padding: 70px 16px;
    }

    #oferta h2 {
        font-size: 2.8em;
    }

    #oferta .container {
        padding: 70px 16px;
    }

    #guias .container {
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-gap: 15px;
        justify-content: center; /* Centra las columnas dentro del contenedor */
    }
    
    #guias .cuadrado {
        width: 260px;
        height: 165px;
        background: #aaa;
        margin-bottom: 20px;
        margin-left: 20px;
        align-items: center;
        align-self: start;
        flex: 1 1 18%;
        box-sizing: border-box;
        margin: 10px;
        
    }
    
    #guias .cuadrado img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Centrar la última caja */
    #guias .cuadrado:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    #navbar-icons {
        flex-direction: row;
    }

    .pie-pagina .grupo-2 {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
        padding: 40px;
    }
}

/* ESCRITORIO PEQUEÑO O TABLET VERTICAL (SM revisamos en 768px) */
@media (max-width: 991px) and (min-width: 768px) {

    header .container{
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    header .logo{
        padding: 15px 0;
    }

    header nav{
        flex-direction: column;
        padding-bottom: 15;
    }

    header a{
        padding: 5px 10px;
    }

    .flip-box { width: calc(50% - 20px); }

    #hero {
        height: 55vh;
        background-position: center center;
    }

    #hero h1 {
        font-size: 3em;
    }

    #definicion h2 {
        font-size: 2.4em;
    }

    #definicion .container {
        padding: 60px 12px;
    }

    #definicion .container ul li {
        padding-left: 20px;
    }

    #areas h2 {
        font-size: 2.4em;
    }

    #areas .container {
        padding: 60px 12px;
    }

    .boton-transparente {
        font-size: 14px; /* Ajuste del tamaño del texto del botón */
        padding: 8px 16px; /* Ajuste del padding del botón */
    }

    #oferta h2 {
        font-size: 2.4em;
    }

    #oferta .container {
        padding: 60px 12px;
    }

    .card {
        margin-bottom: 25px; 
    }

    
    #guias .container {
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-gap: 15px;
        justify-content: center; /* Centra las columnas dentro del contenedor */
    }
    
    #guias .cuadrado {
        width: 260px;
        height: 165px;
        background: #aaa;
        margin-bottom: 20px;
        margin-left: 20px;
        align-items: center;
        align-self: start;
        flex: 1 1 18%;
        box-sizing: border-box;
        margin: 10px;
        
    }
    
    #guias .cuadrado img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Centrar la última caja */
    #guias .cuadrado:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    #navbar-icons {
        flex-direction: column;
        align-items: center;
    }

    #navbar-icons .icons {
        width: 100%;
    }

    .pie-pagina .grupo-2 {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
        padding: 40px;
    }

}

/* MOVIL (XS revisamos en 320px) */
@media (max-width: 767px) {

    header .container{
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    header .logo{
        padding: 15px 0;
    }

    header nav{
        flex-direction: column;
        padding-bottom: 15px;
    }

    header a{
        padding: 10px 5px;
    }

    .flip-box { width: calc(100% - 20px); }

    #hero {
        height: 50vh;
        background-position: center center;
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #definicion h2 {
        font-size: 2em;
    }

    #definicion .container {
        padding: 50px 8px;
    }

    #definicion .container ul li {
        padding-left: 15px;
    }

    #areas h2 {
        font-size: 2em;
    }

    #areas p {
        font-size: 0.8em;
    }

    #areas .container {
        padding: 50px 8px;
    }

    .boton-transparente {
        font-size: 12px; /* Ajuste del tamaño del texto del botón */
        padding: 6px 12px; /* Ajuste del padding del botón */
    }

    #oferta h2 {
        font-size: 2em;
    }

    #oferta .container {
        padding: 50px 8px;
    }

    .card {
        margin-bottom: 20px; /* Espacio entre las tarjetas */
    }

    #guias h2 {
        font-size: 2em;
    }

    #guias .container{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 50px 8px;
        width: 100%;
    }

    #guias .cuadrado {
        margin-bottom: 20px; /* Espacio entre los cuadros */
    }

    #navbar-icons {
        flex-direction: column;
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        text-align: center;
    }

    #navbar-icons .icons {
        width: 100%;
    }

    .pie-pagina .grupo-2 {
        grid-template-columns: 1fr;
        grid-gap: 15px;
        padding: 20px;
    }

    .pie-pagina .grupo-2 img{
        margin-bottom: 20px;
    }
}
