/*
Theme Name: Tatiana Bienestar
Theme URI: https://tatianasantana.info/
Author: IteroLab
Description: Tema clásico de WordPress para la tarjeta de bienestar de Tatiana Santana. Requiere el plugin complementario Tatiana Card Manager para contenido editable, catálogo, QR y eventos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tatiana-bienestar
License: GPL-2.0-or-later
*/


/* Tarjeta de bienestar NIKKEN · CSS autónomo. No requiere hojas externas.
   Personalización rápida: modifica los tokens de COLOR y TIPOGRAFÍA de :root.
   El resto de la plantilla consume estas variables para mantener la coherencia visual. */

/* Bloque de estilos original 1: orden de cascada preservado durante la consolidación. */
:root {
  color-scheme: light;

  /* PALETA PRINCIPAL — cambia estos valores para adaptar la identidad visual. */
  --color-page-bg: #f5fbfb;       /* Fondo general con degradado */
  --color-surface: #ffffff;     /* Superficies principales y diálogos: blanco puro, como el archivo base */
  --color-text: #3F484A;          /* Texto principal */
  --color-text-muted: #687375;    /* Texto secundario */
  --color-line: #e0ebeb;          /* Bordes y separadores */
  --color-accent: #0ba7b5;        /* Acento principal: violeta */
  --color-accent-light: #3DDEE8;  /* Acento claro, focos y detalles */
  --color-accent-secondary: #3DDEE8; /* Acento secundario: coral */
  --color-accent-contrast: #10363a;  /* Texto sobre el acento secundario */
  --color-dark-panel: #12363b;    /* Panel fotográfico oscuro */
  --color-white: #ffffff;

  /* ALIASES DE COMPATIBILIDAD — mantienen funcionando los estilos existentes. */
  --night: #102a2f;
  --night-soft: #15383d;
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --color-nikken: #0ba7b5;
  --color-tatiana: #3DDEE8;
  --color-neutral: #999999;
  --muted-light: #aab4c5;
  --paper: var(--color-white); /* Tarjeta principal blanca */
  --white: var(--color-white);
  --line: var(--color-line);
  --violet: var(--color-accent);
  --violet-light: var(--color-accent-light);
  --coral: var(--color-accent-secondary);
  --coral-contrast: var(--color-accent-contrast);

  /* TIPOGRAFÍA — coincide con la dirección tipográfica de la plantilla base.
     DM Sans para lectura y Manrope para titulares/marca. */
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;

  /* Movimiento compartido */
  --ease: cubic-bezier(.22,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--color-page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--violet-light); outline-offset: 4px; }
[hidden] { display: none !important; }

.ambient { position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(1px); }
.ambient-one { width: 470px; height: 470px; top: -290px; right: 7%; background: radial-gradient(circle, rgba(11,167,181,.18), transparent 70%); }
.ambient-two { width: 500px; height: 500px; bottom: -390px; left: -200px; background: radial-gradient(circle, rgba(38,111,190,.13), transparent 70%); }
.topbar { position: relative; z-index: 2; width: min(1200px, calc(100% - 64px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(222,229,242,.12); }
.brand { display: inline-flex; align-items: center; gap: 15px; color: #fff; text-decoration: none; }
.brand-mark { color: #fff; font: 800 22px/1 var(--font-display); letter-spacing: -1.3px; }
.brand-mark span, .mini-brand span, .footer-brand span { color: var(--violet-light); }
.brand-divider { width: 1px; height: 29px; background: rgba(255,255,255,.24); }
.brand-copy { color: #aeb7c7; font-size: 8px; line-height: 1.55; letter-spacing: 2px; }
.brand-copy b { color: #fff; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 23px; }
.product-label { display: inline-flex; align-items: center; gap: 9px; color: #c0c6d4; font-size: 9px; letter-spacing: 1.6px; font-weight: 700; }
.live-dot, .demo-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-light); box-shadow: 0 0 0 4px rgba(61,222,232,.12); }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; color: #ecedff; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.03); transition: background .2s, border-color .2s, transform .2s; }
.icon-button:hover { background: rgba(11,167,181,.18); border-color: var(--violet-light); transform: translateY(-2px); }
.icon-button svg, .button svg, .quick-links svg, .verified-mark svg, .intent-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.stage { position: relative; z-index: 1; width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 37px 0 27px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: #a9b4c7; font-size: 9px; line-height: 1.4; letter-spacing: 1.65px; font-weight: 700; }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; flex: 0 0 24px; background: var(--violet-light); }
.demo-dot { width: 5px; height: 5px; background: #ffb17f; box-shadow: 0 0 0 4px rgba(255,177,127,.1); }

.value-card { display: grid; grid-template-columns: minmax(300px, .91fr) minmax(450px, 1.09fr); min-height: 650px; background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.27), 0 0 0 1px rgba(255,255,255,.12); }
.portrait-panel { position: relative; min-height: 650px; overflow: hidden; color: #fff; background: var(--color-dark-panel); isolation: isolate; }
.portrait { position: absolute; z-index: -3; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }


.portrait-overlay { position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, rgba(10,15,29,.18) 0%, rgba(10,15,29,.02) 34%, rgba(10,15,29,.65) 64%, rgba(10,15,29,.97) 100%), linear-gradient(90deg, rgba(13,19,34,.31), transparent 54%); }
.portrait-panel::after { content: ""; position: absolute; z-index: -1; top: -8%; left: -28%; width: 86%; aspect-ratio: 1; border: 1px solid rgba(61,222,232,.35); border-radius: 50%; box-shadow: 0 0 0 23px rgba(11,167,181,.055), 0 0 0 60px rgba(11,167,181,.04); pointer-events: none; }
.portrait-topline { position: absolute; top: 25px; left: 29px; right: 27px; display: flex; align-items: center; justify-content: space-between; }
.mini-brand { font: 800 20px/1 var(--font-display); letter-spacing: -1.2px; }
.portrait-index { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); font-size: 8px; letter-spacing: 1.6px; }
.portrait-index i { display: block; width: 23px; height: 1px; background: var(--violet-light); }
.portrait-copy { position: absolute; left: clamp(26px, 3vw, 44px); right: 30px; bottom: 61px; }
.photo-kicker { display: inline-block; padding: 7px 9px; color: #e6e1ff; border: 1px solid rgba(61,222,232,.4); background: rgba(19,23,46,.22); backdrop-filter: blur(6px); font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.portrait-copy p { margin: 17px 0 13px; font: 700 clamp(37px, 4.2vw, 55px)/1.04 var(--font-display); letter-spacing: -2.6px; }
.portrait-copy em { color: #3DDEE8; font-style: normal; }
.portrait-rule { display: block; width: 42px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--violet-light)); }
.portrait-caption { display: block; margin-top: 13px; color: rgba(255,255,255,.72); font-size: 11px; }
.orbit-caption { position: absolute; left: 29px; bottom: 24px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.58); font-size: 7px; letter-spacing: 1.8px; }
.orbit-caption span { width: 5px; height: 5px; border-radius: 50%; background: var(--violet-light); }

.profile-panel { min-width: 0; display: flex; flex-direction: column; padding: 29px clamp(26px, 3.2vw, 47px) 0; }
.profile-topline { display: flex; justify-content: space-between; align-items: center; }
.overline { color: #8b91a0; font-size: 8px; letter-spacing: 1.6px; font-weight: 700; }
.overline span { margin: 0 4px; color: var(--violet); }
.verified-mark { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #b8eef1; border-radius: 50%; color: #087780; background: #e8fafb; }
.verified-mark svg { width: 14px; height: 14px; }
.identity-block { padding-top: 17px; }
.identity-kicker { margin: 0 0 10px; color: #087780; font-size: 8px; letter-spacing: 1.4px; font-weight: 800; }
.identity-block h1 { margin: 0; color: var(--ink); font: 800 clamp(48px, 5vw, 64px)/.99 var(--font-display); letter-spacing: -3.8px; }
.identity-block h1 span { color: #3DDEE8; }
.profile-role { margin: 11px 0 0; color: #444c5d; font-size: 12px; font-weight: 700; }
.value-statement { max-width: 465px; margin: 14px 0 0; color: #656d7e; font-size: 12px; line-height: 1.72; }
.primary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 19px 0 25px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 16px; border-radius: 4px; font-size: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--violet); box-shadow: 0 7px 18px rgba(11,167,181,.19); }
.button-primary:hover { background: #087780; box-shadow: 0 10px 23px rgba(11,167,181,.27); }
.button-outline { color: #343c4d; background: transparent; border-color: #d6d7dd; }
.button-outline:hover { border-color: #9cecf0; background: #e8fafb; }
.button svg { width: 15px; height: 15px; }

.micro-experience { padding-top: 16px; border-top: 1px solid #dededc; }
.micro-heading { display: flex; align-items: center; justify-content: space-between; color: #8d93a2; font-size: 8px; letter-spacing: 1.4px; font-weight: 800; }
.micro-spark { color: #0ba7b5; font-size: 16px; }
.tabs { display: flex; gap: clamp(13px, 2.2vw, 27px); margin-top: 15px; border-bottom: 1px solid #e0e0dd; }
.tab { position: relative; padding: 0 0 11px; border: 0; background: transparent; color: #8a90a0; white-space: nowrap; font-size: 10px; font-weight: 700; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transform: scaleX(.5); transition: transform .2s, background .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: #087780; }
.tab.is-active::after { background: var(--violet); transform: scaleX(1); }
.tab-panel { min-height: 144px; padding: 15px 0 13px; animation: panel-enter .24s var(--ease) both; }
@keyframes panel-enter { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.panel-lead { margin: 0; color: #252d40; font: 700 17px/1.35 var(--font-display); letter-spacing: -.5px; }
.panel-copy { max-width: 490px; margin: 7px 0 0; color: #687375; font-size: 10px; line-height: 1.65; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.skill-chips span { padding: 6px 9px; color: #087780; border: 1px solid #bdeff2; background: #f1efff; border-radius: 2px; font-size: 8px; font-weight: 700; }
.case-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #8c7792; font-size: 7px; letter-spacing: 1px; font-weight: 800; }
.case-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #eee9f2; color: #7556a0; font-size: 12px; }
.tab-panel[data-panel="proof"] .panel-lead { font-size: 15px; }
.inline-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; padding: 0; color: #087780; border: 0; background: transparent; font-size: 9px; font-weight: 800; }
.inline-action:hover { text-decoration: underline; }
.perspective-words { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #087780; font-size: 8px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.perspective-words b { color: #c6c1f4; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 63px; margin-top: auto; border-top: 1px solid #dededc; }
.contact-strip-label { color: #969ba7; font-size: 7px; letter-spacing: 1.25px; font-weight: 800; }
.quick-links { display: flex; align-items: center; gap: 7px; }
.quick-links a, .quick-links button { width: 29px; height: 29px; display: grid; place-items: center; color: #6b7182; border: 1px solid #e0e0e0; border-radius: 50%; background: transparent; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.quick-links a:hover, .quick-links button:hover { color: #087780; border-color: #a7edf0; background: #e8fafb; }
.quick-links svg { width: 13px; height: 13px; }

.stage-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; padding-top: 22px; color: #8f9aac; }
.footer-brand { color: #fff; font: 800 17px/1 var(--font-display); letter-spacing: -1px; }
.stage-footer p { margin: 0; text-align: center; color: #b7bfce; font: 500 12px/1.55 var(--font-display); }
.stage-footer p em { color: var(--violet-light); font-style: normal; }
.footer-note { display: flex; align-items: center; justify-self: end; gap: 9px; color: #8f9aac; font-size: 7px; letter-spacing: 1.2px; }
.footer-note i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet-light); }

.connect-dialog, .case-dialog { width: min(470px, calc(100% - 30px)); max-width: 470px; max-height: min(92vh, 760px); padding: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #f6f5ff; background: #111a2b; box-shadow: 0 30px 120px rgba(0,0,0,.5); overflow-y: auto; }
.connect-dialog::backdrop, .case-dialog::backdrop { background: rgba(5,9,17,.75); backdrop-filter: blur(8px); }
.dialog-dismiss-form { display: block; }
.dialog-close { position: absolute; top: 14px; right: 15px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: #cbd0dd; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: transparent; font-size: 23px; line-height: 1; }
.dialog-close:hover { color: #fff; border-color: var(--violet-light); }
.connect-dialog h2, .case-dialog h2 { margin: 16px 0 0; font: 800 36px/1.05 var(--font-display); letter-spacing: -1.8px; }
.connect-dialog h2 em, .case-dialog h2 em { color: #3DDEE8; font-style: normal; }
.dialog-intro { margin: 13px 0 20px; color: #b2bbca; font-size: 12px; line-height: 1.65; }
.intent-options { display: grid; gap: 8px; }
.intent-option { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) 16px; align-items: center; gap: 12px; padding: 12px; color: #eff0fa; text-align: left; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; background: rgba(255,255,255,.025); }
.intent-option:hover { border-color: rgba(61,222,232,.6); }
.intent-option.is-selected { border-color: #897bff; background: rgba(11,167,181,.12); }
.intent-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #afa6ff; border-radius: 4px; background: rgba(11,167,181,.14); }
.intent-option strong { display: block; font-size: 11px; font-weight: 700; }
.intent-option small { display: block; margin-top: 4px; color: #a4afc1; font-size: 9px; }
.option-check { width: 13px; height: 13px; border: 1px solid #78849a; border-radius: 50%; }
.intent-option.is-selected .option-check { display: grid; place-items: center; border-color: #a69aff; background: #8b7cff; box-shadow: inset 0 0 0 3px #111a2b; }
.dialog-continue { width: 100%; margin-top: 19px; }
.dialog-footnote { margin: 10px 0 0; color: #8f9bb0; text-align: center; font-size: 9px; line-height: 1.55; }
.case-steps { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.13); }
.case-steps > div { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.case-steps > div > span { color: #3DDEE8; font-size: 10px; font-weight: 800; }
.case-steps p { margin: 0; color: #aab5c6; font-size: 11px; line-height: 1.6; }
.case-steps strong { color: #fff; }
.modal-done { margin-top: 20px; color: #f5f5ff; border-color: rgba(255,255,255,.24); }
.modal-done:hover { color: #fff; background: rgba(11,167,181,.13); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 22px; max-width: calc(100% - 32px); width: max-content; padding: 12px 17px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: #232b3f; color: #f6f5ff; box-shadow: 0 10px 35px rgba(0,0,0,.3); font-size: 11px; line-height: 1.45; text-align: center; }


/* Recursos de la tarjeta: presentación personal, catálogo y QR */
.topbar-right { gap: 11px; }
.topbar-right .product-label { margin-right: 7px; }
.feature-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: -9px 0 20px; }
.feature-card { position: relative; min-width: 0; display: grid; grid-template-columns: 35px minmax(0,1fr) 16px; align-items: center; gap: 10px; padding: 12px 11px; text-align: left; color: #263046; background: #fbfaf8; border: 1px solid #e3e1e9; border-radius: 5px; transition: border-color .2s, background .2s, transform .2s; }
.feature-card:hover { border-color: #3DDEE8; background: #f4f2ff; transform: translateY(-2px); }
.feature-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #087780; background: #e8fafb; border-radius: 4px; }
.feature-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-text { min-width: 0; display: block; }
.feature-kicker { display: block; margin-bottom: 4px; color: #797f90; font-size: 7px; line-height: 1.3; letter-spacing: 1px; font-weight: 800; }
.feature-title { display: block; color: #20283a; font: 800 11px/1.3 var(--font-display); }
.feature-description { display: block; margin-top: 4px; color: #7c8391; font-size: 8px; line-height: 1.4; }
.feature-arrow { color: #087780; font-size: 17px; align-self: center; }
.feature-card .feature-status { display: block; margin-top: 5px; color: #087780; font-size: 7px; font-weight: 700; }
.connect-dialog, .case-dialog, .media-dialog, .cv-dialog, .qr-dialog { position: relative; }
.connect-dialog::backdrop, .case-dialog::backdrop, .media-dialog::backdrop, .cv-dialog::backdrop, .qr-dialog::backdrop { background: rgba(5,9,17,.78); backdrop-filter: blur(8px); }
.media-dialog { width: min(850px, calc(100% - 28px)); max-width: 850px; max-height: 92vh; padding: clamp(22px,4vw,34px); overflow-y: auto; }
.cv-dialog { width: min(760px, calc(100% - 28px)); max-width: 760px; max-height: 92vh; padding: clamp(20px,3vw,30px); overflow-y: auto; background: var(--color-surface); color: var(--color-text); border-color: #d8d5e4; }
.qr-dialog { width: min(450px, calc(100% - 28px)); max-width: 450px; padding: 30px; text-align: center; }
.dialog-eyebrow { margin: 0; color: #3DDEE8; font-size: 8px; letter-spacing: 1.5px; font-weight: 800; }
.dialog-title { margin: 14px 0 0; font: 800 clamp(29px,5vw,42px)/1.05 var(--font-display); letter-spacing: -1.7px; }
.dialog-title em { color: #3F484A; font-style: normal; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; margin-top: 22px; overflow: hidden; background: #080d18; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; }
.video-frame video, .video-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #080d18; }
.video-empty { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #101827; }
.video-empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(10,15,29,.25),rgba(10,15,29,.88)), linear-gradient(0deg,rgba(10,15,29,.82),transparent 70%); }
.video-empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 35%; opacity: .8; }
.video-empty-copy { position: relative; z-index: 1; width: min(430px, calc(100% - 32px)); text-align: center; color: #fff; }
.video-play-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 17px; color: #fff; background: rgba(11,167,181,.9); border: 1px solid rgba(255,255,255,.5); border-radius: 50%; box-shadow: 0 0 0 10px rgba(11,167,181,.12); }
.video-play-mark svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.video-empty-copy strong { display: block; font: 800 clamp(20px,3vw,27px)/1.15 var(--font-display); letter-spacing: -.7px; }
.video-empty-copy p { margin: 9px auto 0; color: #d0d6e4; font-size: 11px; line-height: 1.6; }
.video-config-note { margin: 12px 0 0; color: #aab5c6; font-size: 10px; line-height: 1.6; }
.media-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 19px; }
.qr-visual { width: 236px; min-height: 236px; display: grid; place-items: center; margin: 22px auto 15px; padding: 8px; background: #fff; border-radius: 6px; border: 1px solid #e2e0ec; }
.qr-visual img { display: block; max-width: 220px; height: auto; }
.qr-visual canvas { max-width: 220px; height: auto; }
.qr-fallback { padding: 22px; color: #596274; font-size: 11px; line-height: 1.6; }
.qr-fallback-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; color: #0b7d88; text-decoration: underline; font-size: 12px; font-weight: 700; }
.qr-url { overflow-wrap: anywhere; margin: 10px auto 0; padding: 10px 12px; color: #c5c9d5; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; font-size: 9px; line-height: 1.5; }
.qr-footnote { margin: 13px 0 0; color: #aab5c6; font-size: 10px; line-height: 1.6; }
.cv-sheet { padding: clamp(20px,4vw,38px); color: #20283a; background: #fff; border: 1px solid #e7e4ee; box-shadow: 0 10px 34px rgba(9,15,29,.08); }
.cv-topline { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--color-accent); }
.cv-brand { color: #087780; font: 800 12px/1 var(--font-display); letter-spacing: -.3px; }
.cv-demo-stamp { color: #7c8391; font-size: 8px; letter-spacing: 1px; font-weight: 800; text-align: right; }
.cv-name { margin: 18px 0 4px; color: #151d30; font: 800 clamp(30px,6vw,44px)/1 var(--font-display); letter-spacing: -1.9px; }
.cv-role { margin: 0; color: #6659d9; font-size: 12px; font-weight: 700; }
.cv-contact { margin-top: 12px; color: #6c7484; font-size: 9px; line-height: 1.7; overflow-wrap: anywhere; }
.cv-section { margin-top: 22px; }
.cv-section h3 { margin: 0 0 9px; color: #6659d9; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.cv-section p { margin: 0; color: #555e70; font-size: 10px; line-height: 1.7; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.cv-skills span { padding: 6px 8px; color: #087780; background: #f1efff; border: 1px solid #bdeff2; border-radius: 3px; font-size: 8px; }
.cv-entry { padding: 10px 0 0; margin-top: 10px; border-top: 1px solid #eceaf1; }
.cv-entry strong { display: block; color: #242d40; font-size: 10px; }
.cv-entry small { display: block; margin: 3px 0 5px; color: #858b98; font-size: 8px; }
.cv-toolbar { display: flex; flex-wrap: wrap; gap: 9px; justify-content: space-between; align-items: center; margin-top: 17px; }
.cv-notice { margin: 0; color: #747b89; font-size: 9px; line-height: 1.5; }
.cv-dialog .dialog-close { color: #4d5566; border-color: #d3d0dc; }
.cv-dialog .dialog-close:hover { color: #087780; }
.cv-dialog .modal-done { color: #343c4d; border-color: #d6d7dd; }
.cv-dialog .modal-done:hover { color: #087780; background: #e8fafb; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; color: #20283a !important; }
  body * { visibility: hidden !important; }
  #cv-dialog, #cv-dialog * { visibility: visible !important; }
  #cv-dialog { display: block !important; position: static !important; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; color: #20283a !important; background: #fff !important; border: 0 !important; box-shadow: none !important; }
  #cv-dialog::backdrop, #cv-dialog .dialog-dismiss-form, #cv-dialog .cv-toolbar { display: none !important; }
  .cv-sheet { padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  .cv-section, .cv-entry { break-inside: avoid; }
}

@media (min-width: 1200px) {
  .value-card { grid-template-columns: 44% 56%; }
  .profile-panel { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 950px) {
  .topbar, .stage { width: min(100% - 36px, 760px); }
  .stage { padding-top: 28px; }
  .value-card { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); min-height: 620px; }
  .portrait-panel { min-height: 620px; }
  .profile-panel { padding-inline: 24px; }
  .identity-block h1 { font-size: clamp(43px, 6vw, 58px); }
  .primary-actions { gap: 7px; }
  .button { padding-inline: 12px; }
  .tabs { gap: 16px; }
  .tab { font-size: 9px; }
  .stage-footer { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 690px) {
  .topbar { width: calc(100% - 32px); height: 70px; }
  .brand { gap: 10px; }
  .brand-mark { font-size: 19px; }
  .brand-divider { height: 25px; }
  .brand-copy { font-size: 7px; letter-spacing: 1.6px; }
  .topbar-right { gap: 12px; }
  .product-label { font-size: 7px; letter-spacing: 1px; }
  .icon-button { width: 34px; height: 34px; }
  .stage { width: calc(100% - 28px); padding-top: 24px; }
  .value-card { display: flex; flex-direction: column; border-radius: 7px; }
  .portrait-panel { min-height: 410px; height: min(112vw, 470px); }
  .portrait { object-position: 56% 40%; }
  .portrait-overlay { background: linear-gradient(180deg, rgba(10,15,29,.1) 0%, rgba(10,15,29,.02) 32%, rgba(10,15,29,.6) 70%, rgba(10,15,29,.96) 100%); }
  .portrait-panel::after { width: 92%; top: -7%; left: -22%; }
  .portrait-topline { top: 20px; left: 20px; right: 20px; }
  .portrait-copy { left: 23px; right: 20px; bottom: 48px; }
  .portrait-copy p { font-size: clamp(42px, 12vw, 56px); }
  .orbit-caption { left: 22px; bottom: 17px; font-size: 6px; }
  .profile-panel { padding: 24px 23px 0; }
  .identity-block { padding-top: 16px; }
  .identity-block h1 { font-size: clamp(55px, 15vw, 70px); }
  .value-statement { font-size: 12px; }
  .primary-actions { margin: 20px 0 22px; }
  .button { min-height: 45px; font-size: 10px; }
  .micro-experience { padding-top: 15px; }
  .tabs { justify-content: space-between; gap: 8px; }
  .tab { font-size: 10px; }
  .tab-panel { min-height: 148px; }
  .panel-lead { font-size: 18px; }
  .panel-copy { font-size: 11px; }
  .contact-strip { min-height: 59px; }
  .stage-footer { grid-template-columns: 1fr auto; row-gap: 13px; padding: 20px 4px 0; }
  .stage-footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 11px; }
  .footer-note { grid-column: 2; grid-row: 1; font-size: 6px; }
  .connect-dialog, .case-dialog { padding: 28px 21px 23px; }
}
@media (max-width: 690px) {
  .topbar-right { gap: 7px; }
  .topbar-right .product-label { margin-right: 0; }
  .feature-rail { margin-top: -6px; }
  .feature-card { grid-template-columns: 29px minmax(0,1fr) 10px; gap: 7px; padding: 10px 8px; }
  .feature-icon { width: 29px; height: 29px; }
  .feature-title { font-size: 10px; }
  .feature-description { font-size: 7px; }
  .feature-kicker { font-size: 6px; letter-spacing: .7px; }
  .feature-card .feature-status { font-size: 6px; }
  .media-dialog, .qr-dialog { padding: 25px 20px 22px; }
  .cv-dialog { padding: 18px 13px; }
  .cv-sheet { padding: 19px 14px; }
  .qr-visual { width: 224px; min-height: 224px; }
}

@media (max-width: 370px) {
  .product-label { max-width: 90px; line-height: 1.5; }
  .feature-rail { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 34px minmax(0,1fr) 14px; padding: 11px; }
  .feature-icon { width: 33px; height: 33px; }
  .feature-kicker { font-size: 7px; }
  .feature-title { font-size: 11px; }
  .feature-description { font-size: 8px; }
  .feature-card .feature-status { font-size: 7px; }
  .portrait-panel { min-height: 390px; }
  .primary-actions { flex-direction: column; align-items: stretch; }
  .tabs { gap: 10px; }
  .tab { font-size: 9px; }
  .contact-strip-label { letter-spacing: .8px; font-size: 6px; }
  .quick-links { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Ajustes de composición: QR integrado, menos scroll y control del desbordamiento */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
body { min-width: 0; }
img, video, iframe, canvas, svg { max-width: 100%; }
.topbar, .stage { width: min(1200px, calc(100% - 40px)); max-width: 100%; }
.topbar { height: 64px; }
.topbar-right { min-width: 0; gap: 10px; }
.brand, .brand-copy, .product-label { min-width: 0; }
.product-label { font-size: 8px; letter-spacing: 1px; }
.stage { padding-top: 17px; padding-bottom: 18px; }
.eyebrow { font-size: 8px; letter-spacing: 1.2px; }
.value-card { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); min-height: 0; }
.portrait-panel { min-height: 0; height: auto; align-self: stretch; }
.portrait-copy { bottom: 48px; }
.portrait-copy p { font-size: clamp(36px, 3.65vw, 49px); }
.profile-panel { min-width: 0; padding: 19px clamp(20px, 2.6vw, 36px) 0; }
.profile-topline { min-height: 24px; }
.identity-row { display: grid; grid-template-columns: minmax(0, 1fr) 94px; align-items: center; gap: 12px; padding-top: 7px; min-width: 0; }
.identity-block { min-width: 0; padding-top: 0; }
.identity-kicker { margin-bottom: 6px; font-size: 7px; line-height: 1.4; letter-spacing: .9px; }
.identity-block h1 { font-size: clamp(37px, 3.6vw, 49px); line-height: .98; letter-spacing: -2.5px; overflow-wrap: normal; }
.profile-role { margin-top: 7px; font-size: 10px; line-height: 1.45; }
.profile-qr { width: 94px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 6px 6px; color: #545d70; text-align: center; background: rgba(255,255,255,.7); border: 1px solid #e2e0eb; border-radius: 5px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.profile-qr:hover { border-color: #3DDEE8; background: #fff; transform: translateY(-1px); }
.profile-qr:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 3px; }
.profile-qr-visual { width: 70px; height: 70px; display: grid; place-items: center; overflow: hidden; background: #fff; border-radius: 2px; }
.profile-qr-visual img, .profile-qr-visual canvas { display: block; width: 70px !important; height: 70px !important; max-width: 70px; object-fit: contain; }
.profile-qr-visual .qr-placeholder { display: block; width: 70px; height: 70px; }
.profile-qr-caption { color: #087780; font-size: 6px; font-weight: 800; letter-spacing: .35px; line-height: 1.25; }
.profile-qr-state { color: #8a90a0; font-size: 6px; line-height: 1.3; }
.value-statement { max-width: 465px; margin-top: 9px; font-size: 10px; line-height: 1.5; }
.primary-actions { gap: 7px; margin: 12px 0 14px; }
.button { min-height: 37px; gap: 8px; padding-inline: 12px; font-size: 9px; }
.feature-rail { gap: 7px; margin: 0 0 12px; }
.feature-card { grid-template-columns: 29px minmax(0,1fr) 10px; gap: 7px; padding: 9px 8px; }
.feature-icon { width: 28px; height: 28px; }
.feature-kicker { font-size: 6px; letter-spacing: .65px; }
.feature-title { font-size: 9px; line-height: 1.25; }
.feature-description { font-size: 7px; line-height: 1.35; }
.feature-card .feature-status { margin-top: 3px; font-size: 6px; }
.micro-experience { padding-top: 10px; }
.micro-heading { font-size: 7px; }
.micro-spark { font-size: 13px; }
.tabs { gap: clamp(10px, 1.5vw, 20px); margin-top: 8px; }
.tab { padding-bottom: 8px; font-size: 9px; }
.tab-panel { min-height: 92px; padding: 9px 0 8px; }
.panel-lead { font-size: 14px; line-height: 1.28; }
.panel-copy { margin-top: 5px; font-size: 9px; line-height: 1.45; }
.skill-chips { gap: 5px; margin-top: 7px; }
.skill-chips span { padding: 4px 6px; font-size: 7px; }
.perspective-words { gap: 6px; margin-top: 8px; font-size: 7px; }
.contact-strip { min-height: 43px; gap: 8px; }
.contact-strip-label { font-size: 6px; letter-spacing: .75px; }
.quick-links { gap: 5px; }
.quick-links a, .quick-links button { width: 25px; height: 25px; }
.stage-footer { padding-top: 14px; gap: 12px; }
.stage-footer p { font-size: 10px; }
.footer-brand { font-size: 15px; }
.footer-note { font-size: 6px; letter-spacing: .8px; }

/* Tablet: conserva la tarjeta en dos columnas y evita mínimos rígidos. */
@media (max-width: 950px) {
  .topbar, .stage { width: min(100% - 32px, 900px); }
  .value-card { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
  .profile-panel { padding-inline: clamp(17px, 2.4vw, 24px); }
  .identity-row { grid-template-columns: minmax(0,1fr) 82px; gap: 8px; }
  .identity-block h1 { font-size: clamp(34px, 4.5vw, 43px); letter-spacing: -2.1px; }
  .profile-qr { width: 82px; padding: 6px 4px; }
  .profile-qr-visual, .profile-qr-visual img, .profile-qr-visual canvas, .profile-qr-visual .qr-placeholder { width: 62px !important; height: 62px !important; max-width: 62px; }
  .profile-role { font-size: 9px; }
  .feature-rail { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 29px minmax(0,1fr) 10px; }
  .feature-description { font-size: 8px; }
  .feature-kicker { font-size: 6px; }
  .feature-title { font-size: 10px; }
  .tab-panel { min-height: 84px; }
  .stage-footer { grid-template-columns: auto 1fr auto; }
}

/* Móvil: apila la fotografía y el perfil, reduce el QR sin comprimir el texto. */
@media (max-width: 690px) {
  .topbar { width: calc(100% - 28px); height: 60px; }
  .brand { gap: 8px; }
  .brand-mark { font-size: 18px; }
  .brand-copy { font-size: 6px; letter-spacing: 1.2px; }
  .topbar-right { max-width: 45%; }
  .topbar-right .product-label { max-width: 120px; font-size: 6px; line-height: 1.35; letter-spacing: .65px; white-space: normal; }
  .icon-button { width: 32px; height: 32px; flex: 0 0 32px; }
  .stage { width: calc(100% - 24px); padding-top: 17px; }
  .eyebrow { font-size: 7px; letter-spacing: .85px; }
  .value-card { display: flex; flex-direction: column; min-height: 0; }
  .portrait-panel { min-height: 0; height: clamp(290px, 82vw, 390px); flex: 0 0 auto; }
  .portrait-copy { left: 22px; right: 18px; bottom: 43px; }
  .portrait-copy p { margin: 13px 0 10px; font-size: clamp(37px, 11vw, 49px); }
  .portrait-caption { margin-top: 9px; font-size: 9px; }
  .orbit-caption { left: 20px; bottom: 15px; font-size: 5px; letter-spacing: 1.15px; }
  .profile-panel { padding: 18px 18px 0; }
  .profile-topline { min-height: 20px; }
  .overline { font-size: 7px; letter-spacing: 1px; }
  .identity-row { grid-template-columns: minmax(0,1fr) 76px; gap: 8px; padding-top: 9px; }
  .identity-kicker { font-size: 6px; letter-spacing: .45px; margin-bottom: 5px; }
  .identity-block h1 { font-size: clamp(34px, 10.5vw, 43px); letter-spacing: -2.2px; line-height: .99; }
  .profile-role { font-size: 9px; line-height: 1.35; margin-top: 7px; }
  .profile-qr { width: 76px; padding: 5px 4px; gap: 4px; }
  .profile-qr-visual, .profile-qr-visual img, .profile-qr-visual canvas, .profile-qr-visual .qr-placeholder { width: 60px !important; height: 60px !important; max-width: 60px; }
  .profile-qr-caption { font-size: 5px; letter-spacing: .1px; }
  .profile-qr-state { font-size: 5px; }
  .value-statement { margin-top: 10px; font-size: 10px; line-height: 1.5; }
  .primary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 13px 0 14px; gap: 7px; }
  .button { min-width: 0; min-height: 40px; padding-inline: 8px; gap: 6px; font-size: 8px; }
  .button svg { flex: 0 0 14px; }
  .feature-rail { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 13px; }
  .feature-card { grid-template-columns: 26px minmax(0,1fr); gap: 7px; padding: 9px 7px; align-items: start; }
  .feature-icon { width: 25px; height: 25px; }
  .feature-arrow { display: none; }
  .feature-kicker { font-size: 5px; letter-spacing: .2px; }
  .feature-title { font-size: 9px; }
  .feature-description { font-size: 7px; }
  .feature-card .feature-status { font-size: 6px; }
  .micro-experience { padding-top: 10px; }
  .micro-heading { font-size: 6px; letter-spacing: 1px; }
  .tabs { gap: 12px; justify-content: flex-start; flex-wrap: wrap; overflow: visible; max-width: 100%; margin-top: 9px; }
  .tab { flex: 0 0 auto; font-size: 8px; padding-bottom: 8px; }
  .tab-panel { min-height: 95px; padding: 10px 0 8px; }
  .panel-lead { font-size: 14px; }
  .panel-copy { font-size: 9px; line-height: 1.5; }
  .contact-strip { min-height: 45px; }
  .contact-strip-label { max-width: 65%; font-size: 6px; }
  .quick-links a, .quick-links button { width: 25px; height: 25px; }
  .stage-footer { grid-template-columns: 1fr auto; gap: 10px; padding-top: 15px; }
  .stage-footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 10px; }
  .footer-note { grid-column: 2; grid-row: 1; font-size: 5px; }
  .connect-dialog, .case-dialog { padding: 26px 18px 20px; }
}

@media (max-width: 370px) {
  .topbar, .stage { width: calc(100% - 20px); }
  .brand-copy { display: none; }
  .brand-divider { display: none; }
  .topbar-right { max-width: 55%; }
  .product-label { max-width: 92px; }
  .identity-row { grid-template-columns: minmax(0,1fr) 68px; gap: 5px; }
  .identity-block h1 { font-size: 32px; letter-spacing: -1.8px; }
  .identity-kicker { font-size: 5px; }
  .profile-role { font-size: 8px; }
  .profile-qr { width: 68px; }
  .profile-qr-visual, .profile-qr-visual img, .profile-qr-visual canvas, .profile-qr-visual .qr-placeholder { width: 53px !important; height: 53px !important; max-width: 53px; }
  .primary-actions { grid-template-columns: 1fr; }
  .feature-rail { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 29px minmax(0,1fr); }
  .feature-kicker { font-size: 6px; }
  .feature-title { font-size: 10px; }
  .feature-description { font-size: 8px; }
  .feature-card .feature-status { font-size: 6px; }
  .tabs { gap: 10px; }
}

@media (min-width: 951px) and (min-height: 740px) {
  .value-card { min-height: 0; height: min(570px, calc(100vh - 205px)); }
  .portrait-panel { height: auto; min-height: 0; }
  .profile-panel { overflow: hidden; }
}

  

/* Ajuste de consistencia: acciones del CV y QR con la misma altura visual. */
.cv-toolbar .media-actions,
#qr-dialog .media-actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

/* El margen superior histórico de .modal-done era útil en otros diálogos,
   pero desplazaba el botón Cerrar dentro de las barras de acciones del CV y QR. */
.cv-toolbar .media-actions .modal-done,
#qr-dialog .media-actions .modal-done {
  margin-top: 0 !important;
  align-self: flex-end;
}
.cv-toolbar .media-actions .button,
#qr-dialog .media-actions .button {
  box-sizing: border-box;
  min-height: 43px;
  height: 43px;
  padding-block: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: normal;
}
.cv-toolbar .media-actions .button svg,
#qr-dialog .media-actions .button svg {
  flex: 0 0 auto;
}

/* Branding +5.0 — estilos del sistema de diseño de la tarjeta pública. */




































































/* Las variables de paleta se aplican a todos los puntos de acento de la tarjeta. */
.brand-mark span,.mini-brand span,.footer-brand span{color:var(--violet-light)}
.ambient-one{background:radial-gradient(circle,color-mix(in srgb,var(--violet) 21%,transparent),transparent 70%)}
.portrait-index i,.orbit-caption span{background:var(--violet-light)}
.portrait-copy em{color:var(--violet-light)}
.photo-kicker{border-color:color-mix(in srgb,var(--violet-light) 56%,transparent);color:color-mix(in srgb,var(--violet-light) 65%,white)}
.portrait-rule{background:linear-gradient(90deg,var(--violet),var(--violet-light))}
.overline span,.identity-kicker,.micro-spark,.case-icon,.perspective-words b{color:var(--violet)}
.verified-mark{border-color:color-mix(in srgb,var(--violet) 26%,white);color:var(--violet);background:color-mix(in srgb,var(--violet) 8%,white)}
.identity-block h1 span{color:var(--violet)}
.button-primary{background:var(--violet);box-shadow:0 7px 18px color-mix(in srgb,var(--violet) 20%,transparent)}
.button-primary:hover{background:color-mix(in srgb,var(--violet) 88%,black);box-shadow:0 10px 23px color-mix(in srgb,var(--violet) 28%,transparent)}
.button-outline:hover{border-color:color-mix(in srgb,var(--violet) 55%,white);background:color-mix(in srgb,var(--violet) 7%,white)}
.tab.is-active{color:var(--violet)}.tab.is-active::after{background:var(--violet)}
.tab:hover{color:var(--ink)}
.skill-chips span{border-color:color-mix(in srgb,var(--violet) 20%,white);background:color-mix(in srgb,var(--violet) 5%,white)}
.inline-action{color:var(--violet)}
.profile-qr-state{color:var(--violet)}

/* Los estados secundarios también consumen la paleta activa; evita acentos fijos entre módulos. */
.eyebrow-line{background:var(--violet-light)}
.panel-lead{color:var(--ink)}
.skill-chips span{color:var(--violet);border-color:color-mix(in srgb,var(--violet) 20%,white);background:color-mix(in srgb,var(--violet) 6%,white)}
.case-icon{color:var(--violet);background:color-mix(in srgb,var(--violet) 9%,white)}
.perspective-words{color:var(--violet)}.perspective-words b{color:var(--violet-light)}
.quick-links a:hover,.quick-links button:hover{color:var(--violet);border-color:color-mix(in srgb,var(--violet) 35%,white);background:color-mix(in srgb,var(--violet) 7%,white)}
.connect-dialog,.case-dialog,.media-dialog,.qr-dialog{background:var(--night-soft)}
.connect-dialog h2 em,.case-dialog h2 em,.dialog-title em,.dialog-eyebrow{color:var(--violet-light)}
.intent-option:hover{border-color:color-mix(in srgb,var(--violet-light) 65%,transparent)}
.intent-option.is-selected{border-color:var(--violet);background:color-mix(in srgb,var(--violet) 12%,var(--night-soft))}
.intent-icon{color:var(--violet-light);background:color-mix(in srgb,var(--violet) 18%,transparent)}
.intent-option.is-selected .option-check{border-color:var(--violet-light);background:var(--violet);box-shadow:inset 0 0 0 3px var(--night-soft)}
.case-steps > div > span{color:var(--violet-light)}
.modal-done:hover{background:color-mix(in srgb,var(--violet) 14%,transparent)}
.feature-card:hover{border-color:var(--violet-light);background:color-mix(in srgb,var(--violet) 5%,white)}
.feature-icon{color:var(--violet);background:color-mix(in srgb,var(--violet) 8%,white)}
.feature-arrow,.feature-card .feature-status{color:var(--violet)}
.video-play-mark{background:color-mix(in srgb,var(--violet) 90%,transparent);box-shadow:0 0 0 10px color-mix(in srgb,var(--violet) 10%,transparent)}
.cv-topline{border-bottom-color:var(--violet)}
.cv-brand,.cv-role,.cv-section h3,.cv-skills span{color:var(--violet)}
.cv-skills span{background:color-mix(in srgb,var(--violet) 6%,white);border-color:color-mix(in srgb,var(--violet) 18%,white)}
.cv-dialog .dialog-close:hover{color:var(--violet)}
.cv-dialog .modal-done:hover{color:var(--violet);background:color-mix(in srgb,var(--violet) 7%,white)}
.profile-qr:focus-visible{outline-color:var(--violet-light)}
.profile-qr:hover{border-color:var(--violet-light)}
.profile-qr-caption{color:var(--violet)}

/* Diferencias reales entre los tres territorios visuales. */









/* Minimalismo estratégico hereda el sistema visual original aprobado: sin overrides cosméticos. */
body.composition-portrait .value-card{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}
body.composition-compact .value-card{height:auto!important;min-height:0!important}
body.composition-compact .profile-panel{overflow:visible!important;padding-top:21px;padding-bottom:20px}
body.composition-compact .identity-block h1{font-size:clamp(42px,4.5vw,58px)}
body.composition-compact .primary-actions{margin-top:13px;margin-bottom:16px}
body.composition-compact .tab-panel{min-height:110px}

@media(max-width:950px){
  
  body.composition-portrait .value-card{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}
  body.composition-compact .identity-block h1{font-size:clamp(32px,4.1vw,41px)}
}
@media(max-width:690px){
  .topbar-right{gap:6px;max-width:58%}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  body.composition-portrait .value-card{display:flex;flex-direction:column}
  body.composition-compact .identity-block h1{font-size:clamp(34px,10vw,43px)}
}



  
/* QA update: editor UX, accessible states, reduced layout shifts and compact screens. */










.media-clear{align-self:flex-start;min-height:34px;padding:7px 10px;font-size:10px}

.connect-purpose{display:block;margin:0 0 8px;padding:8px 10px;border-left:2px solid var(--violet);background:color-mix(in srgb,var(--violet) 7%,white);color:#394357;font-weight:600}
.panel-copy{white-space:pre-line;overflow-wrap:anywhere}
.value-statement,.profile-role,.panel-lead,.identity-block h1{overflow-wrap:anywhere}




 .profile-qr-visual .qr-placeholder-note{display:block;max-width:100%;padding:4px;text-align:center;font-size:8px;line-height:1.25;font-weight:600;color:#667085;overflow-wrap:anywhere;}

/* Accessibility refinement: improve microcopy legibility without changing the approved layout. */
.brand-copy,.overline,.identity-kicker,.profile-qr-caption,.profile-qr-state,.orbit-caption,.micro-heading,.contact-strip-label,.footer-note,.case-label,.feature-kicker,.feature-card .feature-status,.skill-chips span{font-size:max(8px, .58em);}
.feature-description{font-size:max(9px, .66em);}
@media(max-width:690px){
  .brand-copy,.overline,.identity-kicker,.profile-qr-caption,.profile-qr-state,.orbit-caption,.micro-heading,.contact-strip-label,.footer-note,.case-label,.feature-kicker,.feature-card .feature-status,.skill-chips span{font-size:8px;}
  .feature-description{font-size:9px;}
}
@media(max-width:370px){
  .profile-qr-caption,.profile-qr-state,.orbit-caption,.footer-note{font-size:8px;}
  .feature-title{overflow-wrap:anywhere;}
}

/* Evolución de producto: orientación, redacción guiada y preparación para compartir. */
.product-evolution{border:1px solid #dfe3eb;border-radius:10px;background:linear-gradient(145deg,#f5fbfb,#fff);padding:15px;margin:14px 0 18px}
.product-evolution-head{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}
.product-evolution-mark{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:8px;background:#e8fafb;color:#087780;font-size:15px;font-weight:900}
.product-evolution h3{margin:0;color:#1d2639;font-size:14px;letter-spacing:-.25px}
.product-evolution p{margin:4px 0 0;color:#697387;font-size:10px;line-height:1.55}
.goal-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}
.goal-choice{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:10px;border:1px solid #e0e3eb;border-radius:7px;background:#fff;color:#273147;text-align:left}
.goal-choice[aria-pressed="true"]{border-color:#0ba7b5;background:#e8fafb;box-shadow:inset 0 0 0 1px #a7edf0}
.goal-choice-icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:6px;background:#f1f2f6;color:#087780;font-size:12px;font-weight:800}
.goal-choice strong{display:block;font-size:10px;line-height:1.35}
.goal-choice small{display:block;margin-top:3px;color:#778195;font-size:9px;line-height:1.4}
.goal-guidance{padding:10px 11px;border-left:2px solid #0ba7b5;background:#e8fafb;color:#4d5570;font-size:10px;line-height:1.55;margin:10px 0}
.guide-fields{display:grid;gap:9px;margin-top:11px}
.guide-field{display:grid;gap:5px}
.guide-field label{color:#39445a;font-weight:750;font-size:10px}
.guide-field input,.guide-field textarea{display:block;width:100%;min-width:0;border:1px solid #d9deea;border-radius:6px;padding:9px 10px;background:#fff;color:#1c2638;font:inherit;font-size:11px;line-height:1.5}
.guide-field textarea{resize:vertical;min-height:65px}
.guide-field input:focus,.guide-field textarea:focus{outline:3px solid #a7edf0;outline-offset:1px}
.guide-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.guide-action{min-height:35px;padding:0 11px;border:1px solid #d7dbe6;border-radius:6px;background:#fff;color:#30394c;font-size:10px;font-weight:800}
.guide-action.primary-guide{background:#087780;border-color:#087780;color:#fff}
.guide-action:disabled{opacity:.45;cursor:not-allowed}
.guide-draft{width:100%;min-height:90px;padding:10px;border:1px solid #d9deea;border-radius:6px;background:#fff;color:#202b3e;font:inherit;font-size:11px;line-height:1.6;margin-top:9px;resize:vertical}
.guide-note{margin-top:9px!important;color:#7b8497!important;font-size:9px!important}
.readiness-card{border:1px solid #e0e3eb;border-radius:8px;padding:13px;margin:14px 0 18px;background:#fff}
.readiness-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.readiness-top h3{font-size:13px;margin:0;color:#202a3d}
.readiness-count{flex:0 0 auto;padding:5px 7px;background:#e8fafb;color:#087780;border-radius:99px;font-size:9px;font-weight:850}
.readiness-bar{height:5px;background:#e9ebf1;border-radius:99px;overflow:hidden;margin:10px 0 12px}
.readiness-bar span{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--color-accent),var(--color-accent-light));transition:width .18s}
.readiness-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.readiness-list li{display:flex;align-items:flex-start;gap:8px;color:#647086;font-size:10px;line-height:1.45}
.readiness-icon{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border:1px solid #d9deea;border-radius:50%;color:#8b93a5;font-size:10px;font-weight:900}
.readiness-list li.is-ready{color:#27634f}
.readiness-list li.is-ready .readiness-icon{border-color:#9ed6bf;background:#e9f8f0;color:#24714f}
.readiness-list strong{display:block;font-size:10px;color:inherit}
.readiness-list small{display:block;margin-top:2px;color:#8790a1;font-size:9px}
.case-builder{border:1px solid #e0e3eb;border-radius:8px;padding:12px;margin:12px 0;background:#fbfbfd}
.case-builder h4{font-size:11px;color:#2e394e;margin:0}
.case-builder>p{font-size:9px;color:#788297;line-height:1.5;margin:4px 0 10px}
@media(max-width:430px){.goal-choices{grid-template-columns:1fr}.product-evolution{padding:12px}.guide-actions{display:grid;grid-template-columns:1fr}.guide-action{width:100%}}


/* VISTA EN PLIEGUE: ajuste de densidad responsive sin alterar la composición aprobada en escritorio. */
@media (min-width:691px) and (min-height:680px) and (max-height:739px) {
  .topbar { height:56px; }
  .stage { height:calc(100dvh - 56px); min-height:0; display:flex; flex-direction:column; padding-top:8px; padding-bottom:7px; }
  .value-card { height:calc(100dvh - 145px)!important; max-height:calc(100dvh - 145px); min-height:0!important; flex:0 0 auto; }
  .portrait-panel { height:auto; min-height:0; }
  .profile-panel { min-height:0; overflow:hidden!important; padding-top:12px!important; padding-bottom:0!important; }
  .identity-row { padding-top:3px; gap:8px; }
  .identity-block h1 { font-size:clamp(32px,3.3vw,42px); line-height:.96; }
  .value-statement { margin-top:7px; font-size:10px; line-height:1.35; }
  .primary-actions { margin:8px 0 9px; gap:6px; }
  .button { min-height:34px; }
  .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; margin-bottom:7px; gap:6px; }
  .feature-card { grid-template-columns:25px minmax(0,1fr) 8px; padding:7px 6px; gap:5px; }
  .feature-icon { width:24px; height:24px; }
  /* Copy de video y CV conservado en todos los tamaños. */
  .portrait-copy p { font-size:clamp(28px,3.6vw,34px); line-height:1.02; letter-spacing:-1.5px; }
  .portrait-copy { bottom:43px; }
  .feature-card { padding:7px; }
  .micro-experience { padding-top:7px; }
  .tabs { margin-top:6px; }
  .tab-panel { min-height:0; padding:6px 0; }
  .panel-copy { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .skill-chips { margin-top:5px; }
  .stage-footer { padding-top:8px; }
  body.composition-compact .value-card { height:calc(100dvh - 145px)!important; max-height:calc(100dvh - 145px); min-height:0!important; }
  body.composition-compact .profile-panel { overflow:hidden!important; padding-top:12px!important; padding-bottom:0!important; }
  body.composition-compact .tab-panel { min-height:0!important; }
}
/* Móvil de una vista: tarjeta compacta; el editor y los diálogos conservan su propio desplazamiento. */
@media (max-width:690px) and (min-height:660px) {
  html { min-height:100%; }
  body { min-height:100dvh; }
  .topbar { height:54px; min-height:54px; }
  .stage { height:calc(100dvh - 54px); min-height:0; display:flex; flex-direction:column; padding-top:7px; padding-bottom:6px; }
  .value-card { display:flex!important; flex:0 0 auto!important; flex-direction:column!important; min-height:0!important; height:auto!important; max-height:none; overflow:hidden; }
  .portrait-panel { height:clamp(150px,22.5dvh,190px)!important; min-height:0!important; flex:0 0 auto!important; }
  .portrait-topline { top:12px; left:15px; right:14px; }
  .portrait-panel > .portrait { object-position:50% 0%!important; }
  .mini-brand { font-size:17px; }
  .portrait-index { font-size:7px; letter-spacing:1px; gap:6px; }
  .portrait-copy { left:16px; right:14px; bottom:29px; }
  .photo-kicker { padding:5px 7px; font-size:7px; letter-spacing:.55px; }
  .portrait-copy p { margin:7px 0 6px; font-size:clamp(27px,8vw,34px); line-height:1.01; letter-spacing:-1.5px; }
  .portrait-caption { margin-top:5px; font-size:8px; line-height:1.3; }
  .orbit-caption { left:15px; bottom:9px; font-size:5px; letter-spacing:1px; }
  .profile-panel { flex:0 0 auto; min-height:0; overflow:hidden!important; padding:8px 12px 0!important; }
  body.composition-compact .profile-panel { overflow:hidden!important; padding:8px 12px 0!important; }
  .profile-topline { min-height:16px; }
  .overline { font-size:8px; letter-spacing:.8px; }
  .identity-row { grid-template-columns:minmax(0,1fr) 70px; gap:7px; padding-top:3px; }
  .identity-kicker { margin-bottom:3px; font-size:7px; line-height:1.25; letter-spacing:.2px; }
  .identity-block h1 { font-size:clamp(29px,8vw,36px)!important; line-height:.96; letter-spacing:-1.8px!important; }
  .profile-role { margin-top:4px; font-size:9px; line-height:1.3; }
  .profile-qr { width:70px; padding:4px; gap:2px; }
  .profile-qr-visual,.profile-qr-visual img,.profile-qr-visual canvas,.profile-qr-visual .qr-placeholder { width:48px!important; height:48px!important; max-width:48px; }
  .profile-qr-caption,.profile-qr-state { font-size:8px; line-height:1.15; }
  .value-statement { margin-top:6px; font-size:10px; line-height:1.35; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .primary-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr))!important; margin:7px 0 7px; gap:6px; }
  .button { min-width:0; min-height:34px; padding-inline:6px; gap:4px; font-size:9px; line-height:1.15; }
  .button svg { width:13px; height:13px; flex:0 0 13px; }
  .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:6px; margin:0 0 7px; }
  .feature-card { grid-template-columns:22px minmax(0,1fr) 8px; align-items:center; gap:5px; min-height:0; padding:6px; }
  .feature-icon { width:22px; height:22px; }
  .feature-icon svg { width:14px; height:14px; }
  .feature-kicker { font-size:8px; line-height:1.2; letter-spacing:.15px; margin-bottom:2px; }
  .feature-title { font-size:10px; line-height:1.2; }
  /* Copy de video y CV conservado en todos los tamaños. */
  .feature-arrow { font-size:14px; }
  .micro-experience { padding-top:6px; min-height:0; display:flex; flex:0 0 auto; flex-direction:column; }
  .micro-heading { font-size:8px; letter-spacing:.65px; }
  .micro-spark { font-size:12px; }
  .tabs { flex-wrap:nowrap!important; gap:clamp(10px,3vw,14px); margin-top:5px; flex:0 0 auto; }
  .tab { font-size:9px; padding-bottom:6px; }
  .tab-panel { display:flex; flex-direction:column; justify-content:flex-start; flex:0 0 90px!important; height:90px!important; min-height:90px!important; padding:6px 0 4px; overflow:hidden; }
  body.composition-compact .tab-panel { flex:0 0 90px!important; height:90px!important; min-height:90px!important; }
  .panel-lead { font-size:13px; line-height:1.2; }
  .tab-panel[data-panel="proof"] .panel-lead { font-size:12px; line-height:1.18; }
  .tab-panel[data-panel="proof"] .case-label { margin-bottom:4px; }
  .tab-panel[data-panel="proof"] .panel-copy { -webkit-line-clamp:1!important; }
  .tab-panel[data-panel="proof"] .inline-action { margin-top:3px; font-size:8px; }
  .panel-copy { margin-top:4px; font-size:9px; line-height:1.32; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .skill-chips { gap:4px; margin-top:5px; }
  .skill-chips span { padding:3px 5px; font-size:8px; }
  .perspective-words { gap:5px; margin-top:5px; font-size:8px; }
  .inline-action { margin-top:4px; font-size:9px; }
  .contact-strip { flex:0 0 38px; min-height:38px; margin-top:8px; gap:6px; }
  .contact-strip-label { max-width:48%; font-size:8px; letter-spacing:.2px; }
  .quick-links { gap:4px; }
  .quick-links a,.quick-links button { width:25px; height:25px; }
  .stage-footer { display:grid!important; margin-top:auto; grid-template-columns:1fr auto; gap:7px; padding-top:8px; }
  .stage-footer p { grid-column:1 / -1; grid-row:2; text-align:left; font-size:9px; }
  .footer-brand { font-size:13px; }
  .footer-note { grid-column:2; grid-row:1; font-size:6px; }
  body.composition-compact .value-card { height:auto!important; max-height:none!important; min-height:0!important; flex:1 1 0!important; }
}
@media(max-width:370px) and (min-height:660px) {
  .stage-footer { padding-top:3px!important; gap:3px!important; }
  .stage-footer p { font-size:8px!important; line-height:1.25!important; }
}
@media(max-width:349px) and (min-height:660px) {
  .identity-row { grid-template-columns:minmax(0,1fr) 62px; gap:5px; }
  .profile-qr { width:62px; }
  .profile-qr-visual,.profile-qr-visual img,.profile-qr-visual canvas,.profile-qr-visual .qr-placeholder { width:42px!important;height:42px!important;max-width:42px; }
  .identity-kicker { font-size:7px; line-height:1.2; letter-spacing:0; }
  .identity-block h1 { font-size:clamp(27px,8.2vw,31px)!important; letter-spacing:-1.5px!important; }
  .feature-card { grid-template-columns:20px minmax(0,1fr) 7px; gap:4px; padding:5px; }
  .feature-icon { width:20px;height:20px; }
  .feature-title { font-size:9px; }
  .feature-kicker { font-size:8px; letter-spacing:0; }
  .contact-strip-label { font-size:8px; }
  .stage-footer { padding-top:3px!important; gap:3px!important; }
  .stage-footer p { font-size:8px!important; line-height:1.25!important; }
}
/* Espacio vertical seguro en escritorio: conserva toda la fila de contacto dentro de la tarjeta. */
@media (min-width:951px) and (min-height:740px) {
  .value-card { height:min(570px,calc(100dvh - 205px)); min-height:0; }
  .profile-panel { overflow:hidden!important; padding-top:15px!important; padding-bottom:0!important; }
  .identity-row { padding-top:3px; }
  .primary-actions { margin:9px 0 9px; }
  .feature-rail { margin-bottom:8px; }
  .micro-experience { padding-top:7px; }
  .tabs { margin-top:7px; }
  .tab-panel { min-height:85px; padding-top:7px; padding-bottom:6px; }
  body.composition-compact .value-card { height:min(570px,calc(100dvh - 205px))!important; min-height:0!important; }
  body.composition-compact .profile-panel { overflow:hidden!important; padding:15px clamp(20px,2.6vw,36px) 0!important; }
  body.composition-compact .tab-panel { min-height:85px!important; }
}
/* Mantiene visible la acción que abre la evidencia completa cuando el caso se resume. */
@media (min-width:691px) and (min-height:680px) {
  .tab-panel[data-panel="proof"] { padding-top:5px; padding-bottom:4px; }
  .tab-panel[data-panel="proof"] .case-label { margin-bottom:4px; }
  .tab-panel[data-panel="proof"] .panel-lead { font-size:clamp(12px,1.05vw,14px); line-height:1.2; }
  .tab-panel[data-panel="proof"] .panel-copy { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:4px; line-height:1.3; }
  .tab-panel[data-panel="proof"] .inline-action { margin-top:4px; }
}
/* En ventanas excepcionalmente bajas se prioriza accesibilidad y se permite scroll natural. */
@media (max-height:659px) { html,body { overflow-y:auto; } }

/* Ajuste final de pie en móviles muy estrechos: evita que el texto secundario
   provoque scroll; la marca no se repite con el claim en pantallas pequeñas. */
@media (max-width:370px) and (min-height:660px) {
  .stage-footer { display:flex!important; align-items:center!important; justify-content:space-between!important; grid-template-columns:none!important; padding-top:4px!important; gap:8px!important; }
  .stage-footer p { display:none!important; }
  .footer-brand { font-size:12px!important; }
  .footer-note { margin-left:auto; font-size:6px!important; }
}
@media (max-width:349px) and (min-height:660px) {
  .stage-footer { display:none!important; }
}


/* La composición compacta también debe respetar el límite inferior de la tarjeta. */
@media (min-width:951px) and (min-height:740px) {
  body.composition-compact .identity-block h1 { font-size:clamp(34px,3.2vw,44px)!important; line-height:.96!important; letter-spacing:-2.5px!important; }
  body.composition-compact .primary-actions { margin:8px 0 8px!important; }
  body.composition-compact .feature-rail { margin-bottom:6px!important; }
  body.composition-compact .micro-experience { padding-top:5px!important; }
  body.composition-compact .tabs { margin-top:5px!important; }
  body.composition-compact .tab-panel { min-height:72px!important; padding:4px 0!important; }
  body.composition-compact .tab-panel[data-panel="proof"] .panel-copy { -webkit-line-clamp:1!important; }
}


/* En composición vertical se resume una línea adicional para no recortar el contacto. */
@media (min-width:951px) and (min-height:740px) {
  body.composition-portrait .tab-panel[data-panel="proof"] .panel-copy { -webkit-line-clamp:1!important; }
}


/* Product prototype: evidence details and a lightweight local opportunity pipeline. */
.case-detail-content{margin:14px 0 20px;border:1px solid rgba(61,222,232,.25);border-radius:8px;background:rgba(255,255,255,.035);padding:15px}
.case-detail-content h3{margin:0 0 9px;color:#fff;font-size:17px;line-height:1.35}
.case-detail-content p{margin:0;color:#c1cada;font-size:12px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}
.case-proof-disclaimer{margin-top:12px;color:#a6b0c2;font-size:10px;line-height:1.5}
.case-proof-link{display:inline-flex;margin-top:12px;color:#a7edf0;font-size:11px;font-weight:800;text-decoration:none}
.case-proof-link:hover{text-decoration:underline}



































/* Dirección visual V2: los territorios representan sistemas distintos, no solo acabados. */













/* 1. EDITORIAL CONTUNDENTE — lenguaje de revista profesional: serif, papel, reglas y estructura. */
























/* 2. EXPRESIÓN CONTEMPORÁNEA — geometría, contraste cromático y componentes dinámicos. */






























/* En móviles las dos direcciones conservan sus rasgos sin aumentar el contenido vertical. */




/* Ajuste de primer pliegue para dispositivos estrechos: CTAs en dos columnas para evitar una fila extra. */



/* Ajustes de densidad para los dos sistemas nuevos: la estética cambia sin recortar acciones. */












/* QA release: three genuinely different design systems. Minimal is the approved baseline. */
.profile-meta-secondary{margin:3px 0 0;color:#858c99;font-size:8px;line-height:1.3;overflow-wrap:anywhere}

/* EDITORIAL: horizontal cover hero + full-width editorial content beneath it. */


/* CONTEMPORARY: mirrored split; the profile leads on the left and the portrait becomes a graphic panel on the right. */


/* Mobile: preserve the original vertical reading order; keep distinctive typography and shapes. */






/* QA refinamiento editorial: el retrato tiene un encuadre legible; la imagen no se estira como banda panorámica. */



/* Tablet viewport correction: retain the first fold at 691–850px without clipping the public card. */
@media (min-width:691px) and (max-width:850px) and (min-height:740px) {
  .topbar { height:60px!important; }
  .stage { padding-top:8px!important; padding-bottom:3px!important; }
  .value-card { height:min(570px,calc(100dvh - 145px))!important; min-height:0!important; }
  .portrait-panel { min-height:0!important; height:auto!important; }
  .profile-panel { min-height:0!important; overflow:hidden!important; padding-top:12px!important; }
  .identity-row { padding-top:3px!important; }
  .primary-actions { margin:7px 0 7px!important; }
  .feature-rail { margin-bottom:5px!important; gap:5px!important; }
  .micro-experience { padding-top:5px!important; }
  .tabs { margin-top:4px!important; }
  .tab-panel { min-height:68px!important; padding-top:4px!important; padding-bottom:3px!important; }
  .tab-panel[data-panel="proof"] { min-height:68px!important; }
  .stage-footer { padding-top:4px!important; }
}


/* Tablet medio: apilar las tarjetas de recurso en paralelo para liberar altura y conservar el contacto visible. */
@media (min-width:691px) and (max-width:850px) and (min-height:740px) {
  .feature-rail { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:6px!important; margin-bottom:5px!important; }
  .feature-card { grid-template-columns:25px minmax(0,1fr)!important; gap:6px!important; padding:6px!important; min-height:0!important; }
  .feature-arrow { display:none!important; }
  /* Copy de video y CV conservado en todos los tamaños. */
  .feature-title { font-size:9px!important; line-height:1.18!important; }
  .feature-kicker { font-size:5.5px!important; letter-spacing:.2px!important; }
  .contact-strip { min-height:40px!important; }
}



/* Revisión de experiencia: acciones persistentes sin cubrir contenido del administrador. */






/* Legibilidad: conservar el primer pliegue sin reducir contenido interactivo a microtipografía. */
@media(min-width:691px){
  .tabs .tab{min-height:24px;display:inline-flex;align-items:center;padding-top:3px;font-size:10px;}
  .panel-copy{font-size:10px;line-height:1.4;}
  .contact-strip-label{font-size:8px;}
  .skill-chips span{font-size:9px;}
  .feature-kicker,.case-label{font-size:8px;}
}
@media(max-width:690px) and (min-height:660px){
  /* Cede un poco de alto de imagen para mejorar la interacción sin perder el mensaje principal. */
  .portrait-panel{height:clamp(145px,21dvh,177px)!important;}
  
  .identity-kicker{font-size:8px!important;line-height:1.25;}
  .profile-role{font-size:10px!important;line-height:1.3;}
  .profile-meta-secondary{font-size:8px!important;line-height:1.25;}
  .portrait-caption{font-size:9px!important;line-height:1.3;}
  .feature-kicker{font-size:8px!important;letter-spacing:0!important;line-height:1.2;}
  .feature-title{font-size:10px!important;line-height:1.2;}
  .tabs .tab{display:inline-flex;align-items:center;justify-content:center;min-height:26px;font-size:9px!important;line-height:1.15;padding:4px 4px 7px!important;}
  .tab-panel .panel-copy{font-size:9px!important;line-height:1.35!important;-webkit-line-clamp:2;}
  .skill-chips span{font-size:8px!important;padding:4px 5px!important;}
  .contact-strip-label{font-size:8px!important;letter-spacing:.2px!important;}
  .micro-heading{font-size:8px!important;letter-spacing:.45px;}
  .orbit-caption{font-size:7px!important;letter-spacing:.7px;}
  .quick-links a, .quick-links button{width:24px!important;height:24px!important;min-width:24px;min-height:24px;}
  .button{font-size:9px!important;}
  
  
}
@media(max-width:370px) and (min-height:660px){
  .portrait-copy p{font-size:clamp(25px,7.7vw,30px)!important;}
}


/* Último refinamiento tipográfico y de controles, manteniendo las dimensiones del primer pliegue. */
@media(min-width:691px){
  .profile-role{font-size:11px;line-height:1.4}
  .value-statement{font-size:11px;line-height:1.5}
  .panel-copy{font-size:11px;line-height:1.4}
  .button{font-size:10px}
  
  
  
}
@media(max-width:690px) and (min-height:660px){
  .tab-panel .panel-copy{font-size:10px!important;line-height:1.3!important;-webkit-line-clamp:2}
  .skill-chips span{font-size:9px!important;padding:3px 5px!important}
  .button{font-size:10px!important}
}
/* Formulario de administración: tamaño táctil y lectura más cómoda. */




#opportunity-filter{min-height:36px;padding:7px 9px}
.case-builder>p{font-size:11px;line-height:1.5}



/* Ajuste de densidad para que la franja de contacto permanezca dentro de la tarjeta en escritorio. */
@media(min-width:691px){.primary-actions{margin-bottom:19px}}


/* Balance vertical final para mantener contacto y controles dentro del pliegue en escritorio. */
@media(min-width:691px){
  .primary-actions{margin-bottom:14px!important}
  .feature-rail{margin-bottom:5px!important}
  .micro-experience{padding-top:5px!important}
  .tabs{margin-top:6px!important}
  .tab-panel .panel-copy{line-height:1.3!important}
  .skill-chips{margin-top:4px!important}
}


/* En móviles muy estrechos se retira la etiqueta decorativa que puede acercarse al logotipo. */
@media(max-width:370px) and (min-height:660px){
  .portrait-panel{height:clamp(145px,21dvh,177px)!important}
  .photo-kicker{display:none!important}
}


/* Contraste de la microtipografía pública: menos gris tenue sobre superficies claras. */
@media(min-width:691px){
  .overline,.micro-heading,.tabs .tab,.contact-strip-label,.profile-meta-secondary,.feature-kicker,.feature-description{color:#5f6879}
  
  .case-label{color:#69576e}
}
@media(max-width:690px){
  .overline,.micro-heading,.tabs .tab,.contact-strip-label,.profile-meta-secondary,.feature-kicker{color:#5f6879}
  .panel-copy,.feature-description{color:#5f6879}
  
  
}


/* QR compacto en móviles estrechos: conservar significado sin palabras partidas. */
@media (max-width:370px) and (min-height:660px){
  .profile-qr-caption{font-size:0!important;letter-spacing:0!important;line-height:1!important;white-space:nowrap;}
  .profile-qr-caption::before{content:"Mi asesoría";font-size:8px;line-height:1.15;display:block;white-space:nowrap;}
  .profile-qr-state{font-size:7px!important;letter-spacing:0!important;line-height:1.15!important;white-space:normal!important}
  .profile-qr-state::before{content:none!important;display:none!important}
  .profile-qr-visual .qr-placeholder-note{display:grid!important;place-items:center;width:100%;height:100%;padding:4px!important;text-align:center;font-size:8px!important;line-height:1.15!important;color:#687375;white-space:normal!important;overflow-wrap:anywhere!important}
  .profile-qr-visual .qr-placeholder-note::before{content:none!important;display:none!important}
}

/* Contraste adaptativo de la acción principal en la dirección contemporánea. */




/* R2 UX refinement: visual territories use readable layouts, not microtype to force height. */


/* On short desktop windows, reclaim outer chrome spacing instead of shrinking body copy to microtype. */


/* Mobile Editorial: retain the dark magazine cover, but improve type hierarchy and do not clip the card content. */






/* R3 quality pass: remove QR label wrapping and improve short-desktop readability. */







/* R4: the pending-QR placeholder also needs a short label on every mobile width. */


/* Bloque de estilos original 2: orden de cascada preservado durante la consolidación. */
/* Minimalismo estratégico — lienzo claro, degradado ambiental y cuadrícula técnica tenue. */
body.territory-minimal {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(11,167,181, .13), transparent 34%),
    radial-gradient(ellipse at 88% 78%, rgba(48, 129, 157, .10), transparent 36%),
    linear-gradient(135deg, #f8f8f4 0%, #f0f1ed 48%, #e9edf0 100%) !important;
  color: #3F484A !important;
  isolation: isolate;
}
body.territory-minimal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(69, 81, 105, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 81, 105, .075) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  opacity: .52;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 55%, transparent 100%);
}
body.territory-minimal .ambient { display: block !important; filter: blur(2px); opacity: .65; }
body.territory-minimal .ambient-one {
  width: 520px; height: 520px; top: -340px; right: 5%;
  background: radial-gradient(circle, rgba(11,167,181,.20), rgba(11,167,181,.055) 34%, transparent 72%) !important;
}
body.territory-minimal .ambient-two {
  width: 560px; height: 560px; bottom: -430px; left: -230px;
  background: radial-gradient(circle, rgba(38,111,190,.16), rgba(38,111,190,.045) 34%, transparent 73%) !important;
}
body.territory-minimal .topbar {
  border-bottom: 1px solid rgba(108, 117, 136, .22) !important;
  /* El encabezado queda transparente: el degradado ya no se recorta al ancho
     limitado del contenedor y, por tanto, no genera una línea vertical al terminar. */
  background: transparent !important;
  isolation: isolate;
}

body.territory-minimal .topbar::before {
  content: "";
  position: absolute;
  z-index: -1;

  pointer-events: none;
  top: 0;
  left: 50%;
  width: 100vw;
  height: calc(100% + 28px);
  transform: translateX(-50%);
  /* El halo ocupa el ancho del viewport, no el del header. Los extremos se
     funden con el fondo general y la caída vertical evita un borde horizontal. */
  background-image:
    radial-gradient(ellipse 420px 112px at 84% 0%, rgba(11,167,181, .17) 0%, rgba(11,167,181, .075) 42%, rgba(11,167,181, .025) 68%, transparent 86%),
    radial-gradient(ellipse 340px 100px at 70% 0%, rgba(61, 222, 232, .105) 0%, rgba(61, 222, 232, .04) 48%, rgba(61, 222, 232, .015) 70%, transparent 88%);
  background-repeat: no-repeat;
  background-position: center top;
}
body.territory-minimal .brand,
body.territory-minimal .brand-mark { color: #3F484A !important; }
body.territory-minimal .brand-mark span,
body.territory-minimal .footer-brand span { color: #3DDEE8 !important; }
body.territory-minimal .brand-divider { background: #cbd0d9 !important; }
body.territory-minimal .brand-copy { color: #596274 !important; }
body.territory-minimal .brand-copy b { color: #3F484A !important; }
body.territory-minimal .product-label { color: #596274 !important; }
body.territory-minimal .icon-button {
  color: #263046 !important;
  border-color: #d4d8e0 !important;
  background: rgba(255,255,255,.78) !important;
}
body.territory-minimal .icon-button:hover {
  color: #087780 !important;
  border-color: #a7edf0 !important;
  background: #e8fafb !important;
}
body.territory-minimal .stage-footer { color: #667085 !important; }
body.territory-minimal .footer-brand { color: #3F484A !important; }
body.territory-minimal .stage-footer p { color: #596274 !important; }
body.territory-minimal .stage-footer p em { color: #3F484A !important; }
body.territory-minimal .footer-note { color: #596274 !important; letter-spacing: .45px !important; }
body.territory-minimal .footer-note i { background: #3DDEE8 !important; }
body.territory-minimal .stage,
body.territory-minimal .topbar { position: relative; }
body.territory-minimal .stage { z-index: 1; }
body.territory-minimal .topbar { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  body.territory-minimal *, body.territory-minimal *::before, body.territory-minimal *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Bloque de estilos original 3: orden de cascada preservado durante la consolidación. */
/* El contenido del código fuente debe permanecer visible; no ocultarlo para forzar el primer pliegue. */
  /* Contenido editorial de las tarjetas de video y CV: nunca ocultar sus descripciones o estados. */
  .feature-card .feature-description,
  .feature-card .feature-status {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }
  .feature-card .feature-description {
    margin-top: 3px !important;
    font-size: 9px !important;
    line-height: 1.32 !important;
    overflow-wrap: normal;
  }
  .feature-card .feature-status {
    margin-top: 3px !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    overflow-wrap: normal;
  }
  @media (max-width: 690px) {
    .feature-rail { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: stretch; }
    .feature-card { align-items: start !important; min-height: 0 !important; height: auto !important; }
    .feature-text { min-width: 0; overflow-wrap: normal; }
  }
  @media (max-width: 370px) {
    .feature-rail { grid-template-columns: 1fr !important; }
    .feature-card { grid-template-columns: 29px minmax(0, 1fr) !important; padding: 8px 9px !important; gap: 8px !important; }
    .feature-card .feature-description { font-size: 9px !important; }
    .feature-card .feature-status { font-size: 8px !important; }
    .feature-card .feature-arrow { display: none !important; }
  }
  /* Si el contenido requiere más altura, dejar fluir el documento en lugar de recortar texto. */
  @media (max-width: 690px) and (min-height: 660px) {
    .stage { height: auto !important; min-height: calc(100dvh - 54px) !important; display: block !important; }
    .value-card { height: auto !important; max-height: none !important; min-height: 0 !important; flex: none !important; }
    .profile-panel { height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; padding-bottom: 12px !important; }
    body.composition-compact .profile-panel { height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; padding-bottom: 12px !important; }
    .tab-panel { height: auto !important; min-height: 84px !important; flex: 0 0 auto !important; }
  }


/* Bloque de estilos original 4: orden de cascada preservado durante la consolidación. */
/* En móviles estrechos y con altura suficiente, compactar espacios y no ocultar descripciones. */
  @media (max-width: 370px) and (min-height: 660px) {
    .portrait-panel { height:130px !important; min-height:130px !important; flex:0 0 130px !important; }
    .portrait-copy { bottom:20px !important; }
    .portrait-copy p { font-size:clamp(23px,7.5vw,27px) !important; line-height:.98 !important; margin-bottom:5px !important; letter-spacing:-1px !important; }
    .portrait-copy .photo-kicker { font-size:6px !important; letter-spacing:.55px !important; }
    .portrait-copy .portrait-caption { font-size:7px !important; line-height:1.2 !important; }
    .portrait-copy .portrait-rule { margin-block:3px !important; }
    .orbit-caption { bottom:6px !important; }
    .profile-panel { padding-top:4px !important; padding-bottom:5px !important; }
    .profile-topline { min-height:18px !important; }
    .identity-row { padding-top:0 !important; grid-template-columns:minmax(0,1fr) 68px !important; gap:6px !important; }
    .identity-kicker { font-size:6px !important; line-height:1.2 !important; margin-bottom:2px !important; letter-spacing:.2px !important; }
    .identity-block h1 { font-size:clamp(31px,9.5vw,36px) !important; line-height:.92 !important; letter-spacing:-1.4px !important; }
    .profile-role { font-size:8px !important; line-height:1.2 !important; margin-top:3px !important; }
    .profile-qr { width:68px !important; padding:4px !important; min-height:0 !important; }
    .profile-qr-visual, .profile-qr-visual img, .profile-qr-visual canvas, .profile-qr-visual .qr-placeholder { width:50px !important; height:50px !important; max-width:50px !important; }
    .value-statement { font-size:8.5px !important; line-height:1.22 !important; margin:4px 0 5px !important; }
    .primary-actions { margin:5px 0 !important; gap:5px !important; }
    .button { min-height:29px !important; padding:6px 8px !important; font-size:9px !important; }
    .feature-rail { margin-bottom:4px !important; gap:4px !important; }
    .feature-card { padding:6px 7px !important; gap:6px !important; grid-template-columns:22px minmax(0,1fr) !important; }
    .feature-icon { width:22px !important; height:22px !important; }
    .feature-card .feature-description { font-size:8px !important; line-height:1.2 !important; margin-top:2px !important; }
    .feature-card .feature-status { font-size:7px !important; line-height:1.2 !important; margin-top:2px !important; }
    .micro-experience { padding-top:2px !important; }
    .micro-heading { font-size:7px !important; line-height:1.2 !important; }
    .tabs { margin-top:2px !important; gap:8px !important; }
    .tab { font-size:8px !important; padding-bottom:3px !important; }
    .tab-panel { height:auto !important; min-height:64px !important; flex:0 0 auto !important; padding:3px 0 !important; }
    .panel-lead { font-size:12px !important; line-height:1.15 !important; margin:0 !important; }
    .panel-copy { font-size:8px !important; line-height:1.2 !important; margin-top:2px !important; -webkit-line-clamp:2 !important; }
    .skill-chips { margin-top:2px !important; gap:3px !important; }
    .skill-chips span { padding:2px 4px !important; font-size:7px !important; line-height:1.1 !important; }
    .contact-strip { min-height:31px !important; padding:3px 0 !important; }
    .contact-strip-label { font-size:6px !important; }
    .quick-links a { width:22px !important; height:22px !important; }
  }


/* QR generado localmente como SVG: el tamaño sigue al contenedor responsive. */
.profile-qr-visual .qr-generated-svg { display: block; width: 100%; height: 100%; }
.qr-visual .qr-generated-svg { display: block; width: min(220px, 100%); height: auto; max-width: 100%; }


/* Wordmarks B+5.0 y Branding+5.0 comparten familia, peso y tratamiento de acento. */
.brand-mark,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1.3px;
}
.brand-mark span,
.footer-brand span {
  color: var(--violet-light);
}

/* Identidad cromática NIKKEN + marca personal de Tatiana Santana. */
:root {
  --color-nikken: #0ba7b5;
  --color-tatiana: #3DDEE8;
  --color-neutral: #999999;
  --color-accent: var(--color-nikken);
  --color-accent-light: var(--color-tatiana);
  --color-accent-secondary: var(--color-tatiana);
  --violet: var(--color-nikken);
  --violet-light: var(--color-tatiana);
}
/* NIKKEN organiza las acciones; el cian claro identifica a Tatiana. */
.identity-block h1 span { color: var(--color-tatiana) !important; }
.brand-mark span, .mini-brand span, .footer-brand span { color: var(--color-tatiana) !important; }
.button-primary { color: #10363a !important; background: var(--color-nikken) !important; border-color: var(--color-nikken) !important; }
.button-primary:hover { color: #10363a !important; background: #39c4ce !important; }
.button-primary svg { color: currentColor !important; }
.brand-divider { background: var(--color-neutral) !important; }
/* El gris de marca queda para detalles neutros, sin reducir la legibilidad del texto pequeño. */
.profile-qr, .feature-card, .cv-sheet { border-color: #dce9e9; }
.ambient-one { background: radial-gradient(circle, rgba(11,167,181,.18), transparent 70%) !important; }
.ambient-two { background: radial-gradient(circle, rgba(61,222,232,.16), transparent 70%) !important; }
body.territory-minimal .topbar::before { background-image: radial-gradient(ellipse 420px 112px at 84% 0%, rgba(11,167,181,.17) 0%, rgba(11,167,181,.075) 42%, rgba(11,167,181,.025) 68%, transparent 86%), radial-gradient(ellipse 340px 100px at 70% 0%, rgba(61,222,232,.13) 0%, rgba(61,222,232,.045) 48%, rgba(61,222,232,.015) 70%, transparent 88%) !important; }



/* QA: altura uniforme de las pestañas sin truncar sus textos. La altura se calcula desde "Mi asesoría" en cada viewport. */
.micro-experience.tab-panels-equalized .tab-panel {
  height: var(--tab-panel-equal-height) !important;
  min-height: var(--tab-panel-equal-height) !important;
  max-height: none !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.micro-experience .tab-panel .panel-copy {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}


/* Catálogo de productos NIKKEN dentro del modal existente; no modifica la arquitectura de la tarjeta. */
.catalog-sheet { padding: clamp(18px, 3vw, 30px); }
.catalog-eyebrow { margin: 22px 0 7px; color: var(--color-nikken, #0ba7b5); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.catalog-title { margin: 0; color: #20283a; font: 800 clamp(26px, 4vw, 37px)/1.08 var(--font-display); letter-spacing: -1.3px; }
.catalog-title em { color: var(--color-nikken, #0ba7b5); font-style: normal; }
.catalog-intro { max-width: 570px; margin: 10px 0 18px; color: #626d7c; font-size: 11px; line-height: 1.65; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalog-card { min-width: 0; min-height: 178px; display: flex; flex-direction: column; align-items: flex-start; padding: 13px; color: #263046; background: #fff; border: 1px solid #dce9e9; border-radius: 6px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.catalog-card:hover { transform: translateY(-2px); border-color: var(--color-nikken, #0ba7b5); box-shadow: 0 8px 22px rgba(11,167,181,.10); }
.catalog-card:focus-visible { outline: 3px solid var(--color-tatiana, #3DDEE8); outline-offset: 3px; }
.catalog-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 10px; color: var(--color-nikken, #0ba7b5); background: rgba(11,167,181,.09); border-radius: 5px; }
.catalog-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.catalog-category { margin-bottom: 5px; color: #7b8792; font-size: 7px; line-height: 1.4; font-weight: 800; letter-spacing: .9px; }
.catalog-product { color: #20283a; font: 800 13px/1.3 var(--font-display); overflow-wrap: anywhere; }
.catalog-description { display: block; margin-top: 7px; color: #657180; font-size: 9px; line-height: 1.55; }
.catalog-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 13px; color: var(--color-nikken, #0ba7b5); font-size: 9px; font-weight: 800; }
.catalog-link span { color: var(--color-tatiana, #3DDEE8); font-size: 13px; }
.catalog-note { margin: 15px 0 0; padding-top: 12px; color: #818995; border-top: 1px solid #e5e9eb; font-size: 8px; line-height: 1.55; }
.catalog-toolbar { align-items: center; gap: 12px; }
.catalog-toolbar .media-actions { flex-wrap: wrap; justify-content: flex-end; }
.catalog-store-cta { white-space: nowrap; }
@media (max-width: 520px) {
  .catalog-sheet { padding: 17px 14px; }
  .catalog-grid { gap: 8px; }
  .catalog-card { min-height: 180px; padding: 10px; }
  .catalog-product { font-size: 12px; }
  .catalog-category { font-size: 6px; letter-spacing: .55px; }
  .catalog-description { font-size: 8px; }
  .catalog-toolbar { align-items: stretch; }
  .catalog-toolbar .media-actions { justify-content: stretch; }
  .catalog-toolbar .media-actions .button { flex: 1 1 auto; }
}
@media (max-width: 370px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); column-gap: 10px; align-items: start; }
  .catalog-icon { grid-row: 1 / span 3; margin: 0; }
  .catalog-category, .catalog-product, .catalog-description, .catalog-link { grid-column: 2; }
  .catalog-category { margin-top: 1px; }
  .catalog-description { margin-top: 5px; }
  .catalog-link { padding-top: 8px; }
  .catalog-toolbar .media-actions { flex-direction: column; }
  .catalog-toolbar .media-actions .button { width: 100%; }
}



/* Fotografía real de producto: imágenes externas; el icono queda como respaldo si una fuente falla. */
.catalog-image-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 142px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0 0 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7fbfb 0%, #ffffff 70%, #effafa 100%);
  border: 1px solid #edf3f3;
  border-radius: 5px;
}
.catalog-image-wrap .catalog-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--color-nikken, #0ba7b5);
  background: transparent;
  border-radius: 0;
}
.catalog-image-wrap .catalog-fallback svg {
  width: 32px;
  height: 32px;
}
.catalog-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  transition: transform .22s ease;
}
.catalog-card:hover .catalog-photo { transform: scale(1.035); }
.catalog-photo[hidden] { display: none !important; }
.catalog-card { min-height: 280px; }
.catalog-note { font-size: 9px; }
@media (max-width: 520px) {
  .catalog-image-wrap { height: 116px; margin-bottom: 9px; }
  .catalog-card { min-height: 270px; }
  .catalog-photo { padding: 6px; }
}
@media (max-width: 370px) {
  .catalog-card { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .catalog-image-wrap { height: 155px; }
  .catalog-icon { grid-row: auto; }
  .catalog-category, .catalog-product, .catalog-description, .catalog-link { grid-column: auto; }
}



/* QA 2026-10: compacta la identidad y mantiene completa la fila de consultas. */
@media (min-width: 691px) {
  .identity-row { padding-top: 0 !important; gap: 7px !important; }
  .identity-kicker { margin-bottom: 3px !important; line-height: 1.2 !important; }
  .identity-block h1 { line-height: .92 !important; }
  .profile-role { margin-top: 3px !important; line-height: 1.28 !important; }
  .value-statement { margin-top: 5px !important; line-height: 1.35 !important; }
  .primary-actions { margin-top: 6px !important; margin-bottom: 6px !important; }
  .feature-rail { margin-bottom: 4px !important; }
  .micro-experience { padding-top: 4px !important; }
  .tabs { margin-top: 4px !important; }
  .tab-panel { padding-top: 4px !important; padding-bottom: 4px !important; }
  .contact-strip { flex-shrink: 0 !important; min-height: 43px !important; }
}
/* En escritorio la altura sigue el contenido; evita que overflow:hidden corte el contacto. */
@media (min-width: 951px) {
  .value-card { height: auto !important; max-height: none !important; min-height: 0 !important; }
  .profile-panel { height: auto !important; max-height: none !important; overflow: visible !important; padding-bottom: 10px !important; }
}


/* Presentación personal en lugar de un reproductor vacío. */
.intro-dialog { width: min(680px, calc(100% - 28px)); max-width: 680px; }
.intro-layout { display: grid; grid-template-columns: minmax(135px, .68fr) minmax(0, 1.32fr); align-items: center; gap: clamp(18px, 3vw, 28px); margin-top: 18px; }
.intro-photo { display: block; width: 100%; max-height: 360px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); }
.intro-copy { min-width: 0; }
.intro-copy .dialog-title { margin-top: 0; font-size: clamp(25px, 3.5vw, 36px); letter-spacing: -1.2px; }
.intro-copy .dialog-intro { margin: 12px 0 0; }
.intro-points { display: grid; gap: 8px; margin-top: 15px; }
.intro-points span { display: flex; align-items: baseline; gap: 9px; color: #e9f2f3; font-size: 11px; line-height: 1.45; }
.intro-points b { color: #3F484A; font-size: 9px; letter-spacing: .7px; }
.intro-note { margin: 13px 0 0; color: #aebbc0; font-size: 10px; line-height: 1.55; }
.intro-actions { margin-top: 20px; }
.intro-actions .button { min-height: 42px; }
@media (max-width: 690px) {
  .intro-dialog { padding: 24px 19px 20px; }
  .intro-layout { grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: start; margin-top: 14px; }
  .intro-photo { max-height: none; aspect-ratio: 3 / 4; }
  .intro-copy .dialog-title { font-size: clamp(23px, 6vw, 30px); }
  .intro-copy .dialog-intro { margin-top: 8px; font-size: 11px; }
  .intro-points { gap: 6px; margin-top: 10px; }
  .intro-points span { font-size: 10px; }
  .intro-note { font-size: 9px; margin-top: 9px; }
  .intro-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 390px) {
  .intro-layout { grid-template-columns: 1fr; }
  .intro-photo { width: 100px; max-height: 132px; margin: 0 auto; }
  .intro-copy .dialog-title { text-align: center; }
}


/* QA integral: conservar la interacción de pestañas y evitar cortes en tablet. */
.micro-experience .tab-panel[hidden] { display: none !important; }
@media (min-width: 691px) and (max-width: 950px) {
  .value-card { height: auto !important; max-height: none !important; min-height: 0 !important; }
  .profile-panel { height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; padding-bottom: 10px !important; }
}


/* Ajuste de QA: evita scroll residual en móviles intermedios sin ocultar contenido. */
@media (min-width: 371px) and (max-width: 390px) and (max-height: 830px) {
  .stage { padding-bottom: 0 !important; }
  .stage-footer { padding-top: 5px !important; }
  .stage-footer p { display: none !important; }
}



/* Corrección QA específica de presentación personal: mejor contraste y CTAs alineados. */
.intro-points { gap: 9px; }
.intro-points span { align-items: center; gap: 10px; line-height: 1.45; }
.intro-points b {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  width: 25px;
  height: 22px;
  border-radius: 4px;
  background: #3F484A;
  color: #FFFFFF !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .25px;
}
.intro-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.intro-actions > .button,
.intro-actions > .modal-done {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
  vertical-align: middle;
  align-self: center;
}
@media (max-width: 690px) {
  .intro-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch !important;
    gap: 8px;
  }
  .intro-actions > .button,
  .intro-actions > .modal-done {
    width: 100%;
    height: 44px !important;
    min-height: 44px !important;
  }
}


/* QR final QA: no fake QR art or obsolete publication-status microcopy. */
.profile-qr-state::before,
.profile-qr-visual .qr-placeholder-note::before { content: none !important; display: none !important; }
.profile-qr-visual .qr-placeholder-note { display: grid; place-items: center; width: 100%; height: 100%; padding: 4px; text-align: center; font-size: 8px; line-height: 1.15; color: #687375; }
@media (max-width: 370px) {
  .profile-qr-state { font-size: 7px !important; line-height: 1.15 !important; white-space: normal !important; }
  .profile-qr-visual .qr-placeholder-note { font-size: 8px !important; line-height: 1.15 !important; }
}
