:root
{
    --main-color: #faf6ed;
    --text-color: #333333;
    --color-hover: #e6a902;
    --min-size-custom: 11.642px;
    --vw-offset-custom: 3.2px;
    --scaling-factor-custom: 1.363;

    /* titulos customs grandes <= 48px */
    --scaling-factor-custom-xl: 3.404;
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f8fafc;
            line-height: 1.6;
        }

        .m-top {
            padding: 60px 0;
        }

        .container-wrap {
    max-width: 100%; /* Permitir que ocupe todo el ancho */
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}


        .post-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .post-card {
    position: relative; /* Asegúrate de que la tarjeta sea relativa */
    background: white;
    margin-top: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0; /* Asegúrate de que esté por debajo de la imagen */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-card__image {
    position: relative; /* Asegúrate de que el contenedor sea relativo */
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga */
    height: 240px; /* Mantén la altura deseada */
    margin-top: -40px; /* Ajusta este valor según cuánto deseas que sobresalga */
    z-index: 1; /* Asegúrate de que esté por encima del contenido de la tarjeta */
	border-radius: 5%;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 5%;
    transition: transform 0.6s ease;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


        .post-card:hover .post-card__image img {
            transform: scale(1.08);
        	border-radius: 5%;
        }

        .post-card__content {
            padding: 28px;
        }

        .category {
            display: inline-block;
            background: linear-gradient(135deg, #e6a902, #ff8e8e);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
            transition: all 0.3s ease;
        }

        .category:hover {
            background: linear-gradient(135deg, #ff5252, #ff7a7a);
            transform: translateY(-2px);
        }

        .post-card__title {
            margin: 16px 0;
            font-size: 20px;
            font-weight: 700;
            line-height: 1.3;
        }

        .post-card__title-link {
            color: #1a202c;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .post-card__title-link:hover {
            color: #e6a902;
        }

        .post-card__exerpt {
            color: #64748b;
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .post-card__meta {
            display: flex;
            align-items: center;
            gap: 12px;
            list-style: none;
        }

        .post-card__meta-img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            margin-top: -2rem;
        }

        .post-card__meta-link {
            color: #4a5568;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .post-card__meta-link:hover {
            color: #e6a902;
        }

        .dot {
            width: 4px;
            height: 4px;
            background-color: #cbd5e0;
            border-radius: 50%;
            display: inline-block;
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            list-style: none;
            margin-top: 40px;
        }

        .pagination__item {
            margin: 0;
        }

        .pagination__link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            color: #64748b;
            background-color: white;
            border: 1px solid #e2e8f0;
        }

        .pagination__link:hover {
            background-color: #e6a902;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
        }

        .pagination__item--active .pagination__link {
            background: linear-gradient(135deg, #e6a902, #ff8e8e);
            color: white;
            border-color: #e6a902;
        }

        .pagination__icon {
            font-size: 16px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .row {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            
            .post-card__content {
                padding: 20px;
            }
            
            .post-card__title {
                font-size: 18px;
            }
            
            .container-wrap {
                padding: 0 16px;
            }
        }

        /* Loading Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .post-card {
            animation: fadeInUp 0.6s ease forwards;
        }

        .post-card:nth-child(1) { animation-delay: 0.1s; }
        .post-card:nth-child(2) { animation-delay: 0.2s; }
        .post-card:nth-child(3) { animation-delay: 0.3s; }
        .post-card:nth-child(4) { animation-delay: 0.4s; }
        .post-card:nth-child(5) { animation-delay: 0.5s; }
        .post-card:nth-child(6) { animation-delay: 0.6s; }
        .post-card:nth-child(7) { animation-delay: 0.7s; }
        .post-card:nth-child(8) { animation-delay: 0.8s; }
        .post-card:nth-child(9) { animation-delay: 0.9s; }

body
{
    background-color: var(--main-color);
    font-family: 'Poppins', sans-serif;
    overflow: unset;
}

#navbar .container
{
    max-width: 1690px !important;
    margin: auto;
}
#blog-1
{
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    @media screen and (max-width: 767px)
    {
        background-size: auto 100%;
    }
    
}

nav .nav-link
{
    font-size: clamp(
       var(--min-size-custom),
        calc(
            var(--min-size-custom) + var(--scaling-factor-custom) *
            (1vw - var(--vw-offset-custom))
        ),
        20px
      );
    color: var(--text-color);
    padding: 0;
    margin: 1rem;
    transition: all 0.3s ease-in-out;
}

nav .navbar-nav
{
    width: 100%;
}

nav .navbar-nav .nav-item
{
    margin: auto;
}

nav .nav-link.active
{
    border-bottom: #e6a902 2px solid;
}

nav .nav-link:hover
{
    color: var(--color-hover);
    border-bottom: #e6a902 2px solid;
}

#navbar .btn
{
    background-color: var(--color-hover);
    color: var(--main-color);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
    border: var(--color-hover) 2px solid;
    font-size: clamp(
        var(--min-size-custom),
         calc(
             var(--min-size-custom) + var(--scaling-factor-custom) *
             (1vw - var(--vw-offset-custom))
         ),
         20px
       );
}

#banner .carousel .carousel-item
{
    position: relative;
    padding: 5%;
    justify-content: center;
    align-items: center;
   
    @media screen and (max-width: 1199px){
        padding: 5% 8% 10%;
    }

    @media screen and (max-width: 767px)
    {
        padding: 0 0;
        
    }
    
}

#banner .carousel .carousel-item::before
{
    content: '';
    position: absolute;
    width: 95%;
    height: 90%;
    margin: auto;
    z-index: -2;
    border: 5px solid var(--color-hover);
    opacity: 0;
    transition: all 0.3s ease-in-out;

    @media screen and (max-width: 1199px){

        width: 80%;
        height: 95%;

    }

    @media screen and (max-width: 767px)
    {
        content: none;
    } 

}

.animate__delay-0-5s
{
    --animate-delay: 0.5s;
}

.animate__delay-1s
{
    --animate-delay: 1s;
}

.animate__delay-1-5s
{
    --animate-delay: 2s;
}

#banner .carousel .carousel-item.active::before, #banner .carousel .active .banner-icon 
{
    opacity: 1;
}
#banner .carousel .carousel-item.active
{
    display: flex;
}

#banner .carousel .carousel-item .row
{
    max-width: unset;
}

#banner .carousel .carousel-control-prev-icon,
#banner .carousel .carousel-control-next-icon
{
    background-image: none;
    font-size: 30px;
    color: var(--color-hover);
}


#banner .carousel .carousel-item .banner-text
{
    padding: 2%;
}

#banner .carousel .carousel-item .banner-text p
{
    font-size: clamp(
        var(--min-size-custom),
         calc(
             var(--min-size-custom) + var(--scaling-factor-custom) *
             (1vw - var(--vw-offset-custom))
         ),
         30px
       );
    color: #c89202;
    margin: 0 2rem 1rem;
    text-align: justify;
    @media screen and (max-width: 1300px) {
        font-size: clamp(
            var(--min-size-custom),
             calc(
                 var(--min-size-custom) + var(--scaling-factor-custom) *
                 (1vw - var(--vw-offset-custom))
             ),
             20px
           );
    }
}

.row.content-row {
      display: flex;
      justify-content: space-between; /* o center, dependiendo de tu diseño */
  }

  #ultimasentradas1 {
    display: flex;
    flex-direction: column; /* Alinea los elementos en columna */
    align-items: center; /* Centra los elementos horizontalmente */
    width: 100%; /* Asegúrate de que ocupe el ancho completo */
    padding: 3rem; /* Espaciado interno */
}

 .prev-article-btn, .next-article-btn {
                            color: #444;
                            font-weight: 500;
                            letter-spacing: 0.15em;
                            text-decoration: none;
                            font-size: 1.1rem;
                            transition: color 0.2s;
                        }
                        .prev-article-btn:hover, .next-article-btn:hover {
                            color: #222;
                            text-decoration: none;
                        }
                        .icon-box {
                            width: 38px;
                            height: 38px;
                            background: #fff;
                            border-radius: 6px;
                            box-shadow: 0 1px 4px rgba(0,0,0,0.03);
                            font-size: 1.3rem;
                        }
                        .prev-text, .next-text {
                            font-family: inherit;
                            font-size: 1.05rem;
                            letter-spacing: 0.15em;
                        }

.article-header {
    display: flex;
    flex-direction: column;
    align-content: center;
            border-bottom: 1px solid #eee;
        }
        
        .article-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 15px;
            line-height: 1.3;
            text-align: center;
            font-family: 'Poppins', sans-serif;
        }
        
        .article-intro {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 5rem;
        }
        .article-content-text {
            font-size: 1.1rem;
            font-family: 'poppins', sans-serif;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

#banner .carousel .carousel-item .banner-text img
{
    max-width: 80%;
    @media screen and (max-width: 1199px){
        margin-top: 10%;
        max-width: 35%;
    }
}

#banner .carousel .carousel-item .banner-img img
{
    width: 100%;
    height: auto;

    @media screen and (max-width: 1199px) and (min-width: 768px) 
    {
        max-width: 562px;
        margin-bottom: 5% !important;
    }

    @media screen and (max-width: 767px)
    {
        width: 75%;
        margin-bottom: 10% !important;
    }
}

#banner .carousel .carousel-inner
{
    width: 85%;
    margin: auto;
    padding: 1% 0;
}

#banner .banner-icon 
{
    position: absolute;
    width: auto;
    height: auto;
    z-index: -1;
    background-color: var(--main-color);
    opacity: 0;
    transition: all 0.3s ease-in-out;

    @media screen and (max-width: 1199px) 
    {
        width: 20%;
        height: auto;
        min-width: 70px;
    }

    @media screen and (max-width: 767px) 
    {   
        display: none;
    }
}

#banner .banner-icon.icon-1
{
   top: 0;
   left: 0;
   padding: 0% 1% 1% 0%;
}

#banner .banner-icon.icon-2
{
   top: 0;
   margin:-1%  auto auto;
   padding: 0 2%;
   @media screen and (max-width: 1199px) 
   {
        margin: 0 auto;
    }  
   
}

#banner .banner-icon.icon-3
{
   top: 0;
   right: 0;
   padding: 0% 0% 2% 2%;
}

#banner .banner-icon.icon-4
{
   bottom: 0;
   left: 0;
   padding: 2% 2% 0% 0%;
}

#banner .banner-icon.icon-5
{
   bottom: 0;
   margin: auto;
   padding: 0 3%;
}

#banner .banner-icon.icon-6
{
   bottom: 0;
   right: 0;
   padding: 1% 0% 1% 1%;
}


.pyramids
{
    position: absolute;
    width: auto;
    height: auto;
    z-index: -1;
    bottom: 0;
    left: 7%;

    @media screen and (max-width: 1199px){
        left: 0;
        width: 90%;
        max-width: 310px;
    }
}

.flower1
{
    position: absolute;
    width: auto;
    height: auto;
    z-index: 1;
    top: 4%;
    left: 0;
    opacity: 0.1;

    @media screen and (max-width: 1199px){
        top: 7%;
    }
}

.flower2
{
    position: absolute;
    width: auto;
    height: auto;
    z-index: 1;
    bottom: 10%;
    left: 0;
    opacity: 0.1;
}

.flower3
{
    position: absolute;
    width: auto;
    height: auto;
    z-index: 1;
    top:10%;
    right: 0;
    opacity: 0.1;
}

.row
{
    max-width: 1790px;
    margin: auto;
}

#ultimasentradas{
    width: 100%;
    padding-top: 2.125rem;
    padding-bottom: 0.125rem;
    background-color: #faf6ed;
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    @media screen and (max-width: 860px){
        background-size: auto 100%;
    }
}
.blog-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.last-entries-header {
    display: block;
    font-size: 1.5rem;
    font-family: Poppins;
    color: #f49237;
    z-index: 2;
    text-decoration: underline;
    text-align: center;
    margin: 0 auto 1.88rem auto;
    width: 100%;
}

.last-entries-header::after {
    display: block;
    margin: 0.5rem auto 0 auto;
}

.card-vertical {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6.125rem;
    margin-top: 2rem;
    z-index: 2;

    @media screen and (max-width: 960px)
    {
        flex-direction: column;
    }
}


.card {
    width: 100%;
    max-width: 382px;
    min-height: 278px;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    @media screen and (max-width: 960px)
    {
        width: 90%;
        margin: 0 auto;
    }
}

.card-shadow {
    position: absolute;
    bottom: -6%;
    width: 115%;
    left: -8%;
    @media screen and (max-width: 999px)
    {
        display: none;
        
    }
}

.upper-card{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin: 1.125rem 15px
}

.card-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: Ebrima;
    font-weight: bold;
}

.card-title {
    color: #333;
    font-size: 1.56rem;
    line-height: 1.56rem;
    font-family: Ebrima;
    margin: 0;
}

.image-container {
    width: 100%;
    img {
        width: 100%;
        height: 100%;
        max-height: 276px;
    }
}

.read-more-card {
    width: 100%;
    display: flex;
    margin: 30px 0 0;
    padding: 0 0.5rem;
    background: transparent;
    align-items: center;
    justify-content: flex-end;
}

.read-more-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.5s ease;
}

.read-more-link:hover {
    transform: scale(1.1);
}

.read-more-link::after {
    content: '→';
    font-weight: bold;
}

.flex-justify-end{
    display: flex;
    justify-content: flex-end;
    margin: 15px;
}

.see-entries{
    text-decoration: none;
    font-family: Ebrima;
    font-size: 18px;
    color: #333333;
}

.see-entries:hover{
    color:  #333333;
}


.see-entries::after{
    content: '>';
    margin-left: 5px;
    font-family: Ebrima;
}

.fa-solid
{
    font-family: "Font Awesome 6 Solid Free";
}


.flip
{
    transform: rotate(180deg);
}

footer
{
    background: linear-gradient( rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),url(img/footer-background.webp);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 4% 0 0%;
    color: #fff;
    @media screen and (max-width: 1199px){
        text-align: center;
        background-size: auto 100%;
    }
}

footer ul
{
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li a
{
    position: relative;
    font-size: clamp(
        var(--min-size-custom),
         calc(
             var(--min-size-custom) + var(--scaling-factor-custom) *
             (1vw - var(--vw-offset-custom))
         ),
         20px
       );
    color: #ffffff;
    font-family: "Ebrima";
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    line-height: 35px;
}

footer ul li a:hover
{
    color: #fff;
}

footer ul li a::before
{
    position: absolute;
    content: '';
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    bottom: 0;
    left: 0;
}

footer ul li a:hover::before
{

    width: 100%;
}

footer .icon {
	width: 40px;
	height: 40px;
	position: relative;
}

footer .footer-social a
{
    margin-right:3%;
    @media screen and (max-width:767px)
    {
        margin-bottom: 5%;
    }
}

footer .icon::before 
{
	content: '';
	background-image: url("img/redessociales.png");
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}
footer .facebook::before 
{
	background-position: 0 0;
}
footer .x::before 
{
	background-position: -50px 0;
}
footer .youtube::before 
{
	background-position: -100px 0;
}

footer.instagram::before {
	background-position: -150px 0;
}

footer .copyright
{
    font-size: clamp(
        var(--min-size-custom),
         calc(
             var(--min-size-custom) + var(--scaling-factor-custom) *
             (1vw - var(--vw-offset-custom))
         ),
         18px
       );
    color: #ffffff;
    font-family: "Ebrima";
}

.animate__slower
{
    --animate-duration: 3s;
}
.show-mobile
{
    display: none !important;
}

.show-medium
{
    display: block !important;
}

.hidden-medium
{
    display: none !important;
}

@media screen and (min-width: 768px) and (max-width: 1199px)
{
    .show-medium
    {
        display: block !important;
    }

    .hidden-medium
    {
        display: none !important;
    }
    
}

@media screen and (max-width: 767px)
{
    .show-mobile
    {
        display: block !important;
    }

    .hidden-mobile
    {
        display: none !important;
    }
    
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
  }


@font-face {
    font-family: 'Poppins'; 
    src: url(fonts/Poppins-Regular.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins'; 
    src: url(fonts/Poppins-Bold.ttf) format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url(fonts/Poppins-Italic.ttf) format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Brush';
    src: url('fonts/BrushScriptOpti-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face
{
    font-family:'Font Awesome 6 Free';
    src: url('fonts/Font\ Awesome\ 6\ Free-Regular-400.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face
{
    font-family:'Font Awesome 6 Solid Free';
    src: url('fonts/Font\ Awesome\ 6\ Free-Solid-900.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face
{
    font-family:'Font Awesome 6 Free';
    src: url('fonts/Font\ Awesome\ 6\ Brands-400.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ebrima';
    src: url(fonts/ebrima.ttf) format('truetype');
    font-weight: normal;    
    font-style: normal;
}