/*
Theme Name: GeneratePress Child
Theme URI: http://example.com
Description: Child Theme
Template: generatepress
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,900;1,9..40,400&family=Space+Grotesk:wght@500;700&family=Montserrat:wght@400;700;900&display=swap');

@font-face {
    font-family: "Digital7";
    src: url("https://cdn.jsdelivr.net/gh/keshikan/DSEG/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff") format("woff");
}

/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */

body {
    background: #0d0d0f;
    color: #f2f2f2;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1em;
    letter-spacing: -0.02em;
}

.reo-logo,
.reo-main-title,
.reo-config h2,
.reo-seo-title {
    font-family: 'Geist', sans-serif;
}

.reo-main-title,
.reo-config h2 {
    font-weight: 900;
    
    font-style: normal;
}

.reo-bar-title {
    font-weight: 800;
    
    font-style: normal;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════
   PANEL BASE
═══════════════════════════════════════════ */

.reo-panel {
    background: #141416;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

body.page-template-page-meetmeter .site-main,
body.page-template-page-meetmeter #primary.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 20px;
}

/* Todo ancho completo por defecto */
.reo-grid,
#reo-alerta,
#reo-summary-panel,
#reo-history-panel,
.reo-seo-intro {
    grid-column: 1 / -1;
    margin-top: -1em;
}

/* ─── Bloque 2×2: récords, presupuesto, tendencias, analytics ─── */

.reo-four-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#reo-records-panel,
#reo-budget-panel,
#reo-trends-panel,
#reo-analytics-panel {
    grid-column: auto;
}

/* Récords en 2×2 interno */
#reo-records-panel .reo-records-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */

.reo-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo . menu" "slogan slogan slogan";
    align-items: center;
    gap: 10px 20px;
    box-sizing: border-box;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5em;
    margin-bottom: 1em;
    width: 100%;
    padding: 0 20px;
}

.reo-logo { font-size: 42px; font-weight: 900; letter-spacing: 1px; }
.reo-logo span { color: #dc2626; text-shadow: 0 2px 4px rgba(220,38,38,0.2); letter-spacing: 0; }
.reo-logo a, .reo-logo a:visited { color: #f2f2f2; text-decoration: none; }
.reo-logo a:hover { color: #ffffff; text-decoration: none; }

.reo-slogan {
    font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
    opacity: .75; grid-area: slogan; text-align: left; color: #999;
}

.reo-menu { grid-area: menu; }

.reo-menu-list {
    display: flex; gap: 20px; list-style: none; margin: 0; padding: 0;
}

.reo-menu-list li a {
    color: #f2f2f2; text-decoration: none; font-size: 16px;
    font-weight: 600; transition: 0.2s ease; font-family: 'Geist', sans-serif;
}
.reo-menu-list li a:hover { color: #dc2626; }

/* ═══════════════════════════════════════════
   GRID PRINCIPAL
═══════════════════════════════════════════ */

.reo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 20px;
}

/* ═══════════════════════════════════════════
   PANEL IZQUIERDO — ROLES
═══════════════════════════════════════════ */

.reo-config h2 { margin-top: 0; text-align: center; }

.reo-roles-container {
    display: flex; gap: 15px; justify-content: space-between;
    width: 100%; margin-top: 10px;
}

.reo-role {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 25px 15px 20px; background: #141416;
    border: 1px solid rgba(255,255,255,0.05); border-radius: 14px;
    position: relative; overflow: visible; transition: all 0.3s ease;
}

.reo-role::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(135deg, #dc2626 0%, #b30000 100%);
    box-shadow: 0 1px 4px rgba(220,38,38,0.15); opacity: 0.8; z-index: 5;
}

.reo-role:hover { border-color: rgba(255,31,31,0.2); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.reo-role label { display: none; }

.reo-role-title { font-size: 14px; letter-spacing: 0.5px; color: #94a3b8; font-weight: 500; }

.reo-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.reo-btn {
    width: 40px; height: 38px; margin-bottom: 7px; border: none;
    border-radius: 12px; background: #1f1f1f; color: #fff;
    font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 14px rgba(0,0,0,0.28);
}
.reo-btn:hover  { background: #3a3a3a; transform: translateY(-1px); }
.reo-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #999; background: #252525; }

/* IMPORTANTE */
.reo-btn:focus,
.reo-btn:focus-visible {
    outline: none;
    background: #1f1f1f;
}

.reo-count {
    display: inline-block; min-width: 55px; padding: 6px 10px;
    border-radius: 10px; background: #18181a;
    border: 1px solid rgba(255,255,255,0.1); font-weight: 800;
    font-size: 19px; text-align: center; cursor: text; transition: 0.2s;
}
.reo-count:focus {
    outline: none; background: #3a3a3a;
    box-shadow: 0 0 0 2px #dc2626; transform: scale(1.05);
}

.reo-rate-wrapper { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 1em; }

input.reo-rate,
input[type="number"].reo-rate {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    width: 100% !important;
    max-width: 126px !important;
    height: 44px !important;
    border: none !important;
    border-radius: 10px !important;
    background: #18181a !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: font-size 0.15s ease-out, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box !important;
}
input.reo-rate::-webkit-inner-spin-button,
input.reo-rate::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input.reo-rate:focus {
    background: #3a3a3a !important;
    box-shadow: 0 0 0 2px #dc2626 !important; transform: scale(1.05);
}

.reo-rate-label { font-size: 12px; opacity: 0.65; letter-spacing: 0.5px; }

.reo-checkbox { display: block; margin-top: 20px; }
.hide-extra-cost .reo-checkbox { display: none; }

/* ═══════════════════════════════════════════
   BOTONES DE ACCIÓN
═══════════════════════════════════════════ */

.reo-display-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.reo-display-actions::before { content: attr(data-hint); font-size: 13px; opacity: 0.6; margin-bottom: 5px; }

.reo-btn-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }

#btn-control {
    background: #dc2626; color: #fff; border: none; border-radius: 14px;
    padding: 14px 10px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 900;
    letter-spacing: 0.8px;  width: 100%;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
#btn-control:hover  { background: #b91c1c; box-shadow: 0 10px 22px rgba(220,38,38,0.25); }
#btn-control:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(0,0,0,0.4); }

.reo-btn-icon {
    background: transparent;
    color: #64748b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    
    width: 100%;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.reo-btn-icon:hover {
  border-color: rgba(255,255,255,0.14);
  color: #94a3b8;
  background: rgba(255,255,255,0.03);  
}

.reo-btn-icon:active { transform: translateY(1px); }

#btn-save.saved {
    color: #4ade80 !important;
    border-color: rgba(74,222,128,0.4) !important;
    background: rgba(74,222,128,0.06) !important;
}

#btn-save svg, #btn-save span { pointer-events: none; }

/* ═══════════════════════════════════════════
   PANEL DERECHO — DISPLAY
═══════════════════════════════════════════ */

.reo-display {
    display: flex; flex-direction: column; justify-content: flex-start;
    align-items: center; gap: 16px; min-height: 520px;
    text-align: center; position: relative;
}

.reo-display-header-row { display: flex; width: 100%; margin-bottom: 20px; align-items: flex-end; }
.reo-main-title { flex: 1.4; text-align: center; margin: 0; }

.reo-display-core { display: flex; gap: 30px; width: 100%; align-items: stretch; }

.reo-display-main {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
    padding-top: 4px;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

@keyframes blink-soft {
    from { opacity: 1; }
    to   { opacity: 0.9; }
}

.contador-estado {
    text-shadow: 0 0 3px currentColor, 0 0 8px currentColor, 0 0 16px rgba(255,255,255,0.08);
    animation: blink-soft 1.8s infinite alternate;
}

#contador-dinero {
    font-variant-numeric: tabular-nums;
    font-family: 'Roboto Condensed', 'Montserrat', sans-serif !important;
    font-weight: 900;
    color: #4ade80 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 90px !important;
    margin: 0 auto !important;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    font-size: 65px;
    line-height: 1;
    transition: font-size 0.15s ease-out;
    text-shadow: 0 0 30px rgba(74,222,128,0.2);
    box-sizing: border-box;
}

#contador-tiempo {
    font-size: 30px; font-family: "Digital7", monospace; letter-spacing: 4px;
    position: relative; color: #f59e0b; margin-bottom: 4px;
    display: inline-block; min-width: 0; text-align: center;
    text-shadow: 0 0 20px rgba(245,158,11,0.2);
}
#contador-tiempo::before {
    content: "88:88"; position: absolute; opacity: 0.07;
    left: 0; right: 0; color: #f59e0b;
}

/* ─── Barómetro ─── */

.reo-barometro-v2 { flex: 0.6; text-align: left; width: 100%; max-width: 320px; }
.reo-barometro-v2 .reo-bar-title { display: none; }

.reo-bar-layout { display: flex; gap: 20px; height: 260px; position: relative; }

.reo-bar-title {
    flex: 0.6; text-align: left; margin: 0; font-size: 16px;
    font-weight: 900; line-height: 1.1; color: #f2f2f2; 
}

.reo-track-wrapper {
    width: 8px; height: 100%;
    background: rgba(255,255,255,0.03); border-radius: 10px;
    position: relative; border: 1px solid rgba(255,255,255,0.05);
}
.reo-main-track { height: 100%; width: 100%; position: relative; }

.reo-indicator-line {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 0%;
    background: #dc2626; border-radius: 10px;
    box-shadow: 0 0 3px rgba(220,38,38,0.2); z-index: 10;
    transition: height 0.5s linear, background 0.5s ease, box-shadow 0.5s ease;
}

.reo-labels-column { display: flex; flex-direction: column; justify-content: space-between; padding: 5px 0; }
.reo-label-item { display: flex; flex-direction: column; line-height: 1.2; }
.reo-time-range { font-size: 13px; font-weight: 400; color: #ccc; }
.reo-status { font-size: 15px; font-weight: 800; margin: 2px 0; }
.reo-subtext { font-size: 12px; opacity: 0.7; font-style: italic; }
.zone-green .reo-status  { color: #4ade80; }
.zone-orange .reo-status { color: #fb923c; }
.zone-red .reo-status    { color: #f87171; }

.reo-bottom-inline { margin-top: 0; text-align: center; padding-top: 20px; }
#comparador-texto { min-height: 60px; padding: 10px 12px; overflow: visible; transition: all 0.12s ease; }

/* ═══════════════════════════════════════════
   MODALES Y ALERTAS
═══════════════════════════════════════════ */

@keyframes popIn {
    0%   { transform: translate(-50%,-50%) scale(0.92); opacity: 0; }
    100% { transform: translate(-50%,-50%) scale(1);    opacity: 1; }
}

.alerta-activa .reo-panel,
.alerta-activa .reo-header { filter: blur(4px) grayscale(0.5); pointer-events: none; }

#reo-alerta {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%,-50%); width: 90%; max-width: 400px;
    z-index: 100002; filter: none !important; pointer-events: auto !important;
    animation: popIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.reo-alerta-inner { background: #18181a; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; overflow: hidden; }
.reo-alerta-header { display: flex; align-items: center; gap: 14px; padding: 22px 24px 18px; }
.reo-alerta-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reo-alerta-title {
    font-family: 'Geist', sans-serif; font-size: 17px; font-weight: 900;
     letter-spacing: 0.5px; color: #f2f2f2; line-height: 1.2;
}
.reo-alerta-body { padding: 0 24px 24px; }
#reo-alerta-msg { font-size: 14px; color: #94a3b8; line-height: 1.65; margin-bottom: 20px; text-align: center; }
.reo-alerta-divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 20px; }
.reo-alerta-btn {
    width: 100%; background: #dc2626; color: #fff; border: none; padding: 14px;
    border-radius: 12px; font-weight: 900; font-size: 14px; cursor: pointer;
    font-family: 'Montserrat', sans-serif; letter-spacing: 0.8px;
    transition: background 0.2s; pointer-events: auto !important;
}
.reo-alerta-btn:hover { background: #b91c1c; }

#reo-save-overlay, #reo-save-modal { display: none; }

#reo-save-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 100000;
}

#reo-save-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 90%; max-width: 420px; background: #0d0d0f;
    border: 1.5px solid #393939; border-radius: 20px; overflow: hidden;
    z-index: 100001; filter: none !important; pointer-events: auto !important;
    animation: popIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.rsm-head { padding: 22px 24px 0; display: flex; align-items: flex-start; gap: 14px; }
.rsm-header-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.rsm-head-text { flex: 1; padding-right: 36px; }
.rsm-header-title {
    font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 900;
     letter-spacing: 0.5px; color: #f2f2f2; line-height: 1.1;
}
.rsm-header-sub { font-size: 12px; color: #64748b; margin-top: 4px; }
.rsm-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 18px 24px 0; }
.rsm-body { padding: 22px 24px 26px; }
.rsm-input-label {
    display: block; font-size: 11px; font-weight: 600; 
    letter-spacing: 0.8px; color: #64748b; margin-bottom: 8px;
}
#reo-session-label {
    width: 100%; background: #141416; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; color: #f2f2f2; font-size: 15px; padding: 11px 14px;
    outline: none; font-family: 'DM Sans', sans-serif; box-sizing: border-box; transition: border-color 0.2s;
}
#reo-session-label:focus { border-color: rgba(220,38,38,0.5); }
.rsm-input-hint { font-size: 11px; color: #64748b; margin: 6px 0 14px 2px; }
.rsm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.rsm-chip {
    font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 7px;
    background: #141416; border: 1px solid rgba(255,255,255,0.07);
    color: #64748b; cursor: pointer; transition: 0.15s; font-family: 'DM Sans', sans-serif;
}
.rsm-chip:hover { border-color: rgba(220,38,38,0.4); color: #fca5a5; background: rgba(220,38,38,0.07); }
.rsm-btn-primary {
    width: 100%; background: #dc2626; color: #fff; border: none; padding: 13px;
    border-radius: 12px; font-weight: 900; font-size: 14px; cursor: pointer;
    font-family: 'Montserrat', sans-serif; letter-spacing: 0.5px; margin-bottom: 8px;
    transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.rsm-btn-primary:hover { background: #b91c1c; }
.rsm-btn-secondary {
    width: 100%; background: transparent; color: #64748b;
    border: 1px solid rgba(255,255,255,0.07); padding: 10px; border-radius: 12px;
    font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: 0.2s;
}
.rsm-btn-secondary:hover { color: #94a3b8; border-color: rgba(255,255,255,0.14); }

/* ═══════════════════════════════════════════
   PANEL HISTORIAL
═══════════════════════════════════════════ */

.reo-panel-history { grid-column: 1 / -1; width: 100%; margin-top: 1em !important; margin-bottom: 2em;}

.reo-history-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}

.reo-history-title {
    font-family: 'Geist', sans-serif; font-size: 20px; font-weight: 900;
     letter-spacing: 0.5px; color: #f2f2f2;
    display: flex; align-items: center; gap: 10px; margin: 0;
}

.reo-history-dot {
    width: 18px; height: 20px; flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20' fill='none'%3E%3Cpath d='M11 1H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7l-6-6z' stroke='%23dc2626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 1v6h6' stroke='%23dc2626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='5' y1='11' x2='13' y2='11' stroke='%23dc2626' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='5' y1='14' x2='10' y2='14' stroke='%23dc2626' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain;
    filter: drop-shadow(0 0 4px rgba(220,38,38,0.6));
    animation: report-glow 2.5s ease-in-out infinite alternate;
}

@keyframes report-glow {
    from { filter: drop-shadow(0 0 3px rgba(220,38,38,0.4)); }
    to   { filter: drop-shadow(0 0 8px rgba(220,38,38,0.9)); }
}

.reo-history-actions {
    display: flex; gap: 8px; align-items: center; position: relative;
}

#btn-clear-history,
#btn-export-csv,
#btn-share-image,
#btn-share-email {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: #64748b; font-size: 12px; padding: 6px 14px; border-radius: 8px;
    cursor: pointer; font-weight: 600; font-family: 'DM Sans', sans-serif;
    transition: 0.2s; display: flex; align-items: center; gap: 5px;
}

#btn-clear-history:hover {
    border-color: #dc2626;
    color: #dc2626;
}

#btn-export-csv:hover,
#btn-share-image:hover,
#btn-share-email:hover {
  border-color: rgba(255,255,255,0.14);
  color: #94a3b8;
  background: rgba(255,255,255,0.03) !important;
}

/* ─── Stats ─── */

.reo-history-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.reo-stat-card {
    background: #0d0d0f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reo-stat-card .reo-record-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.reo-stat-card .reo-record-icon svg {
    stroke: #64748b;
}

.reo-stat-label {
    font-size: 11px;
    color: #64748b;
    
    letter-spacing: 0.7px;
    font-weight: 600;
    line-height: 1.3;
}

.reo-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #f2f2f2;
    font-family: 'Geist', sans-serif;
    line-height: 1;
}

.reo-stat-green { color: #f2f2f2; }
.reo-stat-amber { color: #f2f2f2; }
.reo-stat-red   { color: #f2f2f2; }
.reo-stat-muted { color: #f2f2f2; }

/* ═══════════════════════════════════════════
   GRÁFICO SEMANAL / MENSUAL
═══════════════════════════════════════════ */

.reo-week-chart-wrap {
    margin-bottom: 32px;
    background: #0d0d0f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px 20px 20px;
    min-height: 148px;
    overflow: hidden;
}

.reo-week-chart-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}

.reo-week-chart-title-group { display: flex; align-items: center; gap: 8px; }

.reo-week-chart-title {
    font-size: 13px; font-weight: 600; 
    letter-spacing: 0.8px; color: #64748b;
}

.reo-week-chart-sep { color: #64748b; font-size: 13px; }

.reo-week-hint { font-size: 12px; color: #64748b; font-weight: 500; white-space: nowrap; }

.reo-week-chart-sep {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    text-transform: none;
}

.reo-view-toggle {
    display: flex; gap: 4px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 3px;
}
.reo-view-toggle-btn {
    background: transparent; border: none; color: #64748b; font-size: 11px;
    font-weight: 700; font-family: 'DM Sans', sans-serif; padding: 4px 10px;
    border-radius: 6px; cursor: pointer; letter-spacing: 0.5px;
     transition: 0.15s;
}
.reo-view-toggle-btn.active { background: #dc2626; color: #fff; }
.reo-view-toggle-btn:not(.active):hover { color: #64748b; }

.reo-week-nav { display: flex; align-items: center; gap: 8px; }

.reo-week-label {
    font-size: 12px; font-weight: 600; color: #64748b;
    min-width: 100px; text-align: center; white-space: nowrap;
}

.reo-week-nav-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px; color: #64748b; width: 39px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.15s; flex-shrink: 0;
}
.reo-week-nav-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.14);
  color: #64748b;
  background: rgba(255,255,255,0.04); 
}

.reo-week-nav-btn:disabled { opacity: 0.25; cursor: default; }

.reo-week-bars {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 8px;
    height: 80px;
    max-height: 80px;
    align-items: flex-end;
    overflow: hidden;
}

.reo-week-bars.reo-month-view {
    grid-template-columns: repeat(31,1fr);
    gap: 2px;
    height: 80px;
    max-height: 80px;
}

.reo-week-bar-col {
    display: flex; flex-direction: column; align-items: center;
    height: 100%; gap: 2px; justify-content: flex-end;
    overflow: hidden; min-width: 0;
}
.reo-month-bar-col { gap: 1px; }

.reo-week-bar-amount {
    font-size: 10px; color: #94a3b8; font-weight: 600;
    height: 13px; line-height: 13px; white-space: nowrap;
    overflow: hidden; text-overflow: clip; min-width: 0;
}
.reo-month-bar-col .reo-week-bar-amount { font-size: 8px; height: 11px; line-height: 11px; }

.reo-week-bar-track {
    flex: 1; width: 100%; background: rgba(255,255,255,0.04);
    border-radius: 4px; display: flex; align-items: flex-end;
    overflow: hidden; min-height: 3px;
}
.reo-week-bar-fill { width: 100%; border-radius: 4px; transition: height 0.4s ease; min-height: 2px; }

.reo-week-bar-label { font-size: 11px; font-weight: 400; height: 14px; line-height: 14px; overflow: hidden; }
.reo-month-bar-col .reo-week-bar-label { font-size: 8px; height: 12px; line-height: 12px; }

/* ─── Tabla ─── */

.reo-history-table-header,
.reo-history-row {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.9fr 1fr 0.8fr 0.8fr 0.3fr;
    gap: 10px; padding: 0 12px 10px;
}
.reo-history-table-header { border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 8px; }
.reo-th { font-size: 11px; font-weight: 600; color: #64748b;  letter-spacing: 0.8px; }

.reo-history-row {
    padding: 13px 12px; border-radius: 12px; background: #0d0d0f;
    border: 1px solid rgba(255,255,255,0.04); margin-bottom: 8px;
    align-items: center; transition: border-color 0.2s;
}
.reo-history-row:hover { border-color: rgba(220,38,38,0.2); }

.reo-row-date { font-size: 13px; color: #94a3b8; font-weight: 500; line-height: 1.2; }
.reo-row-date span { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.reo-row-name { display: flex; align-items: center; }

.reo-session-label-tag {
    font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 7px;
    background: rgba(220,38,38,0.1); color: #fca5a5;
    border: 1px solid rgba(220,38,38,0.2); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 140px; display: inline-block;
}

.reo-session-label-tag[data-tag="daily"],
.reo-session-label-tag[data-tag="planning"],
.reo-session-label-tag[data-tag="retro"],
.reo-session-label-tag[data-tag="meet"],
.reo-session-label-tag[data-tag="review"],
.reo-session-label-tag[data-tag="sin-categoria"],
.reo-session-label-tag[data-tag=""],
.reo-session-label-tag:not([data-tag]) {
    background: rgba(148,163,184,0.06);
    color: #94a3b8;
    border-color: rgba(148,163,184,0.2);
}

.reo-row-time { font-family: 'Digital7','Courier New',monospace; font-size: 17px; color: #94a3b8; letter-spacing: 2px; }
.reo-row-cost {
    font-size: 15px; font-weight: 900; color: #94a3b8;
    font-family: 'Geist', sans-serif;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.reo-peak-badge {
    font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
    background: rgba(220,38,38,0.15); color: #f87171;
    border: 1px solid rgba(220,38,38,0.3); letter-spacing: 0.5px;
}
.reo-row-perperson { font-size: 13px; color: #94a3b8; font-weight: 600; }
.reo-row-zone { display: flex; align-items: center; }
.reo-btn-delete {
    background: transparent; border: none; color: #64748b; cursor: pointer;
    font-size: 13px; padding: 5px; border-radius: 6px; transition: 0.2s; line-height: 1;
}
.reo-btn-delete:hover { color: #dc2626; background: rgba(220,38,38,0.08); }
.reo-history-empty { text-align: center; padding: 40px 20px; color: #64748b; font-size: 14px; line-height: 1.7; }

/* ═══════════════════════════════════════════
   BLOQUE SEO
═══════════════════════════════════════════ */

.reo-seo-intro { grid-column: 1 / -1; width: 100%; margin-top: 2em;}

.reo-seo-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: none;
    margin-bottom: 1.25rem;
    color: #f2f2f2;
    line-height: 1.15;
}

.reo-seo-text {
    font-size: 15px;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 1rem;
    text-align: left;
}

.reo-seo-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 1.5rem 0 2rem;
}

.reo-seo-box {
    background: #1a1a1c;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.reo-seo-box:hover {
    border-color: rgba(220, 38, 38, 0.3);
    background: #1e1a1a;
}

.reo-seo-box-icon {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.18);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.reo-seo-box-icon svg { width: 24px; height: 24px; }
.reo-seo-box-text h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #f2f2f2 !important;
    margin: 0 0 6px !important;
    text-align: left !important;
    line-height: 1.3 !important;
}
 
.reo-seo-box-text p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    margin: 0 !important;
    text-align: left !important;
}

.reo-seo-extra-content {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2.5rem;
}
.reo-seo-extra-content h2 {
    font-size: 22px;
    font-weight: 900;
    color: #f2f2f2;
    margin: 0 0 1rem;
    font-family: 'Geist', sans-serif;
    text-align: left !important;
}
 
.reo-seo-extra-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #f87171;
    margin: 2rem 0 0.75rem;
    text-align: left !important;
}

.reo-seo-list { margin: 20px 0; padding-left: 20px; list-style: none; }
.reo-seo-list li { font-size: 14px; color: #cbd5e1; margin-bottom: 8px; position: relative; }
.reo-seo-list li::before { content: "→"; color: #dc2626; position: absolute; left: -20px; font-weight: bold; }

.reo-feature-stack {
    display: grid;
    gap: 10px;
    margin: 1.75rem 0 2rem;
}

.reo-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: border-color 0.2s ease;
}

.reo-seo-box,
.reo-feature-item {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.07);
}

.reo-feature-item:hover {
    border-color: rgba(220, 38, 38, 0.25);
}

.reo-feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc2626;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

.reo-feature-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 3px;
}
 
.reo-feature-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.footer-text {
    margin-top: 35px; padding: 20px 10px; text-align: center;
    font-size: 13px; color: #64748b; line-height: 1.8;
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; margin-bottom: -7em;
    margin-top: -1em;
}
.footer-text span:not(.footer-separator) { white-space: nowrap; }
.footer-text a { color: #f2f2f2; text-decoration: none; transition: .2s ease; white-space: nowrap; }
.footer-text a:hover { color: #dc2626; }
.footer-separator { margin: 0 8px; opacity: .35; }
.copyright-bar    { display: none !important; }
.inside-site-info { margin-top: -5em !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 980px) {
    .site-main,
    #primary.site-main {
        grid-template-columns: 1fr;
    }
    .reo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 0;
}

.reo-grid .reo-panel.reo-config {
    border-radius: 18px 0 0 18px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.reo-grid .reo-panel.reo-display {
    border-radius: 0 18px 18px 0;
}

    .reo-four-grid       { grid-template-columns: 1fr; }
    .reo-header          { flex-direction: column; text-align: center; }
    .reo-display-actions { width: 100%; }
    .reo-btn-row         { grid-template-columns: 2fr 1fr 1fr; }
    .reo-bar-layout      { height: 300px; }
    #contador-dinero     { font-size: 52px; }
    #contador-tiempo     { font-size: 28px; }
    .reo-history-stats { grid-template-columns: repeat(3, 1fr); }
    .reo-stat-peak-card { display: none; }
    .reo-history-table-header,
    .reo-history-row     { grid-template-columns: 1fr 1fr 0.8fr 0.6fr; }
    .reo-th:nth-child(2), .reo-th:nth-child(5),
    .reo-th:nth-child(6), .reo-th:nth-child(7),
    .reo-row-name, .reo-row-perperson,
    .reo-row-zone, .reo-btn-delete { display: none; }
}

@media (max-width: 768px) { .reo-seo-grid-v2 { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
    .reo-history-stats          { grid-template-columns: 1fr 1fr; }
    .reo-week-bars              { height: 60px; max-height: 60px; }
    .reo-week-bars.reo-month-view { height: 60px; max-height: 60px; gap: 1px; }
}

/* ═══════════════════════════════════════════
   MODAL CLOSE BTN
═══════════════════════════════════════════ */

.rsm-btn-close {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 43px;
    border-radius: 8px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.15s; z-index: 1;
}
.rsm-btn-close:hover { background: rgba(220,38,38,0.12); border-color: rgba(220,38,38,0.3); color: #f87171; }

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */

.reo-faq { margin-top: 20px; }
.reo-faq-list { display: flex; flex-direction: column; gap: 12px; }
.reo-faq-item {
    background: #141416; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; padding: 0; overflow: hidden; transition: 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.reo-faq-item:hover { border-color: rgba(220,38,38,0.25); }
.reo-faq-question {
    list-style: none; cursor: pointer; padding: 16px 18px;
    font-family: 'Geist', sans-serif; font-weight: 700; font-size: 16px;
    color: #f2f2f2; display: flex; justify-content: space-between; align-items: center;
}
.reo-faq-question::after { content: "+"; color: #dc2626; font-size: 20px; font-weight: 900; transition: 0.2s ease; }
details[open] .reo-faq-question::after { content: "−"; }
.reo-faq-answer {
    padding: 0 18px 16px; color: #94a3b8; font-size: 15px; line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.05); margin-top: 10px;
}

/* ═══════════════════════════════════════════
   FILTRO ACTIVO
═══════════════════════════════════════════ */

.reo-bar-clickable { cursor: pointer; transition: opacity 0.15s; }
.reo-bar-clickable:hover { opacity: 0.8; }

#reo-day-filter-badge {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25);
    border-radius: 8px; padding: 8px 14px; margin-bottom: 10px;
    font-size: 13px; color: #94a3b8;
}
#reo-day-filter-badge strong { color: #f87171; font-weight: 700; }
#reo-filter-clear {
    background: transparent; border: none; color: #64748b; cursor: pointer;
    font-size: 13px; padding: 2px 6px; border-radius: 5px; transition: 0.15s;
}
#reo-filter-clear:hover { color: #f87171; }

/* ═══════════════════════════════════════════
   PAGINACIÓN
═══════════════════════════════════════════ */

#reo-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 20px; padding: 14px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.reo-page-prev,
.reo-page-next {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: #64748b; font-size: 12px; font-weight: 600;
    font-family: 'DM Sans', sans-serif; padding: 7px 14px;
    border-radius: 8px; cursor: pointer; transition: 0.15s; white-space: nowrap;
}

.reo-page-prev:hover:not(:disabled),
.reo-page-next:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.14);
  color: #94a3b8;
  background: rgba(255,255,255,0.03) !important;
}

.reo-page-prev:disabled,
.reo-page-next:disabled { opacity: 0.25; cursor: default; }

.reo-page-info {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #64748b; font-family: 'DM Sans', sans-serif;
}

.reo-page-select {
    appearance: none; -webkit-appearance: none;
    background: #0d0d0f; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px; color: #f2f2f2; font-size: 12px; font-weight: 700;
    font-family: 'Geist', sans-serif; padding: 5px 28px 5px 10px;
    cursor: pointer; transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
}
.reo-page-select:focus { outline: none; border-color: rgba(220,38,38,0.45); }
.reo-page-select option { background: #0d0d0f; color: #f2f2f2; }
.reo-page-of { font-size: 12px; color: #64748b; font-weight: 500; white-space: nowrap; }

/* ─── Picker CSV ─── */

#reo-csv-picker {
    position: absolute; background: #0d0d0f;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 6px;
    z-index: 999; min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 2px;
}
.reo-csv-option {
    background: transparent; border: none; color: #94a3b8; font-size: 13px;
    font-weight: 600; padding: 8px 12px; border-radius: 7px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: 0.15s;
}
.reo-csv-option:hover { background: rgba(255,255,255,0.05); color: #f2f2f2; }
.reo-csv-count { font-size: 11px; color: #64748b; font-weight: 400; }

/* ═══════════════════════════════════════════
   COUNTER CARD
═══════════════════════════════════════════ */

.reo-counter-card-inner {
    padding: 20px 24px 18px; display: flex; flex-direction: column;
    align-items: center; gap: 4px; min-width: 0; overflow: hidden;
    width: 100%; max-width: 100%; box-sizing: border-box;
}

.reo-counter-card {
    width: 100%; min-width: 0; overflow: hidden;
    box-sizing: border-box; max-width: 100%;
}

.reo-counter-live {
    display: flex; align-items: center; gap: 6px; margin-bottom: 10px; margin-top: -21px;
}

.reo-counter-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #64748b; transition: background 0.3s; flex-shrink: 0;
}

@keyframes rec-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220,38,38,0.85); opacity: 1; }
    50%  { box-shadow: 0 0 0 4px rgba(220,38,38,0); opacity: 0.75; }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.85); opacity: 1; }
}
.reo-counter-live-dot--running {
    background: #dc2626;
    animation: blink-soft 1s infinite alternate;
}
.reo-counter-live-dot--paused {
    background: #f59e0b; animation: none;
}

.reo-counter-live-label {
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
     color: #64748b; transition: color 0.3s;
}

.reo-counter-footer {
    margin-top: 27px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0;
}
.reo-counter-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.reo-counter-stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.07); flex-shrink: 0; }
.reo-counter-stat-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px;  color: #64748b; }
.reo-counter-stat-value { font-size: 16px; font-weight: 700; color: #64748b; font-family: 'Geist', sans-serif; transition: color 0.3s; }
.reo-counter-card.running .reo-counter-stat-value { color: #94a3b8; }

@media (max-width: 980px) {
    #contador-dinero { font-size: 52px !important; }
    #contador-tiempo { font-size: 24px; }
    .reo-counter-card-inner { padding: 13px 16px 14px; }
}

/* ═══════════════════════════════════════════
   BARRA MODO PRESENTACIÓN
═══════════════════════════════════════════ */

.reo-presentation-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #141416;
    border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
    margin-bottom: 10px; cursor: pointer; user-select: none; transition: border-color 0.2s ease;
}
.reo-presentation-bar:hover { border-color: rgba(220,38,38,0.3); }
.reo-presentation-bar.presentation-active {
    border-color: rgba(220,38,38,0.35); background: rgba(220,38,38,0.04);
}

.reo-presentation-bar-left { display: flex; align-items: center; gap: 10px; }

.reo-presentation-bar-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s;
}
.reo-presentation-bar.presentation-active .reo-presentation-bar-icon {
    background: rgba(220,38,38,0.12); border-color: rgba(220,38,38,0.3);
}

.reo-presentation-bar-text { display: flex; flex-direction: column; gap: 1px; }
.reo-presentation-bar-text strong { font-size: 13px; font-weight: 700; color: #f2f2f2; line-height: 1.2; }
.reo-presentation-bar-text span  { font-size: 11px; color: #64748b; line-height: 1.3; }

.reo-toggle-switch {
    width: 36px; height: 20px; border-radius: 10px;
    background: #64748b; position: relative; flex-shrink: 0; transition: background 0.25s ease;
}
.reo-toggle-switch.on { background: #dc2626; }
.reo-toggle-knob {
    position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff;
    transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.reo-toggle-switch.on .reo-toggle-knob { left: 18px; }

.reo-rate-wrapper {
    position: relative; display: flex; flex-direction: column;
    align-items: center; gap: 2px; margin-top: 1em; width: 100%;
}

input.reo-rate.rate-blurred,
input[type="number"].reo-rate.rate-blurred {
    filter: blur(6px) !important; pointer-events: none !important; user-select: none !important;
}

.reo-rate-label.rate-blurred {
    filter: blur(4px); pointer-events: none; user-select: none;
}

.reo-rate-lock {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px; border-radius: 8px;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.reo-rate-lock.visible { opacity: 1; pointer-events: auto; }
.reo-rate-lock svg { opacity: 0.45; }
.reo-rate-lock-label {
    font-size: 9px; color: #64748b; letter-spacing: 0.6px;
     font-weight: 600;
}

.reo-checkbox.rate-blurred {
    filter: blur(5px); pointer-events: none; user-select: none;
}
.reo-checkbox.rate-blurred input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; width: 14px; height: 14px;
    border: 1px solid rgba(255,255,255,0.15); border-radius: 3px;
    background: transparent; pointer-events: none; vertical-align: middle;
    position: relative; top: -1px;
}
.reo-checkbox.rate-blurred input[type="checkbox"]::after { display: none; }

.reo-extra-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #141416;
    border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
    margin-top: 0; margin-bottom: 0; cursor: pointer; user-select: none; transition: border-color 0.2s ease;
}

.reo-tools-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch;
}

@media (max-width: 980px) {
    .reo-tools-row { grid-template-columns: 1fr; }
}

.reo-extra-bar:hover { border-color: rgba(220,38,38,0.3); }
.reo-extra-bar.extra-active {
    border-color: rgba(220,38,38,0.35); background: rgba(220,38,38,0.04);
}

.hide-extra-cost .reo-extra-bar { display: none; }
.hide-extra-cost .reo-checkbox,
.hide-extra-cost .reo-extra-bar { display: none; }

.reo-extra-bar,
.reo-presentation-bar { height: 100%; }

.reo-btn-icon:focus { outline: none; }
.reo-btn-icon:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* ═══════════════════════════════════════════
   COSTE POR PERSONA
═══════════════════════════════════════════ */

.reo-perperson-line {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 6px; font-size: 13px; color: #64748b;
    min-height: 22px; transition: color 0.3s;
}

.reo-perperson-line strong {
    color: #94a3b8; font-weight: 700;
    font-family: 'Geist', sans-serif;
    font-size: 15px; transition: color 0.3s;
}

.reo-counter-card.running .reo-perperson-line strong { color: #f2f2f2; }

.reo-perperson-sep {
    width: 3px; height: 3px; border-radius: 50%;
    background: #64748b; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   RESUMEN POST-REUNIÓN
═══════════════════════════════════════════ */

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

#reo-summary-panel {
    display: none; width: 100%; animation: slideDown 0.3s ease;
}

#reo-summary-panel.visible { display: block; }

.reo-summary-inner {
    background: #0d0d0f;
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 16px; overflow: hidden;
}

.reo-summary-header {
    background: rgba(220,38,38,0.06); padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(220,38,38,0.12);
}

.reo-summary-header-left { display: flex; align-items: center; gap: 10px; }
.reo-summary-header-left svg { flex-shrink: 0; color: #dc2626; }

.reo-summary-title {
    font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 700;
    color: #f2f2f2;  letter-spacing: 0.5px;
}

.reo-summary-subtitle { font-size: 11px; color: #64748b; margin-top: 2px; }

#reo-summary-zone-badge {
    font-size: 18px; font-weight: 900;
    font-family: 'Geist', sans-serif; line-height: 1;
    background: none !important; border: none !important; padding: 0 !important;
}

.reo-summary-stats {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0;
}

.reo-summary-stat {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 18px 12px; border-right: 1px solid rgba(255,255,255,0.04); gap: 4px;
}
.reo-summary-stat:last-child { border-right: none; }

.reo-summary-stat-label {
    font-size: 10px; color: #64748b; 
    letter-spacing: 0.8px; font-weight: 600;
}

.reo-summary-stat-value {
    font-size: 22px; font-weight: 900;
    font-family: 'Geist', sans-serif; line-height: 1;
}

.reo-summary-stat-value.green  { color: #4ade80; }
.reo-summary-stat-value.amber  { color: #f2f2f2; }
.reo-summary-stat-value.red    { color: #f87171; }
.reo-summary-stat-value.muted  { color: #94a3b8; }

.reo-summary-footer {
    padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.04);
    display: flex; gap: 8px; align-items: center;
}

.reo-summary-btn-share,
.reo-summary-btn-dismiss {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; color: #64748b; font-size: 12px; font-weight: 600;
    padding: 9px 16px; cursor: pointer; display: flex; align-items: center;
    gap: 6px; font-family: 'DM Sans', sans-serif; transition: 0.15s; white-space: nowrap;
}
.reo-summary-btn-share:hover,
.reo-summary-btn-dismiss:hover { border-color: rgba(255,255,255,0.2); color: #f2f2f2; }

.reo-summary-btn-save {
    flex: 0 0 auto; margin-right: 0; margin-left: auto;
    background: #dc2626; border: none; border-radius: 10px; color: #fff;
    font-size: 12px; font-weight: 900; padding: 10px 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Montserrat', sans-serif; letter-spacing: 0.5px;
    transition: background 0.2s; white-space: nowrap;
}
.reo-summary-btn-save:hover { background: #b91c1c; }

@media (max-width: 600px) {
    .reo-summary-stats { grid-template-columns: repeat(2, 1fr); }
    .reo-summary-stat:nth-child(2) { border-right: none; }
    .reo-summary-stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.04); }
    .reo-summary-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.04); }
    .reo-summary-stat:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.04); grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════
   RÉCORDS PERSONALES
═══════════════════════════════════════════ */

.reo-records-panel { width: 100%;}

.reo-records-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.reo-records-title {
    font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 900;
     letter-spacing: 0.5px; color: #f2f2f2; margin: 0;
    display: flex; align-items: center; gap: 8px;
}

.reo-records-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.reo-record-item {
    background: #0d0d0f; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px; transition: border-color 0.2s;
}
.reo-record-item:hover { border-color: rgba(255,255,255,0.1); }

.reo-record-icon {
    width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reo-record-icon svg { width: 16px; height: 16px; }

.reo-record-icon-red    { background: rgba(248,113,113,0.1); }
.reo-record-icon-amber  { background: rgba(245,158,11,0.1); }
.reo-record-icon-green  { background: rgba(74,222,128,0.1); }
.reo-record-icon-blue   { background: rgba(96,165,250,0.1); }

.reo-record-text small {
    display: block; font-size: 10px; color: #64748b; 
    letter-spacing: 0.6px; margin-bottom: 2px; font-weight: 600;
}
.reo-record-text strong {
    display: block; font-size: 16px; font-weight: 700; color: #f2f2f2;
    font-family: 'Geist', sans-serif; line-height: 1.2;
}
.reo-record-text span {
    display: block; font-size: 11px; color: #64748b; margin-top: 2px;
}

.reo-records-panel .reo-record-icon svg { stroke: #64748b !important; }
.reo-records-panel .reo-record-text strong { color: #f2f2f2; }
.reo-records-panel .reo-record-icon {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════
   TAGS + TENDENCIAS
═══════════════════════════════════════════ */

.reo-trends-panel { width: 100%; }

.reo-trends-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}

.reo-trends-title {
    font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 900;
     letter-spacing: 0.5px; color: #f2f2f2; margin: 0;
    display: flex; align-items: center; gap: 8px;
}

.reo-tag-filter-row {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}

.reo-tag-filter {
    font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 8px;
    cursor: pointer; transition: 0.15s; border: 1px solid;
    white-space: nowrap; background: transparent; font-family: 'DM Sans', sans-serif;
}

.reo-tag-filter[data-tag="all"],
.reo-tag-filter[data-tag="daily"],
.reo-tag-filter[data-tag="planning"],
.reo-tag-filter[data-tag="retro"],
.reo-tag-filter[data-tag="meet"],
.reo-tag-filter[data-tag="review"],
.reo-tag-filter[data-tag="sin-categoria"] {
    color: #94a3b8;
    border-color: rgba(148,163,184,0.2);
    background: rgba(148,163,184,0.06);
}

.reo-tag-filter.active {
    color: #cbd5e1;
    border-color: rgba(148,163,184,0.5);
    background: rgba(148,163,184,0.12);
    box-shadow: 0 0 0 1px rgba(148,163,184,0.3);
}

.reo-trend-wrap {
    background: #0d0d0f; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 16px 18px 10px; margin-bottom: 10px;
}

.reo-trend-chart-title {
    font-size: 11px; font-weight: 600; 
    letter-spacing: 0.8px; color: #64748b; margin-bottom: 12px;
}

.reo-trend-bars { display: block; width: 100%; height: 140px; }

.reo-trend-col {
    display: flex; flex-direction: column; align-items: center;
    height: 100%; gap: 3px; justify-content: flex-end;
}

.reo-trend-bar-amount {
    font-size: 9px; font-weight: 700; height: 13px; line-height: 13px;
    white-space: nowrap; letter-spacing: 0.3px;
}

.reo-trend-bar-track {
    flex: 1; width: 100%; background: rgba(255,255,255,0.04);
    border-radius: 5px; display: flex; align-items: flex-end;
    overflow: hidden; min-height: 4px;
}

.reo-trend-bar-fill {
    width: 100%; border-radius: 5px;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); min-height: 3px;
}

.reo-trend-bar-fill.is-highest { background: #dc2626; }

.reo-trend-bar-label {
    font-size: 11px; height: 14px; line-height: 14px;
    letter-spacing: 0.3px; transition: color 0.2s;
}

.reo-trend-insight-v2 { margin-top: 14px; }

.rtiv2-days {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 6px; margin-top: 10px; align-items: flex-end; height: 90px;
}

.rtiv2-day {
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-end; gap: 4px; height: 100%;
}

.rtiv2-day-name {
    font-size: 9px; font-weight: 700; 
    letter-spacing: .4px; color: #64748b;
}

.rtiv2-day-val {
    font-size: 10px; font-weight: 700;
    font-family: 'Geist', sans-serif; line-height: 1; white-space: nowrap;
}

.rtiv2-day-fill {
    width: 100%; border-radius: 6px; min-height: 3px;
    transition: height 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.rtiv2-day-track {
    width: 100%; flex: 1; display: flex; align-items: flex-end;
    background: rgba(255,255,255,0.04); border-radius: 6px;
    overflow: hidden; min-height: 4px;
}

.rtiv2-day-count { font-size: 9px; opacity: .6; }

.rtiv2-day.worst .rtiv2-day-name { color: #dc2626; }
.rtiv2-day.worst .rtiv2-day-val  { color: #dc2626; }
.rtiv2-day.ok    .rtiv2-day-name,
.rtiv2-day.ok    .rtiv2-day-val,
.rtiv2-day.good  .rtiv2-day-name,
.rtiv2-day.good  .rtiv2-day-val  { color: #f87171; }

.reo-trends-subtitle {
    font-size: 11px; color: #64748b; font-weight: 500; margin-top: 2px;
}

/* ═══════════════════════════════════════════
   PRESUPUESTO MENSUAL
═══════════════════════════════════════════ */

.reo-budget-panel { width: 100%;}

.reo-budget-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}

.reo-budget-title {
    font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 900;
     letter-spacing: 0.5px; color: #f2f2f2; margin: 0;
    display: flex; align-items: center; gap: 8px;
}

.reo-budget-edit-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #64748b; font-size: 12px; font-weight: 600;
    padding: 6px 12px; cursor: pointer; font-family: 'DM Sans', sans-serif;
    display: flex; align-items: center; gap: 5px; transition: 0.15s;
}
.reo-budget-edit-btn:hover { border-color: rgba(220,38,38,0.35); color: #fca5a5; }

.reo-budget-body {
    background: #0d0d0f; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; padding: 20px 22px;
}

.reo-budget-top {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}

.reo-budget-month { font-size: 13px; color: #64748b; font-weight: 500; }

.reo-budget-amounts {
    font-size: 14px; color: #f2f2f2; font-weight: 600;
    font-family: 'Geist', sans-serif;
}

.reo-budget-amounts span { color: #f2f2f2; }

.reo-budget-bar-wrap {
    background: rgba(255,255,255,0.06); border-radius: 6px;
    height: 8px; overflow: hidden; margin-bottom: 10px;
}

.reo-budget-bar-fill {
    height: 100%; border-radius: 6px; background: #dc2626; transition: width 0.5s ease, background 0.3s;
}

.reo-budget-bar-fill.warning { background: #f59e0b; }
.reo-budget-bar-fill.safe    { background: #4ade80; }

.reo-budget-footer-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #64748b; flex-wrap: wrap; gap: 4px;
}

.reo-budget-footer-row strong { color: #f87171; font-weight: 700; }
.reo-budget-footer-row .ok    { color: #4ade80; font-weight: 700; }

.reo-budget-input-row {
    display: none; align-items: center; gap: 8px;
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.reo-budget-input-row.visible { display: flex; }

.reo-budget-input {
    flex: 1; background: #18181a; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9px; color: #f2f2f2; font-size: 15px; font-weight: 700;
    font-family: 'Geist', sans-serif; padding: 9px 14px; outline: none; transition: border-color 0.2s;
}
.reo-budget-input::-webkit-inner-spin-button,
.reo-budget-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.reo-budget-input:focus { border-color: rgba(220,38,38,0.5); }

.reo-budget-input-label { font-size: 12px; color: #64748b; white-space: nowrap; }

.reo-budget-save-btn {
    background: #dc2626; border: none; border-radius: 9px; color: #fff;
    font-size: 12px; font-weight: 700; padding: 9px 16px; cursor: pointer;
    font-family: 'Montserrat', sans-serif; transition: background 0.2s; white-space: nowrap;
}
.reo-budget-save-btn:hover { background: #b91c1c; }

/* ═══════════════════════════════════════════
   ANALYTICS
═══════════════════════════════════════════ */

.reo-analytics-block {
    margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; margin-bottom: 2em;
}

.rab-top {
    display: grid; grid-template-columns: 150px 1fr;
    gap: 14px; margin-bottom: 12px;
}

.rab-score {
    background: #0d0d0f;
    border-radius: 12px;
    padding: 32px 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-right: -40px;
}

.rab-ring-wrap { position: relative; width: 84px; height: 84px; }

.rab-ring-svg { width: 84px; height: 84px; transform: rotate(-90deg); }

.rab-ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 7; }

.rab-ring-fill {
    fill: none; stroke-width: 7; stroke-linecap: round;
    stroke-dasharray: 220; stroke-dashoffset: 220;
    transition: stroke-dashoffset 0.8s ease, stroke 0.4s ease;
}

.rab-ring-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.rab-score-num {
    font-size: 22px; font-weight: 700; line-height: 1;
    font-family: 'Geist', sans-serif; transition: color 0.4s;
}
.abb-score-num { font-size: 22px; font-weight: 700; line-height: 1; font-family: 'Geist', sans-serif; }
.rab-score-den { font-size: 13px; color: #94a3b8; }

.rab-score-label {
    font-size: 10px; font-weight: 700; 
    letter-spacing: 0.8px; color: #64748b;
}

.rab-score-verdict { font-size: 11px; color: #64748b; text-align: center; line-height: 1.4; }
.rab-score-verdict em { font-style: normal; font-weight: 700; }

.rab-days-list { display: flex; flex-direction: column; gap: 5px; margin-left: 40px;}

.rab-day-row {
    display: grid; grid-template-columns: 34px 1fr 52px 90px;
    gap: 8px; align-items: center; background: #0d0d0f;
    border-radius: 8px; padding: 8px 12px;
    border: 0.5px solid rgba(255,255,255,0.04); transition: border-color 0.2s;
}
.abb-day-row { display: grid; grid-template-columns: 34px 1fr 52px 90px; gap: 8px; align-items: center; background: #0d0d0f; border-radius: 8px; padding: 8px 12px; border: 0.5px solid rgba(255,255,255,0.04); }

.rab-day-row.worst {
    border-color: rgba(148,163,184,0.15); background: rgba(148,163,184,0.04);
}

.abb-day-name,
.rab-day-name { font-size: 12px; font-weight: 700; color: #64748b; }
.rab-day-row.worst .rab-day-name { color: #94a3b8; }

.abb-bar-wrap,
.rab-bar-wrap { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }

.abb-bar-fill,
.rab-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

.abb-day-cost,
.rab-day-cost {
    font-size: 12px; font-weight: 700; color: #94a3b8;
    text-align: right; font-family: 'Geist', sans-serif;
}
.rab-day-row.worst .rab-day-cost { color: #94a3b8; }

.abb-day-meta,
.rab-day-meta {
    font-size: 10px; color: #64748b; text-align: right;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rab-day-row.worst .rab-day-meta { color: rgba(148,163,184,0.5); }

.rab-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px;}

.rab-card {
    background: #0d0d0f; border-radius: 10px; padding: 14px 16px;
    border: 0.5px solid rgba(255,255,255,0.06);
}
.rab-card-accent { border-color: rgba(220,38,38,0.2); background: rgba(220,38,38,0.04); }

.rab-card-title {
    font-size: 10px; font-weight: 700; 
    letter-spacing: 0.8px; color: #64748b; margin-bottom: 10px;
}

.rab-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border-bottom: 0.5px solid rgba(255,255,255,0.04);
}
.rab-row:last-child { border-bottom: none; }

.rab-row-label { font-size: 11px; color: #64748b; }

.rab-row-val {
    font-size: 12px; font-weight: 700; color: #f2f2f2;
    font-family: 'Geist', sans-serif; text-align: right;
}
.rab-row-val.red   { color: #f2f2f2; }
.rab-row-val.amber { color: #f2f2f2; }
.rab-row-val.green { color: #f2f2f2; }

.rab-action-text { font-size: 12px; color: #64748b; line-height: 1.65; }
.rab-action-text strong { color: #e2e8f0; font-weight: 600; }

@media (max-width: 768px) {
    .rab-top    { grid-template-columns: 1fr; }
    .rab-bottom { grid-template-columns: 1fr; }
    .rab-day-row { grid-template-columns: 34px 1fr 52px; }
    .rab-day-meta { display: none; }
}

/* ═══════════════════════════════════════════
   MODAL TAGS — Review reemplaza a Cliente
═══════════════════════════════════════════ */

.rsm-tag-section { margin-bottom: 18px; }

.rsm-tag-label {
    display: block; font-size: 11px; font-weight: 600; 
    letter-spacing: 0.8px; color: #64748b; margin-bottom: 8px;
}

.rsm-tag-grid { display: flex; flex-wrap: wrap; gap: 6px; }

.rsm-tag-btn[data-tag="daily"],
.rsm-tag-btn[data-tag="planning"],
.rsm-tag-btn[data-tag="retro"],
.rsm-tag-btn[data-tag="meet"],
.rsm-tag-btn[data-tag="review"] {
    color: #94a3b8;
    border-color: rgba(148,163,184,0.2);
    background: rgba(148,163,184,0.06);
    font-size: 11px;
    padding: 10px;
}

.rsm-tag-btn.selected {
    color: #cbd5e1;
    border-color: rgba(148,163,184,0.5);
    background: rgba(148,163,184,0.12);
    box-shadow: 0 0 0 1px rgba(148,163,184,0.3);
    font-size: 11px;
}

/* ─── Tag en tabla historial ─── */

.reo-category-tag {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 6px; border: 1px solid; white-space: nowrap; display: inline-block;
}

.reo-category-tag[data-tag="daily"]    { color: #93c5fd; border-color: rgba(59,130,246,0.3);  background: rgba(59,130,246,0.08); }
.reo-category-tag[data-tag="planning"] { color: #c4b5fd; border-color: rgba(168,85,247,0.3);  background: rgba(168,85,247,0.08); }
.reo-category-tag[data-tag="retro"]    { color: #fcd34d; border-color: rgba(245,158,11,0.3);  background: rgba(245,158,11,0.08); }
.reo-category-tag[data-tag="meet"]     { color: #6ee7b7; border-color: rgba(16,185,129,0.3);  background: rgba(16,185,129,0.08); }
.reo-category-tag[data-tag="review"]   { color: #f9a8d4; border-color: rgba(236,72,153,0.3);  background: rgba(236,72,153,0.08); }

/* ══════════════════════════════════════════
   LAYOUT 2×2
══════════════════════════════════════════ */

.reo-panels-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    align-items: start;
    margin-top: -1em;
}

.reo-left-stack,
.reo-right-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.reo-left-stack {
    align-self: start;
}

.reo-right-stack {
    align-self: start;
}

#reo-records-panel,
#reo-budget-panel,
#reo-trends-panel,
#reo-analytics-panel {
    margin-bottom: 0;
    width: 100%;
}

#reo-analytics-panel {
    padding-bottom: 19px;
    width: 100%;
}

#reo-records-panel {
    margin-top: 1em;
}

#reo-trends-panel {
    margin-top: 0em;
}

/* Cabecera Analytics */
.reo-analytics-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.reo-analytics-title {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 900;
    
    letter-spacing: 0.5px;
    color: #f2f2f2;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reo-analytics-block {
    margin-top: 10px;
    border-top: none;
}

@media (max-width: 980px) {
    .reo-panels-grid {
        grid-template-columns: 1fr;
    }
    .reo-left-stack {
        position: static;
    }
}

/* ═══════════════════════════════════════════
   COSTE POR CATEGORÍA
═══════════════════════════════════════════ */

#reo-catcost-panel { width: 100%;}

.reo-catcost-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1em;
}

.reo-catcost-title {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 900;
    
    letter-spacing: 0.5px;
    color: #f2f2f2;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reo-catcost-period {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    
    letter-spacing: 0.6px;
}

.reo-catcost-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.reo-catcost-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 21px;
}

.reo-catcost-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reo-catcost-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.reo-catcost-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reo-catcost-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reo-catcost-amount {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    font-family: 'Geist', sans-serif;
}

.reo-catcost-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.reo-catcost-track {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.reo-catcost-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Separador total */
.reo-catcost-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.reo-catcost-total-label {
    font-size: 11px;
    color: #64748b;
    
    letter-spacing: 0.7px;
    font-weight: 600;
}

.reo-catcost-total-value {
    font-size: 18px;
    font-weight: 900;
    color: #f2f2f2;
    font-family: 'Geist', sans-serif;
}

/* Insight */
.reo-catcost-insight {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(220,38,38,0.04);
    border: 1px solid rgba(220,38,38,0.15);
    border-radius: 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.65;
    display: none !important;
}

.reo-catcost-insight strong {
    color: #e2e8f0;
    font-weight: 600;
}

/* Empty state */
.reo-catcost-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    color: #64748b;
    font-size: 13px;
}

.reo-dot-tooltip {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.reo-trend-dot-group:hover .reo-dot-tooltip {
    opacity: 1;
}

/* Oculta el value label fijo al hacer hover sobre el punto */
.reo-trend-dot-group:hover ~ .reo-value-label {
    opacity: 0;
}

.reo-trend-bars svg .reo-value-label {
    transition: opacity 0.15s ease;
}

.reo-seo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    
    color: #f87171;
    margin-bottom: 1.5rem;
}

.reo-seo-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc2626;
    flex-shrink: 0;
    animation: badge-pulse 2s ease-in-out infinite;
}
 
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.reo-seo-title-accent {
    color: #dc2626;
    display: inline;
}
 
/* ── Lead paragraph ── */
.reo-seo-lead {
    font-size: 16px;
    line-height: 1.75;
    color: #94a3b8;
    margin-bottom: 2rem;
}
 
.reo-seo-lead strong {
    color: #f2f2f2;
    font-weight: 600;
}

.reo-seo-text strong {
    color: #f2f2f2;
    font-weight: 600;
}

/* ── Metrics bar ───────────────────────────────────────────── */
.reo-metrics-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0d0d0f;
  border: 1px solid rgba(255,255,255,0.05); 
  transition: opacity 0.3s ease;
  min-height: 56px;
}

.reo-metrics-idle {
  opacity: 0.4;
}

.reo-metric-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.reo-metric-hero-sup {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.reo-metric-hero-val {
  font-size: 22px;
  font-weight: 700;
  color: #f2f2f2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.reo-metric-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.reo-metric-secondary {
  display: flex;
  gap: 20px;
  flex: 1;
}

.reo-metric-sec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reo-metric-sec-label {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
}

.reo-metric-sec-val {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 56px;
}

@media (max-width: 480px) {
  .reo-metrics-bar   { flex-direction: column; align-items: flex-start; gap: 10px; }
  .reo-metric-sep    { width: 100%; height: 1px; }
  .reo-metric-secondary { flex-wrap: wrap; }
}

.reo-view-toggle-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: 0.15s;
}

.reo-view-toggle-btn.active {
  background: #dc2626;
  color: #fff;
}

.reo-view-toggle-btn:not(.active):hover {
  color: #64748b;
  background: rgba(255,255,255,0.04);
}

.reo-catcost-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.reo-catcost-empty-sub {
    font-size: 12px;
    color: #334155;
    margin: 0;
    max-width: 220px;
    line-height: 1.5;
}

.reo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 280px;
    text-align: center;
    padding-bottom: 80px;
    margin-bottom: 13px;
}

.reo-empty-state .reo-catcost-empty-title {
    margin: 0 0 4px;
}

.reo-empty-state .reo-catcost-empty-sub {
    margin: 0;
}

/* ═══════════════════════════════════════════
   MEETMETER — RESPONSIVE ADDITIONS
   Añadir al FINAL de style.css (child theme)
   No modifica nada del CSS existente.
═══════════════════════════════════════════ */


/* ────────────────────────────────────────────
   TABLET — 768px a 1199px
──────────────────────────────────────────── */

@media (max-width: 1199px) {

  .site-main,
  #primary.site-main {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 16px;
  }

  .reo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reo-grid .reo-panel.reo-config {
    border-radius: 18px;
    border-right: none;
  }

  .reo-grid .reo-panel.reo-display {
    border-radius: 18px;
  }

  .reo-display {
    min-height: auto;
  }

  .reo-display-core {
    flex-direction: column;
    gap: 16px;
  }

  .reo-barometro-v2 {
    max-width: 100%;
  }

  .reo-bar-layout {
    height: 140px;
  }

  .reo-panels-grid {
    grid-template-columns: 1fr;
  }

  .reo-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo menu"
      "slogan slogan";
    margin: 0.75em 1em;
    padding: 0 1em;
    gap: 8px 12px;
  }

  .reo-logo {
    font-size: 32px;
  }

  .reo-menu-list {
    gap: 14px;
  }

  .reo-menu-list li a {
    font-size: 14px;
  }

  .reo-history-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .reo-stat-peak-card {
    display: none;
  }

  .reo-history-table-header,
  .reo-history-row {
    grid-template-columns: 1.2fr 1.4fr 0.9fr 1fr 0.5fr;
  }

  .reo-th:nth-child(5),
  .reo-th:nth-child(7),
  .reo-row-perperson,
  .reo-btn-delete {
    display: none;
  }

  .reo-row-zone {
    justify-content: flex-end;
  }

  .reo-records-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rab-top {
    grid-template-columns: 1fr;
  }

  .rab-score {
    margin-right: 0;
    padding: 20px 12px;
  }

  .rab-days-list {
    margin-left: 0;
  }

  .rab-bottom {
    grid-template-columns: 1fr;
  }

  .reo-seo-grid-v2 {
    grid-template-columns: 1fr;
  }
}


/* ────────────────────────────────────────────
   MOVIL — hasta 767px
──────────────────────────────────────────── */

@media (max-width: 767px) {

  body {
    font-size: 1em;
  }

  .site-main,
  #primary.site-main {
    padding: 8px;
    gap: 12px;
  }

  /* Header */
  .reo-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "menu"
      "slogan";
    margin: 0.5em 0;
    padding: 0 0.75em;
    gap: 6px;
  }

  .reo-logo {
    font-size: 26px;
  }

  .reo-slogan {
    font-size: 12px;
  }

  .reo-menu-list {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .reo-menu-list li a {
    font-size: 13px;
  }

  /* Panel base */
  .reo-panel {
    padding: 14px;
    border-radius: 14px;
  }

  /* Roles compactos */
  .reo-roles-container {
    gap: 8px;
  }

  .reo-role {
    padding: 14px 8px 12px;
    border-radius: 10px;
  }

  .reo-role-title {
    font-size: 11px;
  }

  .reo-controls {
    gap: 6px;
  }

  /* Área táctil mínima 44px */
  .reo-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 9px;
    min-width: 44px;
    min-height: 44px;
  }

  .reo-count {
    min-width: 38px;
    font-size: 16px;
    padding: 4px 6px;
  }

  input.reo-rate,
  input[type="number"].reo-rate {
    max-width: 90px !important;
    font-size: 18px !important;
  }

  /* Botones de acción */
  .reo-btn-row {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6px;
  }

  #btn-control {
    padding: 12px 8px;
    font-size: 9px;
    min-height: 44px;
  }

  .reo-btn-icon {
    padding: 10px 6px;
    font-size: 9px;
    min-height: 44px;
  }

  .reo-tools-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* Contador */
  #contador-dinero {
    font-size: 44px !important;
    height: 70px !important;
  }

  #contador-tiempo {
    font-size: 22px;
  }

  .reo-counter-card-inner {
    padding: 14px 12px;
  }

  .reo-counter-footer {
    margin-top: 16px;
  }

  /* Barómetro compacto */
  .reo-bar-layout {
    height: 110px;
    gap: 12px;
  }

  .reo-label-item .reo-time-range { font-size: 11px; }
  .reo-label-item .reo-status     { font-size: 13px; }
  .reo-label-item .reo-subtext    { display: none; }

  .reo-display-header-row {
    margin-bottom: 10px;
  }

  .reo-main-title {
    font-size: 18px;
  }

  /* Metrics bar vertical */
  .reo-metrics-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .reo-metric-sep {
    width: 100%;
    height: 1px;
  }

  .reo-metric-secondary {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Summary panel */
  .reo-summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .reo-summary-stat:nth-child(even) {
    border-right: none;
  }

  .reo-summary-stat:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,0.04);
  }

  .reo-summary-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  .reo-summary-btn-save {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  /* Historial */
  .reo-history-header {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }

  .reo-history-title {
    font-size: 16px;
  }

  .reo-history-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .reo-history-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .reo-stat-card {
    padding: 12px;
  }

  .reo-stat-value {
    font-size: 18px;
  }

  /* 5ª card ocupa todo el ancho */
  .reo-stat-peak-card {
    display: flex;
    grid-column: 1 / -1;
  }

  /* Gráfico barras */
  .reo-week-bars {
    height: 60px;
    max-height: 60px;
    gap: 4px;
  }

  .reo-week-bar-amount {
    font-size: 9px;
  }

  .reo-week-bar-label {
    font-size: 10px;
  }

  /* Tabla historial: 4 columnas esenciales */
  .reo-history-table-header,
  .reo-history-row {
    grid-template-columns: 1fr 0.9fr 0.8fr 0.4fr;
    gap: 6px;
    padding: 10px 8px;
  }

  .reo-th:nth-child(2),
  .reo-th:nth-child(5),
  .reo-th:nth-child(6),
  .reo-th:nth-child(7),
  .reo-row-name,
  .reo-row-perperson,
  .reo-row-zone,
  .reo-btn-delete {
    display: none;
  }

  .reo-row-cost {
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .reo-row-time {
    font-size: 14px;
  }

  .reo-row-date {
    font-size: 12px;
  }

  /* Chart nav */
  .reo-week-chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .reo-week-nav {
    width: 100%;
    justify-content: space-between;
  }

  .reo-week-label {
    min-width: auto;
    flex: 1;
    text-align: center;
  }

  .reo-panels-grid {
    gap: 12px;
  }

  /* Récords */
  .reo-records-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .reo-record-item {
    padding: 10px 12px;
    gap: 8px;
  }

  .reo-record-text strong {
    font-size: 14px;
  }

  /* Tendencias: ocultar mini-bars */
  .reo-trend-insight-v2 {
    display: none;
  }

  /* Analytics */
  .rab-day-row {
    grid-template-columns: 34px 1fr 52px;
  }

  .abb-day-row {
    grid-template-columns: 34px 1fr 52px;
  }

  .rab-day-meta,
  .abb-day-meta {
    display: none;
  }

  /* Categorías */
  .reo-catcost-row-top {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Budget */
  .reo-budget-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* SEO */
  .reo-seo-title {
    font-size: 22px;
  }

  .reo-seo-lead {
    font-size: 14px;
  }

  .reo-seo-grid-v2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reo-seo-box {
    padding: 16px;
    gap: 12px;
  }

  .reo-feature-item {
    padding: 12px 14px;
  }

  /* Modal */
  #reo-save-modal {
    width: 95%;
    max-width: 95vw;
  }

  .rsm-tag-grid {
    gap: 5px;
  }

  /* Paginación */
  #reo-pagination {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  /* Footer */
  .footer-text {
    font-size: 11px;
    gap: 4px;
    padding: 16px 8px;
  }

  .footer-separator {
    display: none;
  }

  .footer-text span:not(.footer-separator),
  .footer-text a {
    display: block;
    text-align: center;
    width: 100%;
  }
}


/* ────────────────────────────────────────────
   MUY PEQUEÑO — hasta 380px (iPhone SE etc.)
──────────────────────────────────────────── */

@media (max-width: 380px) {

  .reo-roles-container {
    gap: 5px;
  }

  .reo-role {
    padding: 10px 5px 10px;
  }

  .reo-role-title {
    font-size: 10px;
  }

  input.reo-rate,
  input[type="number"].reo-rate {
    max-width: 70px !important;
    font-size: 16px !important;
  }

  #contador-dinero {
    font-size: 36px !important;
    height: 58px !important;
  }

  /* Start ocupa toda la fila en pantallas muy pequeñas */
  .reo-btn-row {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  #btn-control {
    grid-column: 1 / -1;
  }

  .reo-history-stats {
    grid-template-columns: 1fr;
  }

  .reo-stat-peak-card {
    grid-column: auto;
  }

  .reo-records-grid {
    grid-template-columns: 1fr;
  }

  /* Solo fecha y coste */
  .reo-history-table-header,
  .reo-history-row {
    grid-template-columns: 1fr 0.8fr;
    gap: 4px;
  }

  .reo-th:nth-child(3),
  .reo-row-time {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MEETMETER — RESPONSIVE FIX v3
   Causa raíz: .reo-header tiene margin-left/right: 5em fijos
   y .site-main tiene max-width: 76em — en móvil estos valores
   hacen que el layout sea más ancho que el viewport.
   
   Pegar en: Apariencia → Personalizar → CSS adicional
   Reemplaza todo el CSS responsive anterior.
═══════════════════════════════════════════════════════════════ */


/* ── BASE: forzar que nada desborde ── */
*, *::before, *::after {
  box-sizing: border-box !important;
}

/* ════════════════════════════════════════════
   TABLET ≤ 1199px
════════════════════════════════════════════ */

@media (max-width: 1199px) {

  /* Contenedor principal */
  body .site-main,
  body #primary.site-main {
    max-width: 100% !important;
    padding: 16px !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Header: quitar márgenes fijos */
  body .reo-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 1em !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas: "logo . menu" "slogan slogan slogan" !important;
  }

  /* Grid calculadora */
  body .reo-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body .reo-grid .reo-panel.reo-config,
  body .reo-grid .reo-panel.reo-display {
    border-radius: 18px !important;
    border-right: none !important;
  }

  /* Panels y four-grid */
  body .reo-panels-grid,
  body .reo-four-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Artículo: cards */
  body .reo-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Tablas con scroll interno */
  body .reo-table-wrap {
    overflow-x: auto !important;
  }
}


/* ════════════════════════════════════════════
   MÓVIL ≤ 767px
════════════════════════════════════════════ */

@media (max-width: 767px) {

  /* ── Contenedor raíz ── */
  body .site-main,
  body #primary.site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow: hidden !important;
  }

  /* ── Header: el culpable principal ── */
  body .reo-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0.75em !important;
    margin-bottom: 0.5em !important;
    padding: 0 0.75em !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "logo"
      "menu"
      "slogan" !important;
    gap: 6px !important;
  }

  body .reo-logo {
    font-size: 26px !important;
  }

  body .reo-slogan {
    font-size: 12px !important;
  }

  body .reo-menu-list {
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  body .reo-menu-list li a {
    font-size: 13px !important;
  }

  /* ── Grid calculadora ── */
  body .reo-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body .reo-grid .reo-panel.reo-config,
  body .reo-grid .reo-panel.reo-display {
    border-radius: 14px !important;
    border-right: none !important;
  }

  body .reo-panel {
    padding: 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ── Roles ── */
  body .reo-roles-container {
    gap: 6px !important;
  }

  body .reo-role {
    padding: 14px 6px 12px !important;
  }

  body .reo-role-title {
    font-size: 10px !important;
    letter-spacing: 0.3px !important;
  }

  body .reo-controls {
    gap: 5px !important;
  }

  body .reo-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  body .reo-count {
    min-width: 34px !important;
    font-size: 15px !important;
    padding: 4px 5px !important;
  }

  body input.reo-rate,
  body input[type="number"].reo-rate {
    max-width: 76px !important;
    font-size: 16px !important;
  }

  /* ── Botones de acción ── */
  body .reo-btn-row {
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 6px !important;
  }

  body #btn-control {
    padding: 10px 6px !important;
    font-size: 9px !important;
    min-height: 44px !important;
  }

  body .reo-btn-icon {
    padding: 10px 4px !important;
    font-size: 9px !important;
    min-height: 44px !important;
  }

  body .reo-tools-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  /* ── Contador ── */
  body #contador-dinero {
    font-size: 38px !important;
    height: 60px !important;
  }

  body #contador-tiempo {
    font-size: 20px !important;
  }

  /* ── Barómetro ── */
  body .reo-display-core {
    flex-direction: column !important;
    gap: 12px !important;
  }

  body .reo-barometro-v2 {
    max-width: 100% !important;
  }

  body .reo-bar-layout {
    height: 110px !important;
    gap: 10px !important;
  }

  body .reo-label-item .reo-subtext {
    display: none !important;
  }

  /* ── Metrics bar ── */
  body .reo-metrics-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  body .reo-metric-sep {
    width: 100% !important;
    height: 1px !important;
  }

  body .reo-metric-secondary {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* ── Panels/four grid ── */
  body .reo-panels-grid,
  body .reo-four-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ── Historial ── */
  body .reo-history-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body .reo-history-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  body .reo-week-chart-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  body .reo-week-bars {
    height: 60px !important;
    max-height: 60px !important;
  }

  body .reo-history-table-header,
  body .reo-history-row {
    grid-template-columns: 1fr 0.9fr 0.8fr !important;
    gap: 6px !important;
    padding: 10px 8px !important;
  }

  body .reo-history-table-header .reo-th:nth-child(2),
  body .reo-history-table-header .reo-th:nth-child(5),
  body .reo-history-table-header .reo-th:nth-child(6),
  body .reo-history-table-header .reo-th:nth-child(7),
  body .reo-history-row .reo-row-name,
  body .reo-history-row .reo-row-perperson,
  body .reo-history-row .reo-row-zone,
  body .reo-history-row .reo-btn-delete {
    display: none !important;
  }

  /* ── Records ── */
  body .reo-records-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* ── Analytics ── */
  body .rab-top {
    grid-template-columns: 1fr !important;
  }

  body .rab-score {
    margin-right: 0 !important;
  }

  body .rab-days-list {
    margin-left: 0 !important;
  }

  body .rab-bottom,
  body .reo-seo-grid-v2 {
    grid-template-columns: 1fr !important;
  }

  body .rab-day-row,
  body .abb-day-row {
    grid-template-columns: 34px 1fr 52px !important;
  }

  body .rab-day-meta,
  body .abb-day-meta {
    display: none !important;
  }

  /* ════════════════════════════════════════
     ARTÍCULO SEO — todos los componentes
  ════════════════════════════════════════ */

  /* Step blocks */
  body .reo-steps {
    gap: 8px !important;
    margin: 20px 0 !important;
  }

  body .reo-step-block {
    grid-template-columns: 36px 1fr !important;
    border-radius: 10px !important;
    margin-bottom: 4px !important;
  }

  body .reo-step-num {
    font-size: 13px !important;
    min-height: 56px !important;
  }

  body .reo-step-content {
    padding: 12px 12px !important;
  }

  body .reo-step-content h4 {
    font-size: 13px !important;
  }

  body .reo-step-content p {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* Cards artículo */
  body .reo-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 16px 0 !important;
  }

  body .reo-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  body .reo-card h4 {
    font-size: 15px !important;
  }

  body .reo-card p {
    font-size: 13px !important;
  }

  /* Action table artículo */
  body .reo-action-table {
    margin: 16px 0 !important;
    border-radius: 12px !important;
  }

  body .reo-action-row {
    grid-template-columns: 32px 1fr !important;
  }

  body .reo-action-num {
    font-size: 11px !important;
    padding-top: 16px !important;
  }

  body .reo-action-body {
    padding: 12px 12px !important;
  }

  body .reo-action-body h4 {
    font-size: 13px !important;
  }

  body .reo-action-body p {
    font-size: 12px !important;
    line-height: 1.65 !important;
  }

  /* Tablas artículo */
  body .reo-table-wrap {
    overflow-x: auto !important;
    margin: 16px 0 !important;
    border-radius: 10px !important;
  }

  body .reo-table {
    font-size: 12px !important;
    min-width: 400px !important;
  }

  body .reo-table thead th {
    padding: 10px 10px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  body .reo-table tbody td {
    padding: 10px 10px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* Box artículo */
  body .reo-box {
    padding: 14px 16px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin: 16px 0 !important;
    border-radius: 10px !important;
  }

  body .reo-box strong {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  /* Status pills artículo */
  body .reo-status-row {
    flex-direction: column !important;
    gap: 6px !important;
    margin: 14px 0 !important;
  }

  body .reo-status-pill {
    padding: 6px 14px !important;
    font-size: 12px !important;
  }

  /* FAQ artículo */
  body .reo-faq {
    margin: 28px 0 !important;
  }

  body .reo-faq details {
    border-radius: 12px !important;
    margin-bottom: 8px !important;
  }

  body .reo-faq summary {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }

  body .reo-faq details > p {
    padding: 12px 16px 16px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
  }
}


/* ════════════════════════════════════════════
   MUY PEQUEÑO ≤ 380px
════════════════════════════════════════════ */

@media (max-width: 380px) {

  body .site-main,
  body #primary.site-main {
    padding: 6px !important;
  }

  body .reo-header {
    padding: 0 0.5em !important;
  }

  body #contador-dinero {
    font-size: 30px !important;
    height: 52px !important;
  }

  body .reo-step-block {
    grid-template-columns: 28px 1fr !important;
  }

  body .reo-step-num {
    font-size: 11px !important;
  }

  body .reo-action-row {
    grid-template-columns: 26px 1fr !important;
  }

  body .reo-card {
    padding: 12px !important;
  }

  body .reo-btn-row {
    grid-template-columns: 1fr 1fr !important;
  }

  body #btn-control {
    grid-column: 1 / -1 !important;
  }

  body .reo-records-grid {
    grid-template-columns: 1fr !important;
  }

  body .reo-history-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}