/*****
 * PRODUCT PRICING & DISPLAY
 * 
 * Elementos de precios y visualización de productos
 *****/

/* Layout principal de productos */
body.path-product article.productos,
body.path-product article.contextual-region {
  display: flex;
  flex-direction: row-reverse;
  margin-top: 50px;
  position: relative;
  gap: 20px;
}

/* Sección izquierda - Imágenes */
#left-prod {
  width: 50%;
  background: linear-gradient(117deg, rgba(242, 242, 242, 1) 0%, rgba(216, 222, 192, 1) 100%, rgba(242, 242, 242, 1) 100%);
  padding: 40px;
  border-radius: 30px;
}

#left-prod .imagefield_slideshow-wrapper {
  border: none;
  width: 100%;
}

#left-prod .imagefield_slideshow-wrapper img {
  width: 100%;
  height: auto;
}

/* Sección derecha - Información */
#right-prod {
  width: 50%;
  position: relative;
  padding-top: 128px;
}

/* Navegación de imágenes */
#left-prod .imagefield_slideshow-wrapper .prev-next {
  display: flex;
  padding: 0;
  margin: 20px 0 0 0;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

#left-prod .imagefield_slideshow-wrapper .prev-next a {
  text-decoration: none;
  font-size: .9em;
  color: var(--gris);
  border: 1px solid #CCC;
  border-radius: 20px;
  padding: 5px 10px;
}

#left-prod .imagefield_slideshow-wrapper .prev-next a:hover {
  background-color: white;
}

/* Información de precios */
body.path-product article div.field--name-price {
  position: absolute;
  font-size: 2.5em;
  right: 4px;
  top: 16px;
  font-family: var(--font-title);
  font-weight: 800;
}

/* Información de stock */
body.path-product article div.field--name-field-stock {
  position: absolute;
  font-size: 1.2em;
  right: 4px;
  top: 94px;
  font-weight: bold;
}

body.path-product article div.field--name-field-stock * {
  display: inline-block;
}

body.path-product article div.field--name-field-stock .field--label {
  display: none;
}

body.path-product article div.field--name-field-stock:before {
  content: "PLAZAS DISPONIBLES: ";
  font-weight: normal;
}

body.path-product article.Camisetas div.field--name-field-stock:before {
  content: "DISPONIBLES: ";
  font-weight: normal;
}

/* Información de fechas */
body.path-product article div.field--name-field-fecha-curso {
  position: absolute;
  font-size: 1.2em;
  right: 0px;
  top: -32px;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--verde-medio);
  width: 100%;
  text-align: right;
}

body.path-product article div.field--name-field-fecha-curso div.field--label {
  font-weight: normal;
  display: none;
}

/* Responsive para productos */
@media only screen and (max-width: 1024px) {
  body.path-product article.productos,
  body.path-product article.contextual-region {
    padding-top: 16px;
    display: block;
  }
  #left-prod {
    width: 100%;
  }

  #right-prod {
    width: 100%;
    padding-top: 90px;
  }
}

@media screen and (max-width: 768px) {
  body.path-product article div.field--name-field-stock{
    right: 0px;
    left: 6px;
    text-align: left;
  }
  

  body.path-product article div.field--name-field-fecha-curso {
    position: relative;
    padding-inline: 18px;
  }
}