/* EasyWelding — estilos comunes a todas las pantallas */

/* Fuentes incluidas en la app (Oswald e IBM Plex Sans, licencia SIL OFL: ver fonts/).
   Sin conexión se ven igual y no se envía nada a Google. */
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/oswald-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #151310;
  --surface: #1f1c17;
  --surface2: #262219;
  --border: rgba(244,193,26,0.16);
  --accent: #f4c11a;
  --accent2: #c9750f;
  --text: #f4f1ea;
  --muted: #8a8378;
  --green: #30d158;
  --red: #ff453a;
  --blue: #0a84ff;
  --radius: 4px;
  --radius-sm: 4px;
}
[data-theme="light"] {
  --bg: #faf7f1; --surface: #ffffff; --surface2: #f0ece3;
  --border: rgba(20,15,5,0.12); --text: #1c1712; --muted: #6b6558;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
/* Header */
.header {
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 20px 16px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 0.5px solid var(--border);
}
.logo-mark {
  width: 32px; height: 32px;
  background: #111111; padding: 3px; overflow: hidden;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--bg);
  letter-spacing: -0.5px; font-family: 'Oswald', sans-serif;
}
.brand { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.header h1 span { color: var(--accent); }
/* Sections */
.section { display: none; padding: 0 20px; }
.section.active { display: block; }
/* Form */
.form-group { margin-bottom: 16px; }
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}
.option-btn .icon { font-size: 20px; display: block; margin-bottom: 4px; }
.option-btn.selected {
  background: rgba(244,193,26,0.1);
  border-color: var(--accent);
  color: var(--text);
  position: relative;
}
.option-btn.selected::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 14px; height: 14px;
  background: var(--accent-fill);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0%, 38% 70%);
}
/* Material buttons with images */
.option-btn.mat-btn {
  padding: 0;
  overflow: hidden;
  position: relative;
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
}
.option-btn.mat-btn img {
  width: 100%;
  height: 70px;
  object-fit: contain;
  background: var(--surface2);
  display: block;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.option-btn.mat-btn .mat-label {
  padding: 6px 6px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: transparent;
  line-height: 1.3;
  width: 100%;
}
.option-btn.mat-btn.selected img { opacity: 1; }
.option-btn.mat-btn.selected { border-color: var(--accent); border-width: 2px; }
.option-btn.mat-btn.selected .mat-label { color: var(--accent); }
.thickness-slider { width: 100%; margin: 8px 0 4px; accent-color: var(--accent); }
.thickness-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.thickness-val { font-size: 28px; font-weight: 700; color: var(--accent); }
.thickness-unit { font-size: 14px; color: var(--muted); }
.calc-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-fill);
  color: #111;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: -0.2px;
  transition: opacity 0.15s, transform 0.1s;
}
.calc-btn:active { transform: scale(0.98); opacity: 0.9; }
/* Results */
.results { margin-top: 20px; display: none; }
.results.visible { display: block; }
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.card-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--border);
  gap: 14px;
}
.card-row:last-child { border-bottom: none; }
.card-icon { font-size: 22px; width: 32px; text-align: center; flex-shrink: 0; }
.card-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.card-value { font-size: 15px; font-weight: 600; color: var(--text); }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-amber { background: rgba(245,166,35,0.15); color: var(--accent); }
.badge-green { background: rgba(48,209,88,0.15); color: var(--green); }
.badge-blue { background: rgba(10,132,255,0.15); color: var(--blue); }
.badge-red { background: rgba(255,69,58,0.15); color: var(--red); }
.tip-card {
  background: rgba(245,166,35,0.07);
  border: 0.5px solid rgba(245,166,35,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.tip-card .tip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.tip-card p { font-size: 14px; color: var(--text); line-height: 1.6; }
.warn-card {
  background: rgba(255,69,58,0.07);
  border: 0.5px solid rgba(255,69,58,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.warn-card .warn-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.warn-card p { font-size: 14px; color: var(--text); line-height: 1.6; }
/* Referencia tab */
.ref-item {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.ref-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ref-item p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.conserv-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.conserv-tip strong { color: var(--text); }
.din-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 13px;
}
.din-table th {
  text-align: left;
  padding: 8px 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 0.5px solid var(--border);
}
.din-table td {
  padding: 8px 6px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.din-table tr:last-child td { border-bottom: none; }
/* Acordeón FAQs */
.acordeon-btn {
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.acordeon-btn.open { border-color: var(--accent); border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 0; }
.acordeon-arrow { font-size: 16px; color: var(--muted); transition: transform 0.2s; }
.acordeon-btn.open .acordeon-arrow { transform: rotate(90deg); color: var(--accent); }
.acordeon-body {
  display: none;
  background: var(--surface);
  border: 0.5px solid var(--accent);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}
.acordeon-body.open { display: block; }
.pol-diagram-wrap {
  width: 100%;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: center;
}
.pol-diagram-wrap svg { width: 100%; max-width: 320px; height: auto; }
/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(28,28,30,0.92);
  backdrop-filter: blur(20px);
  border-top: 0.5px solid var(--border);
  display: flex;
  padding: 8px 0 20px;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 1px;
  cursor: pointer;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  transition: color 0.15s;
  text-align: center;
  line-height: 1.15;
}
.nav-item.active { color: var(--accent); }
/* Separador de sección */
.section-sep {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 20px 0 8px;
}
/* Iconos imagen en bottom nav */
.nav-icon-img {
  width: 24px; height: 24px;
  object-fit: contain;
  display: block;
}
.quiz-return-btn.visible { display: block; }
/* Scroll reveal */
.option-btn.pos-btn {
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  height: 130px !important;
  position: relative;
}
.option-btn.pos-btn img {
  width: 100% !important;
  height: 95px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: var(--surface2);
  display: block !important;
  opacity: 0.9;
}
.option-btn.pos-btn .pos-label {
  display: block !important;
  padding: 5px 4px !important;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  height: 35px;
  overflow: hidden;
}
.option-btn.pos-btn .pos-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.option-btn.pos-btn.selected img { opacity: 1; }
.option-btn.pos-btn.selected { border-color: var(--accent); border-width: 2px; }
/* Botones de tipo de junta con imagen */
.option-btn.junta-btn {
  padding: 0; overflow: hidden; display: flex;
  flex-direction: column; align-items: stretch; height: auto;
}
.option-btn.junta-btn.selected img { opacity: 1; }
.option-btn.junta-btn.selected { border-color: var(--accent); border-width: 2px; }
.option-btn.junta-btn.selected .junta-label { color: var(--accent); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.amp-franja { width: 100%; margin-top: 4px; }
.amp-franja-bar { position: relative; height: 30px; display: flex; border-radius: 3px; overflow: hidden; }
.amp-franja-bar > div { display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.amp-z-bajo { background: rgba(10,132,255,0.14); color: var(--muted); }
.amp-z-ok { background: var(--accent-fill); color: #151310; }
.amp-z-alto { background: rgba(255,69,58,0.16); color: var(--muted); }
.amp-franja-ticks { position: relative; height: 18px; margin-top: 3px; }
.amp-franja-ticks span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.amp-franja-ticks span.fuerte { color: var(--text); font-weight: 700; }
.amp-franja-ticks i { position: absolute; top: -3px; width: 1px; height: 4px; background: var(--muted); opacity: .5; }
.amp-franja-leyenda { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.defecto-img { width: 100%; display: block; border-radius: var(--radius-sm); margin-bottom: 10px; cursor: zoom-in; aspect-ratio: 16 / 7; object-fit: cover; }
.caja-ref { width: 100%; margin-top: 4px; }
.caja-ref summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.caja-ref summary::-webkit-details-marker { display: none; }
.caja-ref summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin-top: -3px; transition: transform .15s; }
.caja-ref[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.caja-txt { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 4px 0 10px; }
.caja-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.caja-grid figure { margin: 0; cursor: zoom-in; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.caja-grid img { width: 100%; display: block; background: #fff; }
.caja-grid figcaption { padding: 8px 10px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.caja-grid figcaption b { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.perfil-select-wrap { position: relative; }
.perfil-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 15px 44px 15px 16px; font: 600 15px 'IBM Plex Sans', sans-serif; cursor: pointer;
}
.perfil-select:focus { outline: none; border-color: var(--accent); }
.perfil-select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.perfil-nota { display: none; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.perfil-nota.visible { display: block; }
/* ═══ Modo taller ═══ */
.taller-btn { display:flex; align-items:center; gap:6px; background:rgba(245,166,35,0.13); border:none; border-radius:9px; padding:8px 12px; color:var(--accent); font-size:12px; font-weight:700; font-family:inherit; cursor:pointer; }
.results-head { display:flex; align-items:center; justify-content:space-between; padding:20px 0 8px; }
.results-head .section-sep { padding:0; }
.taller-overlay { position:fixed; inset:0; background:#000; z-index:900; display:none; flex-direction:column; padding:calc(env(safe-area-inset-top,0px) + 14px) 22px calc(env(safe-area-inset-bottom,0px) + 18px); overflow-y:auto; }
.taller-overlay.open { display:flex; }
.taller-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:auto; }
.taller-ctx { font-size:13px; color:var(--muted); line-height:1.3; }
.taller-close { width:38px; height:38px; flex-shrink:0; border:none; border-radius:11px; background:var(--surface); color:var(--accent); font-size:19px; cursor:pointer; font-family:inherit; }
.taller-body { display:flex; flex-direction:column; gap:14px; margin:auto 0; padding:18px 0; }
.taller-lab { font-size:14px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:4px; }
.taller-block { border-bottom:1px solid rgba(255,255,255,0.1); padding-bottom:18px; }
.taller-big { font-size:54px; font-weight:700; letter-spacing:-2px; line-height:1.05; color:#fff; word-break:break-word; }
.taller-mid { font-size:25px; font-weight:600; color:var(--accent); margin-top:6px; }
.taller-amp { font-size:66px; font-weight:700; letter-spacing:-2.5px; line-height:1; color:var(--accent); }
.taller-note { font-size:15px; color:var(--muted); margin-top:8px; line-height:1.45; }
.taller-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.taller-box { background:#141416; border:1px solid rgba(255,255,255,0.1); border-radius:16px; padding:16px 18px; }
.taller-box .taller-lab { font-size:13px; letter-spacing:0.08em; }
.taller-val { font-size:30px; font-weight:700; letter-spacing:-1px; line-height:1.1; color:#fff; word-break:break-word; }
/* ═══ Aviso de seguridad ═══ */
.aviso-overlay { position:fixed; inset:0; background:var(--bg); z-index:1100; display:none; overflow-y:auto; }
.aviso-overlay.open { display:block; }
.aviso-inner { max-width:430px; margin:0 auto; min-height:100%; display:flex; flex-direction:column; padding:calc(env(safe-area-inset-top,0px) + 34px) 26px calc(env(safe-area-inset-bottom,0px) + 26px); }
.aviso-h { font-size:29px; font-weight:700; letter-spacing:-0.7px; line-height:1.2; margin-bottom:12px; }
.aviso-p { font-size:15.5px; line-height:1.6; color:var(--muted); margin-bottom:20px; }
.aviso-list { display:flex; flex-direction:column; gap:12px; }
.aviso-item { display:flex; gap:13px; align-items:flex-start; background:var(--surface); border:0.5px solid var(--border); border-radius:13px; padding:13px 15px; }
.aviso-item svg { flex-shrink:0; margin-top:1px; }
.aviso-item p { font-size:14px; line-height:1.55; color:var(--text); }
.aviso-check { display:flex; gap:11px; align-items:center; margin:auto 0 16px; padding-top:24px; font-size:13.5px; color:var(--muted); cursor:pointer; }
.aviso-check input { width:22px; height:22px; accent-color:var(--accent); flex-shrink:0; }
#aviso-btn:disabled { opacity:0.35; cursor:default; }
/* ═══ Tipo de acero inoxidable ═══ */
.inox-wrap { display: none; }
.inox-wrap.visible { display: block; }
.inox-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inox-chip { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); font-family: inherit; cursor: pointer; min-height: 56px; }
.inox-chip b { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.inox-chip span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.inox-chip.selected { border-color: var(--accent); background: rgba(244,193,26,0.10); }
.inox-guia-link { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.inox-guia-img { width: 100%; display: block; border-radius: var(--radius-sm); margin-bottom: 10px; cursor: zoom-in; }

/* Aluminio: recomendaciones previas */
.alu-aviso { position: fixed; inset: 0; z-index: 1050; background: var(--bg); overflow-y: auto; display: none; }
.alu-aviso.open { display: block; }
.alu-inner { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(env(safe-area-inset-bottom, 0px) + 28px); display: flex; flex-direction: column; gap: 12px; }
.alu-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.alu-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 2px; }
.alu-h { font-family: 'Oswald', sans-serif; font-size: 27px; font-weight: 700; line-height: 1.15; margin: 0; }
.alu-x { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 17px; cursor: pointer; }
.alu-prov { font-size: 11px; font-weight: 600; color: var(--accent); margin: -4px 0 0; }
.alu-card { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; }
.alu-n { font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1; width: 22px; flex-shrink: 0; }
.alu-c { flex: 1; min-width: 0; }
.alu-c h3 { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.alu-c p, .alu-c li { font-size: 13.5px; line-height: 1.55; color: var(--text); margin: 0 0 8px; text-wrap: pretty; }
.alu-c ol, .alu-c ul { margin: 0 0 8px; padding-left: 18px; }
.alu-tung { display: flex; align-items: flex-start; gap: 0; font-size: 13.5px; line-height: 1.5; margin: 0 0 7px; }
.alu-tung .tung-dot { margin-top: 4px; }
.alu-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-right: 4px; }
.alu-tag-ep { background: rgba(10,132,255,.2); color: #4aa3ff; }
.alu-tag-en { background: rgba(244,193,26,.2); color: var(--accent); }
.alu-graf { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 10px 8px; margin: 6px 0 10px; }
.alu-graf svg { display: block; height: 110px; }
.alu-graf-arco svg { height: auto; }
.alu-ley { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.alu-ley i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.alu-sl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin: 4px 0 2px; }
.alu-sl b { color: var(--text); }
.alu-sl input { width: 100%; accent-color: var(--accent); }
.alu-res { font-size: 13px !important; color: var(--accent) !important; font-weight: 600; min-height: 2.6em; }
.alu-pronto { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.tung-dot { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:10px; vertical-align:-1px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); flex-shrink:0; }

.alu-bola { display: flex; align-items: center; gap: 14px; }
.alu-bola svg { height: auto; flex-shrink: 0; }
.alu-bola-ley { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.alu-bola-ley span:last-child { font-size: 14px; font-weight: 600; color: var(--text); }

/* Tabla de aportes de aluminio */
.alu-aportes { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; }
.alu-ap { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.alu-ap-rec { border-color: var(--accent); }
.alu-ap-top { display: flex; align-items: center; gap: 10px; }
.alu-ap-top img { width: 52px; height: 26px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.alu-ap-top > div { flex: 1; min-width: 0; }
.alu-ap-code { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.alu-ap-iso { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.alu-ap-badge { font-size: 10.5px; font-weight: 700; color: #151310; background: var(--accent-fill); border-radius: 3px; padding: 2px 6px; flex-shrink: 0; }
.alu-ap-uso { font-size: 13px !important; line-height: 1.5; color: var(--text); margin: 8px 0 0 !important; }
.alu-ap-nota { font-size: 12.5px !important; color: var(--muted) !important; line-height: 1.5; margin: 4px 0 0 !important; }
.alu-ap-prov { font-size: 11px !important; font-weight: 600; color: var(--accent) !important; margin: 0 !important; }

/* Miniguía: lo necesario para empezar */
.kit-intro { font-size: 14px; color: var(--muted); line-height: 1.5; margin: -2px 0 0; }
.kit-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kit-tab { padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: 600 14px 'IBM Plex Sans', sans-serif; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.kit-tab.on { border-color: var(--accent); color: var(--accent); }
.kit-tab:disabled { opacity: .45; cursor: default; }
.kit-tab small { font-size: 10px; font-weight: 500; color: var(--muted); }
.kit-prog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.kit-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.kit-bar i { display: block; height: 100%; background: var(--accent-fill); }
.kit-g { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 6px; }
.kit-g h3 { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.kit-it { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 0.5px solid var(--border); cursor: pointer; }
.kit-it:first-of-type { border-top: none; padding-top: 2px; }
.kit-it input { position: absolute; opacity: 0; pointer-events: none; }
.kit-chk { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; border: 1.5px solid var(--muted); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.kit-chk svg { opacity: 0; }
.kit-it.ok .kit-chk { background: var(--accent-fill); border-color: var(--accent); }
.kit-it.ok .kit-chk svg { opacity: 1; }
.kit-it input:focus-visible + .kit-chk { outline: 2px solid var(--accent); outline-offset: 2px; }
.kit-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kit-nom { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.kit-rec { font-size: 10.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }
.kit-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.kit-it.ok .kit-nom { color: var(--muted); }

.kit-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; color: var(--text); font-family: inherit; cursor: pointer; }
.kit-cta b { display: block; font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 600; }
.kit-cta small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kit-cta-arr { color: var(--accent); font-size: 24px; line-height: 1; }

.kit-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(244,193,26,.14); border: 1px solid rgba(244,193,26,.45); color: var(--accent); font-size: 13.5px; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; }
.kit-link > span:first-of-type { flex: 1; }
.kit-link > span:last-child { font-size: 20px; line-height: 1; }
.kit-link:active { background: rgba(244,193,26,.24); }

[data-theme="light"] .kit-link { color: #6b4800; border-color: rgba(122,82,0,.45); background: rgba(244,193,26,.22); }
[data-theme="light"] .kit-cta { border-color: #b08200; }
[data-theme="light"] .kit-cta-arr, [data-theme="light"] .kit-tab.on { color: #6b4800; }
[data-theme="light"] .kit-tab.on { border-color: #b08200; }

.kit-img { width: 100%; display: block; border-radius: var(--radius-sm); margin-top: 8px; cursor: zoom-in; }
#img-viewer { z-index: 1200 !important; }

.kit-procs { display: flex; flex-direction: column; gap: 8px; }
.kit-proc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; cursor: pointer; }
.kit-proc img { width: 112px; align-self: stretch; object-fit: cover; flex-shrink: 0; min-height: 96px; }
.kit-proc-tx { flex: 1; min-width: 0; padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.kit-proc-tx b { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; }
.kit-proc-tx small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.kit-proc .kit-cta-arr { padding-right: 14px; }
.kit-proc.on { border-color: var(--accent); }
.kit-proc.on .kit-proc-tx b { color: var(--accent); }
[data-theme="light"] .kit-proc.on .kit-proc-tx b { color: #6b4800; }
.kit-sub { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 -4px; }
.kit-procs:has(.on) { flex-direction: row; }
.kit-procs:has(.on) .kit-proc { flex-direction: column; gap: 0; }
.kit-procs:has(.on) .kit-proc img { width: 100%; height: 58px; min-height: 0; }
.kit-procs:has(.on) .kit-proc-tx { padding: 7px 4px; align-items: center; text-align: center; }
.kit-procs:has(.on) .kit-proc-tx b { font-size: 14px; }

/* Guía de uso */
.guia-inner { min-height: 100%; }
.guia-saltar { background: none; border: none; color: var(--muted); font: 600 14px 'IBM Plex Sans', sans-serif; padding: 8px 4px; cursor: pointer; }
.guia-body { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: center; padding: 8px 0; }
.guia-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); display: block; }
.guia-procs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.guia-procs img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--radius-sm); }
.guia-niv { display: flex; flex-direction: column; gap: 6px; }
.guia-niv span { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px; font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 600; }
.guia-txt { font-size: 15px; line-height: 1.65; color: var(--text); margin: 0; text-wrap: pretty; }
.guia-dots { display: flex; justify-content: center; gap: 7px; }
.guia-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: none; background: var(--surface2); cursor: pointer; }
.guia-dots button.on { background: var(--accent-fill); width: 22px; border-radius: 4px; }
.guia-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.guia-prev { background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: 600 14px 'IBM Plex Sans', sans-serif; padding: 14px 14px; cursor: pointer; }
.guia-next { margin: 0 !important; }
.guia-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: 600 14px 'IBM Plex Sans', sans-serif; padding: 12px; cursor: pointer; }

.guia-logo { display: flex; justify-content: center; padding: 4px 0 6px; }
.guia-logo svg { width: 120px; height: 120px; background: #111111; border-radius: 26px; padding: 6px; }
.guia-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guia-list li { position: relative; padding-left: 20px; }
.guia-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--accent-fill); }

.kit-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.kit-imgc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kit-imgc .kit-img { margin-top: 0; width: 100%; }
.kit-imgc > span { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }

.guia-pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin: 0 auto; }
.guia-pasos figure { margin: 0; min-width: 0; }
.guia-pasos img, .guia-shot img { width: 100%; display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: zoom-in; }
.guia-pasos figcaption { font-size: 11.5px; color: var(--muted); margin-top: 5px; text-align: center; }
.guia-pasos figcaption b { color: var(--accent); margin-right: 3px; }
.guia-shot { max-width: 260px; margin: 0 auto; }

.guia-prev { white-space: nowrap; }

.kit-opc { background: transparent !important; border: 1px solid var(--border); color: var(--muted) !important; }

/* Lista de iconos del menú inferior (paso 9). Antes usaba la clase .guia-nav, la misma que los botones
   «Anterior / Siguiente», y los ponía uno encima de otro. */
.guia-menu { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.guia-menu .guia-nav-it { align-items: center; }
.guia-menu .guia-nav-it b { display: inline; margin-right: 4px; }
.guia-menu .guia-nav-it p { display: inline; }
/* Botones «Anterior / Siguiente» siempre visibles abajo, aunque el contenido sea largo */
.guia-inner > .guia-nav { position: sticky; bottom: 0; z-index: 2; background: var(--bg); padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 4px); margin-bottom: calc(-1 * (env(safe-area-inset-bottom, 0px) + 28px)); }
.guia-nav-it { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; }
.guia-nav-ic { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.guia-nav-ic img { width: 30px; height: 30px; object-fit: contain; }
.guia-nav-it b { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.guia-nav-it p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.ewt-anim { background: #0e0d0b; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 8px 10px; margin: 6px 0 10px; }
.ewt-anim svg { display: block; }
.ewt-btn { display: block; margin: 6px auto 0; background: none; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font: 600 12.5px "IBM Plex Sans", sans-serif; padding: 6px 16px; cursor: pointer; }

.inicio { border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--surface); }
.inicio-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.inicio-h b { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; color: var(--text); }
.inicio-h b span { color: var(--accent); margin-right: 4px; }
.inicio-prog { font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.inicio-sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.inicio-paso { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface2); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; color: var(--text); font: 600 14px "IBM Plex Sans", sans-serif; cursor: pointer; }
.inicio-paso small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.inicio-n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.inicio-paso.ok .inicio-n { background: var(--accent-fill); color: #151310; font-size: 0; }
.inicio-paso.ok .inicio-n::after { content: '✓'; font-size: 14px; font-weight: 700; }
.inicio-paso > span:last-child { margin-left: auto; color: var(--accent); font-size: 18px; }
.inicio .ewt-anim { margin: 4px 0 10px; }
.inicio.done { border-color: var(--border); }
.errores { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.errores h3 { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.errores > p { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.err-it { padding: 9px 0; border-top: 0.5px solid var(--border); font-size: 13.5px; line-height: 1.45; color: var(--text); }
.err-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.err-chip { background: none; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 3px 10px; font: 600 12px "IBM Plex Sans", sans-serif; cursor: pointer; }
.repaso { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); margin-top: 14px; }
.repaso summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.repaso summary::-webkit-details-marker { display: none; }
.repaso summary::after { content: '›'; color: var(--accent); font-size: 20px; transition: transform .15s; }
.repaso[open] summary::after { transform: rotate(90deg); }
.repaso-b { padding: 0 16px 16px; }
.repaso-b h4 { font-size: 14px; margin: 12px 0 8px; }
.err-cta { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 12px; background: var(--surface); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; color: var(--text); font: 600 15px "IBM Plex Sans", sans-serif; cursor: pointer; text-align: left; }
.err-cta small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.err-cta > span:last-child { color: var(--accent); font-size: 20px; }

.kit-imp { display: inline-block; vertical-align: 1px; margin-left: 6px; background: var(--accent-fill); color: #151310; font: 700 10px "IBM Plex Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.kit-link-tx { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.kit-link-tx small { font-weight: 400; font-size: 12px; opacity: .85; line-height: 1.4; }

body.ew-veterano .ew-novato-only { display: none !important; }

.nav-back { display: flex; gap: 6px; flex-basis: 100%; order: 3; }
.nav-back .back-btn { margin: 0; white-space: nowrap; flex: 1; text-align: center; }
:has(> .nav-back) { flex-wrap: wrap; row-gap: 10px; }

/* Visor de imágenes con zoom (común a las tres páginas; antes estaba repetido en cada una).
   Encima de las demás ventanas, para que las fotos de la guía o del aviso de aluminio se vean. */
.img-viewer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1200; overflow: hidden; touch-action: none; }
.img-viewer-overlay.open { display: flex; justify-content: center; align-items: center; }
.img-viewer-container { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.img-viewer-overlay img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); transform-origin: center center; transition: transform 0.1s ease; user-select: none; -webkit-user-drag: none; }
.img-viewer-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: calc(env(safe-area-inset-right, 0px) + 16px); font-size: 28px; color: #fff; cursor: pointer; z-index: 10; line-height: 1; background: none; border: none; padding: 4px; font-family: inherit; }
.img-viewer-controls { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); left: 50%; transform: translateX(-50%); display: flex; gap: 16px; z-index: 10; }
.zoom-btn { width: 44px; height: 44px; background: rgba(255,255,255,0.15); border: none; border-radius: 50%; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.img-zoomable { cursor: zoom-in; }

/* Botón flotante «Volver al asistente» */
.quiz-return-btn { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--accent-fill); color: #111; border: none; border-radius: 999px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; z-index: 100; display: none; box-shadow: 0 4px 16px rgba(245,166,35,0.4); white-space: nowrap; font-family: inherit; }

/* Selector de idioma */
.ew-lang-btn { width: 32px; height: 32px; border-radius: 4px; background: var(--surface); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; padding: 0; cursor: pointer; margin-left: auto; color: var(--text); flex-shrink: 0; }
.ew-lang-btn + .theme-toggle { margin-left: 8px !important; }
.header > div > .header-top { flex: 1 1 auto; }
.ew-lang-aviso { margin: 0 0 12px auto; }
/* Textos legales */
.pagina-legal { margin: 0; background: var(--bg); color: var(--text); font-family: 'IBM Plex Sans', -apple-system, sans-serif; min-height: 100vh; }
.legal { box-sizing: border-box; max-width: 680px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 24px) 22px calc(env(safe-area-inset-bottom, 0px) + 40px); }
.legal h1 { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: .2px; margin: 18px 0 6px; }
.legal h2 { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; margin: 26px 0 8px; color: var(--accent); }
.legal p, .legal li { font-size: 14.5px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .muted { color: var(--muted); font-size: 13px; }
.legal .back { font-weight: 600; text-decoration: none; font-size: 14px; }
.legal .todo { background: rgba(244,193,26,.12); border-radius: 4px; padding: 0 4px; }
.legal-datos { list-style: none; padding-left: 0 !important; }
.legal-nav { margin-top: 32px !important; padding-top: 16px; border-top: 0.5px solid var(--border); text-align: center; font-size: 12.5px !important; }
.legal-nav a { color: var(--muted); }
.ew-idioma { z-index: 1350; }
.ew-idioma-lista { display: flex; flex-direction: column; gap: 8px; }
.ew-idioma-op { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: 600 15px 'IBM Plex Sans', sans-serif; cursor: pointer; text-align: left; }
.ew-idioma-op span { font-size: 20px; line-height: 1; }
.ew-idioma-op.on { border-color: var(--accent); color: var(--accent); }
.ew-rampa { width: 100%; margin: 8px 0 0; padding: 10px 12px; background: rgba(244,193,26,0.1); border: 1px solid var(--accent); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; color: var(--text); }
/* Cuaderno: Mis soldaduras y Mis máquinas */
.cn-acciones { margin: 10px 0 6px; }
.cn-acciones .calc-btn { margin: 8px 0 0; }
.cn-aviso { background: rgba(255,69,58,0.07); border: 1px solid var(--red); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--text); }
.cn-aviso p { margin: 4px 0 0; }
.cn-aviso-maq { font-weight: 700; }
.cn-inner { position: relative; }
.cn-cab { display: flex; }
.cn-volver { background: none; border: none; padding: 4px 0; color: var(--accent); font: 600 15px 'IBM Plex Sans', sans-serif; cursor: pointer; }
.cn-pro { display: inline-block; align-self: flex-start; margin: 0; padding: 3px 8px; border-radius: 6px; background: rgba(244,193,26,0.14); color: var(--accent); font-size: 12px; font-weight: 600; }
.cn-input { width: 100%; box-sizing: border-box; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; font: 400 16px 'IBM Plex Sans', sans-serif; }
.cn-input:focus, .cn-usado:focus { outline: none; border-color: var(--accent); }
.cn-titulo { font-weight: 600; }
.cn-notas { resize: vertical; min-height: 84px; }
.cn-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.cn-chip { flex-shrink: 0; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font: 600 13px 'IBM Plex Sans', sans-serif; cursor: pointer; }
.cn-chip.on { border-color: var(--accent); color: var(--accent); }
.cn-lista { display: flex; flex-direction: column; gap: 8px; }
.cn-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-family: inherit; cursor: pointer; }
.cn-mini { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cn-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-item-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cn-item-t { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cn-item-s { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0; }
.cn-item-f { color: var(--accent); font-size: 20px; }
.cn-vacio { margin: 8px 0; padding: 18px 14px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; background: var(--surface); border-radius: var(--radius); }
.cn-nota { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.cn-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.cn-tabla { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.35; }
.cn-tabla th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 2px 6px 6px 0; vertical-align: bottom; }
.cn-tabla td { padding: 6px 6px 6px 0; vertical-align: middle; border-top: 0.5px solid var(--border); overflow-wrap: anywhere; }
.cn-tabla tr > :last-child { padding-right: 0; }
.cn-et { color: var(--muted); font-size: 12px; }
.cn-usado { width: 100%; box-sizing: border-box; background: var(--surface2); color: var(--accent); border: 1px solid var(--border); border-radius: 6px; padding: 7px 6px; font: 600 16px 'IBM Plex Sans', sans-serif; }
.cn-sec { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.cn-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cn-foto { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface2); }
.cn-foto img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.cn-foto-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; cursor: pointer; }
.cn-foto-mas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px dashed var(--accent); background: none; color: var(--accent); font-size: 22px; cursor: pointer; }
.cn-foto-tx { font-size: 12px; font-weight: 600; text-align: center; }
.cn-estrellas { display: flex; gap: 4px; }
.cn-estrellas button { background: none; border: none; padding: 2px 4px; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.cn-estrellas button.on { color: var(--accent); }
.cn-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; align-items: stretch; }
.cn-botones .calc-btn, .cn-botones .guia-btn { margin: 0; }
.cn-botones.cn-uno { grid-template-columns: 1fr; }
.cn-repetir { margin: 6px 0 0; }
.cn-borrar { color: var(--red) !important; }
.cn-form { display: flex; flex-direction: column; gap: 10px; }
.cn-form label { display: flex; flex-direction: column; gap: 4px; }
.cn-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.cn-error { margin: 0; font-size: 13px; color: var(--red); }
.cn-error:empty { display: none; }
.cn-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); max-width: 90%; background: var(--accent-fill); color: #151310; border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; }
.cn-toast.on { opacity: 1; }
.ew-unid-fila { display: flex; gap: 8px; margin-top: 8px; }
.ew-unid-op { justify-content: center; text-align: center; }

/* Ventana de confirmación propia (sustituye a confirm() del sistema) */
.ew-confirmar { display: none; position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.6); align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px calc(env(safe-area-inset-bottom, 0px) + 20px); }
.ew-confirmar-caja { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.ew-confirmar-caja p { font-size: 15px; line-height: 1.55; color: var(--text); margin: 0 0 16px; }
.ew-confirmar-btns { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.ew-confirmar-btns .calc-btn { margin: 0; }

/* ═══ Accesibilidad y contraste (revisión del 8 nov 2026) ═══ */
/* El amarillo de relleno se mantiene en los dos temas; en el tema claro, el texto amarillo pasa a ámbar oscuro (A1, A4) */
:root { --accent-fill: #f4c11a; --muted: #9a9387; }
[data-theme="light"] { --accent: #8a6100; --blue: #0062c4; }
[data-theme="light"] .nav-item { color: #c4bcae; }
[data-theme="light"] .nav-item.active { color: var(--accent-fill); }
/* Foco visible con teclado o accesos de accesibilidad (A5) */
:where(button, a, summary, select, input, textarea, [role="button"], [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Textos de 12 px como mínimo; la barra inferior, 11 px para que quepan los cinco nombres (A2) */
.nav-item { font-size: 11px; }
.option-btn.pos-btn { height: 142px !important; }
.option-btn.pos-btn .pos-label { font-size: 12px; height: 47px; }
.option-btn.pos-btn .pos-code { font-size: 12px; }
.amp-franja-bar > div { font-size: 12px; letter-spacing: 0; }
.amp-franja-ticks span { font-size: 12px; }
.alu-ap-badge, .kit-tab small, .kit-rec, .kit-imp, body .process-badge { font-size: 12px; }
/* Zonas de toque de 44 px, sin cambiar cómo se ven (A3) */
.back-btn, .taller-btn, .quiz-skip-btn, .caja-ref summary { min-height: 44px; }
.back-btn { display: inline-flex; align-items: center; }
.card-sub a, .tab-content a, p[onclick], a[onclick] { padding-block: 13px; margin-block: -13px; }
/* Foto de ejemplo de TIG en aluminio */
.alu-ej { margin: 0 0 12px; cursor: zoom-in; }
.alu-ej img { width: 100%; display: block; border-radius: var(--radius-sm); }
.alu-ej figcaption { font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 6px; }/* Botón secundario («Ver mis soldaduras», «‹ Cambiar datos»): mismo aspecto en las tres páginas */
.quiz-skip-btn { width: 100%; margin-top: 12px; padding: 12px 14px; background: none; border: 0.5px solid var(--border); border-radius: var(--radius); color: var(--muted); font: 500 14px 'IBM Plex Sans', sans-serif; cursor: pointer; text-align: center; }
.quiz-skip-btn:active { border-color: var(--accent); color: var(--accent); }
.wz-cambiar { margin: 0 0 12px; }