/*
Theme Name: Understrap Child
Template: understrap
Description: Tema hijo de Understrap para personalizaciones.
Author: Tu Nombre
Version: 1.0
*/

:root {
    --primary-color: #6f2f00;
    --bs-primary-rgb: 111, 47, 0;
    /* Marrón oscuro rojizo */
    --secondary-color: #F5EFE6;
    /* Beige claro */
    --accent-color: #D9A23F;
    /* Amarillo mostaza */
    --neutral-gray: #6C757D;
    /* Gris medio */
    --white: #FFFFFF;
    /* Blanco puro */
    --dark-bg: #2E2E2E;
    /* Gris carbón */
}

.article-container {
    cursor: pointer;
}

/* El enlace del título */
.main-title {
    display: inline; /* Evita que el enlace sea un bloque completo */
    text-decoration: none; /* Sin subrayado por defecto */
    background-image: linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) 100%); /* Línea subrayada */
    background-repeat: no-repeat;
    background-position: 0 100%; /* Posición justo debajo del texto */
    background-size: 0% 0.2em; /* Grosor inicial de la línea */
    transition: background-size 0.3s ease-in-out; /* Animación suave */
}

/* Subrayado animado */


/* Efecto de subrayado al hacer hover en el contenedor */
.article-container:hover .main-title {
    background-size: 100% 0.2em; /* Expande el subrayado a todo el texto */
}

.bg-primary{
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Mín: 2rem, ideal: 5vw, máx: 3.5rem */
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem); /* Escala similar */
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}


.categories-section h2 {
    margin-bottom: 30px;
    text-align: center;
}

.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Negro con 50% de transparencia */
}

.hero {
    position: relative;
    /* Contenedor padre para posicionar bien el overlay */
}


.jumbotron {
    position: relative;
    height: 100vh;
    /* Ocupa toda la altura de la ventana */
    width: 100%;
    /* Ancho completo */
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    /* Ocultar cualquier contenido que sobresalga */
}

#jumbotronCarousel {
    height: 100%;
    /* Asegúrate de que el contenedor del carrusel llene el espacio */
    width: 100%;
}

.carousel-inner {
    height: 100%;
    /* Asegura que el carrusel ocupe el alto completo del .jumbotron */
    width: 100%;
    /* Asegura que ocupe todo el ancho */
}

.carousel-item {
    height: 100%;
    /* Cada slide ocupa el alto completo */
    background-size: cover;
    /* Asegura que la imagen cubra el contenedor */
    background-position: center;
    /* Centra la imagen */
    background-repeat: no-repeat;
    /* Evita repeticiones */
}

.carousel-caption {

    position: absolute;
    bottom: 30vh;
    /* Ajusta según el diseño */
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    /* Texto legible */
    background: transparent;
    /* Fondo semitransparente */
    border-radius: 8px;
    /* Opcional, para esquinas redondeadas */
}

.display-4 {
    font-weight: 600;
    font-size: 2.7em;
}

.carousel-overlay {
    background: rgb(0, 0, 0);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.8) 100%);
    height: 100%;
    /* Cada slide ocupa el alto completo */
    background-size: cover;
    /* Asegura que la imagen cubra el contenedor */
    background-position: center;
    /* Centra la imagen */
    background-repeat: no-repeat;
    /* Evita repeticiones */
}


/*Publicaciones*/


.card {
    --bs-card-spacer-y: 0.5rem;
    --bs-card-spacer-x: 0.5rem;
    background-color: #F5EFE6;
    border: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* Fuerza que todas las tarjetas tengan la misma altura */
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    border-radius: 1px;
}

.card:hover {
    transform: scale(1.05);
}

.card-img-top {
    height: 200px;
    /* Altura fija para las imágenes */
    object-fit: cover;
    /* Ajusta la imagen sin deformarla */
}

.card-body {
    flex-grow: 1;
    /* Hace que el cuerpo de la tarjeta crezca para ocupar el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Asegura que el contenido se distribuya uniformemente */
}

.card-title {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.9rem;
    flex-grow: 1;
    /* Permite que el texto ocupe el espacio disponible */
    margin-bottom: 0.3rem;
    overflow: hidden;
}

.btn-primary {
    align-self: flex-start;
    background-color: var(--primary-color);
    margin-top: auto;
    
}


.highlighted-post {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.highlighted-post-image {
    flex: 1 1 40%;
    overflow: hidden;
    position: relative;
}

.highlighted-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.highlighted-post-content {
    flex: 1 1 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-category {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
}

.post-title {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 10px;
}

.post-title a {
    text-decoration: none;
    color: #333;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
    gap: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}


/* Aplica estilos a dropdown cuando esté en hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    /* Muestra el menú */
    opacity: 1;
    /* Asegúrate de que sea visible */
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 1);
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Opcional: para suavizar la transición del menú */
.dropdown-menu {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 0px;
}



.dropdown-menu .dropdown-item:hover {
    color: rgba(157, 157, 157, 0.90);
    /* Cambiar color del texto */
    background-color: rgba(157, 157, 157, 0.10);
    /* Cambiar color de fondo */
    border-radius: 5px;
    /* Ajustar el radio si es necesario */
    text-decoration: none;
    /* Eliminar subrayado */
}

.dropdown-menu .dropdown-item {
    color: rgba(157, 157, 157, 0.65);
    /* Hereda el color del padre */
    font-size: inherit;
    /* Hereda el tamaño de fuente */
    font-family: inherit;
    /* Hereda la fuente */
}

.dropdown-item.scrolled-item {
    color: black;
}

body {
    background-color: var(--secondary-color);
    color:#788487;
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #788487;
    line-height: 1.8;
}

.entry-content .wp-block-quote {
    border-left: 2px solid #eaeaea;
    padding: 10px 0 10px 40px;
    margin: 40px 0;
    transition: all 0.3s ease-in-out;
}

.entry-content .wp-block-quote:hover {
    border-color: var(--primary-color);
}

.wp-block-quote {
    font-weight: 500;
    color: #222222;
}

p {
    display: block;
    margin-top: 0;
    margin-bottom: 1rem;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.bg-black {
    --bs-bg-opacity: 1;
    background-color: #222222 !important;
}

.bg-black.bg-opacity-50 {
    background-color: rgba(34, 34, 34, 0.5) !important;
}

.bg-black.bg-opacity-10 {
    background-color: rgba(34, 34, 34, 0.1) !important;
}


a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
}


footer h6 {
    text-transform: uppercase;
    letter-spacing: 2.6px;
    font-weight: 700;
    font-size: 0.6875rem;
}

footer a {
    color: #dcdcdc;
    /* Color suave para los enlaces */
    transition: color 0.3s ease-in-out;
    font-size: 0.8125rem
}

footer a:hover {
    color: #ffffff;
    /* Color más claro al pasar el mouse */
}

footer hr {
    border-color: #555;
    /* Línea divisoria más tenue */
}

footer p {
    font-size: 0.8125rem;
    margin-top: 0;
    margin-bottom: 1rem;
}



.magic {
    display: inline-block;
    /* Necesario para usar transformaciones */
    animation: pulse 1.5s infinite;
    /* Aplica la animación */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        /* Tamaño inicial */
    }

    50% {
        transform: scale(1.2);
        /* Aumenta ligeramente el tamaño */
    }

    100% {
        transform: scale(1);
        /* Regresa al tamaño original */
    }
}


.section-divider {
    text-align: center;
    /* Centra el contenido */
    padding: 40px 20px;
    /* Espaciado interno */
    margin: 40px 0;
    /* Espaciado externo */
}

.section-divider h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    /* Color oscuro */
}

.section-divider p {
    font-size: 16px;
    color: #666;
    /* Color gris */
    margin: 0;
    /* Elimina márgenes innecesarios */
}

/* Contenedor principal */
.sticky-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background-color: #000;
    /* Fondo oscuro */
    color: #fff;
    /* Texto blanco */
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo */
.sticky-post-image {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    opacity: 0.6;
    /* Transparencia */
}


/* Contenido */
.sticky-post-content {
    position: relative;
    z-index: 2;
    width: 50%;
    padding-right: 20px;
}

.sticky-post-date {
    color: #f9a825;
    /* Amarillo para la fecha */
    font-size: 14px;
    margin-bottom: 10px;
}

.sticky-post-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.sticky-post-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Botón */
.sticky-post-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #f9a825;
    color: #f9a825;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sticky-post-btn:hover {
    background-color: #f9a825;
    color: #000;
}

.sticky-post:hover .sticky-post-image {
    opacity: 0.8;
    transform: scale(1.1);
    transition: all 0.5s ease;
}


/*EVENTS*/

.py-10 {
    padding-bottom: 7.5rem !important;
    padding-top: 7.5rem !important;
}

.accordion-item .collapse.show {
    height: auto;
    /* Por defecto, Bootstrap usa "auto" para que se ajuste */
    padding: 20px;
    /* Aumenta el espacio interno */
    background-color: #f8f9fa;
    /* Opcional: Cambiar color de fondo */
}

.accordion-item .collapse.show .accordion-body {
    min-height: 200px;
    /* Define un alto mínimo para el contenido */
}

.bg-cover {
    background-position: 50%;
    background-size: cover;
    /* Asegura que la imagen cubra el contenedor */
    background-repeat: no-repeat;
    /* Evita repeticiones */
}

/*GALLERY*/

.masonry-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto; /* Centro horizontal y espaciado superior */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.masonry-item {
    width: calc(33.33% - 20px); /* Ajusta para padding */
    padding: 10px; /* Espaciado interno */
    box-sizing: border-box; /* Incluye padding en el cálculo del ancho */
    margin-bottom: 20px; /* Espaciado entre filas */
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.masonry-item img:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {

    .masonry-sizer,
    .masonry-item {
        width: 50%;
        /* Dos columnas en tablets */
    }
}

@media (max-width: 768px) {

    .masonry-sizer,
    .masonry-item {
        width: 100%;
        /* Una columna en móviles */
    }
}

@media (max-width: 991px) {
    .sidebar {
        background-color: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }
}

/*PAGES*/

#page-wrapper {
    margin-top: 120px; /* Ajusta este valor según la altura del navbar */
}

#index-wrapper {
    margin-top: 120px; /* Ajusta este valor según la altura del navbar */
}

#single-wrapper{
    margin-top: 120px; /* Ajusta este valor según la altura del navbar */
}

#full-width-page-wrapper{
    margin-top: 120px; /* Ajusta este valor según la altura del navbar */
}

/*buttoms*/
.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 44, 62, 80;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-gradient: none;
}

/*POSTS*/

.entry-header {
    margin: 0 0 30px;
}

.entry-header .entry-title {
    font-weight: 500;
    font-size: 1.5625rem;
    margin-bottom: 8px;
    color:#222;
}

p
{
    text-align: justify;
}

/*pagination*/
.pagination {
    --bs-pagination-bg: #c19a55;
    --bs-pagination-hover-bg: #D9A23F;
    --bs-pagination-disabled-bg: #D9A23F;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #6f2f00;
    border-color: #6f2f00;
}

