/* ============================================ */
/* STACKED CARDS - ESTRUCTURA BASE               */
/* ============================================ */

.home #main {
  padding-left: 10px!important;
  padding-right: 10px!important;
}

#hero {
  transition: opacity 0.1s ease-out;
}

.stacked-cards-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.stacked-cards-sticky {
  position: sticky;
  top: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  box-sizing: border-box;
}

.stacked-cards-wrapper {
  position: relative;
  width: 100%;
  height: 90vh;
  margin: 0 auto;
}

#stackedCardsSection .card-stack {
  position: relative;
  width: 100%;
  height: 100%;
  margin-left: 30px;
  bottom: -5px;
}

/* ============================================ */
/* CARDS CLONADAS - ESTILOS BASE                 */
/* ============================================ */

.stack-card-cloned {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  will-change: transform;
  transform-origin: top center;
  box-shadow: none;
}

.stack-card-cloned .stack-card-inner-wrap  {
  width: 100%;
}

.stack-card-cloned .stack-card-inner-wrap > .fusion-row {
  height: 100%;
}

.stack-card-cloned .fusion-builder-row,
.stack-card-cloned .fusion-row {
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.stack-card-cloned .fusion-fullwidth {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================ */
/* COLORES DE FONDO POR CARD                     */
/* ============================================ */

/* Colores de fondo: descomenta y ajusta según necesites
.stack-card-cloned:nth-child(1) { background: #C4C9A4; }
.stack-card-cloned:nth-child(2) { background: #E8C4C4; }
.stack-card-cloned:nth-child(3) { background: #E8D5A5; }
.stack-card-cloned:nth-child(4) { background: #A8D8EA; }
*/

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

/* Tablets grandes (800px - 1024px) */
@media (max-width: 1024px) {
  .stacked-cards-wrapper {
    width: 100%!important;
    height: 85vh;
  }

}

/* Móviles y tablets (800px hacia abajo) */
@media (max-width: 800px) {
  .stacked-cards-sticky {
    padding-top: 13vh;
  }

  .stacked-cards-wrapper {
    height: 88vh;
  }
}

/* Móviles (480px - 768px) */
@media (max-width: 768px) {

  .stacked-cards-wrapper {
    height: 90vh;
  }
}

/* Móviles pequeños (< 480px) */
@media (max-width: 480px) {
  .stacked-cards-wrapper {
    height: 92vh;
  }
}
