/* =============================================================================
   VARIABLES DE TEMA — Tokens exclusivos de la calculadora
   Los tokens base (brand, fonts, radii, bg, text, border) viven en base.css.
   ============================================================================= */

/* LIGHT — calculator-specific */
[data-theme="light"] {
    --panel-shadow:  0 2px 40px rgba(0,0,0,0.10);

    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a918a' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");

    --price-bg:          #0f0f0f;
    --price-glow-a:      rgba(158,0,0,0.18);
    --price-glow-b:      rgba(68,0,83,0.12);
    --price-num-color:   #f0ede8;
    --price-sym-color:   #555;
    --price-sep-color:   #333;
    --price-tag-bg:      #1a1a1a;
    --price-tag-color:   #666;
    --price-divider:     #2a2a2a;
    --price-label-color: #555;
    --price-conv-icon:   #444;
    --price-conv-text:   #555;
    --price-conv-select-bg:     #1c1c1c;
    --price-conv-select-border: #2e2e2e;
    --price-conv-select-color:  #aaa;
    --price-conv-arrow:  #555;
    --conv-sym-color:    #888;
    --conv-num-color:    #aaa;
    --conv-dash-color:   #2e2e2e;
    --price-empty-icon:  #2a2a2a;
    --price-empty-label: #3a3a3a;
    --price-empty-hint:  #2a2a2a;
    --price-disclaimer:  #333;
    --price-disc-border: #1e1e1e;

    --cta-bg:       #f4f1ed;
    --cta-border:   #d6cfc8;
    --cta-title:    #1a1614;
    --cta-body:     #5c5450;

    --mobile-bar-bg:      rgba(15,15,15,0.96);
    --mobile-bar-border:  rgba(255,255,255,0.06);
    --mobile-bar-text:    #f0ede8;
    --mobile-bar-muted:   #666;

    --map-label-bg:    rgba(240,237,232,0.82);
    --map-label-color: #9a918a;
    --map-legend-text: #9a918a;
    --map-nodata-text: #9a918a;

    --slider-track: #ddd8d2;
    --slider-thumb: var(--brand);
    --slider-hover: var(--brand-hover);
}

/* DARK — calculator-specific */
[data-theme="dark"] {
    --panel-shadow:  0 2px 40px rgba(0,0,0,0.45);

    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235c5450' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");

    --price-bg:          #0a0a0a;
    --price-glow-a:      rgba(158,0,0,0.22);
    --price-glow-b:      rgba(68,0,83,0.16);
    --price-num-color:   #f0ede8;
    --price-sym-color:   #4a4a4a;
    --price-sep-color:   #2a2a2a;
    --price-tag-bg:      #161616;
    --price-tag-color:   #555;
    --price-divider:     #222;
    --price-label-color: #484848;
    --price-conv-icon:   #383838;
    --price-conv-text:   #484848;
    --price-conv-select-bg:     #161616;
    --price-conv-select-border: #252525;
    --price-conv-select-color:  #888;
    --price-conv-arrow:  #484848;
    --conv-sym-color:    #888;
    --conv-num-color:    #aaa;
    --conv-dash-color:   #252525;
    --price-empty-icon:  #222;
    --price-empty-label: #2e2e2e;
    --price-empty-hint:  #222;
    --price-disclaimer:  #282828;
    --price-disc-border: #181818;

    --cta-bg:       #1a1816;
    --cta-border:   #2e2b29;
    --cta-title:    #f0ede8;
    --cta-body:     #7a7068;

    --mobile-bar-bg:      rgba(10,10,10,0.97);
    --mobile-bar-border:  rgba(255,255,255,0.04);
    --mobile-bar-text:    #f0ede8;
    --mobile-bar-muted:   #484848;

    --map-label-bg:    rgba(20,19,18,0.82);
    --map-label-color: #5c5450;
    --map-legend-text: #5c5450;
    --map-nodata-text: #5c5450;

    --slider-track: #2e2b29;
    --slider-thumb: #9e3a3a;
    --slider-hover: #c44;
}

/* Textura de papel en modo claro — inspirada en evilgrow.com */
[data-theme="light"] body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    background-repeat: repeat;
}

@media (max-width: 1023px) {
    body { padding-bottom: 72px; }
}

/* =============================================================================
   APP SHELL
   ============================================================================= */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

/* =============================================================================
   LAYOUT PRINCIPAL
   .app-main         → uso standalone (index.php con app-shell)
   .calc-layout      → uso como include (calculator.php embebido en otra web)
   .tattoo-calc-root → wrapper raíz del include, imita app-shell
   ============================================================================= */

/* Wrapper raíz cuando se usa como include */
.tattoo-calc-root {
    --bg-page:        var(--bg-page, #f0ede8);
    font-family:      var(--font-body);
    background:       var(--bg-page);
    color:            var(--text-primary);
    min-height:       400px;
    position:         relative;
}

.app-main,
.calc-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .app-main,
    .calc-layout {
        flex-direction: row;
        align-items: stretch;
    }
}

/* =============================================================================
   PANEL IZQUIERDO
   ============================================================================= */
.panel-left {
    background: var(--bg-panel-alt);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
    transition: background var(--transition), border-color var(--transition);
}

@media (min-width: 1024px) {
    .panel-left {
        width: 55%;
        border-bottom: none;
        border-right: 1px solid var(--border);
        padding: 36px 40px;
        overflow-y: auto;
    }
}

.panel-header { margin-bottom: 20px; }

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.section-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =============================================================================
   MAPA
   ============================================================================= */
.map-container {
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 12px;
    min-height: 260px;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}


.world-map {
    width: 100%;
    height: auto;
    display: block;
}

.world-map path {
    stroke: var(--bg-panel-alt);
    stroke-width: 0.4;
    transition: filter 0.15s ease, stroke-width 0.15s ease, stroke 0.15s ease;
}

.world-map path.has-data { cursor: pointer; }
.world-map path.has-data:hover,
.world-map path.has-data.country-hover {
    filter: brightness(1.25) drop-shadow(0 0 2px rgba(0,0,0,0.3));
    stroke-width: 0.9;
}
.world-map path.has-data.active {
    stroke: #fff !important;
    stroke-width: 2px !important;
    filter: brightness(0.8) drop-shadow(0 0 3px rgba(255,255,255,0.5)) !important;
}
.world-map path.no-data {
    fill: var(--border) !important;
    opacity: 0.5;
    cursor: default;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/dot-svgrepo-com.svg');
    background-size: 5px 5px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

[data-theme="light"] .map-container::after {
    filter: brightness(0);
}

[data-theme="dark"] .map-container::after {
    filter: brightness(0) invert(1);
}

.map-badge {
    position: absolute;
    bottom: 20px;
    right: 4px;
    z-index: 2;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--map-label-bg);
    color: var(--map-label-color);
    padding: 2px 7px;
    border-radius: 10px;
    pointer-events: none;
}

/* Leyenda */
.map-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.map-legend-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #8ba2c4, #f9d183, #cd4d30, #890c3c, #440053);
}
.map-legend-label {
    font-size: 10px;
    color: var(--map-legend-text);
    white-space: nowrap;
    font-family: var(--font-body);
}
.map-legend-nodata {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    flex-shrink: 0;
}
.map-legend-nodata-box {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--border);
    opacity: 0.7;
    flex-shrink: 0;
}
.map-legend-nodata-text {
    font-size: 10px;
    color: var(--map-nodata-text);
}

/* Tooltip */
#map-tooltip {
    position: fixed;
    z-index: 9999;
    background: #111;
    color: #f3f3f3;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 12px;
    font-family: var(--font-body);
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    min-width: 155px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.07);
}
#map-tooltip.visible { opacity: 1; transform: translateY(0); }
.tt-name     { font-weight: 700; font-size: 13px; color: #fff; margin-bottom: 1px; }
.tt-currency { font-size: 10px; color: #9ca3af; margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.tt-divider  { border-top: 1px solid rgba(255,255,255,0.09); margin-bottom: 6px; }
.tt-row      { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 3px; }
.tt-label    { color: #9ca3af; font-size: 11px; }
.tt-value    { color: var(--brand-light); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.tt-nodata   { color: #6b7280; font-size: 11px; font-style: italic; margin-top: 3px; }

/* Touch map hint */
.map-touch-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,10,0.85);
    color: #bbb;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.map-container.touch-locked .map-touch-hint { opacity: 1; }
.map-container.touch-locked { touch-action: none; }

/* =============================================================================
   FX STATUS
   ============================================================================= */
.fx-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    font-family: var(--font-body);
    transition: background var(--transition), color var(--transition);
}
.fx-ok   { background: rgba(16,185,129,0.1); color: #065f46; border: 1px solid rgba(16,185,129,0.25); }
.fx-warn { background: rgba(245,158,11,0.1); color: #92400e; border: 1px solid rgba(245,158,11,0.25); }
[data-theme="dark"] .fx-ok   { color: #34d399; border-color: rgba(52,211,153,0.2); }
[data-theme="dark"] .fx-warn { color: #fbbf24; border-color: rgba(251,191,36,0.2); }

/* =============================================================================
   FORM ELEMENTS
   ============================================================================= */
.field-group {
    margin-bottom: 16px;
}

.fieldset-clean {
    border: none;
    padding: 0;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-body);
    transition: color var(--transition);
}

.field-label--accent {
    color: var(--brand);
}
[data-theme="dark"] .field-label--accent {
    color: #e06060;
}

.field-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    font-family: var(--font-body);
}

.form-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-input);
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 30px 9px 11px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
    line-height: 1.4;
}
.form-select:hover { background-color: var(--bg-input-hover); border-color: var(--text-muted); }
.form-select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 2px rgba(158,0,0,0.15); }

/* ─── Country Picker ─────────────────────────────────────────────────────── */
.country-picker { position: relative; width: 100%; }

.country-picker-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 30px 9px 11px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    text-align: left;
    position: relative;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
    line-height: 1.4;
}
.country-picker-btn:hover { background-color: var(--bg-input-hover); border-color: var(--text-muted); }
.country-picker-btn:focus,
.country-picker-btn[aria-expanded="true"] { border-color: var(--border-focus); box-shadow: 0 0 0 2px rgba(158,0,0,0.15); }
.country-picker-btn .currency-picker-arrow { position: absolute; right: 10px; width: 10px; height: 6px; color: var(--text-muted); pointer-events: none; transition: transform 0.15s; }
.country-picker-btn[aria-expanded="true"] .currency-picker-arrow { transform: rotate(180deg); }

.picker-placeholder { color: var(--text-muted); }

.country-picker-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    z-index: 50;
    overflow: hidden;
}
.country-picker-panel[hidden] { display: none; }
.country-picker-search { font-size: 0.82rem !important; padding: 8px 11px !important; }

.country-picker-list {
    list-style: none;
    margin: 0;
    padding: 3px 0;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.country-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: background 0.1s;
}
.country-picker-item:hover,
.country-picker-item:focus { background: var(--bg-input-hover); }
.country-picker-item--selected { color: var(--brand) !important; }

.country-picker-name { flex: 1; }
.country-picker-currency {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 10px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.country-picker-item--selected .country-picker-currency { color: var(--brand); opacity: 0.75; }

.form-select--accent {
    border-color: rgba(158,0,0,0.35);
    background-color: rgba(158,0,0,0.04);
}
.form-select--accent:focus { border-color: var(--brand); }
[data-theme="dark"] .form-select--accent {
    border-color: rgba(158,58,58,0.35);
    background-color: rgba(158,0,0,0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

/* Left-panel grid: side-by-side always (the panel is wide enough) */
.form-grid--left {
    margin-bottom: 4px;
}

/* Sliders */
.dims-value {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .dims-value { color: #e06060; }

.slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.slider-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    width: 34px;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 500;
}

.slider-val {
    font-size: 0.72rem;
    color: var(--text-muted);
    width: 28px;
    text-align: right;
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: var(--slider-track);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background var(--transition);
}
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--slider-thumb);
    cursor: pointer;
    border: 2px solid var(--bg-panel);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: background var(--transition);
}
.custom-range::-webkit-slider-thumb:hover { background: var(--slider-hover); }
.custom-range:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }

/* Size preset buttons */
.size-btns {
    display:   flex;
    flex-wrap: wrap;
    gap:       6px;
    margin-top: 8px;
}

.size-btn {
    padding:       5px 13px;
    border-radius: var(--radius-xl);
    border:        1px solid var(--border);
    background:    var(--bg-input);
    color:         var(--text-secondary);
    font-family:   'Be Vietnam Pro', var(--font-body), sans-serif;
    font-size:     0.76rem;
    font-weight:   600;
    cursor:        pointer;
    transition:    background var(--transition), border-color var(--transition), color var(--transition);
    white-space:   nowrap;
    line-height:   1.4;
}
.size-btn:hover {
    border-color: var(--border-focus);
    color:        var(--text-primary);
    background:   var(--bg-input-hover);
}
.size-btn--active {
    background:   var(--brand);
    border-color: var(--brand);
    color:        #fff;
}
.size-btn--active:hover {
    background:   var(--brand-hover);
    border-color: var(--brand-hover);
}

.dims-hint {
    font-family: var(--font-body);
    font-size:   0.72rem;
    color:       var(--text-muted);
    margin-top:  6px;
    margin-bottom: 0;
}

/* =============================================================================
   PANEL DERECHO
   ============================================================================= */
.panel-right {
    background: var(--bg-panel);
    padding: 28px 24px;
    transition: background var(--transition);
}

@media (min-width: 1024px) {
    .panel-right {
        width: 45%;
        padding: 36px 40px;
        overflow-y: auto;
    }
}

.calc-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}
.calc-title em {
    font-style: italic;
    color: var(--brand);
    font-weight: 700;
}
[data-theme="dark"] .calc-title em { color: #c44; }

/* =============================================================================
   BLOQUE DE PRECIO
   ============================================================================= */
.price-block {
    background: var(--price-bg);
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    margin: 20px 0 20px;
    position: relative;
    /* overflow: hidden; */
}
.price-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left,    var(--price-glow-a) 0%, transparent 60%),
                radial-gradient(ellipse at bottom right, var(--price-glow-b) 0%, transparent 60%);
    pointer-events: none;
}

/* Estado vacío */
.price-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 14px;
    gap: 7px;
}
.price-empty-state.hidden { display: none !important; }
.price-empty-icon { width: 40px; height: 40px; color: var(--price-empty-icon); }
.price-empty-icon svg { width: 100%; height: 100%; }
.price-empty-label { font-size: 0.88rem; font-weight: 600; color: var(--price-empty-label); font-family: var(--font-body); }
.price-empty-hint  { font-size: 0.7rem;  color: var(--price-empty-hint);  font-family: var(--font-body); }

/* Estado relleno */
.price-filled-state { display: block; }
.price-filled-state.hidden { display: none !important; }

.price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.price-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--price-label-color);
    font-family: var(--font-body);
}
.price-country-tag {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--price-tag-color);
    letter-spacing: 0.04em;
    background: var(--price-tag-bg);
    padding: 2px 8px;
    border-radius: 20px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-body);
}

.price-main { margin-bottom: 16px; }
.price-range-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.price-bound { display: flex; align-items: baseline; gap: 2px; }
.price-sym {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--price-sym-color);
    line-height: 1;
}
.price-num {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 700;
    color: var(--price-num-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.price-range-sep {
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--price-sep-color);
    margin: 0 2px;
    line-height: 1;
    align-self: center;
}

.price-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--price-divider) 30%, var(--price-divider) 70%, transparent);
    margin-bottom: 12px;
}

.price-conversion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.price-conversion-label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.price-conversion-label > svg {
    width: 12px;
    height: 12px;
    color: var(--price-conv-icon);
    flex-shrink: 0;
}
.price-conversion-label > span {
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--price-conv-text);
    letter-spacing: 0.03em;
    white-space: nowrap;
    font-family: var(--font-body);
}

.price-currency-select-wrap { position: relative; display: inline-flex; align-items: center; }
.price-currency-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--price-conv-select-bg);
    border: 1px solid var(--price-conv-select-border);
    border-radius: 5px;
    padding: 3px 22px 3px 8px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--price-conv-select-color);
    cursor: pointer;
    outline: none;
    transition: all 0.15s;
    letter-spacing: 0.06em;
    font-family: var(--font-body);
}
.price-currency-select:hover  { border-color: #444; color: #bbb; }
.price-currency-select:focus  { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(158,0,0,0.2); }
.price-currency-arrow {
    position: absolute;
    right: 7px;
    width: 8px;
    height: 5px;
    color: var(--price-conv-arrow);
    pointer-events: none;
}

/* ─── Currency Picker (custom select con búsqueda) ─────────────────────────── */
.currency-picker { position: relative; display: inline-flex; }
.currency-picker-btn {
    appearance: none;
    -webkit-appearance: none;
    background: var(--price-conv-select-bg);
    border: 1px solid var(--price-conv-select-border);
    border-radius: 5px;
    padding: 3px 22px 3px 8px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--price-conv-select-color);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
    letter-spacing: 0.06em;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    position: relative;
}
.currency-picker-btn:hover { border-color: #444; color: #bbb; }
.currency-picker-btn:focus,
.currency-picker-btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(158,0,0,0.2); }
.currency-picker-arrow {
    position: absolute;
    right: 7px;
    width: 8px;
    height: 5px;
    color: var(--price-conv-arrow);
    pointer-events: none;
    transition: transform 0.15s;
}
.currency-picker-btn[aria-expanded="true"] .currency-picker-arrow { transform: rotate(180deg); }

.currency-picker-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    z-index: 50;
    width: 150px;
    overflow: hidden;
}
.currency-picker-panel[hidden] { display: none; }
.currency-picker-search {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    font-size: 0.7rem;
    background: var(--bg-input);
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
}
.currency-picker-search::placeholder { color: var(--text-muted); }
.currency-picker-list {
    list-style: none;
    margin: 0;
    padding: 3px 0;
    max-height: 190px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.currency-picker-item {
    padding: 5px 10px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    transition: background 0.1s, color 0.1s;
}
.currency-picker-item--common { color: var(--text-primary); }
.currency-picker-item:hover,
.currency-picker-item:focus   { background: var(--bg-input-hover); color: var(--text-primary); }
.currency-picker-item--selected { color: var(--brand) !important; }
.currency-picker-divider {
    height: 1px;
    background: var(--border);
    margin: 3px 0;
}

.price-conversion-amounts { display: flex; align-items: baseline; gap: 2px; }
.conv-sym  { font-size: 0.78rem; font-weight: 400; color: var(--conv-sym-color); line-height: 1; }
.conv-num  {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--conv-num-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.conv-dash { font-size: 0.85rem; color: var(--conv-dash-color); margin: 0 3px; line-height: 1; }

.price-disclaimer {
    font-size: 0.6rem;
    color: var(--price-disclaimer);
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--price-disc-border);
    letter-spacing: 0.02em;
    line-height: 1.5;
    font-family: var(--font-body);
}

/* =============================================================================
   TATTOO CTA
   ============================================================================= */
.tattoo-cta {
    background: var(--cta-bg);
    border: 1px solid var(--cta-border);
    border-left: 3px solid var(--text-muted);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: background var(--transition), border-color var(--transition);
}
.tattoo-cta-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cta-title);
    margin-bottom: 4px;
}
.tattoo-cta-body {
    font-size: 0.75rem;
    color: var(--cta-body);
    line-height: 1.5;
    margin-bottom: 6px;
    font-family: var(--font-body);
}
.tattoo-cta-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    font-family: var(--font-body);
}
.tattoo-cta-link:hover { text-decoration: underline; }
[data-theme="dark"] .tattoo-cta-link { color: #e06060; }

/* =============================================================================
   TARJETA DE PRECIO FIJA EN MÓVIL
   ============================================================================= */
.mobile-price-bar {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-price-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--mobile-bar-bg);
        border-top: 1px solid var(--mobile-bar-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 10px 20px 14px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
}

.mobile-price-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.mobile-price-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.mobile-price-status.hidden { display: none !important; }

.mobile-price-status > span {
    font-size: 0.8rem;
    color: var(--mobile-bar-muted);
    font-family: var(--font-body);
}

.mobile-price-amounts {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.mobile-price-sym  { font-size: 0.85rem; font-weight: 300; color: var(--mobile-bar-muted); line-height: 1; }
.mobile-price-num  {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mobile-bar-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.mobile-price-dash { font-size: 1rem; color: var(--mobile-bar-muted); margin: 0 3px; line-height: 1; }
.mobile-price-country {
    font-size: 0.68rem;
    color: var(--mobile-bar-muted);
    font-family: var(--font-body);
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* =============================================================================
   WIDGET DE DONACIÓN — Panel izquierdo, al final
   ============================================================================= */
.donation-card {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    transition: background var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
[data-theme="dark"] .donation-card {
    background: rgba(158,0,0,0.06);
    border-color: var(--border);
    border-left-color: #9e3a3a;
}

.donation-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.donation-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: var(--text-muted);
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-input-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}
.donation-avatar svg { width: 38px; height: 38px; }

.donation-text { flex: 1; }
.donation-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-family: var(--font-body);
}
.donation-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-family: var(--font-body);
}

.donation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff3f3;
    text-decoration: none;
    background: var(--brand);
    border-radius: var(--radius-xl);
    padding: 9px 18px;
    transition: background var(--transition), transform 0.1s;
    width: 100%;
}
.donation-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}
.donation-btn:active { transform: translateY(0); }

/* =============================================================================
   ABOUT STRIP — Bloque storytelling compacto en panel derecho
   ============================================================================= */
.about-strip {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-panel-alt);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background var(--transition), border-color var(--transition);
}
.about-strip::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(158,0,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.about-strip-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-strip-text { flex: 1; }

.about-strip-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.about-strip-body {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-family: var(--font-body);
}
.about-strip-body strong {
    color: var(--brand);
    font-weight: 700;
}
[data-theme="dark"] .about-strip-body strong { color: #e06060; }

.about-strip-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.about-link-primary {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}
.about-link-primary:hover { text-decoration: underline; }
[data-theme="dark"] .about-link-primary { color: #e06060; }

.about-link-coffee {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 4px 12px;
    background: var(--bg-input);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    font-family: 'Be Vietnam Pro', var(--font-body), sans-serif;
}
.about-link-coffee:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-input-hover);
}

/* Retrato placeholder */
.about-strip-portrait {
    flex-shrink: 0;
    width: 56px;
}
.about-strip-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* =============================================================================
   NUEVOS COMPONENTES — v2 (calculadora mejorada)
   ============================================================================= */

/* ── Subtítulo storytelling bajo el título de calculadora ── */
.calc-subtitle {
    font-family:  var(--font-body);
    font-size:    0.72rem;
    color:        var(--text-muted);
    margin:       -8px 0 20px;
    line-height:  1.5;
    font-style:   italic;
}

/* ── 3A: Estimación de sesiones ── */
.session-estimate {
    font-family:  var(--font-body);
    font-size:    0.7rem;
    color:        var(--text-muted);
    margin:       6px 0 0;
    letter-spacing: 0.02em;
    transition:   color 0.3s;
}
.session-estimate.session-long {
    color: #c0804a;
}
[data-theme="dark"] .session-estimate.session-long {
    color: #d4956a;
}

/* ── Volatile country warning ── */
.volatile-warning {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(245,158,11,0.1);
    color: #92400e;
    border: 1px solid rgba(245,158,11,0.25);
    transition: background var(--transition), color var(--transition);
}
[data-theme="dark"] .volatile-warning {
    color: #fbbf24;
    border-color: rgba(251,191,36,0.2);
}
.volatile-warning.hidden {
    display: none !important;
}

/* ── 3B: Referencias de tamaño bajo los sliders ── */
.dims-ref {
    display:         flex;
    gap:             0;
    margin:          8px 0 0;
    padding:         0;
    list-style:      none;
    justify-content: space-between;
}
.dims-ref span {
    font-family:  var(--font-body);
    font-size:    0.62rem;
    color:        var(--text-muted);
    opacity:      0.65;
    white-space:  nowrap;
}

/* ── 3F + 4: Footer del bloque precio (share + coffee link) ── */
.price-footer {
    display:         flex;
    align-items:     center;
    gap:             12px;
    margin:          10px 0 4px;
    flex-wrap:       wrap;
}

/* Botón compartir */
.share-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    font-family:     'Be Vietnam Pro', var(--font-body), sans-serif;
    font-size:       0.7rem;
    font-weight:     600;
    color:           var(--text-muted);
    background:      transparent;
    border:          1px solid var(--border);
    border-radius:   var(--radius-xl);
    padding:         5px 14px;
    cursor:          pointer;
    transition:      color var(--transition), border-color var(--transition), background var(--transition);
    letter-spacing:  0.03em;
}
.share-btn:hover {
    color:           var(--text-primary);
    border-color:    var(--text-muted);
    background:      var(--bg-input);
}
.share-btn:active {
    transform: scale(0.97);
}

/* Link café contextual dentro del bloque precio */
.price-coffee-link {
    font-family:  var(--font-body);
    font-size:    0.7rem;
    color:        var(--text-muted);
    text-decoration: none;
    opacity:      0.7;
    transition:   opacity 0.2s, color 0.2s;
    white-space:  nowrap;
}
.price-coffee-link:hover {
    opacity:  1;
    color:    var(--accent);
}

/* ── 4: BMC engagement nudge ── */
/* Aparece una sola vez tras 5 interacciones activas */
.bmc-nudge {
    display:         flex;
    align-items:     center;
    gap:             10px;
    padding:         10px 14px;
    margin:          0 0 16px;
    background:      var(--bg-input);
    border:          1px solid var(--border);
    border-left:     3px solid var(--accent);
    border-radius:   6px;
    opacity:         0;
    max-height:      0;
    overflow:        hidden;
    transition:      opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    pointer-events:  none;
}
.bmc-nudge--visible {
    opacity:       1;
    max-height:    80px;
    pointer-events: auto;
}
.bmc-nudge-text {
    font-family:  var(--font-body);
    font-size:    0.7rem;
    color:        var(--text-muted);
    flex:         1;
    line-height:  1.45;
}
.bmc-nudge-link {
    font-family:  var(--font-body);
    font-size:    0.72rem;
    font-weight:  600;
    color:        var(--accent);
    text-decoration: none;
    white-space:  nowrap;
    padding:      4px 10px;
    border:       1px solid var(--accent);
    border-radius: 14px;
    transition:   background 0.2s, color 0.2s;
    flex-shrink:  0;
}
.bmc-nudge-link:hover {
    background: var(--accent);
    color:      #fff;
}

