/* Tipografia */
.product-variants{
    font-family: 'DINNextRoundedLTPro' !important;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.textonumerohoras{
    font-family: 'DINNextRoundedLTPro' !important;
    font-weight: 400;
    margin-bottom: 1rem;
}

.page-title {
    font-family: 'DINNextRoundedLTPro' !important;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-prices {
    font-family: 'DINNextRoundedLTPro' !important;
    font-weight: 500;
}

.product-add-to-cart button {
    font-family: 'DINNextLTPro' !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-information .product-description {
    font-family: 'DINNextLTPro';
    line-height: 1.6;
}

.product-info-row {
  margin-top: -20px !;
}

/* Contenedor principal de la imagen */
.product-image-large.swiper-slide.js-thumb-selected {
  width: 100% !important;
  max-width: 600px !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

.swiper-container {
  margin-top: 30px;
}

.header-top {
  margin-bottom: -30px !important;
}

/* Imagen dentro del contenedor */
.product-image-large.swiper-slide.js-thumb-selected img {
  width: 100% !important;
  height: auto !important;
  margin-top: 90px !important;
  max-height: 600px !important;
  object-fit: contain !important;
  border: 1px solid #eee !important;
}

.product-cover img {
  border-radius: 27px;
  overflow: hidden;
}

/* ----- TÍTULO ----- */
body#product #main h1.page-title,
body#product .product-container h1[itemprop="name"] {
  color: #00A0E6 !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  margin-top: 60px;
}

/* ===== TEXTO PRINCIPAL DE LA DESCRIPCIÓN ===== */
body#product [id*="description"] p,
body#product [class*="description"] p {
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #02648F !important;
  margin-bottom: 15px !important;
  text-align: left !important;
  font-weight: 400 !important;
  margin-right: 0 !important;
}

/* ----- PRECIO ----- */
body#product .product-prices .current-price span,
body#product .product-price span[itemprop="price"] {
  font-size: 1.8rem !important;
  color: #00A0E6 !important;
  background: #ffffff;
  padding: 10px;
  display: inline-block;
}

/* ----- BOTÓN AÑADIR AL CARRITO ----- */
body#product #add-to-cart-or-refresh button[type="submit"],
body#product .add-to-cart button.add-to-cart-button {
  background: #00A0E6 !important;
  font-weight: 400 !important;
  min-width: 12px !important;
  box-sizing: border-box !important;
  color: white !important;
  padding: 3px 23px 3px 23px !important;
  border-radius: 12px !important;
  gap: 18px;
  font-size: 23px !important;
}

/* Oculta el icono actual */
body#product button.add-to-cart .fa-shopping-bag {
    display: none !important;
}
  
/* Añade el símbolo + */
body#product button.add-to-cart::before {
    content: "+" !important;
    color: #02648F !important;
    font-family: inherit !important;
    font-size: 1.5em !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    width: 12px;
    height: 12px;
}

/* ----- REORDENAMIENTO FORZADO ----- */
/* Contenedor principal (flex vertical) */
body#product div.col-add-btn {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 5px !important;
    margin-bottom: -15px;
}
  
/* Campo de cantidad (arriba) */
body#product div.qty {
    order: 1 !important;
    margin-bottom: 5px !important;
    width: 90% !important;
}
  
/* Botón "Añadir" (abajo) */
body#product div.add {
    order: 2 !important;
    width: 100% !important;
}

/* Ajuste para el input de cantidad */
body#product input[name="qty"] {
    width: 100% !important;
    max-width: 45px !important;
    text-align: center;
}

/* CONTENEDOR PRINCIPAL del input cantidad*/
.product-quantity .qty {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 50px;
  max-width: 70px;
  border: 3px solid #00A0E6;
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

/* INPUT - VISIBLE AL 100% */
#quantity_wanted {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: none !important;
  font-size: 23px;
  color: #00A0E6;
  background: transparent;
  -moz-appearance: textfield;
  outline: none;
}

/* CONTENEDOR BOTONES */
.input-group-btn-vertical {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 50px;
  border-left: 1px solid #e0e0e0;
}

/* BOTONES */
.input-group-btn-vertical .btn {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: none;
  background: #f5f5f5;
  color: #00A0E6;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bootstrap-touchspin .input-group-btn-vertical > .btn
{
  margin-left: -2px; 
}

/* Botón + */
.bootstrap-touchspin-up {
  border-bottom: 1px solid #e0e0e0;
}

/* Efectos hover */
.input-group-btn-vertical .btn:hover {
  background: #00A0E6;
  color: white;
}

/* ===== SELECTORES DE VARIACIÓN - ESTILOS MEJORADOS ===== */
/* Contenedor principal */
.product-variants {
    display: flex !important;
    gap: 30px !important;
    margin-top: -5px !important;
    align-items: flex-end;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: 100%;
    }

/* Selector normal (múltiples variaciones) */
.custom-select2 {
  position: relative;
  display: inline-block;
  width: 100% !important;
  max-width: 20rem !important;
  
}

/* Selector grande (una sola variación) */
.product-variants:only-child .custom-select2,
.product-variants-item:only-child .custom-select2 {
    max-width: 500px !important;
}

.product-variants:only-child .custom-select2 select,
.product-variants-item:only-child .custom-select2 select {
    width: 100% !important;
    font-size: 23px !important;
    text-align: left !important;
}

/* Estilo base del select */
.custom-select2 select {
  width: 100% !important;  
  font-size: 23px !important;
  border: 3px solid #00A0E6 !important;
  border-radius: 12px !important;
  color: #00A0E6 !important;
  background-color: #F8FAFC !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  text-align: left !important;
  padding-right: 40px !important;
}

/* Flecha del selector - DENTRO DE LA CAJA */
.custom-select2::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 15px !important;
  width: 24px !important;
  height: 24px !important;
  margin-top: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 6 5-6' stroke='%2300A0E6' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  transition: transform 0.2s ease;
}

/* Flecha para selector grande */
.product-variants:only-child .custom-select2::after,
.product-variants-item:only-child .custom-select2::after {
  right: 15px !important;
}

select.form-control:not([size]):not([multiple]) {
  height: 55px;
}

/* ===== ESTILO UNIFICADO PARA ETIQUETAS Y TEXTO ===== */
.product-variants .form-control-label,
.product-minimal-quantity::before {
  color: #02648F !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  display: block;
  letter-spacing: 0.5px !important;
  font-size: 18px !important;
  margin-bottom: 12px !important;
}

.js-product-miniature, .reviews-loading {
    border: none 1px;
    outline: 1px none transparent;
    transform: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Quitar icono de cantidad minima */
.fa-info-circle
{
    display: none !important;
}

.product-minimal-quantity
{
  font-size: 15px;
  margin-top: -5px;
  color: #02648F;
}

.numerohoras{
    font-size: 35px;
    display: flex;
    flex-direction: column;
}

.textonumerohoras{
    font-size: 35px;
    color: #02648F;
}

.product_header_container
{
  border-bottom:none !important;
}

.product-additional-info{
  border-top: none !important;
  margin-bottom: 10px;
  margin-top: -10px;
}

.expander
{
  display: none;
}

.product-variants:empty {
    display: none;
}

/* ============================================= */
/*               RESPONSIVE STYLES               */
/* ============================================= */

/* Para pantallas de 768px a 1024px (tablets) */
@media (max-width: 1024px) {
    .product-variants {
        gap: 50px !important;
    }
    
    .custom-select2 {
        width: 350px;
    }
    
    .custom-select2 select {
        font-size: 20px !important;
        padding: 10px 35px 10px 15px !important;
    }
    
    .product-variants:only-child .custom-select2,
    .product-variants-item:only-child .custom-select2 {
        width: 100% !important;
    }

}

/* Para pantallas de 430px (móviles grandes) */
@media (max-width: 430px) {
    .product-variants {
        flex-direction: column !important;
        align-items: initial !important;
        gap: 20px !important;
        margin-top: 10px !important;
    }
    
    .custom-select2 {
        width: 280px !important;
    }
    
    .custom-select2 select {
        width: 100% !important;
        font-size: 18px !important;
        padding: 8px 30px 8px 12px !important;
    }
    
    .custom-select2::after {
        right: 12px !important;
        width: 20px !important;
        height: 20px !important;
    }
    
    .product-variants:only-child .custom-select2,
    .product-variants-item:only-child .custom-select2 {
        width: 280px !important;
    }
    
    .product-variants:only-child .custom-select2 select,
    .product-variants-item:only-child .custom-select2 select {
        width: 100% !important;
        font-size: 18px !important;
    }
    
    .product-variants:only-child .custom-select2::after,
    .product-variants-item:only-child .custom-select2::after {
        right: 12px !important;
    }
}

/* Para pantallas de 320px (móviles pequeños) */
@media (max-width: 320px) {
    .custom-select2 {
        width: 240px !important;
    }
    
    .custom-select2 select {
        font-size: 16px !important;
        padding: 6px 25px 6px 10px !important;
    }
    
    .product-variants:only-child .custom-select2,
    .product-variants-item:only-child .custom-select2 {
        width: 240px !important;
    }
    
    .product-variants:only-child .custom-select2 select,
    .product-variants-item:only-child .custom-select2 select {
        font-size: 16px !important;
    }
    
    .custom-select2::after {
        right: 10px !important;
        width: 18px !important;
        height: 18px !important;
    }
 
    .product-variants:only-child .custom-select2::after,
    .product-variants-item:only-child .custom-select2::after {
        right: 10px !important;
    }
}

@media (min-width: 768px) {
  .col-md-7.col-product-info {
    padding-inline-start: 60px;
    margin-top: -15px;
  }

 .col-md-5 .col-product-image{
  margin-top: -15px;
 }

  body#product [id*="description"] p,
  body#product [class*="description"] p {
    font-size: 22px !important;
    margin-right: 80px !important;
  }
}

@media (max-width: 320px) {
  .col-md-7.col-product-info {
    padding-inline-start: 25px !important;
    padding-inline-end: 25px !important;
  }
}

@media (max-width: 768px) {
  body#product #main h1.page-title,
  body#product .product-container h1[itemprop="name"] {
    text-align: center !important;
    margin-top: 0 !important;
  }
  
  body#product [id*="description"] p,
  body#product [class*="description"] p {
    text-align: center !important;
  }

  .custom-select2 {
    width: 100%;
  }
  
  .custom-select2::after {
    right: 15px !important;
    width: 20px !important;
    height: 20px !important;
  }

  .col-md-7.col-product-info {
    padding-inline-start: 25px !important;
    padding-inline-end: 25px !important;
  }
  
  /* Selector grande en tablet */
  .product-variants:only-child .custom-select2,
  .product-variants-item:only-child .custom-select2 {
      width: 70% !important;
  }
  
  .product-variants:only-child .custom-select2::after,
  .product-variants-item:only-child .custom-select2::after {
      right: 15px !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  body#product [id*="description"] p,
  body#product [class*="description"] p {
    font-size: 18px !important;
  }
}

@media (max-width: 576px) {
  body#product #add-to-cart-or-refresh button[type="submit"],
  body#product .add-to-cart button.add-to-cart-button {
    font-size: 20px !important;
    padding: 10px 18px !important;
    gap: 6px;
    border-radius: 6px !important;
    min-width: auto !important;
    display: inline-flex;
    width: auto !important;
    max-width: 100%;
    margin-top: 10px !important;
  }

  .textonumerohoras{
    font-size: 20px;
  }

  .toggle-description-btn{
    font-family: 20px;
  }
  
  body#product button.add-to-cart::before {
    font-size: 1.1em !important;
    margin-right: 2px !important;
    margin-top: -2px;
    color: #FFFFFF !important;
  }
  
  body#product div.qty {
    margin-right: 0 !important;
    margin-bottom: 15px !important;
    width: 20% !important;
  }

  .product-variants > .product-variants-item {
    display: inline-block;
    margin-right: -100px;
  }
  

  body#product button.add-to-cart {
    padding: 12px 15px !important;
  }

  body#product div.qty input[type="number"] {
    width: 100% !important;
  }

  .col-md-7.col-product-info {
    padding-inline-start: 25px !important;
    padding-inline-end: 25px !important;
  }
  
  /* Flecha en móviles */
  .custom-select2::after {
      right: 15px !important;
      width: 18px !important;
      height: 18px !important;
      margin-top: -0px;
  }
  
  /* Selector grande en móvil */
  .product-variants:only-child .custom-select2 select,
  .product-variants-item:only-child .custom-select2 select {
      font-size: 20px !important;
  }
  
  .product-variants:only-child .custom-select2::after,
  .product-variants-item:only-child .custom-select2::after {
      right: 15px !important;
      width: 20px !important;
      height: 20px !important;
  }
}

@media (max-width: 480px) {
  .custom-select2 {
    width: 100%;
    max-width: 30rem !important;
  }
  
  .custom-select2 select {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .col-md-7.col-product-info {
    padding-inline-start: 25px !important;
    padding-inline-end: 25px !important;
  }

}

@media (max-width: 399px) {
  .product-variants .form-control-label,
  .product-minimal-quantity::before {
    font-size: 20px !important;
    margin-bottom: 5px !important;
    letter-spacing: 0.3px !important;
  }
}

@media (min-width: 576px) {
  .product-variants .form-control-label,
  .product-minimal-quantity::before {
    font-size: 20px !important;
  }
}

@media (min-width: 768px) {
  .product-variants .form-control-label,
  .product-minimal-quantity::before {
    font-size: 24px !important;
    margin-bottom: 5px !important;
  }
}

@media (min-width: 992px) {
  .product-variants .form-control-label,
  .product-minimal-quantity::before {
    font-size: 28px !important;
    letter-spacing: 0.8px !important;
  }
}

@media (min-width: 1200px) {
  .product-variants .form-control-label,
  .product-minimal-quantity::before {
    font-size: 32px !important;
    margin-bottom: 18px !important;
  }
  
  /* Selector grande en pantallas grandes */
  .product-variants:only-child .custom-select2,
  .product-variants-item:only-child .custom-select2 {
      width: 120% !important;
  }
  
  .product-variants:only-child .custom-select2::after,
  .product-variants-item:only-child .custom-select2::after {
      right: 15px !important;
  }
}

@media (min-width: 1400px) {
  .product-variants .form-control-label,
  .product-minimal-quantity::before {
    font-size: 35px !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
  }
}


/* VER DESCRIPCION COMPLETA */
/* Estilo para el botón - Versión minimalista */
.toggle-description-btn {
  background: transparent;
  color: #02648f;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 22px;
  margin: 15px 0;
  font-weight: normal;
  text-decoration: underline;
  display: inline-block;
  transition: color 0.2s ease;
  position: relative;
}

/* ============================================= */
/*               RESPONSIVE STYLES               */
/* ============================================= */

/* Para pantallas de 1200px en adelante */
@media (min-width: 1200px) {
  .toggle-description-btn {
    font-size: 22px;
  }
}

/* Para pantallas entre 992px y 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .toggle-description-btn {
    font-size: 22px;
  }
}

/* Para pantallas entre 768px y 991px */
@media (min-width: 768px) and (max-width: 991px) {
  .toggle-description-btn {
    font-size: 20px;
    margin: 12px 0;
  }
}

/* Para pantallas entre 576px y 767px */
@media (min-width: 576px) and (max-width: 767px) {
  .toggle-description-btn {
    font-size: 18px;
    margin: 10px 0;
  }
}

/* Para pantallas menores a 576px */
@media (max-width: 575px) {
  .toggle-description-btn {
    font-size: 16px;
    margin: 8px 0;
    font-weight: 500;
    text-decoration: underline;
  }
}

/* Para pantallas muy pequeñas (menores a 400px) */
@media (max-width: 399px) {
  .toggle-description-btn {
    font-size: 16px;
    text-decoration: underline;
  }
}