@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500&display=swap');

/* ingreso */
.login-wrapper {
  width: 100%;
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 16px 70px;
  background: radial-gradient(circle at top, rgba(129,49,49,0.12), rgba(129,49,49,0));
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(33, 20, 10, 0.18);
  padding: 36px 32px 40px;
  position: relative;
  overflow: hidden;
}

.login-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(173,135,86,0.22);
}

.login-card__header { text-align: center; margin-bottom: 28px; }

.login-card__logo {
  width: 82px; height: 82px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}

.login-card__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(129,49,49,0.25));
}

.login-card__header h2 {
  margin: 12px 0 8px;
  font-size: 1.8rem;
  color: #3d1d1d;
  font-family: 'Lora', serif;
}

.login-card__header p {
  margin: 0;
  color: #6b5a5a;
  font-size: 0.95rem;
}

.login-form { display: grid; gap: 18px; }

.login-field__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #8a6e6e;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.login-input-wrapper {
  display: flex; align-items: center;
  gap: 10px;
  background: #faf7f3;
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 0 16px;
  transition: all 0.25s ease;
}

.login-input-wrapper:focus-within {
  border-color: #ad8756;
  box-shadow: 0 8px 16px rgba(173,135,86,0.25);
  background: #fff9ed;
}

.login-input__icon { color: #b68a5d; font-size: 0.95rem; margin-right: 10px; }

.password-toggle {
  background: none; border: 0;
  color: #a65252; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; width: 38px; height: 38px; padding: 0;
}
.password-toggle:hover, .password-toggle:focus { color: #813131; }

.login-field__input {
  flex: 1; border: 0; background: transparent;
  height: 44px; font-size: 1rem;
  color: #3d1d1d; outline: none;
}

.login-field__input::placeholder { color: #bda7a7; }

.login-field__input--captcha {
  height: 40px; width: 120px; text-align: center;
  border-radius: 16px; border: 1px solid rgba(173,135,86,0.4);
  background: #fff; margin-left: 12px;
}

.login-captcha {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #faf7f3;
  border-radius: 16px;
}

.login-captcha__image {
  display: inline-flex; align-items: center;
  padding: 6px 12px; background: #fff;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(173,135,86,0.25);
}

.login-captcha__arrow { font-size: 1.4rem; color: #a65252; }

.login-submit {
  width: 100%; height: 48px; border-radius: 50px; border: 0;
  font-size: 1rem; font-weight: 600; text-transform: uppercase;
  background: linear-gradient(135deg,#813131,#a65252);
  color: #fff7e3; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 24px rgba(129,49,49,0.25);
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(129,49,49,0.3);
}

/* Login footer */
.login-links { margin-top: 18px; text-align: center; }
.login-link { color: #813131; font-weight: 600; font-size: 0.95rem; }

.login-divider {
  position: relative; margin: 28px 0 18px; text-align: center;
  font-size: 0.85rem; color: #9d7f7f;
}
.login-divider::before, .login-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 32%; height: 1px; background: rgba(173,135,86,0.3);
}
.login-divider::before { left: 0; } .login-divider::after { right: 0; }

.login-register {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; height: 48px;
  border-radius: 50px;
  border: 1px solid rgba(129,49,49,0.3);
  background: #fff8f3; color: #813131;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.login-register:hover {
  border-color: rgba(129,49,49,0.6);
  background: linear-gradient(135deg,rgba(129,49,49,0.08),rgba(129,49,49,0));
}

/* formu de registro */
.form-wrapper {
  width: 100%; min-height: calc(100vh - 220px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 130px 16px 90px;
  background: radial-gradient(circle at top, rgba(129,49,49,0.10), rgba(129,49,49,0));
}
.form-wrapper--top { padding-top: 50px; }

.form-card {
  width: 100%; background: #fff; border-radius: 22px;
  box-shadow: 0 26px 60px rgba(33,20,10,0.15);
  position: relative; overflow: hidden; margin: 0 auto;
}
.form-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(173,135,86,0.18);
}
.form-card--wide { max-width: 680px; padding: 48px 48px 56px; }
.form-card__header { text-align: center; margin-bottom: 24px; }

.form-card__pretitle {
  margin: 0; font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #a27777;
}
.form-card__title {
  margin: 10px 0 12px; font-size: 2rem; color: #3d1d1d; font-family: 'Lora', serif;
}
.form-card__subtitle { margin: 0; font-size: 0.98rem; color: #6b5a5a; }

.form-card__meta {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 12px;
}

.form-progress { display: inline-flex; gap: 10px; }
.form-progress__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(173,135,86,0.25); transition: background 0.25s;
}
.form-progress__dot--active { background: linear-gradient(135deg,#813131,#a65252); }

.form-card__switch {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; font-size: 0.95rem; color: #7d5c5c; margin-bottom: 28px;
}
.form-card__link { font-weight: 600; color: #813131; }
.form-card__link:hover { color: #a65252; }

.form-sections {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px;
}
.form-sections--single { display: block; }

.form-section { margin: 0; padding: 0; border: 0; }
.form-section legend {
  font-size: 1.05rem; font-weight: 600; color: #4a2a2a;
  margin-bottom: 18px; font-family: 'Lora', serif;
}

.form-field {
  display: block; margin-bottom: 18px;
}
.form-field:last-of-type { margin-bottom: 0; }

.form-field__label {
  display: block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #8a6e6e; margin-bottom: 8px;
}

.form-field__control {
  display: flex; align-items: center; gap: 12px;
  background: #faf7f3; border: 1px solid transparent;
  border-radius: 16px; padding: 0 18px;
  transition: all 0.25s ease;
}
.form-field__control:focus-within {
  border-color: #ad8756;
  box-shadow: 0 12px 24px rgba(173,135,86,0.22);
  background: #fff9ed;
}

.form-field__control--select { position: relative; padding-right: 42px; }
.form-field__control--select::after {
  content: "\25BE"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); font-size: 0.85rem; color: #a65252;
  pointer-events: none;
}

.form-field__input {
  flex: 1; border: 0; background: transparent; height: 46px;
  font-size: 1rem; color: #3d1d1d; outline: none;
}
.form-field__input[type="select"],
.form-field__control select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 38px; width: 100%; background: transparent; cursor: pointer;
}
.form-field__hint { margin: 6px 0 0; font-size: 0.85rem; color: #8f7a7a; }

.form-divider {
  height: 1px;
  background: linear-gradient(to right,rgba(173,135,86,0),rgba(173,135,86,0.35),rgba(173,135,86,0));
  margin: 22px 0;
}

.form-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.form-primary {
  min-width: 200px;
  height: 52px;
  border: 0;
  border-radius: 60px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #813131, #a65252);
  color: #fff7e3;
  cursor: pointer;
  padding: 0 26px;
  box-shadow: 0 18px 32px rgba(129,49,49,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;              
  justify-content: center;       
  align-items: center;          
}

.form-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(129,49,49,0.28);
}
.form-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 26px; height: 52px; border-radius: 60px;
  border: 1px solid rgba(129,49,49,0.3);
  background: #fff8f3; color: #813131;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.form-secondary:hover {
  border-color: rgba(129,49,49,0.55);
  background: linear-gradient(135deg,rgba(129,49,49,0.08),rgba(129,49,49,0));
}

/* formulaio olvide / rpta */
.form-card--narrow {
  max-width: 520px;
  padding: 42px 36px 48px;
  border-radius: 22px;
  margin: 0 auto;
}


/* campo captcha */
.form-captcha {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #faf7f3;
  border-radius: 16px; width: 100%;
}
.form-captcha__image {
  display: inline-flex; align-items: center;
  padding: 6px 12px; background: #fff;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(173,135,86,0.25);
}
.form-captcha__arrow { font-size: 1.4rem; color: #a65252; }

.form-field__input--captcha {
  height: 44px;
  width: 140px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(173, 135, 86, 0.35);
  background: #faf7f3;
  box-shadow: inset 0 0 3px rgba(173, 135, 86, 0.15);
  transition: all 0.25s ease;
}

.form-field__input--captcha:focus {
  background: #fff9ed;
  border-color: #ad8756;
  box-shadow: 0 0 0 3px rgba(173, 135, 86, 0.15);
}


/* responsive logs --- */
@media (max-width: 1024px) {
  .form-sections { grid-template-columns: 1fr; gap: 24px; }
  .form-actions { flex-direction: column; }
}

@media (max-width: 600px) {
  .login-wrapper { padding: 110px 16px 60px; }
  .login-card, .form-card { padding: 30px 24px 34px; border-radius: 16px; }
  .login-captcha, .form-captcha { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; align-items: center;}
  .login-captcha__arrow, .form-captcha__arrow { display: none; }
  .login-field__input--captcha, .form-field__input--captcha { width: 100%; margin-left: 0; height: 48px; font-size: 1.05rem; border-radius: 18px; padding: 6px 10px; }
}

@media (max-width: 600px) {
  .form-card--narrow {
    max-width: 100%;
    padding: 32px 20px 36px;
    border-radius: 18px;
  }
}

/*campo direccon de usuaro modificar */
textarea.form-field__input.form-textarea {
  background-color: #f9f6f4;
  border: 1px solid #f3e9e5;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  min-height: 120px;
  resize: none;
  overflow: hidden;
  box-shadow: none;
}
textarea.form-field__input.form-textarea:focus {
  background-color: #fff;
  border-color: #b5735b;
  outline: none;
}

/* estilo cuadro de texto direcciones */
textarea.form-textarea {
  background-color: #f9f6f4;
  border: 1px solid #f3e9e5;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  min-height: 120px;
  resize: none;
  overflow: hidden;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* oculta bg color
textarea.form-textarea:focus {
  background-color: #fff;
  border-color: #b5735b;
  outline: none;
}
*/
/* mensaje flotante de guardar cambios / edit perfil */
.alerta-exito {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff7e3;
  color: #7d4a35;
  font-weight: 600;
  border-radius: 16px;
  padding: 20px 40px;
  box-shadow: 0 6px 18px rgba(129,49,49,0.25);
  font-size: 1rem;
  text-align: center;
  animation: fadein 0.3s ease, fadeout 0.3s ease 3.7s forwards;
  z-index: 9999;
}
.alerta-error {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffe8e8;
  color: #8b2e2e;
  font-weight: 600;
  border-radius: 16px;
  padding: 20px 40px;
  box-shadow: 0 6px 18px rgba(139,46,46,0.25);
  font-size: 1rem;
  text-align: center;
  animation: fadein 0.3s ease, fadeout 0.3s ease 4s forwards;
  z-index: 9999;
}
@keyframes fadein {
  from {opacity: 0; transform: translate(-50%, -40%);}
  to {opacity: 1; transform: translate(-50%, -50%);}
}
@keyframes fadeout {
  to {opacity: 0;}
}

a.form-primary {
  min-width: 200px;
  height: 52px;
  border: 0;
  border-radius: 60px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #813131, #a65252);
  color: #fff7e3;
  cursor: pointer;
  padding: 0 26px;
  box-shadow: 0 18px 32px rgba(129,49,49,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  text-align: center;
}

a.form-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(129,49,49,0.28);
}

/* flecha volver a inicio forms*/
.volver-inicio {
  position: absolute;
  top: 20px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #f9f4f4;
  text-decoration: none;
  background: #813131;
  padding: 8px 14px 8px 10px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(129,49,49,0.15);
  transition: all 0.25s ease;
  z-index: 5;
}
.volver-inicio i {
  font-size: 1rem;
}
.volver-inicio:hover {
  background: #fff3f0;
  color: #a65252;
  box-shadow: 0 3px 8px rgba(129,49,49,0.25);
  transform: translateX(-2px);
}
@media (max-width: 600px) {
  .volver-inicio {
    padding: 8px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .volver-inicio span {
    display: none;
  }
}

/* carrito.cgi / iframe carrito */
.carrito-wrapper {
  background: #fff;
  color: #3d1d1d;
  font-family: 'Lora', serif;
}

.carrito-header {
  background: #813131;
  color: #fff7e3;
  padding: 14px 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.carrito-header i { color: #fff7e3; }

.main-container {
  display: flex;
  justify-content: center;
  padding: 25px 16px 60px;
}

body[iniframe="true"] .main-container {
  justify-content: flex-start;
  padding: 25px 0 60px 0;
}

.carrito-box {
  width: 100%;
  max-width: 720px;
}

.resumen-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.resumen-table th,
.resumen-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #f0e2d5;
  text-align: left;
  font-size: 0.95rem;
}
.resumen-table th {
  background: #faf7f3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7d5a5a;
  font-weight: 600;
}
.resumen-table img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 10px;
  vertical-align: middle;
}

select {
  font-size: 0.9rem;
  border: 1px solid #d8c2b5;
  border-radius: 8px;
  padding: 3px 6px;
  background: #faf7f3;
}
.boton-eliminar {
  color: #813131;
  font-size: 1rem;
  text-decoration: none;
}
.boton-eliminar:hover { color: #a65252; }

.resumen-total {
  text-align: right;
  font-weight: 700;
  color: #4a2a2a;
  font-size: 1rem;
}
.resumen-envio {
  color: #7d4a35;
  font-size: 0.95rem;
  text-align: right;
}

.pagar-container {
  position: sticky;
  bottom: 0;
  background: #fff;
  text-align: center;
  padding: 12px 0 20px 0;
  z-index: 100;
}

.carrito-vacio {
  text-align: center;
  color: #7a5a5a;
  padding: 40px 0;
  font-size: 1rem;
  width: 100%;
  display: table-cell;
  vertical-align: middle;
}

/* scrollbar iframe +products */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #c7a7a7;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a67979;
}

/* Solo responsive para vista completa, no iframe */
@media (max-width: 600px) {
  body:not([iniframe="true"]) .main-container { padding: 16px 10px 70px; }
  body:not([iniframe="true"]) .carrito-box { max-width: 100%; }
  body:not([iniframe="true"]) .resumen-table td img { width: 40px; height: 40px; }
  body:not([iniframe="true"]) .resumen-table td, 
  body:not([iniframe="true"]) .resumen-table th { font-size: 0.9rem; }
  body:not([iniframe="true"]) .pagar-container a { min-width: 46%; }
}
/*
.carrito-wrapper {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: 420px; /* o el ancho que normalmente tiene el carrito */
}
*/
/*SUBMENU NUEVO */
#categorias.submenu-wrapper {
  background: linear-gradient(135deg, #813131, #5e1e1e);
  color: #fff8f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-family: 'Lora', serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;


}

#categorias.submenu-wrapper a {
  color: #fff8f3;
}

#categorias.submenu-wrapper .submenu-left {
  display: flex;
  align-items: center;
  gap: 10px;
     transition: transform 0.6s ease, filter 0.4s ease;
}

#categorias.submenu-wrapper .submenu-links a {
  color: #fff8f3;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 20px;
  transition: background 0.3s;
}
#categorias.submenu-wrapper .submenu-links a:hover {
  background: rgba(255, 255, 255, 0.2);
   transform: scale(1.05);

}

#categorias.submenu-wrapper .submenu-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#categorias.submenu-wrapper .submenu-cart {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  color: #fff8f3;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  
}
#categorias.submenu-wrapper .submenu-cart:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  
}

#categorias.submenu-wrapper .cuenta-container button {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff8f3 !important;
  border: none;
  border-radius: 40px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
#categorias.submenu-wrapper .cuenta-container button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

#categorias.submenu-wrapper .buscador-container input {
  flex: 1;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
}
#categorias.submenu-wrapper .buscador-container button {
  background: #FEC107;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
}
#categorias.submenu-wrapper .buscador-container button:hover {
  background: #ffd54f;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #categorias.submenu-wrapper {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
  }

  #categorias.submenu-wrapper .submenu-links {
    display: none;
  }

  #categorias.submenu-wrapper .submenu-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: auto; /* 🔧 evita que baje a otra línea */
  }

  #categorias.submenu-wrapper .buscador-container {
    order: 3;
    width: 100%;
  }

  #categorias.submenu-wrapper .submenu-left {
    flex: 1;
  }
}
@media (max-width: 768px) {
  #categorias.submenu-wrapper {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
  }

  #categorias.submenu-wrapper .submenu-links {
    display: none;
  }

  #categorias.submenu-wrapper .submenu-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: auto; /* 🔧 evita que baje a otra línea */
  }

  #categorias.submenu-wrapper .buscador-container {
    order: 3;
    width: 100%;
  }

  #categorias.submenu-wrapper .submenu-left {
    flex: 1;
  }
}


/*Precio: */
.precio-box {
  background: rgba(219, 215, 203, 0.05);
/*
  border: 1px solid rgba(254, 193, 7, 0.3);
*/
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 18px;
  margin-bottom: 10px;
  font-family: "Lora", serif;
  max-width: 340px;
}

.etiqueta-precio {
  font-size: 15px;
  font-weight: 600;
  color: #813131;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.precio-unico {
  font-size: 26px;
  color: #813131;
  font-weight: 700;
}

.precio-unico .moneda {
  color: #813131;
  font-size: 20px;
  font-weight: 600;
}

.precio-multiple .precio-opcion {
  font-size: 15px;
  color: #333;
  padding: 3px 0;
}

.precio-multiple .valor {
  color: #813131;
  font-weight: 700;
}

.compra-minima {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-style: italic;
}

.compra-minima i {
  color: #ad8756;
  margin-right: 5px;
}


/* Contenedor general */
.compra-box {
  margin-top: 14px;
  font-family: 'Lora', serif;
}

.compra-box label {
  font-size: 14px;
  font-weight: 600;
  color: #813131;
  display: block;
  margin-bottom: 5px;
}

/* fila con cantidad + botón */
.compra-linea {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap; /* evita que el botón baje */
}

/*contenedor cantidad */
.cantidad-modern {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4c2a5;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f3f2;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

/* btn + y - */
.btn-cant {
  background: none;
  border: none;
  color: #813131;
  font-size: 18px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: bold;
}
.btn-cant:hover {
  background: rgba(254, 193, 7, 0.15);
  color: #ad8756;
}

/*campo numero */
.cantidad-input {
  width: 48px;
  text-align: center;
  border: none;
  font-size: 15px;
  color: #813131;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

/* hover sobre el número central */
.cantidad-input:hover {
  background: rgba(254, 193, 7, 0.15);
  color: #ad8756;
}
.cantidad-input:focus {
  outline: none;
  box-shadow: none;
}


.cantidad-input::-webkit-inner-spin-button,
.cantidad-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* btn agregar */
.boton-agregar-modern {
  background-color: #813131;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Lora', serif;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.6s ease, filter 0.4s ease;
}
.boton-agregar-modern:hover {
  background-color: #ad8756;
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .compra-linea {
    flex-wrap: wrap;
    gap: 8px;
  }
  .boton-agregar-modern {
    width: auto;
    align-self: flex-start;
  }
}
/*selec emergente */
.selector-cantidad {
  position: absolute;
  background: #fff9f4;
  border: 1px solid #d4c2a5;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 9999;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  font-family: 'Lora', serif;
  font-size: 14px;
}

.selector-cantidad div {
  padding: 6px 10px;
  cursor: pointer;
  color: #813131;
  text-align: center;
  transition: all 0.2s ease;
}

.selector-cantidad div:hover {
  background: rgba(254, 193, 7, 0.15);
  color: #ad8756;
}

/* acordeon interioor */
.acordeon-detalles {
  margin-top: 25px;
  border-top: 1px solid #ddd;
  font-family: 'Lora', serif;
  border-radius: 8px;
  overflow: hidden;
/*
  background: #fff8f3;
*/
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.acordeon-boton {
  width: 100%;
/*
  background: linear-gradient(135deg, #813131, #5e1e1e);
*/
  background: #813131f0;
  color: #fff8f3;
  text-align: left;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  transition: transform 0.6s ease, filter 0.4s ease;

}

.acordeon-boton i {
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 0.9rem;
  color: #FEC107;
}

.acordeon-boton:hover {
  background: #ad8756;
  transform: scale(1.05);
}

.acordeon-boton.activo i {
  transform: rotate(180deg);
  color: #ffd54f;
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
  background: #fffdfc;
  color: #333;
  padding: 0 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.acordeon-contenido.mostrar {
  max-height: 900px;
  padding: 18px 20px;
}


/* input pequeño para las cards relacionadas */
.cantidad-card {
  height: 34px;
  font-size: 13px;
  border: 1px solid #d4c2a5;
  border-radius: 5px;
  background: #fffdf8;
  text-align: center;
  color: #813131;
  font-family: 'Lora', serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.cantidad-card:hover {
  background: rgba(254, 193, 7, 0.1);
  color: #ad8756;
  border-color: #ad8756;
}

/* menú emergente cuando se abre desde las cards */
.selector-cantidad.card-context {
  background: #fffefb;
  border: 1px solid #e0d5c0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  font-size: 13px;
  padding: 4px 0;
}
.selector-cantidad.card-context div {
  padding: 4px 8px;
}
.selector-cantidad.card-context div:hover {
  background: rgba(254, 193, 7, 0.12);
  color: #ad8756;
}

.cantidad-card-wrapper {
  position: relative;
  display: inline-block;
}

.cantidad-card-wrapper::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 11px;
  color: #813131;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 0.2s ease;
}

.cantidad-card {
  width: 65px;
  padding-right: 18px;
}

.cantidad-card-wrapper:hover::after {
  color: #ad8756;
}
/*  */
/* --- TABS Y ACORDEÓN RESPONSIVE DE PRODUCTO --- */
.tabs-producto {
  margin-top: 25px;
  font-family: 'Lora', serif;
  background: transparent;
  color: #4a3a3a;
}

/* ---- DESKTOP ---- */
.tab-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  border-bottom: 1px solid #d8c8b0;
  gap: 4px;
}

.tab-buttons .tab-btn {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  color: #813131;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  padding: 8px 4px;
  transition: all 0.3s ease;
}

.tab-buttons .tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: #813131;
  transition: width 0.3s ease;
}

.tab-buttons .tab-btn.active::after {
  width: 70%;
}

.tab-buttons .tab-btn:hover {
  color: #ad8756;
}

.tab-content {
  display: none;
  padding: 14px 5px 8px 5px;
  line-height: 1.7;
  font-size: 0.95rem;
  animation: fadeInTabs 0.3s ease;
}

@keyframes fadeInTabs {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- MÓVIL: convierte en acordeón ---- */
@media (max-width: 600px) {
  .tab-buttons {
    flex-direction: column;
    border: none;
    gap: 0;
  }

  .tab-buttons .tab-btn {
    text-align: left;
    border-bottom: 1px solid #e0d6c6;
    padding: 12px 10px;
    font-size: 15px;
    position: relative;
  }

  .tab-buttons .tab-btn::after {
    display: none;
  }

  .tab-buttons .tab-btn.active {
    background: #e3c3c3;
    color: #5e1e1e;
  }

  .tab-content {
    display: none;
    border-left: 2px solid #d8c8b0;
    margin-left: 5px;
    padding: 10px 10px;
    background: #fffdfc;
  }

  .tab-content.mostrar {
    display: block;
  }
}
