/* Fuentes Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400..700;1,400..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html {
    box-sizing: border-box;
  }
  *, *:before, *:after {
    box-sizing: inherit;
  }

body {
    font-family: "Raleway", sans-serif;
    background-color: white;
}

/* MAIN NAV */
#mainNav {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
    transition: background-color 0.2s ease;
    }
    #mainNav .navbar-brand {
    /* font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
    font-weight: 700;
    color: #212529;
    }
    #mainNav .navbar-nav .nav-item .nav-link {
    color: #6c757d;
    /* font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
    /* font-weight: 700; */
    font-weight: 600;

    font-size: 0.9rem;
    padding: 0.75rem 0;
    }
    #mainNav .navbar-nav .nav-item .nav-link:hover, #mainNav .navbar-nav .nav-item .nav-link:active {
    color: #c12322;
    }
    #mainNav .navbar-nav .nav-item .nav-link.active {
    color: #c12322 !important;
    }

    #mainNav .navbar-brand img {
        height: 3rem;
      }

    @media (min-width: 992px) {
    #mainNav {
        box-shadow: none;
        background-color: transparent;
    }
    #mainNav .navbar-brand {
        color: rgba(255, 255, 255, 0.7);
    }
    #mainNav .navbar-brand:hover {
        color: #fff;
    }
    #mainNav .navbar-nav .nav-item .nav-link {
        /* color: rgba(255, 255, 255, 0.7); */
        padding: 0 1rem;
    }
    /* #mainNav .navbar-nav .nav-item .nav-link:hover {
        color: #fff;
    } */
    #mainNav .navbar-nav .nav-item:last-child .nav-link {
        padding-right: 0;
    }
    #mainNav.navbar-shrink {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        background-color: #fff;
    }
    #mainNav.navbar-shrink .navbar-brand {
        color: #212529;
    }
    #mainNav.navbar-shrink .navbar-brand:hover {
        color: #c12322;
    }
    #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link {
        color: #212529;
    }
    #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover {
        color: #c12322;
    }

    #mainNav .navbar-brand img {
        height: 4rem;
        transition: height 0.3s ease-in-out;
      }
      #mainNav.navbar-shrink .navbar-brand svg,
      #mainNav.navbar-shrink .navbar-brand img {
        height: 3rem;
      }
}


/* Cabecera MastHead*/

header.masthead {
    height: 100vh;
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    /* background: linear-gradient(to bottom, rgba(199, 199, 199, 0.8) 0%, rgba(73, 73, 73, 0.8) 100%), url("../assets/img/cabecera_IUS.jpg"); */
    /* background: url("../assets/img/cabecera_IUS.jpg"); */
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url("../assets/img/cabecera_IUS.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
  }
  header.masthead h1, header.masthead .h1 {
    font-size: 2.25rem;
  }
  @media (min-width: 992px) {
    header.masthead {
      height: 100vh;
      min-height: 40rem;
      padding-top: 4.5rem;
      padding-bottom: 0;
    }
    header.masthead p {
      font-size: 1.15rem;
    }
    header.masthead h1, header.masthead .h1 {
      font-size: 3rem;
    }
  }
  @media (min-width: 1200px) {
    header.masthead h1, header.masthead .h1 {
      font-size: 3.5rem;
    }
  }

/* Flecha masthead*/  

.scroll-arrow {
    display: inline-block;
    color: #c12322; /* Color rojo de Bootstrap danger */
    font-size: 3rem;
    cursor: pointer;
    padding: 15px;
    text-decoration: none;
}

.scroll-arrow i {
    display: inline-block;
    animation: smoothBounce 1.9s ease-in-out infinite;
}

@keyframes smoothBounce {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(5px); /* Reducido de 10px a 8px para hacerlo más sutil */
    }
}

.scroll-arrow:hover {
    color: #dc3545;
    text-decoration: none;
}

/* Divisor secciones*/
.page-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
}

.page-divider::after {
    content: '';
    position: absolute;
    bottom: 2.375rem;
    left: 0;
    right: 6rem;
    height: 0.1875rem;
    background-color: #888;
}

.page-divider::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 3rem;
    width: 0.3125rem;
    height: 5rem;
    background-color: #c12322;
}

/* Media queries para ajustar proporciones divisor en diferentes tamaños de pantalla */
@media screen and (max-width: 768px) {
    .page-divider {
        height: 4rem;
    }
    
    .page-divider::after {
        bottom: 1.875rem;
        right: 5rem;
    }
    
    .page-divider::before {
        right: 2.5rem;
        width: 0.25rem;
        height: 4rem;
    }
}

@media screen and (max-width: 480px) {
    .page-divider {
        height: 3rem;
    }
    
    .page-divider::after {
        bottom: 1.375rem;
        right: 4rem;
    }
    
    .page-divider::before {
        right: 2rem;
        width: 0.1875rem;
        height: 3rem;
    }
}


section {
    /* min-height: 100vh; */
    padding: 8rem 0;
  }

@media (min-width: 390px) {
    #quienes-somos{
        min-height: 100vh !important;
        }
    #mision{
        min-height: 100vh !important;
        }
    #servicio{
        min-height: 100vh !important;
        }
    #premios{
        min-height: 100vh !important;
        }
}


h1, h2, h3, h4, h5, h6 {
    font-family: "Libre Bodoni", serif;
}

.bg-light {
    background-color: #fff !important;
}


/* Estilos para la sección de credenciales */
#credenciales .credencial-logo {
    flex: 0 0 100px;
}


#credenciales .credencial-descripcion {
    flex: 1;
}

#credenciales .credencial-descripcion p {
    margin-bottom: 0;
}

.credencial-card {
    border: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.credencial-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credencial-logo-image {
    max-height: 65px;
}

.credencial-description {
    border-left: 3px solid #c12322;
    height: 100%;
    padding-left: 1rem;
}



/* Footer*/

.hover-opacity {
    transition: opacity 0.2s ease;
    }
.hover-opacity:hover {
    opacity: 0.8;
}

.contact-icon {
    transition: color 0.3s ease;
}

.contact-icon:hover {
    color: #dc3545 !important; /* Color danger de Bootstrap */
}

.contact-icon i {
    font-size: 1.5rem;
}


/* Estilos para la sección servicio */
.servicio-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.servicio-item {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.9);
    border-left: 3px solid #c12322;
    transition: transform 0.3s ease;
}

.servicio-texto {
    font-size: 1rem;
    line-height: 1.5;
}

.servicio-referencia {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.servicio-image-container {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .servicio-item {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .servicio-item:hover {
        transform: translateX(5px);
    }
}

/* Estilos para la sección Prensa */

#prensaCarousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

a.prensa-slide {
    text-align: center;
    padding: 3rem 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

a.prensa-slide:hover {
    transform: scale(1.02);
}

.prensa-logo {
    margin-bottom: 2rem;
}

.prensa-logo img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

.prensa-titular {
    font-family: "Raleway", sans-serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #212529;
    max-width: 600px;
    line-height: 1.4;
}

/* Controles del carrusel */
#prensaCarousel .carousel-control-prev,
#prensaCarousel .carousel-control-next {
    width: 5%;
}

#prensaCarousel .carousel-control-prev-icon,
#prensaCarousel .carousel-control-next-icon {
    background-color: #c12322;
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50%;
}

/* Indicadores del carrusel */
#prensaCarousel .carousel-indicators {
    bottom: -1rem;
}

#prensaCarousel .carousel-indicators button {
    background-color: #c12322;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.5;
}

#prensaCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    a.prensa-slide {
        padding: 2rem 1rem;
        min-height: 250px;
    }

    .prensa-logo img {
        max-height: 60px;
    }

    .prensa-titular {
        font-size: 1.2rem;
    }

    #prensaCarousel .carousel-control-prev,
    #prensaCarousel .carousel-control-next {
        display: none;
    }
}