/* FamilyHub · Los tres diseños: Agua, Espejo y Relieve
   Requiere fh-tokens.css y fh-components.css, y la carpeta assets/disenos/.
   Se activan en la raíz:  <html data-theme="azul" data-mode="light" data-style="agua|espejo|relieve">
   Cada bloque cambia tokens y luego viste las mismas clases .fh- de siempre.
   Las pantallas Hoy y Empresa de referencia están en disenos.html (fh-disenos.css). */

/* Piezas que solo existen en un diseño: <div data-only="relieve"> */
[data-style] [data-only] { display: none; }
[data-style="agua"] [data-only~="agua"],
[data-style="espejo"] [data-only~="espejo"],
[data-style="relieve"] [data-only~="relieve"] { display: grid; }

/* Lo que comparten los tres */
[data-style] .fh-tabbar { margin: 0 14px 14px; padding: 6px; border-radius: 32px; border: 0; }
[data-style] .fh-tab { border-radius: 26px; min-height: 52px; align-content: center; }
[data-style] .fh-fab { border-radius: 50%; right: 6px; }
[data-style] .fh-btn--primary,
[data-style] .fh-btn--secondary,
[data-style] .fh-btn--danger { border-radius: var(--r-full); }
[data-style] .fh-hero { padding: 18px 18px 18px 20px; }
[data-style] .fh-hero-sub { font-size: var(--fs-12); opacity: 1; }
[data-style] .fh-hero .fh-eyebrow { opacity: 1; }
[data-style] .fh-bar-pace { width: 3px; border-radius: 2px; }
[data-style] .fh-status { padding: 3px 9px; border-radius: var(--r-full); }

/* =========================================================
   1. AGUA · vidrio líquido sobre agua quieta
   ========================================================= */
:root[data-theme="azul"][data-mode][data-style="agua"] {
  --bg-base: #E3EFF8;
  --bg-surface: #F3F8FC;
  --bg-elevated: #FFFFFF;
  --border: #C9DCEC;
  --text-1: #10243F;
  --text-2: #2F4666;
  --text-3: #3F5676;
  --brand: #2B5DBE;
  --brand-strong: #224C9E;
  --on-brand: #FFFFFF;
  --st-pending: #3F5676;
  --st-progress: #135D74;
  --st-risk: #7E5106;
  --st-done: #226A4C;
  --st-overdue: #9E3828;
  --st-elite: #5846A8;
  --r-control: 14px;
  --r-card: 24px;
  --r-hero: 32px;
  --shadow-1: 0 2px 8px rgb(24 78 140 / 0.10);
  --shadow-2: 0 10px 28px rgb(24 78 140 / 0.12);
  --edge: #7F96B4; /* borde de campos y botones secundarios: 3:1 */
  --agua-fondo: linear-gradient(180deg, rgb(255 255 255 / 0.30), rgb(255 255 255 / 0.42)), url("assets/disenos/agua-fondo.jpg") center / cover;
  --glass: linear-gradient(180deg, rgb(255 255 255 / 0.66), rgb(255 255 255 / 0.44));
  --glass-blur: blur(16px) saturate(140%);
  --glass-edge: 1px solid rgb(255 255 255 / 0.72);
  --glass-shadow: 0 10px 28px rgb(24 78 140 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.7);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5Q12.5 0 25 5T50 5T75 5T100 5V10H0Z' fill='%234A84D8'/%3E%3C/svg%3E");
  --wave-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5Q12.5 0 25 5T50 5T75 5T100 5V10H0Z' fill='%237FAEE8' fill-opacity='.55'/%3E%3C/svg%3E");
  color-scheme: light;
}
[data-style="agua"] .fh-app { background: var(--agua-fondo); }
/* En la página completa el fondo va en una capa fija (iOS no respeta background-attachment: fixed) */
[data-style="agua"] body.fh-app { background: #DDEFF8; }
[data-style="agua"] body.fh-app::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--agua-fondo); pointer-events: none; }
[data-style="agua"] .fh-card,
[data-style="agua"] .fh-task,
[data-style="agua"] .fh-kpi,
[data-style="agua"] .fh-tile,
[data-style="agua"] .fh-mini,
[data-style="agua"] .fh-msg-task,
[data-style="agua"] .fh-area,
[data-style="agua"] .fh-hero,
[data-style="agua"] .fh-notice,
[data-style="agua"] .fh-cmdk,
[data-style="agua"] .fh-side,
[data-style="agua"] .fh-header,
[data-style="agua"] .fh-seg {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
[data-style="agua"] .fh-kpi { padding: var(--s-3); border-radius: var(--r-card); }
[data-style="agua"] .fh-hero { color: var(--text-1); }
[data-style="agua"] .fh-hero .fh-eyebrow { color: var(--brand-strong); }
[data-style="agua"] .fh-hero .fh-hero-sub { color: var(--text-2); }
[data-style="agua"] .fh-col { background: rgb(255 255 255 / 0.30); border-color: rgb(255 255 255 / 0.6); }
[data-style="agua"] .fh-status { background: color-mix(in srgb, var(--c) 10%, rgb(255 255 255 / 0.72)); }
[data-style="agua"] .fh-avatar { background: rgb(255 255 255 / 0.7); border-color: rgb(255 255 255 / 0.9); }
/* Esfera de agua: el anillo de avance se llena como agua. --p va de 0 a 100 */
[data-style="agua"] .fh-ring {
  width: max(var(--size), 88px); height: max(var(--size), 88px);
  border-radius: 50%; overflow: hidden;
  background: rgb(255 255 255 / 0.42);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow: inset 0 0 0 5px rgb(255 255 255 / 0.32), inset 0 8px 16px rgb(24 78 140 / 0.16), 0 8px 18px rgb(24 78 140 / 0.14);
}
[data-style="agua"] .fh-hero .fh-ring { width: max(var(--size), 104px); height: max(var(--size), 104px); }
[data-style="agua"] .fh-ring svg { display: none; }
[data-style="agua"] .fh-ring::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p) * 1%); background: linear-gradient(180deg, #4A84D8, #2B5DBE); transition: height 900ms var(--ease-out); }
[data-style="agua"] .fh-ring::after,
[data-style="agua"] .fh-ring-label::before { content: ""; position: absolute; left: 0; width: 200%; height: 9px; bottom: calc(var(--p) * 1% - 1px); background: var(--wave) 0 0 / 50% 100% repeat-x; animation: fh-wave 7s linear infinite; transition: bottom 900ms var(--ease-out); }
[data-style="agua"] .fh-ring-label::before { background-image: var(--wave-2); bottom: calc(var(--p) * 1% + 1px); animation-duration: 11s; animation-direction: reverse; z-index: -1; }
[data-style="agua"] .fh-ring-label {
  z-index: 1; isolation: isolate; padding-top: 12%;
  font-family: var(--font-display); font-size: var(--fs-20);
  color: #10243F; /* bajo el nivel del agua el texto pasa a blanco */
  color: hsl(215 59% clamp(15%, calc((var(--p) - 58) * 1000%), 100%));
}
@keyframes fh-wave { to { transform: translateX(-50%); } }
/* Tubo de agua */
[data-style="agua"] .fh-bar { height: 14px; background: rgb(255 255 255 / 0.5); box-shadow: inset 0 1px 3px rgb(24 78 140 / 0.28), 0 1px 0 rgb(255 255 255 / 0.7); }
[data-style="agua"] .fh-bar::before { inset: 2px auto 2px 2px; width: calc(var(--p) * 1% - 4px); background: linear-gradient(180deg, color-mix(in srgb, var(--c, #3B72D0) 72%, white), var(--c, #3B72D0)); }
/* Barra inferior y botón «+» */
[data-style="agua"] .fh-tabbar { background: rgb(255 255 255 / 0.56); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border: 1px solid rgb(255 255 255 / 0.78); box-shadow: 0 12px 30px rgb(24 78 140 / 0.16), inset 0 1px 0 rgb(255 255 255 / 0.7); }
[data-style="agua"] .fh-tab { color: var(--text-2); }
[data-style="agua"] .fh-tab[aria-current="page"] { background: rgb(255 255 255 / 0.82); box-shadow: 0 2px 8px rgb(24 78 140 / 0.14); color: var(--brand-strong); }
[data-style="agua"] .fh-fab { background: linear-gradient(160deg, #4F89DE, #2B5DBE); box-shadow: 0 10px 22px rgb(43 93 190 / 0.30), inset 0 1px 0 rgb(255 255 255 / 0.28); }
/* Botones y campos */
[data-style="agua"] .fh-btn--primary { background: linear-gradient(180deg, #3B72D0, #2B5DBE); box-shadow: 0 6px 16px rgb(43 93 190 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.28); }
[data-style="agua"] .fh-btn--primary:hover { background: linear-gradient(180deg, #3568C4, #2754AE); }
[data-style="agua"] .fh-btn--secondary { background: rgb(255 255 255 / 0.62); border-color: var(--edge); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
[data-style="agua"] .fh-btn--secondary:hover { background: rgb(255 255 255 / 0.86); }
[data-style="agua"] .fh-input,
[data-style="agua"] .fh-search { background: rgb(255 255 255 / 0.72); border-color: var(--edge); box-shadow: inset 0 1px 3px rgb(24 78 140 / 0.12); }
[data-style="agua"] .fh-seg button[aria-pressed="true"] { background: rgb(255 255 255 / 0.86); box-shadow: 0 2px 8px rgb(24 78 140 / 0.14); color: var(--brand-strong); }
[data-style="agua"] .fh-side-item[aria-current="page"] { background: rgb(255 255 255 / 0.82); box-shadow: 0 2px 8px rgb(24 78 140 / 0.12); }
[data-style="agua"] .fh-area svg,
[data-style="agua"] .fh-quick-ico { color: var(--brand-strong); }
[data-style="agua"] .fh-area[aria-pressed="true"] { background: rgb(255 255 255 / 0.9); border-color: var(--brand); }
[data-style="agua"] .fh-quick-ico { background: rgb(255 255 255 / 0.7); border: 1px solid rgb(255 255 255 / 0.9); box-shadow: 0 4px 10px rgb(24 78 140 / 0.10); }
[data-style="agua"] .fh-msg--in { background: rgb(255 255 255 / 0.84); box-shadow: var(--shadow-1); }
[data-style="agua"] .fh-msg--out { background: #D3E4F7; }
[data-style="agua"] .fh-empty { border-color: var(--edge); background: rgb(255 255 255 / 0.3); }

/* =========================================================
   2. ESPEJO · superficies pulidas que se reflejan en el suelo
   ========================================================= */
:root[data-theme="azul"][data-mode][data-style="espejo"] {
  --bg-base: #E7EDF5;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --border: #DCE3EC;
  --text-1: #17233A;
  --text-2: #414F66;
  --text-3: #505D73;
  --brand: #3060C4;
  --brand-strong: #264FA6;
  --on-brand: #FFFFFF;
  --st-pending: #505D73;
  --st-progress: #135D74;
  --st-risk: #7E5106;
  --st-done: #226A4C;
  --st-overdue: #9E3828;
  --st-elite: #5846A8;
  --r-control: 14px;
  --r-card: 24px;
  --r-hero: 28px;
  --shadow-1: 0 0 0 1px rgb(23 35 58 / 0.05);
  --shadow-2: 0 10px 26px rgb(23 35 58 / 0.08);
  --edge: #8793A8;
  --espejo-fondo: linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.40)), url("assets/disenos/espejo-fondo.jpg") center / cover;
  --rim: inset 0 0 0 1px rgb(255 255 255 / 0.95), 0 0 0 1px rgb(23 35 58 / 0.05); /* borde fino de luz */
  --pulido: linear-gradient(112deg, transparent 0 36%, rgb(255 255 255 / 0.07) 36% 50%, transparent 50%), linear-gradient(165deg, #3767CA, #284FA6);
  color-scheme: light;
}
[data-style="espejo"] .fh-app { background: var(--espejo-fondo); }
/* En la página completa el fondo va en una capa fija (iOS no respeta background-attachment: fixed) */
[data-style="espejo"] body.fh-app { background: #E3EAF5; }
[data-style="espejo"] body.fh-app::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--espejo-fondo); pointer-events: none; }
[data-style="espejo"] .fh-card,
[data-style="espejo"] .fh-task,
[data-style="espejo"] .fh-mini,
[data-style="espejo"] .fh-msg-task,
[data-style="espejo"] .fh-area,
[data-style="espejo"] .fh-notice,
[data-style="espejo"] .fh-cmdk,
[data-style="espejo"] .fh-side,
[data-style="espejo"] .fh-header,
[data-style="espejo"] .fh-seg {
  background: rgb(255 255 255 / 0.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: transparent;
  box-shadow: var(--rim), var(--shadow-2);
}
/* Tarjeta del reto: azul pulido que se refleja debajo y se desvanece */
[data-style="espejo"] .fh-hero {
  background: var(--pulido);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.26);
  margin-bottom: 30px;
  -webkit-box-reflect: below 5px linear-gradient(transparent 62%, rgb(0 0 0 / 0.18));
}
[data-style="espejo"] .fh-hero .fh-ring { width: max(var(--size), 88px); height: max(var(--size), 88px); }
[data-style="espejo"] .fh-hero .fh-ring-label { font-family: var(--font-display); font-size: var(--fs-20); }
/* Fichas de cifra: blancas, con borde de luz y un reflejo corto sin texto */
[data-style="espejo"] .fh-kpi,
[data-style="espejo"] .fh-tile {
  position: relative; padding: 12px 12px 14px; border: 0; border-radius: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(255 255 255 / 0.78));
  box-shadow: var(--rim);
  margin-bottom: 22px;
}
[data-style="espejo"] .fh-kpi::after,
[data-style="espejo"] .fh-tile::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 4px); height: 20px; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, rgb(255 255 255 / 0.50), rgb(255 255 255 / 0)); pointer-events: none; }
[data-style="espejo"] .fh-col { background: rgb(255 255 255 / 0.42); border-color: transparent; box-shadow: var(--rim); }
[data-style="espejo"] .fh-status { background: color-mix(in srgb, var(--c) 9%, #fff); }
[data-style="espejo"] .fh-avatar { background: #EEF2F8; border-color: #fff; }
[data-style="espejo"] .fh-bar { height: 6px; background: #DDE4EE; }
[data-style="espejo"] .fh-bar::before { background: var(--c, var(--brand)); }
[data-style="espejo"] .fh-tabbar { background: rgb(252 253 255 / 0.72); -webkit-backdrop-filter: blur(22px) saturate(130%); backdrop-filter: blur(22px) saturate(130%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.95), 0 0 0 1px rgb(23 35 58 / 0.06), 0 12px 28px rgb(23 35 58 / 0.12); }
[data-style="espejo"] .fh-tab { color: var(--text-2); }
[data-style="espejo"] .fh-tab[aria-current="page"] { background: rgb(23 35 58 / 0.06); color: var(--brand-strong); }
[data-style="espejo"] .fh-fab { background: linear-gradient(165deg, #3767CA, #284FA6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.26), 0 10px 22px rgb(40 79 166 / 0.26); }
[data-style="espejo"] .fh-btn--primary { background: var(--pulido); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.26), 0 6px 16px rgb(40 79 166 / 0.20); }
[data-style="espejo"] .fh-btn--primary:hover { filter: brightness(0.94); }
[data-style="espejo"] .fh-btn--secondary { background: rgb(255 255 255 / 0.9); border-color: var(--edge); box-shadow: inset 0 0 0 1px #fff; }
[data-style="espejo"] .fh-input,
[data-style="espejo"] .fh-search { background: #fff; border-color: var(--edge); }
[data-style="espejo"] .fh-seg button[aria-pressed="true"] { background: rgb(23 35 58 / 0.07); box-shadow: none; color: var(--brand-strong); }
[data-style="espejo"] .fh-side-item[aria-current="page"] { background: rgb(23 35 58 / 0.06); }
[data-style="espejo"] .fh-area svg { color: var(--brand-strong); }
[data-style="espejo"] .fh-area[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-2); }
[data-style="espejo"] .fh-quick-ico { background: linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(255 255 255 / 0.78)); border: 0; box-shadow: var(--rim), 0 6px 14px rgb(23 35 58 / 0.08); }
[data-style="espejo"] .fh-msg--in { background: rgb(255 255 255 / 0.9); box-shadow: var(--rim); }
[data-style="espejo"] .fh-msg--out { background: #DDE7F8; }
[data-style="espejo"] .fh-empty { border-color: var(--edge); background: rgb(255 255 255 / 0.4); }

/* =========================================================
   3. RELIEVE · porcelana mate con íconos 3D
   ========================================================= */
:root[data-theme="azul"][data-mode][data-style="relieve"] {
  --bg-base: #ECEFF3;
  --bg-surface: #F0F2F5;
  --bg-elevated: #F2F4F7;
  --border: #DADFE6;
  --text-1: #1E2736;
  --text-2: #485365;
  --text-3: #566173;
  --brand: #2F60C8;
  --brand-strong: #264FA8;
  --on-brand: #FFFFFF;
  --st-pending: #566173;
  --st-progress: #135D74;
  --st-risk: #7E5106;
  --st-done: #226A4C;
  --st-overdue: #9E3828;
  --st-elite: #5846A8;
  --r-control: 16px;
  --r-card: 26px;
  --r-hero: 32px;
  --out: 6px 6px 14px rgb(133 144 162 / 0.30), -6px -6px 14px rgb(255 255 255 / 0.95);
  --out-sm: 3px 3px 8px rgb(133 144 162 / 0.28), -3px -3px 8px rgb(255 255 255 / 0.95);
  --in: inset 3px 3px 7px rgb(133 144 162 / 0.34), inset -3px -3px 7px rgb(255 255 255 / 0.95);
  --in-sm: inset 1px 1px 3px rgb(133 144 162 / 0.34), inset -1px -1px 3px rgb(255 255 255 / 0.95);
  --shadow-1: var(--out-sm);
  --shadow-2: var(--out);
  --edge: #7E8898; /* borde de campos y botones secundarios: 3:1 */
  color-scheme: light;
}
[data-style="relieve"] .fh-card,
[data-style="relieve"] .fh-task,
[data-style="relieve"] .fh-kpi,
[data-style="relieve"] .fh-tile,
[data-style="relieve"] .fh-mini,
[data-style="relieve"] .fh-msg-task,
[data-style="relieve"] .fh-area,
[data-style="relieve"] .fh-hero,
[data-style="relieve"] .fh-notice,
[data-style="relieve"] .fh-cmdk { background: var(--bg-surface); border: 1px solid rgb(255 255 255 / 0.7); box-shadow: var(--out); }
[data-style="relieve"] .fh-kpi { padding: var(--s-3); border-radius: var(--r-card); }
[data-style="relieve"] .fh-mini { box-shadow: var(--out-sm); }
[data-style="relieve"] .fh-hero { color: var(--text-1); }
[data-style="relieve"] .fh-hero .fh-eyebrow { color: var(--brand-strong); }
[data-style="relieve"] .fh-hero .fh-hero-sub { color: var(--text-2); }
[data-style="relieve"] .fh-col { background: var(--bg-base); border-color: transparent; box-shadow: var(--in); }
[data-style="relieve"] .fh-status { background: var(--bg-base); box-shadow: var(--in-sm); }
[data-style="relieve"] .fh-avatar { background: var(--bg-surface); border-color: rgb(255 255 255 / 0.7); box-shadow: var(--out-sm); }
/* Dial: surco hundido, arco azul mate y botón central levantado */
[data-style="relieve"] .fh-ring { width: max(var(--size), 88px); height: max(var(--size), 88px); border-radius: 50%; background: var(--bg-base); box-shadow: var(--in); }
[data-style="relieve"] .fh-hero .fh-ring { width: max(var(--size), 100px); height: max(var(--size), 100px); }
[data-style="relieve"] .fh-ring svg { position: absolute; inset: 9%; width: 82%; height: 82%; }
[data-style="relieve"] .fh-ring .track { stroke: transparent; }
[data-style="relieve"] .fh-ring .fill { stroke: var(--brand); }
[data-style="relieve"] .fh-ring-label { inset: 20%; border-radius: 50%; background: var(--bg-elevated); box-shadow: var(--out-sm); color: var(--text-1); font-family: var(--font-display); font-size: 17px; }
/* Surco de avance */
[data-style="relieve"] .fh-bar { height: 16px; background: var(--bg-base); box-shadow: var(--in); }
[data-style="relieve"] .fh-bar::before { inset: 3px auto 3px 3px; width: calc(var(--p) * 1% - 6px); background: var(--c, var(--brand)); }
[data-style="relieve"] .fh-tabbar { background: var(--bg-surface); border: 1px solid rgb(255 255 255 / 0.7); box-shadow: var(--out); }
[data-style="relieve"] .fh-tab { color: var(--text-2); }
[data-style="relieve"] .fh-tab[aria-current="page"] { background: var(--bg-base); box-shadow: var(--in); color: var(--brand-strong); }
[data-style="relieve"] .fh-fab { box-shadow: 6px 6px 14px rgb(133 144 162 / 0.42), -6px -6px 14px rgb(255 255 255 / 0.95); }
[data-style="relieve"] .fh-btn--primary { box-shadow: 4px 4px 10px rgb(133 144 162 / 0.40), -4px -4px 10px rgb(255 255 255 / 0.95); }
[data-style="relieve"] .fh-btn--primary:active { box-shadow: inset 2px 2px 6px rgb(0 0 0 / 0.22); }
[data-style="relieve"] .fh-btn--secondary { background: var(--bg-surface); border-color: var(--edge); box-shadow: var(--out-sm); }
[data-style="relieve"] .fh-btn--secondary:active,
[data-style="relieve"] .fh-btn--secondary[aria-pressed="true"] { box-shadow: var(--in); }
[data-style="relieve"] .fh-input,
[data-style="relieve"] .fh-search { background: var(--bg-base); border-color: var(--edge); box-shadow: var(--in); }
[data-style="relieve"] .fh-seg { background: var(--bg-base); border-color: transparent; box-shadow: var(--in); border-radius: var(--r-full); }
[data-style="relieve"] .fh-seg button { border-radius: var(--r-full); }
[data-style="relieve"] .fh-seg button[aria-pressed="true"] { background: var(--bg-surface); box-shadow: var(--out-sm); color: var(--brand-strong); }
[data-style="relieve"] .fh-side { background: var(--bg-surface); border-right: 0; box-shadow: 4px 0 12px rgb(133 144 162 / 0.16); }
[data-style="relieve"] .fh-side-item[aria-current="page"] { background: var(--bg-base); box-shadow: var(--in); }
[data-style="relieve"] .fh-header { border-bottom: 0; }
/* Íconos 3D: en Relieve cada área y cada acción rápida usa su imagen de assets/disenos/ */
[data-style="relieve"] .fh-area svg,
[data-style="relieve"] .fh-quick-ico svg { display: none; }
[data-style="relieve"] .fh-area-3d { display: block; width: 48px; height: 48px; object-fit: contain; }
[data-style="relieve"] .fh-quick-ico img { display: block; width: 36px; height: 36px; object-fit: contain; }
[data-style="relieve"] .fh-quick-ico { background: var(--bg-surface); border: 1px solid rgb(255 255 255 / 0.7); box-shadow: var(--out); }
[data-style="relieve"] .fh-quick-btn:active .fh-quick-ico { box-shadow: var(--in); }
[data-style="relieve"] .fh-area[aria-pressed="true"] { background: var(--bg-base); box-shadow: var(--in); border-color: var(--brand); }
[data-style="relieve"] .fh-msg--in { background: var(--bg-surface); box-shadow: var(--out-sm); }
[data-style="relieve"] .fh-msg--out { background: #DCE5F6; box-shadow: var(--out-sm); }
[data-style="relieve"] .fh-empty { border-color: var(--edge); }

/* =========================================================
   Accesibilidad: sin movimiento ni transparencia si la persona lo pide
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  [data-style="agua"] .fh-ring::after, [data-style="agua"] .fh-ring-label::before { animation: none; }
  [data-style="agua"] .fh-ring::before { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  [data-style="agua"] .fh-card, [data-style="agua"] .fh-task, [data-style="agua"] .fh-kpi, [data-style="agua"] .fh-tile, [data-style="agua"] .fh-mini,
  [data-style="agua"] .fh-msg-task, [data-style="agua"] .fh-area, [data-style="agua"] .fh-hero, [data-style="agua"] .fh-notice, [data-style="agua"] .fh-cmdk,
  [data-style="agua"] .fh-side, [data-style="agua"] .fh-header, [data-style="agua"] .fh-seg, [data-style="agua"] .fh-tabbar,
  [data-style="espejo"] .fh-card, [data-style="espejo"] .fh-task, [data-style="espejo"] .fh-mini, [data-style="espejo"] .fh-msg-task, [data-style="espejo"] .fh-area,
  [data-style="espejo"] .fh-notice, [data-style="espejo"] .fh-cmdk, [data-style="espejo"] .fh-side, [data-style="espejo"] .fh-header, [data-style="espejo"] .fh-seg, [data-style="espejo"] .fh-tabbar {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(255 255 255 / 0.95);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-style="agua"] .fh-card, [data-style="agua"] .fh-task, [data-style="agua"] .fh-kpi, [data-style="agua"] .fh-hero, [data-style="agua"] .fh-tabbar,
  [data-style="espejo"] .fh-tabbar { background: rgb(255 255 255 / 0.92); }
}
[data-style] .fh-tile .fh-status { background: none; box-shadow: none; padding: 0; }
