/* cotizacion.css — lista de cotización multi-producto (autónoma: funciona en el
   inicio y en la ficha de producto, con o sin home.css). */
.cot-fab{position:fixed; left:20px; bottom:20px; z-index:140; display:flex; align-items:center; gap:8px; padding:12px 18px; border:0; border-radius:40px; background:#25292E; color:#fff; font:600 14px 'IBM Plex Sans', system-ui, sans-serif; cursor:pointer; box-shadow:0 10px 24px rgba(0,0,0,0.25); transition:background .2s, transform .2s;}
.cot-fab[hidden], .cot-drawer [hidden], .cot-backdrop[hidden]{display:none !important;}
.cot-fab:hover{background:#E3141B; transform:translateY(-2px);}
.cot-fab b{min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:#E3141B; display:inline-flex; align-items:center; justify-content:center; font-size:12px;}
.cot-fab:hover b{background:#fff; color:#E3141B;}

.cot-backdrop{position:fixed; inset:0; z-index:200; background:rgba(20,23,26,0.5);}
.cot-drawer{position:fixed; top:0; right:0; bottom:0; z-index:201; width:min(460px, 100vw); background:#fff; display:flex; flex-direction:column; transform:translateX(105%); transition:transform .3s ease; box-shadow:-20px 0 50px rgba(0,0,0,0.2); font-family:'IBM Plex Sans', system-ui, sans-serif; color:#1C2126;}
.cot-drawer.open{transform:none;}
body.cot-abierta{overflow:hidden;}
.cot-head{display:flex; justify-content:space-between; align-items:center; padding:18px 22px; border-bottom:1px solid #E4E2DC;}
.cot-head h3{margin:0; font-family:'Russo One', 'Saira Semi Condensed', sans-serif; font-weight:400; font-size:20px; text-transform:none; letter-spacing:0;}
.cot-head small{color:#5B636A; font-size:12px;}
.cot-close{background:none; border:0; font-size:20px; cursor:pointer; color:#5B636A; padding:6px;}
.cot-body{flex:1; overflow-y:auto; padding:6px 22px 24px;}

.cot-item{display:grid; grid-template-columns:1fr auto; gap:6px 12px; padding:14px 0; border-bottom:1px solid #EEECE7;}
.cot-item-info{grid-column:1/-1; display:flex; flex-direction:column; gap:2px;}
.cot-item-info b{font-size:14px;}
.cot-item-info span{font-size:12.5px; color:#5B636A;}
.cot-item-info code{font-size:11px; color:#8A9198;}
.cot-item-qty{display:flex; align-items:center; border:1px solid #DAD7CF; border-radius:6px; overflow:hidden; align-self:center; width:max-content;}
.cot-item-qty button{width:32px; height:32px; border:0; background:#F4F3EF; font-size:16px; cursor:pointer;}
.cot-item-qty input{width:56px; height:32px; border:0; text-align:center; font:600 14px 'IBM Plex Sans', sans-serif; -moz-appearance:textfield;}
.cot-item-qty input::-webkit-inner-spin-button{-webkit-appearance:none;}
.cot-item-price{text-align:right; display:flex; flex-direction:column; align-items:flex-end;}
.cot-item-price small{font-size:11.5px; color:#5B636A;}
.cot-item-price b{font-size:15px;}
.cot-link{background:none; border:0; padding:2px 0; color:#E3141B; font-size:12px; text-decoration:underline; cursor:pointer;}
.cot-empty{padding:40px 10px; text-align:center; display:flex; flex-direction:column; gap:6px; color:#5B636A;}
.cot-empty b{color:#1C2126; font-size:16px;}

.cot-totals{margin:14px 0 6px; padding:12px 14px; background:#F6F5F2; border-radius:8px;}
.cot-row{display:flex; justify-content:space-between; gap:12px; padding:4px 0; font-size:13.5px;}
.cot-row em{font-style:normal; color:#8A9198; font-size:12.5px;}
.cot-sub b{font-size:16px;}
.cot-total{border-top:1px solid #DAD7CF; margin-top:6px; padding-top:8px; font-weight:600;}

.cot-form h4{margin:18px 0 10px; font-size:14px;}
.cot-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.cot-form label{display:flex; flex-direction:column; gap:4px; font-size:12px; color:#5B636A;}
.cot-form > label{margin-top:10px;}
.cot-form input, .cot-form textarea{padding:9px 10px; border:1px solid #DAD7CF; border-radius:6px; font:14px 'IBM Plex Sans', sans-serif; color:#1C2126; background:#fff;}
.cot-form input:focus, .cot-form textarea:focus{outline:none; border-color:#E3141B;}
.cot-form .cot-error{border-color:#E3141B; background:#FFF5F5;}
.cot-legal{font-size:12px; color:#5B636A; margin:12px 0; line-height:1.5;}
.cot-actions{display:grid; grid-template-columns:1.4fr 1fr; gap:8px;}
.cot-btn{padding:13px 14px; border-radius:6px; border:1.5px solid #25292E; background:#fff; color:#25292E; font:600 14px 'IBM Plex Sans', sans-serif; cursor:pointer;}
.cot-primary{background:#E3141B; border-color:#E3141B; color:#fff;}
.cot-primary:hover{background:#B80F15;}
.cot-form > .cot-link{display:block; margin:12px auto 0;}

.cot-toast{position:fixed; left:50%; bottom:24px; transform:translate(-50%, 140%); z-index:210; background:#25292E; color:#fff; padding:12px 18px; border-radius:30px; font:14px 'IBM Plex Sans', sans-serif; box-shadow:0 10px 30px rgba(0,0,0,0.25); transition:transform .3s, opacity .3s; max-width:calc(100vw - 32px); opacity:0; pointer-events:none;}
.cot-toast.show{transform:translate(-50%, 0); opacity:1; pointer-events:auto;}
.cot-toast .cot-link{color:#FF8A8E; margin-left:8px; font-size:13px;}

/* Botones "+ Cotizar" en tarjetas y ficha */
.cot-add-row{display:grid; grid-template-columns:1fr auto; gap:6px;}
.product-card .cot-add-row .cotizar{margin:0;}
.cot-add{padding:10px 14px; border:1.5px solid #E3141B; border-radius:var(--radius, 4px); background:#fff; color:#E3141B; font:600 13px 'IBM Plex Sans', sans-serif; cursor:pointer; white-space:nowrap; transition:background .2s, color .2s;}
.cot-add:hover{background:#E3141B; color:#fff;}
.cot-ficha{display:flex; gap:8px; align-items:center; margin:18px 0 6px; flex-wrap:wrap;}
.cot-ficha label{font-size:12px; color:#5B636A; display:flex; flex-direction:column; gap:3px;}
.cot-ficha input{width:90px; padding:10px; border:1px solid #DAD7CF; border-radius:6px; font:600 14px 'IBM Plex Sans', sans-serif;}
.cot-ficha .cot-add{padding:12px 18px; font-size:14px; align-self:flex-end;}

@media (max-width: 640px){
  .cot-fab{left:12px; bottom:74px; padding:11px 14px; font-size:13px;}
  .cot-grid{grid-template-columns:1fr;}
  .cot-toast{bottom:80px;}
}
.cot-nota{margin:8px 0 0; font-size:11.5px; color:#5B636A; line-height:1.45;}
.cot-plano input[type=file]{padding:7px; font-size:12.5px; background:#F6F5F2;}
.cot-plano small{font-size:11.5px; color:#8A9198;}
.cot-grupo{font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#5B636A; margin-bottom:4px;}

/* Pedido enviado: confirmación */
.cot-ok{text-align:center; padding:18px 6px 8px; display:flex; flex-direction:column; gap:10px; align-items:stretch;}
.cot-ok-ico{width:56px; height:56px; margin:0 auto; border-radius:50%; background:#E8F6EC; color:#1E8E3E; font-size:28px; font-weight:700; display:flex; align-items:center; justify-content:center;}
.cot-ok h4{margin:0; font-size:20px;}
.cot-ok p{margin:0; font-size:13.5px; color:#5B636A;}
.cot-ok ol{text-align:left; margin:6px 0 4px; padding-left:20px; font-size:13.5px; line-height:1.5; color:#1C2126;}
.cot-ok ol li{margin-bottom:6px;}
.cot-ok .cot-btn{text-align:center; text-decoration:none;}
.cot-ok .cot-wa{background:#25D366; border-color:#25D366;}
.cot-ok .cot-wa:hover{background:#1EBE5A;}
.cot-form h4 small{font-weight:400; font-size:11.5px; color:#8A9198;}
/* En páginas con barra inferior en el celular, el pedido se abre desde esa barra */
@media (max-width: 640px){ body.con-barra-celular .cot-fab{display:none !important;} }

/* ---------- Comprar fácil: buscador, pasos y tarjetas ---------- */
.cat-buscar{margin-bottom:12px;}
.cat-buscar input{width:100%; box-sizing:border-box; padding:13px 14px 13px 40px; border:1.5px solid #DAD7CF; border-radius:8px; font:15px 'IBM Plex Sans', system-ui, sans-serif; color:#1C2126;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235B636A' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 13px center;}
.cat-buscar input:focus{outline:none; border-color:#E3141B;}
.price .price-iva{font-size:12px; font-weight:500; color:#5B636A;}
.como-pedir{list-style:none; display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin:0 0 22px; padding:0;}
.como-pedir li{display:flex; gap:10px; align-items:flex-start; padding:12px 14px; background:#F6F5F2; border-radius:8px; font:13.5px/1.4 'IBM Plex Sans', system-ui, sans-serif; color:#1C2126;}
.como-pedir b{flex:0 0 26px; height:26px; border-radius:50%; background:#E3141B; color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px;}
.como-pedir em{font-style:normal; font-weight:600; color:#E3141B;}
.cot-add{font-weight:700;}

@media (max-width: 640px){
  .como-pedir{grid-template-columns:1fr; gap:6px;}
  .como-pedir li{padding:9px 12px;}
  /* Tarjeta compacta en el celular: foto a la izquierda, datos y botones a la derecha */
  .product-grid .product-card{display:grid; grid-template-columns:112px 1fr; align-items:stretch;}
  .product-grid .product-card .photo-frame{aspect-ratio:auto; height:100%; min-height:132px;}
  .product-grid .product-card .badge-forma{font-size:9px; padding:3px 6px;}
  .product-grid .product-card .body{padding:10px 12px; gap:6px;}
  .product-grid .product-card h4{font-size:13.5px; line-height:1.3;}
  .product-grid .product-card .specs{font-size:11px; line-height:1.5;}
  .product-grid .product-card .price{font-size:17px;}
  .product-grid .product-card .cot-add-row{grid-template-columns:auto 1fr; gap:6px;}
  .product-grid .product-card .cot-add-row .cotizar{padding:9px 10px; font-size:12px;}
  .product-grid .product-card .cot-add{padding:9px 10px;}
}
.detail-price .price-iva{font-size:14px; font-weight:500; color:#5B636A;}
.cot-ficha-top{margin:12px 0 4px;}
.cot-add-main{flex:1; background:#E3141B; color:#fff; border-color:#E3141B; font-size:15px; padding:13px 18px;}
.cot-add-main:hover{background:#B80F15; border-color:#B80F15;}
.cot-ficha-nota{font-size:12.5px; color:#5B636A; margin:4px 0 14px;}

/* Bitácora 23: "(X con impuestos *)" debajo del precio sin impuestos, con desglose al tocar */
.con-imp{margin:4px 0 10px; font-size:14px; color:#5B636A;}
.con-imp summary{cursor:pointer; list-style:none; display:inline;}
.con-imp summary::-webkit-details-marker{display:none;}
.con-imp summary:hover{color:#1F2428;}
.con-imp .ast{color:#C8102E; font-weight:700; text-decoration:underline dotted; padding:0 2px;}
.con-imp .desglose{margin-top:8px; padding:10px 12px; border:1px solid #E2E5E8; border-radius:8px; background:#F7F8F9; max-width:340px; color:#1F2428;}
.con-imp .desglose div{display:flex; justify-content:space-between; gap:16px; padding:2px 0;}
.con-imp .desglose .tot{border-top:1px solid #D5D9DD; margin-top:4px; padding-top:6px; font-weight:700;}
.con-imp .desglose small{display:block; margin-top:6px; color:#5B636A; font-size:12px;}

/* Ficha: "Otras opciones" con lo que distingue a cada variante (material, agujeros, protección) */
.sibling-card .dif{font-size:11px; color:#5B636A; line-height:1.35;}
.siblings-mas{margin-top:12px; font-size:14px;}
.siblings-mas a{color:#C8102E; font-weight:600;}
