.elementor-2502 .elementor-element.elementor-element-7a59a91 > .elementor-background-overlay{background-color:var( --e-global-color-aed8b42 );background-image:url("https://www.corficap.cl/wp-content/uploads/2023/01/corficap_news.jpg");background-size:cover;opacity:0.2;transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-2502 .elementor-element.elementor-element-7a59a91 .elementor-background-overlay{filter:brightness( 100% ) contrast( 89% ) saturate( 106% ) blur( 0px ) hue-rotate( 0deg );}.elementor-2502 .elementor-element.elementor-element-7a59a91{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;padding:150px 0px 150px 0px;}.elementor-2502 .elementor-element.elementor-element-d88f063{text-align:center;}.elementor-2502 .elementor-element.elementor-element-d88f063 .elementor-heading-title{color:#C4242B;font-family:"Roboto", Sans-serif;font-size:3rem;font-weight:700;letter-spacing:1px;}.elementor-2502 .elementor-element.elementor-element-d88f063 > .elementor-widget-container{border-style:solid;border-width:0px 0px 0px 0px;}.elementor-2502 .elementor-element.elementor-element-b6d2e72{columns:1;text-align:center;color:#54595F;font-family:"Roboto", Sans-serif;font-size:1.4rem;font-weight:400;line-height:1.8rem;}.elementor-2502 .elementor-element.elementor-element-cfae2be > .elementor-background-overlay{background-color:#C4242B;opacity:1;}.elementor-2502 .elementor-element.elementor-element-cfae2be{padding:7rem 3rem 7rem 3rem;}.elementor-2502 .elementor-element.elementor-element-2133ee8{text-align:center;}.elementor-2502 .elementor-element.elementor-element-2133ee8 .elementor-heading-title{color:var( --e-global-color-4af8a6f );font-family:"Roboto", Sans-serif;font-size:3rem;font-weight:700;letter-spacing:1px;}.elementor-2502 .elementor-element.elementor-element-2133ee8 > .elementor-widget-container{margin:0rem 0rem 0rem 0rem;}.elementor-2502 .elementor-element.elementor-element-3aad685{--divider-border-style:solid;--divider-color:#FFFFFF;--divider-border-width:2px;}.elementor-2502 .elementor-element.elementor-element-3aad685 .elementor-divider-separator{width:60%;margin:0 auto;margin-center:0;}.elementor-2502 .elementor-element.elementor-element-3aad685 .elementor-divider{text-align:center;padding-top:15px;padding-bottom:15px;}.elementor-2502 .elementor-element.elementor-element-6b028d98 > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget__width-auto):not(.elementor-widget__width-initial):not(:last-child):not(.elementor-absolute){margin-bottom:0px;}@media(max-width:1024px){.elementor-2502 .elementor-element.elementor-element-2133ee8{text-align:left;}.elementor-2502 .elementor-element.elementor-element-2133ee8 .elementor-heading-title{font-size:2rem;}}@media(max-width:767px){.elementor-2502 .elementor-element.elementor-element-7a59a91{padding:20px 0px 20px 0px;}.elementor-2502 .elementor-element.elementor-element-d88f063 .elementor-heading-title{font-size:30px;}.elementor-2502 .elementor-element.elementor-element-b6d2e72{font-size:20px;}.elementor-2502 .elementor-element.elementor-element-2133ee8{text-align:center;}.elementor-2502 .elementor-element.elementor-element-2133ee8 .elementor-heading-title{font-size:1.8rem;}}/* Start custom CSS for shortcode, class: .elementor-element-13f7548 */@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
}

/* =================================
   GRID MASONRY
================================= */
.news-masonry-grid {
  width: 100%;
  max-width: 1240px;
  margin: 40px auto 30px auto;
  position: relative;
}

/* =================================
   TARJETAS (MASONRY ITEMS)
================================= */
.masonry-item {
  width: calc(33.333% - 20px);
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(30,25,10,0.07);
  overflow: hidden;
  display: block;
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
  
  /* Animaciones */
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: all 0.3s ease;
}

/* Hover más notorio */
.masonry-item:hover {
  box-shadow: 0 15px 35px 0 rgba(0,0,0,0.15);
  transform: translateY(-8px) scale(1.02);
}

.masonry-item:hover h3 {
  color: #e56f0e;
}

.masonry-item:hover .btn-more {
  transform: rotate(90deg) scale(1.2);
  background: #e56f0e;
}

/* =================================
   RESPONSIVE
================================= */
@media (max-width: 1000px) {
  .masonry-item { width: calc(50% - 20px); }
}

@media (max-width: 600px) {
  .masonry-item { width: 100%; }
}

/* =================================
   IMÁGENES
================================= */
.item-image {
  min-height: 11rem;
  width: 100%;
  background-size: cover;
  background-position: center center;
  transition: transform 0.3s ease;
}

.masonry-item:hover .item-image {
  transform: scale(1.05);
}

/* =================================
   CONTENIDO DE TARJETAS
================================= */
.item-overlay {
  padding: 1.35rem 1.1rem 0.9rem 1.25rem;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #54595f;
}

.item-overlay h3 {
  margin: 0 0 0.65rem 0;
  font-size: 1.16rem;
  font-weight: 700;
  color: #fb8221;
  line-height: 1.13;
  transition: color 0.3s ease;
}

.item-excerpt {
  font-size: 1rem;
  color: #54595f;
  margin-bottom: 0.52rem;
  font-weight: 400;
  line-height: 1.38;
  overflow: hidden;
  height: 2.76em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.meta {
  font-size: 0.95rem;
  color: #b2b2b2;
}

/* =================================
   BOTÓN +
================================= */
.btn-more {
  background: #fb8221;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-more:hover {
  background: #e56f0e;
  transform: scale(1.1);
}

/* =================================
   BOTÓN VER MÁS NOTICIAS
================================= */
.btn-ver-mas {
  display: inline-block;
  background: #fb8221;
  color: white;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-family: 'Roboto', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(251, 130, 33, 0.3);
}

.btn-ver-mas:hover {
  background: #e56f0e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 130, 33, 0.4);
  color: white;
}

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

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Retraso escalonado */
.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.2s; }
.masonry-item:nth-child(3) { animation-delay: 0.3s; }
.masonry-item:nth-child(4) { animation-delay: 0.4s; }
.masonry-item:nth-child(5) { animation-delay: 0.5s; }
.masonry-item:nth-child(6) { animation-delay: 0.6s; }
.masonry-item:nth-child(7) { animation-delay: 0.7s; }
.masonry-item:nth-child(8) { animation-delay: 0.8s; }
.masonry-item:nth-child(9) { animation-delay: 0.9s; }
.masonry-item:nth-child(10) { animation-delay: 1.0s; }
.masonry-item:nth-child(11) { animation-delay: 1.1s; }
.masonry-item:nth-child(12) { animation-delay: 1.2s; }

/* =================================
   MODAL
================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fb8221;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: #e56f0e;
  transform: rotate(90deg);
}

.modal-header {
  position: relative;
}

.modal-header img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.modal-body {
  padding: 30px;
}

.modal-body h2 {
  color: #fb8221;
  margin: 0 0 15px 0;
  font-size: 28px;
  line-height: 1.2;
}

.modal-meta {
  color: #b2b2b2;
  margin-bottom: 20px;
  font-size: 14px;
}

.modal-text {
  color: #54595f;
  line-height: 1.6;
  font-size: 16px;
}

.modal-text p {
  margin-bottom: 15px;
}

/* =================================
   MEJORAS DE RENDIMIENTO
================================= */
/* Optimización para transform y will-change */
.masonry-item,
.item-image,
.btn-more {
  will-change: transform;
}

/* Al terminar las animaciones, remover will-change */
.masonry-item.loaded {
  will-change: auto;
}

/* Posts ocultos inicialmente */
.masonry-item.hidden-post {
    display: none;
}

/* Animación para posts que aparecen */
.masonry-item.showing {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Ajuste del botón para que sea clickeable, no un link */
.btn-ver-mas {
    display: inline-block;
    background: #fb8221;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: 'Roboto', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(251, 130, 33, 0.3);
}

.btn-ver-mas:hover {
    background: #e56f0e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 130, 33, 0.4);
}

.btn-ver-mas:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}/* End custom CSS */