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

#medidas-warning:empty, #checkout-error:empty {
  display: none;
}

.express-actions{
  display:flex;
  gap:12px;
  margin-top:14px;
  align-items:center;
}

.express-actions.hidden{
  display:none;
}


.pv-ver{

background-color: transparent !important;
    color: #C2986D !important;
    border-style: solid !important;
    border-color: #C2986D !important;
    border-width: 1px !important;
}

.pv-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.pv-badge-habilitada {
    background: #e6f9f0;
    color: #1aa36f;
}

.pv-badge-pausa {
    background: #fff4e5;
    color: #e67e22;
}

:root {
  --color-marca: #7a6b63;
  --color-acento: #a98260;
  --color-fondo: #f3f3f3;
  --color-borde: #e5e0dc;
  --color-texto: #3b2f27;
  --color-muted: #7a6c62;
  --color-stock-ok: #2e7d32;
  --color-stock-bad: #c62828;
}

.express-total{
  margin-top:20px;
  padding:16px;
  background:#e3e3e3;
  border-radius:10px;
  font-size:20px;
  font-weight:600;
  text-align:center;
}

.metodos-pago-block {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f4f0eb;
  border: 1px solid var(--color-borde, #e5e0dc);
  border-radius: 10px;
}

.metodos-pago-titulo {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-marca, #7a6b63);
}

.metodo-pago-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.metodo-pago-item label {
  cursor: pointer;
  font-weight: 400;
}

.express-carrito-resumen{
  margin-top:16px;
  padding:10px 16px;
  background:#f4f0eb;
  border:1px solid var(--color-borde, #e5e0dc);
  border-radius:10px;
  font-size:14px;
  color: var(--color-marca, #7a6b63);
  text-align:center;
}

.express-carrito-resumen.hidden{
  display:none;
}

#select-cortina{
    min-height: 50px;
}

#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 0px;
    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);
      max-width: 1000px !important;
}


.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;
}

.tela-ancho-chico {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  margin-top: 2px;
}

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

.progress-step {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50% !important;
  background: #d0d0d0;
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.progress-step.active {
  background: var(--color-marca);
  color: #fff;
}

.progress-step:hover:not(:disabled),
.progress-step:focus:not(:disabled),
.progress-step:focus-visible:not(:disabled) {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: scale(1.06);
}

.progress-step:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ====== 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;
      margin-top: 5px;
    min-height: 50px;
}

.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;
}

.cotizador-wrapper .btn.hidden {
  display: none;
}

.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-ambiente-chico {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 3px;
  font-style: italic;
}

.cart-aviso-general {
  background: #fff8ea;
  border: 1px solid #e0b34d;
  border-left: 4px solid #e0b34d;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cart-row-incompleto {
  border-left: 3px solid #e0b34d;
}

.cart-aviso-faltantes {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff1d6;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 600;
}

.cart-aviso-info {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.cart-en-edicion {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6a472f;
}

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

.cart-price strong {
  color: var(--color-marca);
}

.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: var(--color-marca);
  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: var(--color-marca);
  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: var(--color-marca);
  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: var(--color-marca);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: circleDraw 1s ease forwards;
}

.check {
  fill: none;
  stroke: var(--color-marca);
  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;
 
}

}


/* ======================================================
   PANEL VENDEDOR – ESTILO LIMPIO Y CONSISTENTE
====================================================== */

.pv-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ================= NAV ================= */

.pv-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv-nav a {
    display: block;
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-decoration: none;
    background: var(--color-fondo);
    color: var(--color-texto);
    font-size: 0.95rem;
    transition: all .2s ease;
}

.pv-nav a:hover {
    background: #ece6e0;
}

.pv-nav a.active {
    background: var(--color-marca);
    color: #fff;
}

/* ================= CONTENIDO ================= */

.pv-content h2 {
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: var(--color-texto);
}

/* ================= TARJETAS ================= */

.pv-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* ================= TABLAS ================= */

.pv-buscador {
    display: flex;
    gap: 8px;
    margin: 14px 0;
    max-width: 480px;
}

.pv-buscador input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-borde, #e5e0dc);
    border-radius: 8px;
    font-size: 0.9rem;
}

.pv-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.pv-table thead {
    background: var(--color-fondo);
}

.pv-table th {
    padding: 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--color-muted);
}

.pv-table td {
    padding: 16px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

.pv-table tr:hover {
    background: #faf9f7;
}

/* ================= BOTONES ================= */

.pv-acciones {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.pv-ver,
.pv-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    display: inline-block !important;
    background: var(--color-marca) !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
    cursor: pointer;
    text-decoration: none;
    text-transform: none !important;
    vertical-align: middle;
    transition: all .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pv-ver:hover,
.pv-btn:hover {
    background: var(--color-acento) !important;
}

.pv-btn-eliminar {
    background: #c0392b !important;
}

.pv-btn-eliminar:hover {
    background: #922b21 !important;
}

/* ================= STATUS ================= */

.pv-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pv-status-borrador {
    background: #ececec;
    color: #555;
}

/* Estados del pedido (ver Cotizador_Estados::colores) */
.pv-status-cotizado {
    background: #fdf3d8;
    color: #8a6d1d;
}

.pv-status-pedido {
    background: #dbeafe;
    color: #1e40af;
}

.pv-status-en-produccion {
    background: #ede9fe;
    color: #5b21b6;
}

.pv-status-terminado {
    background: #dcfce7;
    color: #166534;
}

.pv-status-instalado {
    background: #d1fae5;
    color: #065f46;
}

.pv-status-cancelado {
    background: #fde2e1;
    color: #991b1b;
}

/* ================= ESTADÍSTICAS ================= */

.pv-stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.pv-chart-col {
    display: flex;
    justify-content: center;
}

.pv-chart-col canvas {
    max-width: 380px;
}

.pv-stats-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pv-stat-card {
    background: #fff;
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.pv-stat-card span {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.pv-stat-card strong {
    display: block;
    font-size: 32px;
    margin-top: 6px;
    color: var(--color-marca);
}

/* ================= GRÁFICOS INFERIORES ================= */

.pv-charts {
    margin-top: 70px;
    display: grid;
    gap: 50px;
}

.pv-chart-box {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.pv-chart-box h3 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--color-texto);
}

/* ================= MODAL ================= */

.pv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.pv-modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    margin: 80px auto;
    padding: 30px;
    border-radius: 18px;
    max-height: 85vh;
    overflow: auto;
}

.pv-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 22px;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1000px){
    .pv-dashboard {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pv-stats-layout {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   LOGIN COTIZADOR
====================================================== */

.cot-login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cot-login-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    animation: fadeInUp .4s ease;
}

.cot-login-card h2 {
    margin-bottom: 6px;
    font-size: 1.6rem;
    color: var(--color-marca);
}

.cot-login-sub {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 28px;
}

.cot-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cot-field {
    display: flex;
    flex-direction: column;
}

.cot-field label {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--color-muted);
}

.cot-field input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--color-borde);
    font-size: 0.95rem;
    transition: all .2s ease;
}

.cot-field input:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 0 3px rgba(106,71,47,0.12);
}

.cot-login-btn {
    margin-top: 10px;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: var(--color-marca);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all .2s ease;
}

.cot-login-btn:hover {
    background: var(--color-acento);
}

.cot-login-error {
    max-width: 420px;
    margin: 0 auto 20px auto;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecea;
    color: #c62828;
    text-align: center;
    font-size: 0.9rem;
}

/* ======================================================
   PERFIL USUARIO
====================================================== */

.pv-profile-card {
    background: #fff;
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    max-width: 700px;
}

.pv-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.pv-avatar {
    width: 70px;
    height: 70px;
    background: var(--color-marca);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

.pv-profile-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-texto);
}

.pv-role {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.pv-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
}

.pv-profile-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pv-profile-item strong {
    font-size: 1rem;
    color: var(--color-texto);
}

/* ======================================================
   ACCIONES SUPERIORES PANEL
====================================================== */

.pv-actions-top {
    display: flex;
    gap: 18px;
    margin-bottom: 40px;
    align-items: center;
}

/* Botón principal */
.pv-cta-main {

    color: var(--color-texto);
    padding: 14px 26px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: .3px;
    border:1px solid var(--color-borde);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transition: all .25s ease;
}

.pv-cta-main:hover {
    background: var(--color-acento);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    color:white;
}

/* Botón secundario */
.pv-cta-secondary {
    background: #fff;
    color: var(--color-texto);
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--color-borde);
    transition: all .25s ease;
}

.pv-cta-secondary:hover {
    background: #f6f4f1;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 700px){
    .pv-actions-top {
        flex-direction: column;
        align-items: stretch;
    }

    .pv-cta-main,
    .pv-cta-secondary {
        text-align: center;
    }
}

/* ======================================================
   EXPRESS – MEDIDAS PRO
====================================================== */
#ex-calcular{
    margin-top: 20px;
}
.express-medidas-row {
  display: grid;
  grid-template-columns: 1fr 1fr 140px;
  gap: 20px;
  margin-top: 12px;
  align-items: stretch;
}

.express-field {
  display: flex;
}

.express-field input {
  width: 100%;
  height: 30px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--color-borde);
  font-size: 0.95rem;
  background: #fff;
}

.express-field.small input {
  text-align: center;
  font-weight: 500;
}

/* Hover sutil */
.express-field input:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(106,71,47,0.12);
  outline: none;
}

/* Responsive */
@media (max-width: 768px){
  .express-medidas-row {
    grid-template-columns: 1fr;
  }
}

.cot-observaciones-block {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width:98%;
}

.cot-observaciones-block textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  resize: vertical;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
}

.cot-observaciones-block textarea:focus {
  border-color: #6a472f;
  box-shadow: 0 0 0 2px rgba(106,71,47,0.1);
  outline: none;
}


/* =========================
   STEP 8 – Acciones secundarias
========================= */

.secondary-actions{
    margin-top:30px;
    display:flex;
    gap:30px;
    flex-wrap:wrap;
}

.secondary-link{
    font-size:14px;
    color:#6a472f;
    text-decoration:none;
    position:relative;
    font-weight:500;
    transition:all .2s ease;
}

.secondary-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-4px;
    width:0;
    height:1px;
    background:#6a472f;
    transition:width .3s ease;
}

.secondary-link:hover{
    color:#4e3322;
}

.secondary-link:hover::after{
    width:100%;
}
