
/* ====== COTIZADOR ELEGANTE ====== */

#medidas-warning:empty, #checkout-error:empty {
  display: none;
}
:root {
  --color-marca: #6a472f;
  --color-acento: #a98260;
  --color-fondo: #fdfbf9;
  --color-borde: #e5e0dc;
  --color-texto: #3b2f27;
  --color-muted: #7a6c62;
  --color-stock-ok: #2e7d32;
  --color-stock-bad: #c62828;
}

#modo-cambiar-btn{
        font-size: 11px;
    text-transform: uppercase;
}

#cotizador-app
 {
    max-width: 1000px !important;
    margin: 0px auto;
}


.modo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
}
.modo-bar button {
    font-size: 12px;
    padding: 5px 10px;
}
.hidden {
    display: none !important;
}


#step-user-type {
  text-align:center;
}

.user-type-options .btn.big {
  width: 260px;
  padding: 15px;
  margin: 10px;
  font-size: 18px;
}

/* Loader contenedor */
.loading {
  display: grid;
  place-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--color-borde, #e5e0dc);
  border-radius: 12px;
}

/* “Bobbing” de la factura */
.loading .loader-svg svg .invoice {
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(3px); }
}

/* Líneas de detalle con trazo que “se escribe” */
.loading .dashline {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw 1.6s ease-in-out infinite;
}
.loading .dashline:nth-child(1) { animation-delay: 0s;   }
.loading .dashline:nth-child(2) { animation-delay: 0.2s; }
.loading .dashline:nth-child(3) { animation-delay: 0.4s; }
.loading .dashline:nth-child(4) { animation-delay: 0.6s; }
.loading .dashline:nth-child(5) { animation-delay: 0.8s; }

@keyframes draw {
  0%   { stroke-dashoffset: 120; opacity: 0.3; }
  40%  { stroke-dashoffset: 0;   opacity: 1;   }
  70%  { opacity: 1; }
  100% { opacity: 0.3; stroke-dashoffset: 120; }
}

/* Tick que aparece/desaparece */
.loading .tick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: tickDraw 1.6s ease-in-out infinite 0.6s;
}
@keyframes tickDraw {
  0%   { stroke-dashoffset: 50; opacity: 0; }
  35%  { stroke-dashoffset: 0;  opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: 50; }
}

/* Texto */
.loading p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-texto, #3b2f27);
}

.step {
  display: none !important;
}
.step.active {
  display: block !important;
}
.hidden {
  display: none !important;
}

/* === Animación de "armando cotización" === */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-marca);
  font-weight: 500;
  font-size: 1rem;
  animation: fadeIn 0.3s ease;
}

.loader-icon {
  font-size: 2.4rem;
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
  margin-bottom: 8px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* 🛒 Botón flotante */
.btn-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-marca, #6a472f);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all .2s ease;
  z-index: 9999;
}
.btn-cart:hover { background: #523621; }

/* 💬 Modal */
/* ====== MODAL ELEGANTE ====== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  backdrop-filter: blur(3px);
  animation: fadeInModal .25s ease;
}

.modal.hidden {
  display: none;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 36px;
  width: 92%;
  max-width: 520px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
  animation: slideUp .25s ease;
  color: var(--color-texto);
  font-family: 'Inter', sans-serif;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0px); }
}

.modal-content h4 {
  margin-bottom: 14px;
  color: var(--color-marca);
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-content p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Botón cerrar */
.modal-content .close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-muted);
  transition: color .2s ease, transform .2s ease;
}

.modal-content .close:hover {
  color: var(--color-marca);
  transform: scale(1.15);
}

.modal-content {
  animation: modalPop .25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Botón acción dentro del modal */
.modal-content .btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px 18px;
  background: var(--color-marca);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}

.modal-content .btn:hover {
  background: var(--color-acento);
}



/* ====== CONTENEDOR GENERAL ====== */
.cotizador-wrapper {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}


.sin-stock .muted span{
    color:#b80000;
}


.tela-item strong{
    font-size: 16px;
    font-weight: 600;
}


.cotizador-container {
  max-width: 1080px; /* más ancho */
  margin: 0 auto;
}

/* ====== TITULOS Y TEXTOS ====== */
.cotizador-wrapper h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #4c4c4c;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.cotizador-wrapper h4 {
  font-size: 1rem;
  color: #4c4c4c;
  margin: 18px 0 8px;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.cotizador-wrapper label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.muted {
  color: var(--color-muted);
  font-size: 0.88rem;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ====== BARRA DE PROGRESO ====== */
.progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 32px;
}

.progress-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d0d0d0;
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.progress-step.active,
.progress-step:hover {
  background: var(--color-marca);
  color: #fff;
  transform: scale(1.06);
}

/* ====== PASOS ====== */
.step {
  background: #fff;
  border-radius: 14px;
  padding: 28px 34px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 28px;
  animation: fadeIn .3s ease;
}

select{
    margin-bottom: 10px;
    
}

.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== INPUTS ====== */
.cotizador-wrapper .input, select, .cotizador-wrapper input[type="number"], .cotizador-wrapper input[type="text"], .cotizador-wrapper input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-borde);
  border-radius: 6px;
  font-size: 0.92rem;
  background: #fff;
  transition: all .2s ease;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.cotizador-wrapper .input:focus, .cotizador-wrapper select:focus, .cotizador-wrapper input:focus {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 2px rgba(106,71,47,0.1);
}

/* ====== BOTONES ====== */
.cotizador-wrapper .btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--color-borde);
  background: #fff;
  color: var(--color-texto);
  cursor: pointer;
  font-weight: 500;
  transition: all .2s ease;
  font-size: 0.95rem;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.cotizador-wrapper .btn:hover:not([disabled]) {
  background: #f8f6f4;
}

.btn.primary {
  background: var(--color-marca);
  color: #fff;
  border-color: var(--color-marca);
  
}

.btn.primary:hover:not([disabled]) {
  background: var(--color-acento);
}

.btn.success {
  background: #388e3c;
  color: #fff;
  border: none;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ====== FILAS Y ESPACIADO ====== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px; /* más aire */
  margin-bottom: 20px;
}

/* ====== MENSAJES ====== */
.warning {
  color: #c62828;
  background: #fcebea;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
  border-left: 4px solid #e53935;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
      font-size: 16px;
}

.info {
  background: #f8f7f6;
  color: var(--color-texto);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 4px solid var(--color-acento);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 10px;
}

/* ====== TARJETAS ====== */
.card {
  background: #fff;
  border: 1px solid var(--color-borde);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}




/* ====== GALERÍAS ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(6,  1fr); /* más chica */
  gap: 12px;
}

.tela-item {
  background: #fff;
  border: 1px solid var(--color-borde);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all .2s ease;
}

.tela-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tela-item.selected {
  border-color: var(--color-marca);
  box-shadow: 0 0 0 3px rgba(106,71,47,0.2);
}

.tela-item .meta { 
  font-size: 0.88rem; 
}

/* ====== COLOR DE TELA ====== */
.color-item {
  display: inline-block;
  margin: 5px;
  text-align: center;
  cursor: pointer;
}

.color-item img,
.color-item div {
  width: 80px; /* más chico */
  height: 80px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: transform .2s ease, box-shadow .2s ease;
}

.color-item:hover img,
.color-item:hover div {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.color-item.selected img,
.color-item.selected div {
  box-shadow: 0 0 0 3px var(--color-marca);
}

.color-item p {
  font-size: 0.85rem;
  margin: 6px 0 2px;
}

/* ====== STOCK LABEL ====== */
.color-item .muted {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: capitalize;
    color: #4c4c4c;
}

.color-item .muted:contains("disponible"),
.color-item .muted:contains("Disponible") {
  background: var(--color-stock-ok);
}

.color-item .muted:contains("sin_stock"),
.color-item .muted:contains("Sin stock") {
  background: var(--color-stock-bad);
}

/* ====== Accesorios alineados ====== */
.list .acc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-borde);
}

.list .acc-item label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-texto);
}

.list .acc-item input[type="checkbox"] {
  transform: scale(1.1);
  margin-right: 6px;
}

.list .acc-item .acc-cantidad {
  width: 70px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--color-borde);
  padding: 6px;
  font-size: 0.9rem;
  background: #fff;
  transition: all 0.2s ease;
}

.list .acc-item .acc-cantidad:focus {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 2px rgba(106,71,47,0.1);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #ece8e4;
  padding: 12px 0;
  gap: 20px;
}

.cart-info {
  flex: 1;
}

.cart-title {
  font-size: 1rem;
  color: #3e2d20;
}

.cart-details {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 4px;
}

.cart-price {
  text-align: right;
  font-size: 0.95rem;
  white-space: nowrap;
}

.cart-price strong {
  color: #6a472f;
}

.remove-btn {
  margin-top: 6px;
  background: transparent;
  color: #b91c1c;
  border: 1px solid #f4dada;
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 4px 8px;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: #fbeaea;
}

.cart-summary {
  margin-top: 20px;
  padding-top: 12px;
    padding-bottom: 12px;
  border-top: 2px solid #e8e3de;
    border-bottom: 2px solid #e8e3de;
  
  font-size: 1rem;
  color: #3e2d20;
      font-weight: 800;
}

.cart-summary p {
  margin: 4px 0;
}


/* ====== CARRITO ====== */
.cart .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-borde);
  padding: 10px 0;
}

.totals {
  font-weight: 600;
  margin-top: 10px;
  color: var(--color-marca);
}

/* ====== BOTONERA ====== */
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 26px;
}


.resumen-card {
  background: #fff;
  border: 1px solid #e7e2dc;
  border-radius: 16px;
  padding: 20px 24px;
  color: #3e2d20;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.resumen-card h4 {
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #6a472f;
  border-bottom: 1px solid #eae5df;
  padding-bottom: 6px;
}

.resumen-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resumen-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.95rem;
}

.resumen-list li:last-child {
  border-bottom: none;
}

.resumen-total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e7e2dc;
  font-weight: 500;
}

.resumen-total strong {
  color: #6a472f;
  font-size: 1.1rem;
}



/* ====== Presupuesto elegante ====== */
#step-8 {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

#step-8 h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-marca);
  margin-bottom: 18px;
}

#cart-items {
  margin-bottom: 18px;
}

.cart .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-borde);
  padding: 12px 0;
}

.cart .row strong {
  font-size: 1rem;
  color: var(--color-texto);
}

.cart .row div:last-child {
  text-align: right;
}

.cart .row button {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-borde);
  background: #fff;
  color: var(--color-texto);
  transition: all 0.2s ease;
}

.cart .row button:hover {
  background: #f8f6f4;
}

/* Totales */
.totals {
  margin-top: 16px;
  font-weight: 600;
  color: var(--color-marca);
  font-size: 1.1rem;
  border-top: 1px solid var(--color-borde);
  padding-top: 10px;
}

/* Inputs del cliente */
#step-8 .form-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

#step-8 label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 4px;
}

#step-8 .input {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--color-borde);
  background: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#step-8 .input:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 2px rgba(106,71,47,0.1);
}

/* Botonera */
#step-8 .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}

#step-8 .btn.primary {
  background: var(--color-marca);
  color: #fff;
  font-weight: 500;
  border-color: var(--color-marca);
}

#step-8 .btn.primary:hover {
  background: var(--color-acento);
}

#step-8 .btn {
  min-width: 160px;
}


/* === Ajuste final del formulario del paso 8 === */
#step-8 .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px; /* más espacio entre columnas */
  margin-top: 24px;
}

#step-8 .form-row label {
  flex: 1 1 calc(50% - 11px); /* equilibrio con el nuevo gap */
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--color-muted);
}

#step-8 input{
    padding: 9px 0px !important;
}

#step-8 .form-row label:nth-child(3) {
  flex: 1 1 100%; /* teléfono ocupa toda la línea */
}

#step-8 .form-row input {
  margin-top: 5px;
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#step-8 .form-row input:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(106,71,47,0.12);
  outline: none;
}

#modal-carrito .modal-content{
    font-size: 16px;
}
#modal-carrito .modal-content h4{
font-size: 18px;
}

#modal-carrito .modal-content strong{
    font-weight: 800;
}

.confirmacion-animada {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  margin-top: 20px;
  animation: fadeInUp .5s ease forwards;
}

.confirmacion-animada h2 {
  color: #6a472f;
  font-size: 1.6rem;
  margin-top: 15px;
  animation: fadeIn .9s ease forwards;
}

.confirmacion-animada p {
  color: #555;
  margin-top: 6px;
  font-size: 1rem;
  animation: fadeIn 1.2s ease forwards;
}

.confirmacion-animada .btn {
  margin-top: 20px;
}

/* === ANIMACIÓN DEL SVG === */
.check-animation {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}

.check-animation svg {
  width: 100%;
  height: 100%;
}

.circle {
  fill: none;
  stroke: #6a472f;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: circleDraw 1s ease forwards;
}

.check {
  fill: none;
  stroke: #6a472f;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: checkDraw 0.8s ease-out forwards 0.9s;
}

/* Animaciones */
@keyframes circleDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


@media (max-width:1024px){
    .grid {
  display: grid;
  grid-template-columns: repeat(3,  1fr); /* más chica */
}
}

@media (max-width:768px){
    
    .actions
 {
    display: block;
}

.actions .btn
 {
    min-width: 100%;
    margin-bottom: 10px;
}
    .grid {
  display: grid;
  grid-template-columns: repeat(2,  1fr); /* más chica */
}

.cotizador-wrapper {
    padding: 0px;
 
}

}



