/* AndreaWeb / MA · Fase 6: un único personalizador fotográfico */
:root { --studio-bg:#f0eee8; --studio-card:#fffdf9; --studio-border:#dedfd7; --studio-muted:#697468; }
.header-actions{display:flex;align-items:center;gap:10px}
.theme-toggle{border:1px solid #d9d8d0;border-radius:8px;display:flex;align-items:center;gap:7px;padding:10px 12px;background:transparent;color:var(--ink);font-size:11px;font-weight:700;white-space:nowrap}
.theme-symbol{font-size:17px;line-height:1}
.studio-section{background:var(--studio-bg);scroll-margin-top:12px}
.catalog-section{scroll-margin-top:12px}
.studio-layout{display:grid;grid-template-columns:minmax(0,1.23fr) minmax(340px,.77fr);align-items:start;gap:22px}
.studio-left{min-width:0;display:flex;flex-direction:column;gap:20px}
.studio-viewer{background:var(--studio-card);border:1px solid var(--studio-border);border-radius:15px;overflow:hidden}
.studio-viewer-top{padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;color:var(--studio-muted)}
.studio-viewer-top>span:last-child{max-width:50%;font-weight:700;text-align:right;overflow-wrap:anywhere}
.studio-chip{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:1px;font-weight:800;color:#6c7966}
.studio-picture{min-height:360px;background:#fff;position:relative;display:grid;place-items:center;overflow:hidden}
.studio-picture canvas,.studio-picture img{display:block;width:100%;height:auto;max-height:660px;object-fit:contain}
.studio-picture [hidden],.studio-viewer [hidden]{display:none!important}
.studio-placeholder{padding:52px 27px;min-height:350px;width:100%;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at center,#f0f2ea 0 23%,#f7f7f1 65%,#fff 100%);color:#647260}
.studio-placeholder-icon{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;background:#e2e8db;font-size:31px;margin-bottom:6px}
.studio-placeholder strong{color:#334236;font-family:Manrope,Arial,sans-serif;font-size:20px}
.studio-placeholder span{max-width:350px;font-size:12px;line-height:1.75}
.studio-loading{position:absolute;bottom:15px;left:15px;right:15px;z-index:2;background:#263a2ad9;color:#fff;border-radius:7px;font-size:12px;padding:12px;text-align:center}
.studio-photo-note{padding:14px 18px;color:var(--studio-muted);line-height:1.7;font-size:11px;margin:0}
.studio-controls{background:var(--studio-card);border:1px solid var(--studio-border);padding:23px;border-radius:15px;min-width:0}
.studio-control-intro h3{font-size:25px;letter-spacing:-.9px;margin:9px 0 7px}
.studio-control-intro p{color:var(--studio-muted);font-size:12px;line-height:1.7;margin:0 0 20px}
.studio-select-wrap{margin:0 0 20px}
.studio-select-wrap label{display:block;font-size:11px;font-weight:800;margin:0 0 9px}
.studio-select-wrap select{width:100%;padding:13px 12px;font-size:13px;color:var(--ink);background:var(--studio-card);border:1px solid var(--studio-border);border-radius:8px}
.studio-pending{padding:12px 14px;background:#f5f1e6;border-left:3px solid #c6a780;border-radius:6px;font-size:11px;color:#786e5f;line-height:1.7;margin-bottom:10px}
.studio-pending[hidden]{display:none}
.producto-selector{border-top:1px solid var(--studio-border);padding:19px 0}
.producto-selector-label{display:flex;justify-content:space-between;align-items:start;gap:10px}
.producto-selector-label strong{font-size:12px;color:var(--ink)}
.producto-selector-label span{font-size:11px;font-weight:800;color:#647e67;text-align:right;max-width:135px}
.producto-selector p{font-size:11px;line-height:1.65;color:var(--studio-muted);margin:7px 0 13px}
.producto-swatch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.producto-swatch{background:var(--studio-card);border:1px solid var(--studio-border);color:var(--studio-muted);min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:9px 4px;border-radius:8px;min-height:69px}
.producto-swatch[aria-pressed="true"]{border-color:#6c8d6e;box-shadow:inset 0 0 0 1px #6c8d6e;background:#edf3e9;color:#253629}
.producto-swatch:disabled{opacity:.4;cursor:not-allowed}
.producto-swatch-dot{width:26px;height:26px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #c7cfc7}
.producto-swatch-text{font-size:10px;line-height:1.25;text-align:center;overflow-wrap:anywhere}
.studio-config-footer{padding-top:15px;border-top:1px solid var(--studio-border)}
.studio-config-footer p{font-size:11px;line-height:1.7;color:var(--studio-muted);margin:0 0 16px}
.studio-config-footer .button[disabled]{opacity:.5;cursor:not-allowed}
.producto-restore{background:transparent;border:0;padding:11px;font-size:11px;color:#6c806c;display:block;margin:11px auto 0}
.producto-restore:disabled{opacity:.4;cursor:not-allowed}
.studio-leg-section{background:var(--studio-card);border:1px solid var(--studio-border);padding:24px;border-radius:15px}
.studio-leg-heading h3{font-size:24px;letter-spacing:-1px;margin:10px 0 7px}
.studio-leg-heading p{color:var(--studio-muted);font-size:12px;line-height:1.65;margin:0 0 18px}
.producto-patas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.producto-pata-card{border:1px solid var(--studio-border);background:var(--studio-card);color:var(--ink);border-radius:10px;text-align:left;display:flex;flex-direction:column;gap:7px;padding:11px;min-width:0}
.producto-pata-card[aria-pressed="true"]{box-shadow:0 0 0 2px #66866d}
.producto-pata-card:disabled{opacity:.72;cursor:not-allowed}
.producto-pata-image{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;border-radius:7px;height:113px;background:#f1f2ec;color:#808b7a;overflow:hidden}
.producto-pata-image>span{font-size:32px}
.producto-pata-image img{height:100%;width:100%;object-fit:contain}
.producto-pata-card strong{font-size:12px;line-height:1.4}
.producto-pata-card small{color:var(--studio-muted);font-size:10px;line-height:1.5}
.studio-muted{color:var(--studio-muted);font-size:12px;line-height:1.65;grid-column:1/-1}
/* Tema oscuro. Fondo de la foto permanece blanco para apreciar las telas y los bordes. */
:root[data-theme="dark"]{
  --ink:#e7ece5;--ink-soft:#c0c8bf;--cream:#19221d;--paper:#202c24;--sand:#26352b;--sage:#26372d;--line:#3b4a40;
  --studio-bg:#151f19;--studio-card:#243128;--studio-border:#405346;--studio-muted:#adbbad;
  background:#18231c;color:var(--ink);
}
[data-theme="dark"] body{background:#19221d;color:var(--ink)}
[data-theme="dark"] .site-header{background:#19221d;border-bottom-color:#334439}
[data-theme="dark"] .brand-icon,[data-theme="dark"] .button-dark,[data-theme="dark"] .header-cta{background:#e5ecdf;color:#1c2b21}
[data-theme="dark"] .hero{background:#19221d}
[data-theme="dark"] .hero-copy>p,[data-theme="dark"] .hero-bottom{color:#bfcbbe}
[data-theme="dark"] .hero-visual{background:linear-gradient(135deg,#2b392e,#364536)}
[data-theme="dark"] .hero-caption-top,[data-theme="dark"] .hero-color-flag{color:#29352b}
[data-theme="dark"] .button-light,[data-theme="dark"] .theme-toggle{border-color:#566457;color:#e7ece5;background:#27372c}
[data-theme="dark"] .ribbon{background:#101a14;color:#e7ece5}
[data-theme="dark"] .catalog-section,[data-theme="dark"] .how-section{background:#202b24}
[data-theme="dark"] .section-heading>p,[data-theme="dark"] .catalog-disclaimer{color:#b5c0b1}
[data-theme="dark"] .filter-chip{border-color:#526357;color:#dfecdf}
[data-theme="dark"] .filter-chip.active{background:#e6ece2;color:#1c2b22}
[data-theme="dark"] .product-card{background:#2b392f;border-color:#405246}
[data-theme="dark"] .product-detail h3,[data-theme="dark"] .product-detail>p{color:#e1e9de}
[data-theme="dark"] .product-img{background:#314036}
[data-theme="dark"] .product-action .open-details{color:#d2e6d2}
[data-theme="dark"] .product-action .select-model{background:#e8eee5;color:#17251b}
[data-theme="dark"] .step{background:#2b3b30}
[data-theme="dark"] .step h3{color:#f1f4ed}
[data-theme="dark"] .step p{color:#becbbb}
[data-theme="dark"] .footer{background:#142017}
[data-theme="dark"] .detail-dialog,[data-theme="dark"] .summary-dialog{background:#26352b;color:#e7ece5}
[data-theme="dark"] .detail-head,[data-theme="dark"] .detail-category{color:#d5b292}
[data-theme="dark"] .detail-main-picture{background:#f0f0ec}
[data-theme="dark"] .detail-info h2,[data-theme="dark"] .detail-info h3,[data-theme="dark"] .detail-properties dd{color:#e4eee2}
[data-theme="dark"] .detail-description,[data-theme="dark"] .detail-observations,[data-theme="dark"] .detail-picture-note,[data-theme="dark"] .detail-properties dt{color:#bacbb9}
[data-theme="dark"] .detail-properties,[data-theme="dark"] .detail-properties dt,[data-theme="dark"] .detail-properties dd{border-color:#405346}
[data-theme="dark"] .detail-measures,[data-theme="dark"] .detail-disclaimer{background:#324237;color:#c5d4c4}
[data-theme="dark"] .detail-thumb{background:#2e4034;border-color:#526558}
[data-theme="dark"] .detail-thumb[aria-pressed="true"]{border-color:#b5c9ad}
[data-theme="dark"] .dialog-close{background:#42574a;color:#f1f5ef}
[data-theme="dark"] .dialog-desc,[data-theme="dark"] .dialog-footnote{color:#b4c2b4}
[data-theme="dark"] .summary-line,[data-theme="dark"] .summary-fields{border-color:#475848}
[data-theme="dark"] .summary-line span,[data-theme="dark"] .summary-line strong{color:#e5ece4}
[data-theme="dark"] .message-box{background:#344637;color:#e9f0e7}
[data-theme="dark"] .studio-placeholder{background:radial-gradient(circle at center,#dce6da 0 23%,#f3f5ef 70%,#fff 100%)}
[data-theme="dark"] .studio-pending{background:#3c3b2d;color:#e1d0af;border-left-color:#ad9776}
[data-theme="dark"] .producto-swatch[aria-pressed="true"]{background:#405746;color:#f3f7f0}
[data-theme="dark"] .producto-pata-image{background:#e4e8e0;color:#596657}
@media(max-width:1000px){.studio-layout{grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr)}.studio-controls{padding:17px}.producto-swatch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.studio-layout{grid-template-columns:1fr}.studio-section{padding:68px 0}.studio-picture{min-height:250px}.studio-placeholder{min-height:260px}.studio-controls{padding:20px}.producto-swatch-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.producto-patas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-caption{display:none}.theme-toggle{padding:9px 11px}.header-actions{gap:6px}.studio-viewer-top{align-items:start}}
@media(max-width:390px){.studio-viewer-top{font-size:9px}.studio-chip{letter-spacing:0;font-size:8px}.producto-swatch-text{font-size:9px}.producto-patas-grid{gap:8px}.studio-controls{padding:14px}}
/* Complemento PDF: pega estas reglas AL FINAL de producto.css */
.pdf-observaciones-label{
  display:block; margin:16px 0 8px; font-size:12px;
  font-weight:800; color:var(--ink);
}
#pdf-observaciones{
  width:100%; min-height:118px; box-sizing:border-box;
  padding:13px 14px; resize:vertical; border-radius:9px;
  border:1px solid var(--studio-border);
  background:var(--studio-card); color:var(--ink);
  font:inherit; font-size:13px; line-height:1.6;
}
#pdf-observaciones:focus-visible{
  outline:2px solid #75997c; outline-offset:2px;
}
#pdf-download{margin:14px 0 10px;}
#pdf-download:disabled{opacity:.65;cursor:wait;}