@import url(https://unpkg.com/@webpixels/css@1.1.5/dist/index.css);

/* Bootstrap Icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.8.0/font/bootstrap-icons.min.css");


section {
    padding: 30px;
    /* Ajusta según sea necesario */
    /* background-color: #f8f9fa; */
    /* Color de fondo opcional */

}

.navbar {
    /* background-color: #000000 !important; */
    /* Color de fondo de la barra de navegación */
    padding: 10px;
    /* Espacio alrededor del contenido de la barra */
}

.navbar .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.navbar-collapse {
    flex-grow: 0;
    /* Evita que ocupe todo el espacio */
}

.navbar-nav {
    display: flex;
    gap: 1rem;
    /* Espacio entre elementos del menú */
}

.navbar-brand.custom-margin {
    margin-left: 100px;
    /* Ajusta el valor según necesites */
}

/* espacios tarjetas */

.espacio {
    margin-bottom: 50px;
}

.espacio-carta {
    margin-right: 50px;
}

.espacio-tarjeta {
    padding-top: -150px !important;
}

/* boton */
.contenedorBotones {
    display: flex;
    flex-wrap: wrap;
    /* opcional, para que se acomoden en pantallas pequeñas */
    gap: 20px;
    /* separa los botones sin usar margin individual */
    justify-content: center;
    /* centra horizontalmente */
}

.botonInicio {
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    color: #333;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75em 1.5em;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* .botonInicio:hover {
    background: #f2f2f2;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
} */

.botonInicio .iconoAnimado {
    background: #e8e8e8;
    margin-left: 1em;
    height: 2em;
    width: 2em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.botonInicio:hover .iconoAnimado {
    background: #d6d6d6;
    transform: translateX(4px);
}

.botonInicio .iconoAnimado svg {
    width: 1em;
    height: 1em;
    color: #555;
    transition: transform 0.3s ease;
}

.botonInicio:hover .iconoAnimado svg {
    transform: translateX(2px);
}


/* letra de titulo */
.roboto-uniquifier {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    /* font-variation-settings:
        "wdth" 100; */
    font-size: 80px;
}

/* fondo */

.color-fondo {
    position: relative;
    margin: 0;
    height: 100vh;
    background-color: #ffffff;
    /* Color de fondo inferior */
    z-index: 0;
    /* Establece el contexto de apilamiento */
}

.color-fondo::before {
    content: "";
    position: absolute;
    top: 50px;
    /* Ajusta según sea necesario */
    left: 0;
    width: 100%;
    height: 130%;
    background-color: #000000;
    /* Color de fondo superior */
    z-index: -1;
    /* Coloca detrás del contenido principal */
}

/* sombra imagen principal */

.sombra {
    box-shadow: 10px 15px 20px 5px rgba(0, 0, 0, 0.3)
        /* -10px -10px 10px rgba(255, 255, 255, 0.5) */
}


/* noticas seccion */
/* imagen */
.col-lg-5.mb-5.mb-lg-0 {
    transform: scale(0.8);
    /* Reduce al 80%, cámbialo según convenga */
    /* transform-origin: top left; */
}



/* Estilos personalizados para bordes redondeados */
.card {
    border-radius: 15px !important;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

.card-footer {
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}

.btn-primary {
    border-radius: 25px;
    padding: 6px 20px;
}

.main-container {
    border-radius: 20px;
    overflow: hidden;
}

.image-container {
    border-radius: 15px;
    overflow: hidden;
}

/* Estilo para el ícono */
/* .thumb-icon {
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
} */

.thumb-icon {
    width: 30px;
    /* ancho deseado */
    height: 30px;
    /* alto deseado */
    object-fit: cover;
    /* recorta sin distorsionar */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.thumb-icon:hover {
    /* transform: scale(1.05); */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Carrusel personalizado */
.carousel-item img {
    border-radius: 10px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px 15px;
}


.espacioIcon {
    margin-left: 15%;
}


/* Estilos para el modo pantalla completa
.fullscreen-noticia {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    /* Fondo según tu diseño */
/* z-index: 1000; */
/* Asegura que está sobre todo */
/* overflow-y: auto; */
/* Permite scroll si el contenido es largo */
/* display: none; */
/* Oculto inicialmente */
/* } */

/* Transición suave */
/* .fullscreen-noticia {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
} */

/* .fullscreen-noticia.active {
    transform: translateY(0);
    opacity: 1;
} */
/* Estilos para el modo pantalla completa */
/* .fullscreen-noticia {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    display: none;
} */

/* .fullscreen-noticia {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    /* o un valor fijo como 600px */
/* max-width: 1000px; */
/* límite máximo de ancho */
/* height: auto;
    max-height: 80vh; */
/* 80% del alto de la pantalla */
/* transform: translate(-50%, -50%); */
/* centrar perfectamente */
/* background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    display: none;
    border-radius: 8px; */
/* bordes redondeados para mejor apariencia */
/* box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); */
/* sombra para efecto de modal */
/* } */
/* 
.fullscreen-noticia.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
} */
.fullscreen-noticia {
    position: fixed;
    top: 10px;
    /* Pequeño margen superior */
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    /* Ajuste para el margen */
    height: calc(100% - 20px);
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    display: none;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Fondo oscuro detrás para mejor contraste */
.fullscreen-noticia-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.fullscreen-noticia.active,
.fullscreen-noticia-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
} */
/* 
.fullscreen-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
 */


.noticia-img {
    max-width: 1000px;
    /* ancho máximo deseado */
    max-height: 500px;
    /* alto máximo deseado */
    width: auto;
    /* mantiene proporción */
    height: auto;
    /* mantiene proporción */
    object-fit: cover;
    /* recorta y llena el contenedor sin distorsionar */
    display: block;
    /* evita espacios en línea */
    margin: 0 auto;
    /* opcional: centra la imagen */
}


.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f00' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}


/* -- AOS TRANSICION DE LAS TARJETAS CSS -- */
.transition-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.transition-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


#scrollToTopBtn {
  position: fixed;
  bottom: 105px;
  right: 40px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  z-index: 1000;
  overflow: hidden;
}

#scrollProgress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #ff0000;
  z-index: -1;
  transition: height 0.2s ease-out;
}
