/*
Theme Name: SV Soporte Helpdesk
Theme URI: https://svsoporte.com
Author: SV Soporte
Author URI: https://svsoporte.com
Description: Tema a medida para SV Soporte: landing pública (inicio, servicios, áreas de servicio) y helpdesk privado para clientes aprobados (portal, tickets y base de conocimiento).
Version: 4.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svsoporte
*/

/* ---------- Variables ---------- */
:root {
	--bg: #0a0f14;
	--bg-2: #0e151c;
	--surface: #121b23;
	--surface-2: #17222c;
	--border: #22303b;
	--text: #e7eef2;
	--muted: #8fa1ad;
	--accent: #0bb4aa;
	--accent-2: #5ec5bd;
	--accent-soft: rgba(11, 180, 170, .12);
	--danger: #f87171;
	--warning: #fbbf24;
	--success: #34d399;
	--info: #60a5fa;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 40px rgba(0, 0, 0, .35);
	--font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--container: 1180px;
	--header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); color: var(--accent-2); padding: .1em .45em; border-radius: 6px; font-size: .9em; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.plain { list-style: none; margin: 0 0 1em; padding: 0; }
.plain li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.plain .dashicons { color: var(--accent); font-size: 18px; width: 18px; height: 18px; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: .7em 1.3em; border-radius: 999px; border: 1px solid transparent;
	font: 600 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none;
	transition: transform .15s, background .2s, border-color .2s, box-shadow .2s, color .2s;
	white-space: nowrap;
}
.btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px rgba(11, 180, 170, .35); }
.btn-primary:hover { background: #0cc9be; color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link-arrow { font-weight: 600; }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(10, 15, 20, .55);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: background .25s, border-color .25s;
}
.site-header.is-scrolled { background: rgba(10, 15, 20, .92); border-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.25rem; }
.brand:hover { color: #fff; }
.brand-logo { max-height: 44px; width: auto; }
.brand-mark {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 1rem; letter-spacing: .02em;
}
.brand-text { letter-spacing: -.01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-menu .sub-menu { display: none; }
.nav-actions { display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: #fff; border-radius: 10px; padding: 6px 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
	display: flex; align-items: center; padding: 80px 0;
	margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 60px);
	background: var(--bg);
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: var(--hero-bg); background-size: cover; background-position: center;
	filter: grayscale(.3); transform: scale(1.03);
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(900px 500px at 15% 30%, rgba(11, 180, 170, .28), transparent 60%),
		linear-gradient(180deg, rgba(10, 15, 20, .78) 0%, rgba(10, 15, 20, .88) 60%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
	font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 800; text-transform: uppercase;
	letter-spacing: -.02em; line-height: 1; margin: .35em 0 .3em;
	background: linear-gradient(90deg, #fff 30%, var(--accent-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c6d3da; max-width: 680px; }
.hero-hours { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 44px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; }
.hero-stats li {
	background: rgba(18, 27, 35, .7); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 14px 20px; min-width: 150px; backdrop-filter: blur(6px);
}
.hero-stats strong { display: block; font-size: 1.25rem; color: #fff; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--accent-2); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(11, 180, 170, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(11, 180, 170, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 180, 170, 0); } }

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 48px 0 90px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { margin-top: .4em; }

.page-hero {
	padding: 70px 0 50px; border-bottom: 1px solid var(--border);
	background: radial-gradient(700px 300px at 10% 0%, rgba(11, 180, 170, .16), transparent 70%), var(--bg-2);
}
.page-hero h1 { margin-top: .3em; }
.page-hero-sm { padding: 44px 0 34px; }
.page-hero-sm h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.breadcrumb { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid + .center { margin-top: 36px; }
.card {
	position: relative; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(11, 180, 170, .5); box-shadow: var(--shadow); }
.card-featured { border-color: rgba(11, 180, 170, .55); background: linear-gradient(180deg, rgba(11, 180, 170, .09), var(--surface) 55%); }
.card-icon {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
	background: var(--accent-soft); color: var(--accent-2); font-size: 26px; margin-bottom: 18px;
}
.card-icon.dashicons::before { line-height: 52px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: .6em; }
.card .card-price { color: #fff; font-weight: 700; margin: 14px 0 0; }
.card-tag {
	position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff;
	font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px;
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-n {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--accent); color: var(--accent-2); font-weight: 800; margin-bottom: 14px;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 44px; border-radius: 20px; border: 1px solid rgba(11, 180, 170, .4);
	background: radial-gradient(600px 240px at 90% 50%, rgba(11, 180, 170, .25), transparent 70%), var(--surface);
}
.cta h2 { margin-bottom: .2em; }
.cta p { color: var(--muted); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Paneles / portal ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel-title { font-size: 1.05rem; margin-bottom: .8em; }
.panel-link { display: flex; align-items: center; gap: 14px; color: var(--text); }
.panel-link:hover { border-color: var(--accent); color: var(--text); }
.panel-link > .dashicons { font-size: 30px; width: 30px; height: 30px; color: var(--success); }
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.portal-side .panel { padding: 22px; }

.table-wrap { overflow-x: auto; }
.tickets-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tickets-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tickets-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tickets-table tr:last-child td { border-bottom: 0; }
.tickets-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.tickets-table a { color: var(--text); }
.tickets-table a:hover { color: var(--accent-2); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .07); color: var(--text); }
.badge-abierto { background: rgba(96, 165, 250, .15); color: var(--info); }
.badge-en_proceso { background: rgba(251, 191, 36, .15); color: var(--warning); }
.badge-esperando { background: rgba(192, 132, 252, .15); color: #c084fc; }
.badge-resuelto { background: rgba(52, 211, 153, .15); color: var(--success); }
.badge-cerrado { background: rgba(255, 255, 255, .06); color: var(--muted); }
.badge-p-baja { background: rgba(52, 211, 153, .15); color: var(--success); }
.badge-p-media { background: rgba(96, 165, 250, .15); color: var(--info); }
.badge-p-alta { background: rgba(251, 191, 36, .15); color: var(--warning); }
.badge-p-urgente { background: rgba(248, 113, 113, .15); color: var(--danger); }

.ticket-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.ticket-detail-head h2 { font-size: 1.4rem; margin: .4em 0 .2em; }
.ticket-detail h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 1.4em; }
.ticket-text { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.ticket-reply { border-left: 3px solid var(--accent); }

.empty { text-align: center; padding: 30px 10px; }
.empty > .dashicons { font-size: 44px; width: 44px; height: 44px; color: var(--accent); margin-bottom: 10px; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
.field label, .login-username label, .login-password label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #c6d3da; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="date"], input[type="number"], input[type="url"], select, textarea {
	width: 100%; padding: 12px 14px; font: 400 .98rem/1.4 var(--font); color: var(--text);
	background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-actions p { margin: 0; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; }
.alert .dashicons { flex: none; margin-top: 2px; }
.alert-ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: #b7f0d8; }
.alert-error { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); color: #fecaca; }

.kb-search { position: relative; display: flex; gap: 8px; align-items: center; margin-bottom: 1em; }
.kb-search > .dashicons { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.kb-search input[type="search"] { padding-left: 40px; }
.portal-side .kb-search { flex-wrap: wrap; }
.portal-side .kb-search > .dashicons { top: 14px; }
.portal-side .kb-search .btn { width: 100%; }

/* Acceso / registro */
.auth { min-height: calc(100vh - var(--header-h) - 200px); display: flex; align-items: center; background: radial-gradient(700px 400px at 50% 0%, rgba(11, 180, 170, .14), transparent 70%); }
.auth-inner { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow); text-align: center; }
.auth-card-wide { max-width: 720px; }
.auth-card form { text-align: left; margin-top: 20px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-icon { display: inline-grid !important; place-items: center; width: 60px !important; height: 60px !important; border-radius: 16px; background: var(--accent-soft); color: var(--accent-2); font-size: 30px !important; margin-bottom: 14px; }
.auth-icon::before { line-height: 60px; }
#svs-login p { margin-bottom: 16px; }
.login-remember label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
#svs-login .button-primary, #wp-submit {
	width: 100%; padding: .9em; border: 0; border-radius: 999px; background: var(--accent); color: #fff;
	font: 700 1rem var(--font); cursor: pointer; box-shadow: 0 6px 24px rgba(11, 180, 170, .35);
}
#wp-submit:hover { background: #0cc9be; }
.auth-links { font-size: .9rem; margin-top: 16px; color: var(--muted); }

/* ---------- Base de conocimiento ---------- */
.kb-list { display: grid; gap: 14px; }
.kb-item { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: border-color .2s; }
.kb-item:hover { border-color: rgba(11, 180, 170, .5); }
.kb-item h3 { margin-bottom: .3em; }
.kb-item h3 a { color: #fff; }
.kb-item h3 a:hover { color: var(--accent-2); }
.kb-item p { margin-bottom: .4em; }
.kb-item-icon { color: var(--accent); flex: none; margin-top: 3px; }
.kb-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.tag { font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.cat-list li a:hover, .cat-list li.current a { background: var(--accent-soft); color: var(--accent-2); }
.cat-list span { color: var(--muted); font-size: .85rem; }
.helpful { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.helpful p { margin: 0; }

/* Contenido del editor */
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content img, .featured { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 8px 12px; }
.entry-content pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
.entry-content .wp-block-button__link { background: var(--accent); border-radius: 999px; }

.pagination, .nav-links { display: flex; gap: 6px; margin-top: 28px; justify-content: center; }
.page-numbers { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); }
.page-numbers.current, .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-menu, .footer-contact, .site-footer .nav-menu { list-style: none; padding: 0; margin: 0; display: block; }
.footer-menu li, .footer-contact li, .site-footer .nav-menu li { padding: 4px 0; }
.site-footer .nav-menu a { padding: 0; background: none; }
.footer-menu a, .footer-contact a, .site-footer .nav-menu a { color: var(--text); font-size: .95rem; }
.footer-menu a:hover, .footer-contact a:hover, .site-footer .nav-menu a:hover { color: var(--accent-2); }
.footer-contact li { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: .95rem; }
.footer-contact .dashicons { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 20px; padding-bottom: 20px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 28px rgba(37, 211, 102, .45);
	transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.portal-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 14px;
		background: rgba(10, 15, 20, .98); border-bottom: 1px solid var(--border); padding: 18px 22px 24px;
		transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
	}
	.site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.nav-menu { flex-direction: column; }
	.nav-actions { flex-direction: column; }
	.nav-actions .btn { width: 100%; }
}
@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.form-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.cta { padding: 30px 24px; }
	.auth-card { padding: 30px 22px; }
	.hero-stats li { flex: 1 1 140px; }
	.kb-search { flex-wrap: wrap; }
	.kb-search .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   v2 · Branding, interacción y portal
   ========================================================================== */

/* ---------- Marca ---------- */
.brand { gap: 12px; }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 0 12px rgba(11, 180, 170, .35)); }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: .01em; color: #fff; }
.brand-name b { color: var(--accent-2); font-weight: 800; }
.brand-tag { font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.footer-motto { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; color: var(--accent-2); }
.btn-icon { padding: .5em .65em; }
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(11, 180, 170, .55), transparent); opacity: 0; transition: opacity .25s;
}
.site-header.is-scrolled::after { opacity: 1; }

/* Motivo de marca: retícula sutil en secciones */
.pillars-section, .page-hero, .portal-hero {
	background-image:
		linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
	background-size: 44px 44px;
}
.page-hero { background-color: var(--bg-2); }
.page-hero::before, .portal-hero::before { content: none; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
	border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--text);
	font: 500 .88rem var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-lg { padding: 10px 16px; font-size: .92rem; text-align: left; }
.chip-ghost { background: transparent; color: var(--accent-2); }

/* ---------- Buscador de problemas del hero ---------- */
.finder { margin-top: 34px; background: rgba(12, 18, 24, .72); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; backdrop-filter: blur(8px); max-width: 860px; }
.finder-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 12px; }
.finder-title .dashicons { color: var(--accent-2); }
.finder-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.finder .chip { background: rgba(255, 255, 255, .05); }

/* ---------- Pilares ---------- */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; counter-reset: none; }
.pillars li {
	position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; overflow: hidden;
	transition: transform .2s, border-color .2s;
}
.pillars li:hover { transform: translateY(-4px); border-color: rgba(11, 180, 170, .5); }
.pillars li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.pillar-n { position: absolute; top: 18px; right: 22px; font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .05); line-height: 1; }
.pillar-icon { display: inline-grid !important; place-items: center; width: 48px !important; height: 48px !important; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); font-size: 24px !important; margin-bottom: 14px; }
.pillar-icon::before { line-height: 48px; }
.pillars h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Tarjetas interactivas ---------- */
.card-link { display: flex; flex-direction: column; }
.card-link > p { flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card-foot .card-price { margin: 0; color: #fff; font-weight: 700; }
.card-more { margin-left: auto; background: none; border: 0; padding: 6px 0; color: var(--accent-2); font: 600 .9rem var(--font); cursor: pointer; }
.card-more:hover { color: #fff; }
.card-more span { display: inline-block; transition: transform .2s; }
.card-more:hover span { transform: translateX(3px); }
.sol-seg { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.sol-problema { color: var(--accent-2) !important; font-weight: 600; font-size: .95rem; margin-bottom: .5em !important; }
.sol-card[hidden] { display: none; }

.check-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .dashicons { color: var(--accent); flex: none; }

/* ---------- Ventana emergente ---------- */
.modal {
	border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(640px, calc(100vw - 32px)); width: 100%;
	max-height: calc(100vh - 48px);
}
.modal::backdrop { background: rgba(4, 8, 12, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-inner {
	position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 30px 26px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55); max-height: calc(100vh - 48px); overflow: auto;
}
.modal-inner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { border-color: var(--accent); }
.modal-hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; padding-right: 30px; }
.modal-hero .card-icon { margin: 0; flex: none; }
.modal-hero .eyebrow { text-transform: none; letter-spacing: 0; font-size: .92rem; margin-bottom: 4px; }
.modal-hero h2 { font-size: 1.55rem; margin: 0; }
.modal-price { font-weight: 700; color: #fff; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
body.modal-open { overflow: hidden; }

/* ---------- Vista previa del portal ---------- */
.portal-preview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list .dashicons { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; }
.feature-list div { display: flex; flex-direction: column; }
.feature-list span:not(.dashicons) { color: var(--muted); font-size: .92rem; }
.mock {
	background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
	transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .4s;
}
.mock:hover { transform: none; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tiles div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.mock-tiles small, .mock-meter small { color: var(--muted); font-size: .7rem; }
.mock-tiles b { font-size: 1.1rem; }
.mock-meter { margin: 14px 0; }
.mock-meter span { display: block; height: 8px; border-radius: 999px; background: rgba(10, 163, 154, .18); margin-top: 6px; overflow: hidden; }
.mock-meter i { display: block; height: 100%; background: #0aa39a; border-radius: 999px; }
.mock-chart { display: flex; align-items: flex-end; gap: 14px; height: 110px; padding: 10px 14px 0; border-bottom: 1px solid var(--border); }
.mock-chart i { flex: 1; max-width: 24px; background: #0aa39a; border-radius: 4px 4px 0 0; }
.mock-chart i:last-child { background: var(--accent-2); }
.mock-ticket { display: flex; gap: 10px; align-items: center; margin-top: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .85rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq-item[open] { border-color: rgba(11, 180, 170, .5); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); position: relative; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--accent-2); transform: translate(-50%, -50%); transition: transform .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Lanzador de ayuda ---------- */
.help-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.help-btn {
	width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
	background: linear-gradient(135deg, var(--accent), #078f87); box-shadow: 0 10px 30px rgba(11, 180, 170, .45);
	display: grid; place-items: center; transition: transform .2s;
}
.help-btn:hover { transform: scale(1.06); }
.help-btn .dashicons { font-size: 28px; width: 28px; height: 28px; grid-area: 1 / 1; transition: transform .2s, opacity .2s; }
.help-btn-close { opacity: 0; transform: rotate(-90deg); }
.help-launcher.is-open .help-btn-open { opacity: 0; transform: rotate(90deg); }
.help-launcher.is-open .help-btn-close { opacity: 1; transform: none; }
.help-btn::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(11, 180, 170, .5); animation: pulse 2.4s infinite; pointer-events: none; }
.help-panel {
	width: min(320px, calc(100vw - 44px)); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform-origin: bottom right; animation: modal-in .18s ease;
}
.help-title { font-weight: 700; margin: 4px 6px 10px; }
.help-opt { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--text); }
.help-opt:hover { background: var(--accent-soft); color: #fff; }
.help-opt > .dashicons { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-2); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.help-opt > .help-wa { color: #25d366; }
.help-opt span:not(.dashicons) { display: flex; flex-direction: column; }
.help-opt small { color: var(--muted); font-size: .78rem; }

/* ---------- Portal ---------- */
.portal-hero { padding-bottom: 0; }
.portal-hero .portal-head { margin-bottom: 22px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: .92rem;
	border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; border-bottom-color: var(--accent); }
.tab .dashicons { font-size: 18px; width: 18px; height: 18px; }
.tab-count { background: var(--accent); color: #fff; font-size: .72rem; border-radius: 999px; padding: 1px 7px; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.quick {
	display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface);
	border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s;
}
.quick:hover { border-color: var(--accent); transform: translateY(-2px); color: #fff; }
.quick > span:last-child { display: flex; flex-direction: column; }
.quick small { color: var(--muted); }
.quick-icon { width: 46px !important; height: 46px !important; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid !important; place-items: center; font-size: 24px !important; flex: none; }
.quick-icon::before { line-height: 46px; }
.quick-wa { color: #25d366; background: rgba(37, 211, 102, .12); }

.notices { display: grid; gap: 8px; margin-bottom: 18px; }
.notice-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid; color: var(--text); }
.notice-item:hover { color: #fff; }
.notice-info { background: rgba(96, 165, 250, .07); border-color: rgba(96, 165, 250, .3); }
.notice-info > .dashicons { color: var(--info); }
.notice-warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .35); }
.notice-warn > .dashicons { color: var(--warning); }
.notice-go { margin-left: auto; color: var(--accent-2); font-weight: 600; white-space: nowrap; }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head .chips { margin: 0; }
.panel-head .panel-title { margin: 0; }
.panel-title .dashicons { color: var(--accent); vertical-align: -3px; }

.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticket-row {
	display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px;
	background: var(--bg-2); border: 1px solid var(--border); color: var(--text); transition: border-color .2s;
}
.ticket-row:hover { border-color: rgba(11, 180, 170, .5); color: var(--text); }
.ticket-row.is-unread { border-left: 3px solid var(--accent); }
.ticket-row-icon { color: var(--accent-2); }
.ticket-row-main { display: flex; flex-direction: column; min-width: 0; }
.ticket-row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-row-meta { color: var(--muted); font-size: .82rem; }
.unread-label { color: var(--accent-2); }
.ticket-row-go { color: var(--muted); font-size: 1.4rem; }

.ticket-header-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ticket-header h2 { font-size: 1.45rem; margin: .35em 0 0; }
.ticket-hint { margin: 14px 0 0; color: var(--warning); display: flex; gap: 8px; align-items: center; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; padding: 0; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: .82rem; }
.stepper li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.stepper li:first-child::before { content: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--accent); }
.stepper-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border); }
.stepper li.done .stepper-dot { background: var(--accent); border-color: var(--accent); }
.stepper li.done .stepper-dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.stepper li.current .stepper-dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.stepper li.current { color: #fff; font-weight: 600; }

/* Conversación */
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; }
.msg-cliente { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.msg-avatar-sv { background: #0a0f14 url('assets/img/logo-sv-white.png') center / 12px auto no-repeat; border-color: rgba(11, 180, 170, .5); }
.msg-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: 12px 14px; min-width: 0; }
.msg-cliente .msg-bubble { background: rgba(11, 180, 170, .12); border-color: rgba(11, 180, 170, .35); border-radius: 16px 16px 4px 16px; }
.msg-interna .msg-bubble { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .35); border-style: dashed; }
.msg-meta { font-size: .78rem; color: var(--muted); margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.msg-meta strong { color: var(--text); }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-evento { align-self: center; font-size: .78rem; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; display: flex; align-items: center; gap: 6px; }
.msg-evento .dashicons { font-size: 14px; width: 14px; height: 14px; color: var(--accent); }
.badge-interna { background: rgba(251, 191, 36, .15); color: var(--warning); }
.adjuntos { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.adjuntos a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: .82rem; }
.adjuntos a:hover { border-color: var(--accent); }
.adjuntos small { color: var(--muted); }
.reply-box { border-top: 1px solid var(--border); padding-top: 16px; }
.reply-actions { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-top: 10px; flex-wrap: wrap; }
.reply-actions .dropzone { flex: 1; min-width: 220px; }

/* Adjuntar archivos */
.dropzone { position: relative; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone.is-over label, .dropzone label:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone label .dashicons { color: var(--accent-2); }
.dropzone-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; }
.dropzone-list li { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }

.confirm-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-color: rgba(52, 211, 153, .4); background: linear-gradient(90deg, rgba(52, 211, 153, .08), var(--surface)); }
.confirm-box > .dashicons { font-size: 36px; width: 36px; height: 36px; color: var(--success); }
.confirm-box h3 { margin: 0 0 .2em; }
.confirm-box p { margin: 0; }
.confirm-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.rating-box { display: grid; gap: 10px; justify-items: start; }
.rating-box h3 { margin: 0; }
.stars { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: var(--border); cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--warning); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--accent-2); border-radius: 4px; }
.stars-static { color: var(--warning); letter-spacing: 2px; }
.stars-static span { color: var(--border); }

.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; }
.mini-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.mini-stats div { flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.mini-stats span { color: var(--muted); font-size: .78rem; }
.mini-stats strong { font-size: 1.15rem; }
.time-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .85rem; }
.time-list li { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; align-items: baseline; }
.time-date { color: var(--muted); }
.time-min { font-weight: 600; white-space: nowrap; }

/* ---------- Asistente de ticket ---------- */
.wizard-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; }
.wizard-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--border); color: var(--muted); font-weight: 600; font-size: .88rem; }
.wizard-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); font-size: .8rem; }
.wizard-steps li.is-active, .wizard-steps li.is-done { color: #fff; border-bottom-color: var(--accent); }
.wizard-steps li.is-active span, .wizard-steps li.is-done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.wizard-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard.is-js .wizard-panel:not(.is-active) { display: none; }
.wizard-panel legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; padding: 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.wizard.is-js .wizard-panel + .wizard-panel { margin-top: 0; }
.wizard:not(.is-js) .wizard-panel + .wizard-panel { margin-top: 28px; }
.wizard:not(.is-js) .wizard-nav button[type="button"] { display: none; }
.wizard-error { color: var(--danger); font-size: .9rem; margin-top: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice-grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 18px; }
.wizard, .ticket-box, #conversacion, .doc-card { scroll-margin-top: calc(var(--header-h) + 20px); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-body {
	display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border-radius: 12px; background: var(--bg-2);
	border: 1px solid var(--border); transition: border-color .15s, background .15s, transform .15s;
}
.choice:hover .choice-body { border-color: rgba(11, 180, 170, .5); transform: translateY(-2px); }
.choice input:checked + .choice-body { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.choice-icon { color: var(--accent-2); font-size: 26px !important; width: 26px !important; height: 26px !important; margin-bottom: 4px; }
.choice small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.choice-urgente input:checked + .choice-body { border-color: var(--danger); background: rgba(248, 113, 113, .08); box-shadow: 0 0 0 1px var(--danger) inset; }
.choice-urgente .choice-icon { color: var(--danger); }
.choice-alta .choice-icon { color: var(--warning); }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--bg-2); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 7px 14px; border-radius: 999px; font-size: .88rem; color: var(--muted); }
.segmented input:checked + span { background: var(--accent); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-2); }
.field .label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #c6d3da; }
.as-input { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--muted); font-size: .92rem; }

/* ---------- Documentos ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.doc-card[hidden] { display: none; }
.doc-icon { width: 42px !important; height: 42px !important; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: grid !important; place-items: center; font-size: 22px !important; }
.doc-icon::before { line-height: 42px; }
.doc-main { display: flex; flex-direction: column; min-width: 0; }
.doc-type { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.doc-title { font-size: 1.02rem; }
.doc-meta { color: var(--muted); font-size: .82rem; }
.doc-nota { margin: 6px 0 0; font-size: .88rem; color: #c6d3da; }
.adjuntos-inline { margin-top: 8px; }
.doc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.doc-monto { font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.doc-actions { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-actions input[type="text"] { flex: 1; min-width: 180px; padding: 8px 12px; }
.doc-pago summary { list-style: none; cursor: pointer; }
.doc-pago summary::-webkit-details-marker { display: none; }
.doc-pago form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; width: 100%; }
.badge-doc-pendiente { background: rgba(251, 191, 36, .15); color: var(--warning); }
.badge-doc-revision { background: rgba(96, 165, 250, .15); color: var(--info); }
.badge-doc-parcial { background: rgba(192, 132, 252, .15); color: #c084fc; }
.doc-saldo { font-size: .8rem; color: var(--warning); white-space: nowrap; }
.badge-doc-aprobada, .badge-doc-pagada { background: rgba(52, 211, 153, .15); color: var(--success); }
.badge-doc-rechazada, .badge-doc-anulada { background: rgba(255, 255, 255, .06); color: var(--muted); }
.badge-doc-informativo { background: rgba(255, 255, 255, .06); color: var(--muted); }
.badge-vencido { background: rgba(248, 113, 113, .15); color: var(--danger); display: inline-flex; align-items: center; gap: 3px; }
.badge-vencido .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* ---------- Informe ---------- */
.report-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-bar label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.report-bar select { width: auto; }
.informe { color: var(--text); }
.informe-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px solid var(--accent); margin-bottom: 18px; }
.informe-brand { display: flex; gap: 12px; align-items: center; }
.informe-brand img { height: 52px; width: auto; }
.informe-brand small { color: var(--muted); }
.informe-meta { text-align: right; }
.informe-meta h2 { font-size: 1.3rem; margin: 0 0 4px; }
.informe-meta p { margin: 0; color: var(--muted); }
.informe-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.informe-kpis div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.informe-kpis span { color: var(--muted); font-size: .78rem; }
.informe-kpis strong { font-size: 1.15rem; }
.informe-tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.informe-tabla th, .informe-tabla td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.informe-tabla thead th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.informe-tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.informe-grupo th { background: var(--bg-2); color: var(--accent-2); font-weight: 600; }
.informe-tabla tfoot th { border-top: 2px solid var(--border); font-size: .95rem; }
.informe-nota { margin-top: 12px; color: var(--muted); }
.informe-pie { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; }

@media print {
	body { background: #fff !important; color: #111 !important; }
	.site-header, .site-footer, .help-launcher, .portal-hero, .no-print, .skip-link, #wpadminbar, #adminmenumain, #wpfooter, .notice { display: none !important; }
	.section, .section-tight { padding: 0 !important; }
	.panel, .panel-report { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
	.informe, .informe * { color: #111 !important; border-color: #ccc !important; background: none !important; }
	.informe-grupo th { background: #eef7f6 !important; color: #06786f !important; }
	.informe-head { border-bottom-color: #0bb4aa !important; }
	.informe-brand img { filter: none; }
	#wpcontent { margin-left: 0 !important; }
}

/* ---------- Responsive v2 ---------- */
@media (max-width: 960px) {
	.portal-preview { grid-template-columns: 1fr; }
	.mock { transform: none; }
}
@media (max-width: 640px) {
	.brand-tag { display: none; }
	.finder { padding: 14px; }
	.chip-lg { font-size: .85rem; }
	.stepper-label { font-size: .72rem; }
	.msg { max-width: 100%; }
	.ticket-row { grid-template-columns: auto 1fr auto; }
	.ticket-row-go { display: none; }
	.doc-card { grid-template-columns: auto 1fr; }
	.doc-side { grid-column: 2; align-items: flex-start; flex-direction: row; }
	.doc-actions { grid-column: 1 / -1; }
	.confirm-actions { margin-left: 0; }
	.wizard-steps li { font-size: 0; gap: 0; justify-content: center; }
	.wizard-steps li span { font-size: .8rem; }
	.modal-inner { padding: 24px 20px 20px; }
	.help-launcher { right: 14px; bottom: 14px; }
}

/* ==========================================================================
   SV Studio · línea creativa (video, dron, sonido)
   Misma familia visual; acento violeta que se funde con el turquesa.
   ========================================================================== */
:root { --studio: #a78bfa; --studio-2: #f472b6; --studio-grad: linear-gradient(120deg, var(--accent) 0%, var(--studio) 55%, var(--studio-2) 100%); }
.nav-menu .nav-studio > a { color: #fff; background: linear-gradient(120deg, rgba(11, 180, 170, .18), rgba(167, 139, 250, .22)); border: 1px solid rgba(167, 139, 250, .35); }
.nav-menu .nav-studio > a:hover { border-color: var(--studio); }
.btn-studio { background: var(--studio-grad); color: #fff; box-shadow: 0 8px 28px rgba(167, 139, 250, .35); border: 0; }
.btn-studio:hover { color: #fff; filter: brightness(1.08); }
.studio-eyebrow { color: #c4b5fd; }
.studio .card-icon, .studio .step-n { color: #c4b5fd; }
.studio .card-icon { background: rgba(167, 139, 250, .14); }
.studio .card:hover, .studio .card-featured { border-color: rgba(167, 139, 250, .55); }
.studio .card-featured { background: linear-gradient(180deg, rgba(167, 139, 250, .10), var(--surface) 55%); }
.studio .card-tag, .paquete .card-tag { background: var(--studio-grad); }
.studio .card-more { color: #c4b5fd; }
.studio .step-n { border-color: var(--studio); }
.studio .check-list .dashicons { color: var(--studio); }

.studio-hero {
	position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 90px) 0 90px;
	background:
		radial-gradient(700px 420px at 85% 20%, rgba(167, 139, 250, .30), transparent 65%),
		radial-gradient(600px 380px at 10% 80%, rgba(11, 180, 170, .25), transparent 65%),
		var(--hero-bg-studio, #07090d);
}
.studio-hero::before { content: ""; position: absolute; inset: 0; background: var(--studio-bg) center / cover no-repeat; opacity: .35; filter: saturate(1.1); }
.studio-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 13, .35), rgba(7, 9, 13, .75) 70%, var(--bg)); }
.studio-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.studio-hero h1 {
	font-size: clamp(2.5rem, 7vw, 4.8rem); font-weight: 800; line-height: 1.02; margin: .3em 0 .35em; letter-spacing: -.02em;
	background: var(--studio-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.studio-frame { position: absolute; inset: calc(var(--header-h) + 24px) 28px 28px; z-index: 1; pointer-events: none; }
.studio-frame i { position: absolute; width: 38px; height: 38px; border: 2px solid rgba(255, 255, 255, .45); }
.studio-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.studio-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.studio-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.studio-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.studio-rec { position: absolute; top: 10px; left: 52px; font: 700 .8rem ui-monospace, Menlo, monospace; color: #ff4d6d; letter-spacing: .1em; animation: rec 1.2s steps(2) infinite; }
.studio-tc { position: absolute; top: 10px; right: 52px; font: 600 .8rem ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .7); letter-spacing: .08em; }
@keyframes rec { 50% { opacity: .2; } }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 38px; max-width: 420px; }
.eq i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--studio-grad); background-size: 100% 300%; opacity: .85; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
@keyframes eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }

.studio-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.studio-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.studio-strip-inner > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 22px 18px; align-items: center; border-right: 1px solid var(--border); }
.studio-strip-inner > div:last-child { border-right: 0; }
.studio-strip .dashicons { grid-row: span 2; font-size: 28px; width: 28px; height: 28px; color: #c4b5fd; }
.studio-strip strong { font-size: 1.05rem; }
.studio-strip span:not(.dashicons) { color: var(--muted); font-size: .85rem; }

.paquetes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.paquete { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px; transition: transform .2s, border-color .2s; }
.paquete:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .5); }
.paquete.is-destacado { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--studio-grad) border-box; border: 1.5px solid transparent; box-shadow: 0 20px 60px rgba(167, 139, 250, .18); }
.paquete h3 { font-size: 1.4rem; margin-bottom: .2em; }
.paquete-precio { font-size: 1.6rem; font-weight: 800; margin: 10px 0 4px; background: var(--studio-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.paquete .check-list { flex: 1; }
.paquete .btn { margin-top: 10px; }

.portafolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pf-item {
	position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; padding: 0; text-align: left; color: #fff;
	background: var(--pf-img, var(--studio-grad)) center / cover no-repeat, #111;
}
.pf-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .8)); transition: background .2s; }
.pf-item:hover::after { background: linear-gradient(180deg, rgba(167, 139, 250, .15), rgba(0, 0, 0, .85)); }
.pf-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px !important; height: 58px !important; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0a0f14; font-size: 30px !important; display: grid !important; place-items: center; transition: transform .2s; }
.pf-play::before { line-height: 58px; padding-left: 4px; }
.pf-item:hover .pf-play { transform: translate(-50%, -50%) scale(1.1); }
.pf-info { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; }
.pf-info small { color: #c4b5fd; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.pf-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin: 12px 0; }
.pf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal:has(.pf-video) { max-width: min(960px, calc(100vw - 32px)); }
.pf-modal-title { font-size: 1.3rem; margin: 0 40px 0 0; }

.steps-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.cotiza-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.cotiza-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.cotiza-form { border-color: rgba(167, 139, 250, .35); }
.cotiza-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); font-size: .9rem; transition: all .15s; }
.pills input:checked + span { background: var(--studio-grad); border-color: transparent; color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--studio); outline-offset: 2px; }
.serv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.serv { position: relative; cursor: pointer; }
.serv input { position: absolute; opacity: 0; }
.serv > span { display: flex; align-items: center; gap: 8px; height: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); font-size: .9rem; font-weight: 500; transition: all .15s; }
.serv .dashicons { color: #c4b5fd; }
.serv:hover > span { border-color: rgba(167, 139, 250, .5); }
.serv input:checked + span { border-color: var(--studio); background: rgba(167, 139, 250, .14); box-shadow: 0 0 0 1px var(--studio) inset; }
.serv input:checked + span::after { content: "✓"; margin-left: auto; color: var(--studio); font-weight: 800; }
.serv input:focus-visible + span { outline: 2px solid var(--studio); outline-offset: 2px; }
#cotiza { scroll-margin-top: calc(var(--header-h) + 10px); }

/* Portada: bloque de SV Studio */
.studio-teaser {
	position: relative; padding: 80px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
	background: radial-gradient(600px 300px at 90% 50%, rgba(167, 139, 250, .22), transparent 70%), radial-gradient(500px 280px at 0% 50%, rgba(11, 180, 170, .18), transparent 70%), var(--bg-2);
}
.studio-teaser-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.studio-teaser h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.studio-icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.studio-icons li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; transition: transform .2s, border-color .2s; }
.studio-icons li:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, .5); }
.studio-icons .dashicons { font-size: 30px; width: 30px; height: 30px; background: var(--studio-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-h4-2 { margin-top: 22px; }

@media (max-width: 960px) {
	.cotiza-grid, .studio-teaser-inner { grid-template-columns: 1fr; }
	.cotiza-intro { position: static; }
	.studio-strip-inner { grid-template-columns: repeat(2, 1fr); }
	.studio-strip-inner > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 640px) {
	.studio-frame { inset: calc(var(--header-h) + 12px) 12px 12px; }
	.studio-frame i { width: 24px; height: 24px; }
	.studio-rec { left: 34px; }
	.studio-tc { right: 34px; }
	.eq { height: 40px; }
}
.site-footer .nav-studio > a { background: none; border: 0; }

input[type="date"] { color-scheme: dark; }

/* Studio Live · artistas en vivo */
.studio-live { position: relative; background: radial-gradient(800px 400px at 50% 0%, rgba(244, 114, 182, .12), transparent 70%), var(--bg); }
.studio-live .studio-eyebrow .dashicons { color: var(--studio-2); }
.artistas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 22px; }
.artista { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.artista:hover { transform: translateY(-4px); border-color: rgba(244, 114, 182, .45); box-shadow: 0 20px 50px rgba(244, 114, 182, .12); }
.artista.is-destacado { border-color: rgba(244, 114, 182, .55); }
.artista-foto { position: relative; aspect-ratio: 4 / 3; background: var(--ar-img, linear-gradient(135deg, #1b1330, #0f2a2e)) center / cover no-repeat; display: grid; place-items: center; }
.artista-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); pointer-events: none; }
.artista-mic { font-size: 64px !important; width: 64px !important; height: 64px !important; background: var(--studio-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.artista-formato { position: absolute; z-index: 1; left: 14px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.artista .card-tag { top: 12px; right: 12px; z-index: 1; }
.artista-play { position: absolute; z-index: 2; right: 14px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #0a0f14; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); transition: transform .2s; }
.artista-play:hover { transform: scale(1.1); }
.artista-play .dashicons { font-size: 24px; width: 24px; height: 24px; margin-left: 3px; }
.artista-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.artista-body h3 { margin: 0; font-size: 1.2rem; }
.artista-frase { color: #d9c7ff; margin: 0; font-style: italic; }
.artista-generos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.artista-generos span { font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: rgba(167, 139, 250, .12); color: #c4b5fd; }
.artista-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.artista-precio { font-weight: 800; display: flex; flex-direction: column; line-height: 1.2; }
.artista-precio small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.artista .card-more { margin-left: 0; align-self: flex-start; color: #f9a8d4; }
.artista-foot { flex-direction: column; align-items: stretch; gap: 10px; }
.artista-precio { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 1.15rem; }
.artista-foot .btn { width: 100%; }

/* ==========================================================================
   Chat en vivo (visitante)
   ========================================================================== */
.help-launcher.has-chat .help-btn::before { content: ""; position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #1ed760; border: 2px solid var(--bg); z-index: 1; }
.help-launcher.has-chat-nuevo .help-btn::before { background: #ff4d6d; animation: pulse 1.4s infinite; }
.help-btn { position: relative; }
.help-chat { width: 100%; border: 1px solid rgba(30, 215, 96, .35); background: rgba(30, 215, 96, .06); text-align: left; cursor: pointer; font: inherit; }
.help-chat > .dashicons { color: #1ed760 !important; }
.help-live { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #1ed760; box-shadow: 0 0 0 4px rgba(30, 215, 96, .2); flex: none; }
.chat-burbuja { display: flex; gap: 10px; align-items: center; max-width: 270px; padding: 12px 14px; border-radius: 16px 16px 4px 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; font: inherit; text-align: left; animation: modal-in .25s ease; }
.chat-burbuja span:last-child { display: flex; flex-direction: column; }
.chat-burbuja small { color: var(--muted); }
.chat-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #0a0f14 url('assets/img/logo-sv-white.png') center / 13px auto no-repeat; border: 1px solid rgba(11, 180, 170, .6); position: relative; }
.chat-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #1ed760; border: 2px solid var(--surface); }
.chat-win {
	position: fixed; right: 22px; bottom: 96px; z-index: 96; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 130px));
	display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .18s, transform .18s;
}
.chat-win.is-open { opacity: 1; transform: none; }
.chat-win[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, rgba(11, 180, 170, .25), rgba(10, 15, 20, .9)); border-bottom: 1px solid var(--border); }
.chat-head div { display: flex; flex-direction: column; line-height: 1.25; }
.chat-status { font-size: .78rem; color: #b7f0d8; display: flex; align-items: center; gap: 5px; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #1ed760; display: inline-block; }
.chat-win.is-off .chat-status { color: var(--muted); }
.chat-win.is-off .chat-status i, .chat-win.is-off .chat-avatar::after { background: #8c8f94; }
.chat-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.chat-aviso { padding: 8px 14px; background: rgba(251, 191, 36, .1); color: #fde68a; font-size: .8rem; border-bottom: 1px solid rgba(251, 191, 36, .3); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; }
.chat-txt { padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.chat-hora { font-size: .68rem; color: var(--muted); margin-top: 2px; }
.chat-visitante { align-self: flex-end; align-items: flex-end; }
.chat-visitante .chat-txt { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-agente, .chat-sistema { align-self: flex-start; }
.chat-agente .chat-txt { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-sistema .chat-txt { background: rgba(11, 180, 170, .1); border: 1px dashed rgba(11, 180, 170, .4); font-size: .86rem; color: #c6e9e6; }
.chat-intro { padding: 0 14px 14px; display: grid; gap: 8px; }
.chat-intro-t { margin: 0 0 2px; color: var(--muted); font-size: .9rem; }
.chat-intro input, .chat-intro textarea { padding: 10px 12px; font-size: .92rem; }
.chat-err { margin: 0; color: var(--danger); font-size: .85rem; min-height: 1em; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--border); background: var(--bg-2); }
.chat-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; border-radius: 12px; }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-form button:hover { background: #0cc9be; }
.chat-fin { padding: 14px; text-align: center; border-top: 1px solid var(--border); color: var(--muted); }
.chat-fin p { margin: 0 0 8px; }
.chat-intro[hidden], .chat-form[hidden], .chat-fin[hidden], .chat-aviso[hidden] { display: none; }
@media (max-width: 640px) {
	.chat-win { right: 12px; left: 12px; width: auto; bottom: 84px; height: calc(100vh - 110px); }
}

/* Empresa: equipo y tablero */
.portal-subhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.portal-subhead h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.portal-subhead h2 .dashicons { color: var(--accent-2); }
.portal-subhead p { margin: 0; }
.team-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.team-chips span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); }
.team-chips strong { font-weight: 600; }
.badge-equipo { background: rgba(167, 139, 250, .15); color: #c4b5fd; margin-left: 6px; }
.invite { display: flex; gap: 16px; align-items: flex-start; }
.invite > .dashicons { font-size: 34px; width: 34px; height: 34px; color: var(--accent-2); }
.invite h3 { margin: 0 0 .4em; }
.invite input { max-width: 520px; }

/* ---------- Landing: chat en vivo ---------- */
.lp-chat { position: relative; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 60px; background: radial-gradient(ellipse at 80% 10%, rgba(11, 180, 170, .22), transparent 55%), var(--bg); }
.lp-chat-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.lp-chat h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); line-height: 1.08; margin: 0 0 18px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.lp-chat h1 span { display: block; color: var(--accent); }
.lp-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.lp-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.lp-estado { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .85rem; font-weight: 600; margin: 0 0 18px; }
.lp-dot { width: 9px; height: 9px; border-radius: 50%; background: #8c8f94; display: inline-block; flex: none; }
.lp-estado.is-on { color: #7ff0a8; border-color: rgba(30, 215, 96, .4); background: rgba(30, 215, 96, .08); }
.lp-estado.is-on .lp-dot, .lp-demo-head .lp-dot { background: #1ed760; box-shadow: 0 0 0 0 rgba(30, 215, 96, .6); animation: lp-pulso 2s infinite; }
.lp-off { color: var(--muted); font-size: .92rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 14px; max-width: 560px; }
.lp-chat-media { position: relative; display: flex; flex-direction: column; align-items: center; }
.lp-ilus { width: 220px; height: 220px; margin-bottom: -40px; position: relative; z-index: 1; animation: lp-flota 5s ease-in-out infinite; }
.lp-demo { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 56px 18px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.lp-demo-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; font-size: .9rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.lp-demo-head small { color: #7ff0a8; font-weight: 400; }
.lp-burbuja { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.4; opacity: 0; transform: translateY(8px); animation: lp-entra .5s ease forwards; }
.lp-yo { align-self: flex-end; background: var(--accent); color: #06231f; border-bottom-right-radius: 4px; animation-delay: .4s; }
.lp-sv { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; animation-delay: 1.4s; }
.lp-sis { align-self: flex-start; background: var(--accent-soft); border: 1px dashed rgba(11, 180, 170, .45); color: #c6e9e6; font-size: .85rem; animation-delay: 2.4s; }
.lp-pasos { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: lp; }
.lp-pasos li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.lp-pasos li::before { counter-increment: lp; content: "PASO " counter(lp); position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.lp-ico { width: 46px !important; height: 46px !important; font-size: 24px !important; border-radius: 14px; background: var(--accent); color: #06231f; display: grid !important; place-items: center; margin-bottom: 14px; }
.lp-pasos strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.lp-pasos p { color: var(--muted); margin: 0; font-size: .93rem; }
.lp-compartir { text-align: center; padding: 26px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(11, 180, 170, .14), rgba(14, 21, 28, .6)); border: 1px solid var(--border); }
.lp-compartir p { margin: 0 0 14px; color: #fff; font-weight: 600; }
.lp-compartir-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-compartir .dashicons-whatsapp { color: #25d366; }
@keyframes lp-pulso { 0% { box-shadow: 0 0 0 0 rgba(30, 215, 96, .6); } 70% { box-shadow: 0 0 0 9px rgba(30, 215, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 215, 96, 0); } }
@keyframes lp-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lp-entra { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-ilus, .lp-burbuja, .lp-dot { animation: none !important; opacity: 1 !important; transform: none !important; } }
@media (max-width: 860px) {
	.lp-chat { padding-top: calc(var(--header-h) + 30px); }
	.lp-chat-in { grid-template-columns: 1fr; gap: 30px; }
	.lp-ilus { width: 150px; height: 150px; margin-bottom: -30px; }
	.lp-pasos { grid-template-columns: 1fr; }
	.lp-acciones .btn { flex: 1 1 100%; justify-content: center; }
}

/* =====================================================================
 * v4 · Menos texto, íconos SVG (Lucide) y fotos
 * ===================================================================== */
.svs-ico { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.9; vertical-align: -.2em; }
.btn .svs-ico { width: 18px; height: 18px; }
.card-more .svs-ico { width: 16px; height: 16px; transition: transform .2s; }
.card-more:hover .svs-ico { transform: translateX(3px); }
.card-icon .svs-ico { width: 26px; height: 26px; }
.card-link .card-foot { margin-top: auto; padding-top: 10px; }

/* Hero */
.hero-v4 { min-height: min(88vh, 760px); }
.hero-v4::before { filter: none; }
.hero-v4::after {
	background:
		linear-gradient(90deg, rgba(10, 15, 20, .94) 0%, rgba(10, 15, 20, .78) 45%, rgba(10, 15, 20, .35) 100%),
		linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}
.hero-v4 .hero-inner { max-width: var(--container); width: 100%; }
.hero-v4 .hero-inner > * { max-width: 640px; }
.hero-v4::before { background-position: 70% center; }
.hero-v4 h1 { text-transform: none; font-size: clamp(2.6rem, 7vw, 4.8rem); background: none; color: #fff; }
.hero-v4 h1 span { color: var(--accent-2); }
.hero-v4 .lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: #d5e0e6; }
.hero-v4 .hero-actions { margin: 30px 0 34px; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #c6d3da; font-size: .95rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .svs-ico { color: var(--accent-2); width: 20px; height: 20px; }

/* Servicios: mosaico de íconos */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.svc {
	display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 18px; color: var(--text); font: 600 1rem/1.3 var(--font); min-height: 84px;
	transition: border-color .2s, transform .2s, background .2s;
}
.svc:hover, .svc:focus-visible { border-color: rgba(11, 180, 170, .6); background: var(--surface-2); transform: translateY(-2px); }
.svc:focus-visible, .sector:focus-visible, .foto:focus-visible, .studio-band:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.svc-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.svc-icon .svs-ico { width: 24px; height: 24px; }
.svc-title { flex: 1; }
.svc-arrow { color: var(--muted); transition: transform .2s, color .2s; }
.svc:hover .svc-arrow { color: var(--accent-2); transform: translateX(3px); }

/* Fotos */
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foto { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.foto:hover img { transform: scale(1.04); }
.foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 15, 20, .92) 100%); }
.foto-txt { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 2px; color: #fff; }
.foto-txt .svs-ico { width: 26px; height: 26px; color: var(--accent-2); margin-bottom: 6px; }
.foto-txt strong { font-size: 1.15rem; }
.foto-txt small { color: #c6d3da; font-size: .9rem; }

/* Método */
.metodo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; counter-reset: m; }
.metodo li { position: relative; padding: 8px 18px; }
.metodo li + li::before { content: ""; position: absolute; left: -11px; top: 36px; width: 22px; border-top: 2px dashed var(--border); }
.metodo-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(11, 180, 170, .35); }
.metodo-icon .svs-ico { width: 30px; height: 30px; }
.metodo h3 { font-size: 1.3rem; margin-bottom: .25em; }
.metodo p { color: var(--muted); margin: 0; }

/* Portal */
.iconos-lista { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iconos-lista li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.iconos-lista .svs-ico { color: var(--accent-2); width: 22px; height: 22px; }

/* Sectores */
.sectores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sector {
	display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
	background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
	padding: 12px 20px 12px 14px; color: var(--text); font: 600 .98rem var(--font); min-height: 48px;
	transition: border-color .2s, background .2s;
}
.sector .svs-ico { width: 22px; height: 22px; color: var(--accent-2); }
.sector:hover { border-color: rgba(11, 180, 170, .6); background: var(--surface-2); }

/* SV Studio */
.studio-band {
	display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius); color: var(--text);
	background: linear-gradient(90deg, rgba(168, 85, 247, .14), rgba(11, 180, 170, .1)); border: 1px solid rgba(168, 85, 247, .35);
}
.studio-band:hover { color: #fff; border-color: rgba(168, 85, 247, .7); }
.studio-band > span:nth-child(2) { flex: 1; }
.studio-band strong { margin-right: 6px; }
.studio-band-icons { display: flex; gap: 6px; color: #c4a5ff; }
.studio-band-icons .svs-ico { width: 24px; height: 24px; }

@media (max-width: 860px) {
	.fotos { grid-template-columns: 1fr; }
	.foto { aspect-ratio: 16 / 9; }
	.metodo { grid-template-columns: 1fr; gap: 26px; }
	.metodo li + li::before { content: none; }
	.iconos-lista { grid-template-columns: 1fr; }
	.studio-band { flex-wrap: wrap; }
}
@media (max-width: 640px) {
	.hero-v4 { min-height: auto; padding-bottom: 60px; }
	.hero-v4::after { background: linear-gradient(180deg, rgba(10, 15, 20, .82), rgba(10, 15, 20, .92) 70%, var(--bg)); }
	.hero-v4 .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.svc, .foto img, .svc-arrow { transition: none; }
}
.sol-card h3 { font-size: 1.12rem; line-height: 1.35; }
.sol-respuesta { display: flex; align-items: center; gap: 8px; color: var(--accent-2) !important; font-weight: 600; margin: 0; }
.sol-respuesta .svs-ico { width: 18px; height: 18px; }
