:root {
  --primary-orange: #e65100;
  --light-gray: #e5e5e5;
  --dark-gray: #212121;
  --medium-gray: #424242;
  --white: #ffffff;
  --black: #000000;
  --transition-timing: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --modal-height: 90vh;
}

/* Tipografía editorial */
.editorial-serif {
  /* font-family: "Cormorant Garamond", serif; */
}

/* Botón principal para abrir modal */
.btn-open-editorial {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.btn-open-editorial:hover {
  background: rgba(255, 255, 255, 0.1);
  letter-spacing: 2px;
}

/* Modal principal - Estilo editorial */
.modal-editorial {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.modal-editorial .modal-dialog {
  max-width: 1000px;
  height: 70%;
  max-height: 70%;
  /* display: flex;
  justify-content: flex-start;
  align-items: flex-start; */
}

.modal-editorial .modal-content {
  background-color: var(--light-gray);
  border-radius: 0;
  border: none;
  height: 90%;
  overflow: hidden;
  position: relative;
}

.modal-editorial .modal-body {
  padding: 0;
  height: 100%;
}

/* Contenedor principal */
.editorial-container {
  display: flex;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ============================================
    ESTADO 1: VISTA ARTISTA - ESTRUCTURA DEPURADA
============================================ */
.artist-state {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Columna izquierda - Información del artista */
.artist-info-column {
  flex: 0 0 50%;
  padding: 40px 40px 40px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* BLOQUE NARANJA - MENOS ANCHO */
.exhibitions-block {
  background-color: var(--primary-orange);
  color: var(--white);
  padding: 24px;
  width: 75%;
  max-width: 350px;
  transform: translateY(-100%);
  opacity: 0;
  border-radius: 2px;
  margin-bottom: 60px;
  font-size: 16px;
  line-height: 1.2;
  z-index: 10;
}

.exhibitions_block_mobile {
  position: absolute;
  width: 40%;
  height: auto;
  background-color: #e58808;
  top: 5%;
  left: 5%;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 40px;
  padding-bottom: 40px;
  color: white;
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: justify;
}

.exhibitions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exhibitions-list li {
  margin-bottom: 8px;
  font-weight: 300;
  font-size: 15px;
  padding-left: 0;
}

/* NOMBRE VERTICAL */
.artist-name-vertical {
  position: absolute;
  bottom: -50px;
  left: 15%;
  min-width: 20%;
  max-width: 60%;
  transform: rotate(-90deg);
  transform-origin: left center;
  /* font-family: "Cormorant Garamond", serif; */
  letter-spacing: 2px;
  line-height: 1;
  z-index: 5;
  text-align: left;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.artist-name-vertical h1 {
  color: var(--black);
  font-size: 90px;
  font-weight: 600;
}
/* BIOGRAFÍA */
.artist-bio {
  position: absolute;
  margin: auto 0 40px;
  opacity: 0;
  transform: translateY(20px);
  left: 38%;
  top: 25%;
  width: 22%;
  transform: translateX(-50%) translateY(20px);
  z-index: 50;
}

.artist-bio p {
  color: var(--medium-gray);
  line-height: 1.2;
  text-align: justify;
  font-size: 15px;
}
/* Columna derecha - Obra principal */
.artwork-column {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* OBRA PRINCIPAL */
.main-artwork-container {
  width: 50%;
  height: 90%;
  position: absolute;
  right: 0;
  top: 10%;
  opacity: 0;
  z-index: 20;
  overflow-x: hidden;
  overflow-y: hidden;
  transform: translateX(100%);
}

.mobile-artwork-container {
  position: absolute;
  width: 50%;
  height: 60%;
  bottom: 30%;
  right: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.slider_imagenes {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 5%;
  transition: transform 0.5s ease-in-out;
}

.slider_artista_mobile {
  pointer-events: none;
}

.main-artwork {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  /* cursor: pointer; */
}

.main-artwork-img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  z-index: 1000;
}
.artwork-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  right: 0;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%); */
  width: 50%;
  padding: 30px 20px 20px;
  display: flex;
  justify-content: center;
  z-index: 20;
}

.artwork-overlay .btn-artista {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  position: absolute;
}
.artwork-overlay .btn-artista {
  position: absolute;
  opacity: 0;
  scale: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.btn-obras-mobile {
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%); */
  border: 1px solid #000000 !important;
  color: black !important;
}
/* Botón "Ver Obras" */
.btn-view-works {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  border-radius: 2px;
}

.btn-view-works:hover {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  letter-spacing: 1.5px;
}

/* FOTO DEL ARTISTA */
.artist-photo-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.artist-photo-wrapper {
  width: 300px;
  height: 300px;
  pointer-events: auto;
  position: relative;
  bottom: 0;
  z-index: 25;
  margin-bottom: 20px;
}

.artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(120%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-radius: 0;
}

.btn-comprar-obra {
  background-color: #000000;
  color: white;
  padding: 5px 15px;
  border-radius: 10px;
  z-index: 100;
}
.btn-comprar-obra p {
  margin: 0;
  padding: 0;
  font-size: 12px;
}
/* ============================================
    ESTADO 2: VISTA OBRAS (CARRUSEL)
============================================ */
.works-state {
  /* display: none; */
  bottom: 0;
  position: absolute;
  left: 30%;
  z-index: 80;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  opacity: 0;
  scale: 0;
}

/* Carrusel */
.carousel-container {
  height: 70%;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  transition: transform var(--transition-timing);
}

.carousel-slide {
  flex: 0 0 33.333%;
  height: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateX(20px);
}

.carousel-slide.active {
  transform: scale(1.05);
  opacity: 1;
}

.carousel-slide.visible {
  opacity: 1;
  transform: translateX(0);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Información de la obra activa */
.active-artwork-info {
  text-align: center;
  flex-direction: column;
  justify-content: center;
}

.artwork-title {
  /* font-family: "Cormorant Garamond", serif; */
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-gray);
}

.artwork-details {
  color: var(--medium-gray);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Controles del carrusel */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 2px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 130;
  opacity: 0;
  pointer-events: none;
}

.carousel-control.visible {
  opacity: 1;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
  left: 20px;
  z-index: 1000;
}

.carousel-control.next {
  right: 20px;
}

/* Botón "Ver Artista" */
.btn-view-artist {
  bottom: 30px;
  background-color: transparent;
  color: var(--medium-gray);
  border: 1px solid var(--medium-gray);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 2px;
  opacity: 1;
}

.btn-view-artist.visible {
  opacity: 1;
}

.btn-view-artist:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--dark-gray);
  border-color: var(--dark-gray);
}

/* ============================================
    RESPONSIVE DESIGN
============================================ */
@media (max-width: 992px) {
  .modal-editorial .modal-dialog {
    max-width: 95%;
  }

  .artist-state {
    flex-direction: column;
  }

  .artist-info-column,
  .artwork-column {
    flex: 0 0 auto;
    width: 100%;
  }

  .artist-info-column {
    padding: 30px 30px 20px;
    height: 50%;
    position: relative;
  }

  .artwork-column {
    height: 50%;
    position: relative;
  }

  .exhibitions-block {
    width: 90%;
    max-width: none;
    margin-bottom: 40px;
  }

  .artist-name-vertical {
    position: static;
    transform: none !important;
    writing-mode: horizontal-tb;
    text-align: center;
    margin: 20px 0;
    font-size: 36px;
    opacity: 0;
    transform: translateY(20px) !important;
    left: auto;
    top: auto;
  }

  .artist-bio {
    position: static;
    transform: translateX(-50%) !important;
    max-width: 100%;
    margin: 20px 0;
    font-size: 13px;
    bottom: auto;
    left: auto;
    width: 100%;
  }

  .main-artwork-container {
    width: 90%;
    height: 85%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .artist-photo-container {
    position: relative;
    height: auto;
    order: 4;
    margin-top: 20px;
    pointer-events: auto;
  }

  .artist-photo-wrapper {
    margin: 0 auto 20px;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .carousel-slide.active {
    transform: scale(1);
  }

  .works-state {
    padding: 20px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }

  .active-artwork-info {
    height: auto;
  }

  .artwork-title {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .artist-info-column {
    padding: 20px 20px 15px;
  }

  .exhibitions-block {
    padding: 18px;
    width: 95%;
  }

  .artist-name-vertical {
    font-size: 28px;
  }

  .artist-bio {
    font-size: 12px;
    line-height: 1.5;
  }

  .artist-photo-wrapper {
    width: 140px;
    height: 140px;
  }

  .btn-view-works,
  .btn-view-artist {
    padding: 10px 22px;
    font-size: 13px;
  }

  .works-state {
    padding: 15px;
  }

  .editorial-serif {
    font-size: 40px;
    line-height: 1;
    font-weight: bold;
  }
}

/* Animaciones compartidas */
.fade-out {
  opacity: 0 !important;
}

.slide-up {
  transform: translateY(-100%) !important;
}

.slide-down {
  transform: translateY(100%) !important;
}

.slide-left {
  transform: translateX(-100%) !important;
}

.slide-right {
  transform: translateX(100%) !important;
}
