:root {
  --slider-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition-speed: 1.5s;
  --bg-rojoscuro: #550000;
  --bg-azul: #00193f;
  --bg-dorado: #00193f;
  --gold-color: #b38d39;
}

.slider-maestro-wrapper {
  position: relative;
  left: 0;
  margin-left: calc(-50vw + 50%); /* Centrado alternativo */
  max-width: 100vw !important; /* Evita que el tema lo limite */
}

.slider-maestro-container {
  width: 100% !important;
  height: 78vh !important;
}

.slider-maestro-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  overflow: hidden;
}

.slider-maestro-slide.active {
  opacity: 1;
  z-index: 1;
}

.slider-maestro-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  padding-left: 40vw;
}

.slider-maestro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  color: white;
  position: relative;
  z-index: 3;
  background: linear-gradient(65deg, var(--bg-color) 33%, transparent 100%);
  left: 0;
  width: 50%;
}

.slider-maestro-content h2 a {
  color: var(--gold-color) !important;
  line-height: 1.4;
  word-break: break-word;
  text-decoration: none;
  transition: color 0.3s ease;
}

.slider-maestro-content h2 a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.slider-maestro-content h2 {
  max-width: 30ch;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-maestro-content p {
  max-width: 60ch;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.slider-maestro-slide.reverse .slider-maestro-content {
  background: linear-gradient(295deg, var(--bg-color) 33%, transparent 100%);
  left: auto;
  right: 0;
  text-align: right;
  align-items: flex-end;
}

.slider-maestro-read-more {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: rgba(179, 141, 57, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  align-self: flex-start;
  font-weight: 500;
}

.slider-maestro-read-more:hover {
  background: var(--gold-color);
  transform: translateY(-2px);
}

.slider-maestro-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 2;
}

.slider-maestro-prev,
.slider-maestro-next {
  background: var(--bg-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-maestro-prev:hover,
.slider-maestro-next:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.7);
}

.slider-maestro-pagination {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slider-maestro-pagination .pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-maestro-pagination .pagination-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Especificidad aumentada para el contenido */
div.slider-maestro-content {
  text-align: left !important; /* Fuerza la alineación */
}

.slider-maestro-slide.reverse div.slider-maestro-content {
  text-align: right !important;
}


/* Media Queries */
@media (max-width: 1200px), (max-width: 992px) {
  .slider-maestro-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
  }
}

@media (max-width: 768px) {
  .slider-maestro-wrapper,
  .slider-maestro-slide,
  .slider-maestro-slide.active {
    width: 100vw;
  }

  .slider-maestro-content {
    padding: 1.5rem;
    
  }
}
