/* ==========================================================================
   Blog Galilea - Estilos
   ========================================================================== */

:root {
    --galilea-red: #E31E24;
    --galilea-red-dark: #c41a1f;
    --galilea-dark: #1a1a1a;
    --galilea-gray: #666666;
    --galilea-gray-light: #f5f5f5;
    --galilea-border: #e0e0e0;
    --galilea-white: #ffffff;
    --galilea-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --galilea-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --galilea-radius: 8px;
    --galilea-radius-lg: 12px;
}

.blog-galilea {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--galilea-dark);
    line-height: 1.6;
    padding: 40px 20px;

}

.blog-galilea, 
.blog-galilea *,
.blog-galilea ::before,
.blog-galilea ::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Hero Section - Estilo Figma
   ========================================================================== */

.blog-hero {
    background: #FFFFFF;
    padding: 80px 0;
}

.blog-hero__container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.blog-hero__slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-hero__slider .swiper-wrapper {
    display: flex;
}

.blog-hero__slide {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
}

.blog-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    width: 610px;
    flex-shrink: 0;
    position: relative;
}

.blog-hero__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.blog-hero__title {
    font-family: 'Montserrat', sans-serif;
    line-height: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.blog-hero__title--highlight {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800; /* ExtraBold */
    line-height: 48px;
    color: #E20E18;
}

.blog-hero__title--normal {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 500; /* Medium */
    line-height: 40px;
    color: #333333;
}

.blog-hero__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400; /* Regular */
    line-height: 20px;
    color: #333333;
    margin: 0;
}

.blog-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #E20E18;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700; /* Bold */
    line-height: 20px;
    min-width: 48px;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.blog-hero__btn:hover {
    background: #c41a1f;
    color: #FFFFFF;
}

.blog-hero__nav-inline {
    display: flex;
    gap: 16px;
    align-items: center;
    position: static;
}

.blog-hero__image {
    /* flex: 0 0 50%;
    max-width: 50%; */
    position: relative;
    border-radius: 4px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

/* Imagen mobile: oculta por defecto */
.blog-hero__image--mobile {
    display: none;
    flex: none;
    max-width: 100%;
    width: 100%;
}

/* Imagen desktop: visible por defecto */
.blog-hero__image--desktop {
    display: block;
}

.blog-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: 100%;
}

.blog-hero__nav-inline button.blog-hero__arrow {
    width: 32px;
    height: 32px;
    background: #121212 !important;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 10;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}
.blog-hero__nav-inline button.blog-hero__arrow::before,
.blog-hero__nav-inline button.blog-hero__arrow::after {
    display: none !important;
}

.blog-hero__arrow:hover {
    opacity: 0.8;
}

.blog-hero__arrow svg {
    width: 7.5px !important;
    color: #FFFFFF;
}

.blog-hero__slider .swiper-button-next, .blog-hero__slider .swiper-button-prev {
    position: static;
}

/* Ocultar navegación por defecto de Swiper */
.blog-hero__slider .swiper-button-next:not(.blog-hero__arrow),
.blog-hero__slider .swiper-button-prev:not(.blog-hero__arrow) {
    display: none !important;
}

/* Navegación antigua (oculta) */
.blog-hero__nav {
    display: none;
}

/* ==========================================================================
   Main Section
   ========================================================================== */

.blog-main {
    padding: 60px 0;
}

.blog-main__container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0;
}

.blog-main__header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-main__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
}

.blog-main__subtitle {
    font-size: 16px;
    color: var(--galilea-gray);
    margin: 0;
}

/* ==========================================================================
   Categories Filter - Estilo Figma
   ========================================================================== */

.blog-categories {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-categories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 140px;
}

.blog-categories__item:hover {
    transform: translateY(-2px);
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.2);
}

.blog-categories__item.is-active {
    background: #F2F3F4;
}

.blog-categories__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.blog-categories__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(75%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    opacity: 0.75;
}

.blog-categories__icon svg {
    filter: brightness(0) saturate(100%) invert(75%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    opacity: 0.75;
}

.blog-categories__item.is-active .blog-categories__icon img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(95%) saturate(7151%) hue-rotate(352deg) brightness(95%) contrast(95%);
    opacity: 1;
}

.blog-categories__icon svg {
    width: 40px;
    height: 40px;
    color: #C0C0C0;
}

.blog-categories__item.is-active .blog-categories__icon svg {
    filter: brightness(0) saturate(100%) invert(12%) sepia(95%) saturate(7151%) hue-rotate(352deg) brightness(95%) contrast(95%);
    opacity: 1;
}
.blog-categories__item.is-active .blog-categories__name {
    font-weight: 700;
}

.blog-categories__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: #C0C0C0;
    margin-top: 0;
    white-space: nowrap;
}

.blog-categories__item.is-active .blog-categories__name {
    color: #121212;
}

/* Desktop: mostrar botones, ocultar select */
.blog-categories__desktop {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.blog-categories__mobile {
    display: none;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .blog-categories__desktop {
        display: none;
    }
    
    .blog-categories__mobile {
        display: block;
        width: 100%;
    }
}

/* Mobile: Select dropdown */
.blog-categories__select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.blog-categories__select-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #333333;
    margin: 0;
}

.blog-categories__select {
    position: relative;
    width: 100%;
}

.blog-categories__select-display {
    background: #FFFFFF;
    border: 1px solid #D8DBDE;
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-height: 48px;
}

.blog-categories__select-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #333333;
    flex: 1;
}

.blog-categories__select-chevron {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.blog-categories__select.is-open .blog-categories__select-chevron {
    transform: rotate(180deg);
}

.blog-categories__select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 8px;
    display: none;
    flex-direction: column;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.blog-categories__select.is-open .blog-categories__select-dropdown {
    display: flex;
}

.blog-categories__select-option {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-categories__select-option:hover {
    background: #ECEDEF;
}

.blog-categories__select-option.is-active {
    background: #ECEDEF;
}

.blog-categories__select-option-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #333333;
}

.blog-categories__select-option.is-active .blog-categories__select-option-text {
    font-weight: 700;
    color: #121212;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.blog-main__grid {
    display: grid;
    grid-template-columns: 1fr 409px;
    gap: 77px;
}

/* ==========================================================================
   Blog Posts Grid
   ========================================================================== */

.blog-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.blog-posts__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--galilea-gray);
}

/* ==========================================================================
   Blog Card - Estilo Figma
   ========================================================================== */

.blog-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: stretch;
    transition: box-shadow 0.3s ease;
    height: 400px;
}

.blog-card:hover {
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.35), 0px 4px 8px 2px rgba(0, 0, 0, 0.2);
}

/* Card destacada (primera) - Horizontal - Ocupa ambas columnas */
.blog-card--featured {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}

.blog-card--featured .blog-card__image {
    flex: 0 0 auto;
    width: 50%;
    min-width: 0;
}

.blog-card--featured .blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Cards regulares - Vertical */
.blog-card--regular {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
}

.blog-card--regular .blog-card__image {
    width: 100%;
    height: 164px;
    flex-shrink: 0;
}

.blog-card--regular .blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-card__image {
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-card__image img {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.02);
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.blog-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    min-width: 0;
}

.blog-card--regular .blog-card__content {
    gap: 8px;
}

.blog-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.blog-card__categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.blog-category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #FFFDE6;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    border-radius: 8px;
    text-transform: capitalize;
    white-space: nowrap;
}

.blog-card__favorite {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__favorite svg {
    width: 24px;
    height: 24px;
    display: block;
}

.blog-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    margin: 0;
    color: #121212;
    flex-shrink: 0;
}

.blog-card__title a {
    color: #121212;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a:hover {
    color: var(--galilea-red);
}

.blog-card__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #333333;
    margin: 0;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card--regular .blog-card__excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.blog-card--regular .blog-card__meta {
    padding: 8px 0 0;
}

.blog-card__meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-card__date,
.blog-card__likes,
.blog-card__views {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    /* color: #333333; */
    white-space: nowrap;
}

/* .blog-card__date svg,
.blog-card__likes svg,
.blog-card__views svg {
    width: 100%;
    flex-shrink: 0;
} */

.blog-card__share-wrapper {
    position: relative;
    flex-shrink: 0;
}

.blog-card__share {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    transition: color 0.3s ease;
}

.blog-card__share:hover  {
  transform: scale(1.1);
  color: var(--galilea-red);
  fill: var(--galilea-red);
  stroke: var(--galilea-red);
}

.blog-card__share:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
}

.blog-card__share svg {
    width: 24px;
    height: 24px;
}

/* Dropdown de compartir */
.blog-card__share-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    z-index: 1000;
}

.blog-card__share-wrapper.is-active .blog-card__share-dropdown {
    display: flex;
}

.blog-card__share-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

.blog-card__share-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-card__share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    /* padding: 10px; */
    border-radius: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.blog-card__share-icon:hover {
    opacity: 0.7;
}

.blog-card__share-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.blog-pagination__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #333333;
}

.blog-pagination__numbers {
    display: flex;
    align-items: center;
    gap: 3px;
}

.blog-pagination__current {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #333333;
}

.blog-pagination__separator {
    width: 50px;
    height: 1px;
    background: #333333;
    display: block;
}

.blog-pagination__next {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: #808A93;
}

.blog-pagination .blog-pagination__arrows {
    display: flex;
    gap: 16px;
    align-items: center;
}

.blog-pagination button.blog-pagination__arrow {
    width: 32px;
    height: 32px;
    background: #121212 !important;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.3s ease;
}


.blog-pagination button.blog-pagination__arrow:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: none;
  cursor: pointer;
}

.blog-pagination button.blog-pagination__arrow svg {
    width: 7.5px !important;
}

.blog-pagination__arrow:hover {
    opacity: 0.8;
}

.blog-pagination__arrow svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.blog-pagination__arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-widget {
    background: var(--galilea-white);
}

.blog-widget__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--galilea-red);
}

/* Popular Posts - Estilo Figma */
.blog-popular__wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.blog-popular__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #121212;
    margin: 0;
    padding: 0;
    border: none;
}

.blog-popular__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-popular__card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    display: flex;
    height: 156px;
    position: relative;
    overflow: hidden;
}

.blog-popular__image-wrapper {
    position: relative;
    width: 98px;
    height: 156px;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-popular__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px 0 0 8px;
    & img {
        opacity: 1;
    }
}
.blog-popular__image  img {
      opacity: 0;
  }

  .blog-popular__image--placeholder {
    background: #f5f5f5;
}

.blog-popular__badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #FFED00;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 0;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.blog-popular__badge span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #333333;
}

.blog-popular__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    min-width: 0;
}

.blog-popular__card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #121212;
    margin: 0;
}

.blog-popular__card-title a {
    color: #121212;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-popular__card-title a:hover {
    color: #E20E18;
}

.blog-popular__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #333333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-popular__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.blog-popular__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-popular__meta-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.blog-popular__meta-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #333333;
    white-space: nowrap;
}

.blog-popular__share-wrapper {
    position: relative;
    flex-shrink: 0;
}

.blog-popular__share {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.blog-popular__share:hover {
  transform: scale(1.1);
  color: var(--galilea-red);
  fill: var(--galilea-red);
  stroke: var(--galilea-red);
}

.blog-popular__share:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
}

.blog-popular__share svg {
    width: 24px;
    height: 24px;
}

/* Dropdown de compartir para popular posts */
.blog-popular__share-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    z-index: 1000;
}

.blog-popular__share-wrapper.is-active .blog-popular__share-dropdown {
    display: flex;
}

.blog-popular__share-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

.blog-popular__share-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-popular__share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.blog-popular__share-icon:hover {
    opacity: 0.7;
}

.blog-popular__share-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* CTA Widget - Estilo Figma */
.blog-widget--cta {
    background: #F2F3F4;
    border-radius: 4px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.blog-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
}

.blog-cta__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.blog-cta__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #121212;
    margin: 0;
    text-align: center;
    width: 100%;
}

.blog-cta__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #7c7c7c;
    margin: 0;
    text-align: center;
    width: 100%;
}

.blog-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #E20E18;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    min-width: 48px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.blog-cta__btn:hover {
    background: #c41a1f;
    color: #FFFFFF;
}

.blog-cta__social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.blog-cta__social-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #7c7c7c;
    margin: 0;
}

.blog-cta__social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-cta__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #121212;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-cta__social-icon:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.blog-cta__social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.blog-cta__logo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 92px;
    height: 91px;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.blog-cta__logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   News Section
   ========================================================================== */

.blog-news {
    background: #FFFFFF;
    padding: 80px 0;
}

.blog-news__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 104px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-news__header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.blog-news__header-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.blog-news__icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.blog-news__isotipo {
    width: 60px;
    height: 60px;
    display: block;
}

.blog-news__header-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-news__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #E20E18;
    margin: 0;
    text-align: left;
}

.blog-news__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #333333;
    margin: 0;
    text-align: left;
}

.blog-news__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.blog-news__slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px !important;
}

.blog-news__slider .swiper-wrapper {
    display: flex;
    box-sizing: border-box;
}

.blog-news__grid {
    display: flex;
    width: 100%;
}

.blog-news__grid .swiper-slide {
    flex-shrink: 0;
    display: flex;
    width: auto;
    box-sizing: border-box;
}

.blog-news__grid .blog-card {
    height: 400px;
    max-width: 400px;
    width: 100%;
}

/* Swiper sin swiping cuando hay pocos slides */
.blog-news__slider.swiper-no-swiping .swiper-wrapper {
    transform: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.blog-news__slider.swiper-no-swiping .swiper-slide {
    flex: 0 0 calc(33.333% - 11px);
}

.blog-news__pagination {
    position: relative !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px !important;
    width: 100%;
    height: auto;
}

.blog-news__pagination .blog-news__dot,
.blog-news__pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #C0C0C0 !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
    flex-shrink: 0;
    margin: 0 4px !important;
    opacity: 1 !important;
    display: inline-block;
}

.blog-news__pagination .blog-news__dot.is-active,
.blog-news__pagination .swiper-pagination-bullet-active {
    background: #121212 !important;
    width: 16px !important;
    height: 16px !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .blog-main__grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .blog-widget {
        flex: 1;
        min-width: 300px;
    }
    
    .blog-posts__grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card--featured {
        grid-column: 1;
    }
}

@media (max-width: 1024px) {
   
    .blog-hero__slide {
        flex-direction: column;
        gap: 40px;
    }
    
    .blog-hero__content {
        width: 100%;
        align-items: flex-start;
    }
    
    .blog-hero__image {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .blog-hero {
        padding: 20px 0 0 0;
    }

    .blog-hero__slide {
        gap: 24px;
        flex-direction: column;
    }
    
    .blog-hero__content {
        width: 100%;
        order: 1;
    }
    
    /* Ocultar imagen desktop en mobile */
    .blog-hero__image--desktop {
        display: none;
    }
    
    /* Mostrar imagen mobile en mobile */
    .blog-hero__image--mobile {
        display: block;
        order: 2;
        width: 100%;
        max-width: 100%;
        flex: none;
        margin-top: 0;
    }
    
    .blog-hero__nav-inline {
        order: 3;
        margin-top: 0;
        align-self: flex-end;
    }
    
    .blog-hero__title--highlight {
        font-size: 28px;
        line-height: 36px;
    }
    
    .blog-hero__title--normal {
        font-size: 24px;
        line-height: 32px;
    }
    
    .blog-hero__excerpt {
        font-size: 14px;
    }
    
    .blog-posts__grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        flex-direction: column;
        height: auto;
    }
    
    .blog-card--featured {
        grid-column: 1;
    }
    
    .blog-card--featured .blog-card__image {
        width: 100%;
        height: 250px;
    }
    
    .blog-news__container {
        padding: 0 40px;
    }
    
    .blog-news__slider.swiper-no-swiping .swiper-slide {
        flex: 0 0 calc(50% - 8px);
    }
    
    .blog-news__container {
        padding: 0 20px;
    }
    
    .blog-news {
        padding: 40px 0;
    }
    
    .blog-news__header-content {
        gap: 12px;
    }
    
    .blog-news__icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .blog-news__isotipo {
        width: 50px;
        height: 50px;
    }
    
    .blog-news__title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .blog-news__subtitle {
        font-size: 14px;
        line-height: 18px;
    }

    .blog-categories {
        margin-bottom: 24px;
    }
    
    .blog-categories__desktop {
        display: none !important;
    }
    
    .blog-categories__mobile {
        display: block !important;
    }
    
    .blog-categories__icon {
        width: 32px;
        height: 32px;
    }
    
    .blog-categories__icon svg {
        width: 32px;
        height: 32px;
    }
    
    .blog-categories__name {
        font-size: 12px;
        line-height: 16px;
    }
    
    .blog-sidebar {
        flex-direction: column;
    }
    
    .blog-widget {
        min-width: 100%;
    }
    
    .blog-pagination {
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
    }
    .blog-popular__image-wrapper {
      width: 25px;
      height: 25px;
      position: absolute;
      top: 0;
      left: 0;
    }
    .blog-popular__image {
      display: none;
    }

    .blog-popular__content {
      padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .blog-main {
        padding: 40px 0;
    }
    
    .blog-main__title {
        font-size: 22px;
    }
    
    .blog-news {
        padding: 40px 0;
    }
    
    .blog-news__container {
        padding: 0 20px;
        gap: 24px;
    }
    
    .blog-news__slider {
        overflow: hidden !important;
    }
    
    .blog-news__slider .swiper-wrapper {
        display: flex !important;
    }
    
    .blog-news__grid {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    .blog-news__grid .swiper-slide {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        display: flex !important;
        box-sizing: border-box;
    }
    
    .blog-news__grid .blog-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        min-height: 400px;
    }
    
    .blog-news__title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .blog-news__subtitle {
        font-size: 14px;
        line-height: 18px;
    }
    
    .blog-news__icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .blog-news__isotipo {
        width: 40px;
        height: 40px;
    }
    
    .blog-card__content {
        padding: 16px;
    }
    
    .blog-card__title {
        font-size: 16px;
    }

}

