/*  Layout dos columnes  */
.contenidorPrincipal {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 48px;
}

/*  Columna esquerra (logo)  */
.columnaEsquerra {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombra);
  padding: 40px 28px;
  border-top: 4px solid var(--rosa);
}

.logoLateral {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.slogan {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--rosa);
  line-height: 1.5;
}

.slogan a {
  color: var(--rosa);
  text-decoration: none;
  transition: var(--transicio);
}

.slogan a:hover {
  color: var(--rosa-dark);
}

/*  Columna dreta  */
.columnaDreta {
  flex: 1;
  min-width: 0;
}

/*  Contenidor carrusel  */
.contenidorCarrusel {
  width: 100%;
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombra);
  overflow: hidden;
  position: relative;
}

/*  Carrusel  */
.carrusel {
  position: relative;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--gris-sub);
  padding: 20px;
  min-height: 520px;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/*  Slides  */
.slide {
  display: none;
  flex-direction: column;
}

.slide.active {
  display: flex;
  animation: fadeUp 0.4s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* SKELETON LOADER */
.skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-img {
  width: 100%;
  height: 220px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-line {
  height: 14px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-line.curt  { width: 40%; }
.skeleton-line.mitjà { width: 80%; }
.skeleton-line.llarg { width: 95%; }

@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* INDICADORS DE SLIDE  */
.indicadors {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  background: var(--blanc);
}

.indicador {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.indicador.actiu {
  background: var(--rosa);
  width: 20px;
  border-radius: 4px;
}

.slide-body {
  padding: 24px 28px 28px;
}

.slide-fecha {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 10px;
}

.slide h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.slide h3 a {
  color: var(--negre);
  text-decoration: none;
  transition: var(--transicio);
}

.slide h3 a:hover {
  color: var(--rosa);
}

.slide p {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gris-text);
}

/*  Navegació  */
.fletxa {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #444 !important;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.fletxa:hover {
  background-color: rgba(175, 21, 86, 0.35) !important;
  color: #fff !important;
}
.fletxa:hover i,
.fletxa:hover svg,
.fletxa:hover span,
.fletxa:hover * {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
}
.fletxa-esq {
  left: 0;
}
.fletxa-dre {
  right: 0;
}
/*  Responsive carrusel  */
@media (max-width: 768px) {
  .contenidorPrincipal {
    flex-direction: column;
    gap: 24px;
  }

  .columnaEsquerra {
    flex: none;
    width: 100%;
    flex-direction: row;
    padding: 20px 24px;
    gap: 20px;
  }

  .logoLateral {
    max-width: 100px;
  }

  .slogan {
    text-align: left;
    font-size: 0.9rem;
  }

  .carrusel {
    max-height: unset;
    min-height: unset;
  }

  .slide img {
    height: 160px;
  }

  .slide p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
  }

  .slide-body {
    padding: 16px 18px 20px;
  }

  .slide h3 {
    font-size: 1rem;
  }

  .nav {
    padding: 12px 16px;
  }

  .nav button {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}
.slide-fecha {
  color: #999;
  font-size: 0.8rem;
  padding: 8px 20px 0;
  margin: 0;
}

.slide-titol {
  padding: 6px 20px 0;
}

.slide-desc {
  padding: 6px 20px 12px;
}
.carruselError {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 32px;
  text-align: center;
}

.carruselErrorBtn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid var(--rosa);
  color: var(--rosa);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carruselErrorBtn:hover {
  background: var(--rosa);
  color: #fff;
}