/*
Theme Name: AI Gateway
Theme URI: https://aigateway.io
Description: Theme corporativo premium para AI Gateway License Manager. Landing page, portal de clientes y checkout.
Version: 1.1.0
Author: AI Gateway
License: GPL-2.0-or-later
Text Domain: aigw-theme
*/

/* ── Reset & Base ── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--aigw-primary: #6366f1;
	--aigw-accent: #8b5cf6;
	--aigw-violet: #8b5cf6;
	--aigw-cyan: #22d3ee;
	--aigw-dark: #0f172a;
	--aigw-ink: #1e293b;
	--aigw-muted: #64748b;
	--aigw-light: #f0f4f8;
	--aigw-border: #e2e8f0;
	--aigw-white: #ffffff;
	--aigw-radius: 20px;
	--aigw-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
	--aigw-font: 'Inter', system-ui, -apple-system, sans-serif;
	--aigw-brand: linear-gradient(135deg, var(--aigw-primary), var(--aigw-accent));
	--aigw-hero-grad: linear-gradient(160deg, #060918 0%, #131a38 100%);
	--aigw-shadow-rgb: 99, 102, 241;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--aigw-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--aigw-ink);
	background: var(--aigw-white);
	overflow-x: hidden;
}

a {
	color: var(--aigw-primary);
	text-decoration: none;
	transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
	color: var(--aigw-accent);
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4 {
	font-weight: 800;
	line-height: 1.25;
	color: var(--aigw-dark);
	letter-spacing: -0.02em;
}

/* ── Layout ── */
.aigw-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.aigw-section {
	padding: 100px 0;
	position: relative;
}

.aigw-section-white {
	background: var(--aigw-white);
}

.aigw-section-alt {
	background: var(--aigw-light);
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.aigw-section-title {
	text-align: center;
	margin-bottom: 60px;
}

.aigw-section-title h2 {
	font-size: 40px;
	margin-bottom: 16px;
	letter-spacing: -0.03em;
}

.aigw-section-title p {
	color: var(--aigw-muted);
	font-size: 18px;
	max-width: 640px;
	margin: 0 auto;
}

/* ── Logo SVG Premium & Animaciones ── */
.aigw-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 800;
	color: var(--aigw-dark);
	text-decoration: none;
}

.aigw-logo-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.aigw-logo-text {
	letter-spacing: -0.03em;
}

.aigw-logo-text-highlight {
	background: var(--aigw-brand);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Animaciones del Logo */
.logo-ring-outer {
	transform-origin: center;
	animation: rotateRing 15s linear infinite;
}

.logo-core {
	transform-origin: center;
	animation: pulseCore 3s ease-in-out infinite;
}

@keyframes rotateRing {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes pulseCore {
	0%, 100% { transform: scale(1); opacity: 0.95; }
	50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 6px rgba(var(--aigw-shadow-rgb), 0.6)); }
}

/* ── Buttons ── */
.aigw-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	border-radius: 12px;
	font-weight: 650;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.aigw-btn-primary {
	background: var(--aigw-brand);
	color: #ffffff;
	box-shadow: 0 10px 20px -5px rgba(var(--aigw-shadow-rgb), 0.35);
}

.aigw-btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 25px -5px rgba(var(--aigw-shadow-rgb), 0.45);
	color: #ffffff;
}

.aigw-btn-primary:active {
	transform: translateY(-1px);
}

.aigw-btn-outline {
	background: transparent;
	color: var(--aigw-primary);
	border: 2px solid rgba(var(--aigw-shadow-rgb), 0.3);
}

.aigw-btn-outline:hover {
	background: var(--aigw-brand);
	color: #ffffff;
	border-color: transparent;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -5px rgba(var(--aigw-shadow-rgb), 0.25);
}

.aigw-btn-white {
	background: #ffffff;
	color: var(--aigw-dark);
	box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.1);
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.aigw-btn-white:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 25px -5px rgba(15, 23, 42, 0.15);
	color: var(--aigw-accent);
}

/* ── Header / Navigation ── */
.aigw-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid transparent;
}

.aigw-header.scrolled {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Si el header está en fondo oscuro sobre el hero (no scrolleado) */
.aigw-header:not(.scrolled) .aigw-logo {
	color: #ffffff;
}
.aigw-header:not(.scrolled) .aigw-nav > a {
	color: rgba(255, 255, 255, 0.7);
}
.aigw-header:not(.scrolled) .aigw-nav > a:hover {
	color: #ffffff;
}
.aigw-header:not(.scrolled) .aigw-btn-outline {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.25);
}
.aigw-header:not(.scrolled) .aigw-btn-outline:hover {
	background: #ffffff;
	color: var(--aigw-dark);
}
.aigw-header:not(.scrolled) .aigw-mobile-toggle svg {
	color: #ffffff;
}

.aigw-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.aigw-nav {
	display: flex;
	align-items: center;
	gap: 36px;
}

.aigw-nav a {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--aigw-muted);
}

.aigw-nav-cta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.aigw-nav-cta .aigw-btn {
	padding: 10px 24px;
	font-size: 13.5px;
}

/* La regla .aigw-nav a pinta los enlaces de gris; los botones CTA deben conservar su propio color */
.aigw-nav .aigw-nav-cta a.aigw-btn-primary {
	color: #ffffff;
}
.aigw-nav .aigw-nav-cta a.aigw-btn-primary:hover {
	color: #ffffff;
}

.aigw-mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.aigw-mobile-toggle svg {
	width: 26px;
	height: 26px;
	color: var(--aigw-dark);
}

/* ── Hero Section (Rediseñado en 2 columnas y Mockup) ── */
.aigw-hero {
	padding: 160px 0 120px;
	background: var(--aigw-hero-grad);
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

/* Fondo decorativo radial del Hero */
.aigw-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -30%;
	width: 160%;
	height: 200%;
	background: radial-gradient(circle at 50% 30%, rgba(var(--aigw-shadow-rgb), 0.15) 0%, transparent 60%);
	pointer-events: none;
	z-index: 1;
}

.aigw-hero-grid-layout {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 60px;
	align-items: center;
	position: relative;
	z-index: 2;
}

.aigw-hero-content {
	text-align: left;
}

.aigw-hero h1 {
	font-size: 60px;
	letter-spacing: -0.04em;
	margin-bottom: 24px;
	color: #ffffff;
	font-weight: 900;
	line-height: 1.12;
}

.aigw-hero h1 span {
	background: linear-gradient(120deg, var(--aigw-primary), var(--aigw-violet) 40%, var(--aigw-cyan) 75%, var(--aigw-primary));
	background-size: 250% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	position: relative;
	animation: shimmerText 6s linear infinite;
}

@keyframes shimmerText {
	0% { background-position: 0% center; }
	100% { background-position: 250% center; }
}

.aigw-hero p {
	font-size: 20px;
	color: rgba(255, 255, 255, 0.75);
	max-width: 580px;
	margin-bottom: 40px;
	line-height: 1.7;
}

.aigw-hero-cta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.aigw-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50px;
	font-size: 13.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
}

.aigw-hero-badge .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
	animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
	0%, 100% { transform: scale(1); opacity: 0.8; }
	50% { transform: scale(1.3); opacity: 1; }
}

/* ── UI Mockup de Chat ── */
.aigw-hero-visual {
	position: relative;
	width: 100%;
}

.aigw-mockup-window {
	width: 100%;
	background: rgba(30, 41, 59, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 
	            0 0 50px -10px rgba(var(--aigw-shadow-rgb), 0.25);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 420px;
}

/* Mockup Header */
.mockup-header {
	height: 52px;
	background: rgba(15, 23, 42, 0.8);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	padding: 0 18px;
	justify-content: space-between;
}

.mockup-dots {
	display: flex;
	gap: 6px;
}

.mockup-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 5px 14px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 550;
	cursor: pointer;
}

.model-icon {
	width: 14px;
	height: 14px;
	color: var(--aigw-primary);
}

.chevron-icon {
	width: 12px;
	height: 12px;
	color: rgba(255, 255, 255, 0.5);
}

.mockup-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #10b981;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.2);
	padding: 4px 10px;
	border-radius: 20px;
}

.status-shield svg {
	width: 11px;
	height: 11px;
	display: block;
}

/* Mockup Body (Mensajes de Chat) */
.mockup-body {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 13px;
}

/* La regla .aigw-hero p (20px/40px de margen) no debe inflar el chat del mockup */
.aigw-hero .mockup-body p {
	font-size: 13px;
	margin-bottom: 0;
	max-width: none;
	line-height: 1.55;
	color: inherit;
}

.aigw-hero .mockup-body .dlp-alert {
	font-size: 12px;
	margin-bottom: 6px;
}

.aigw-hero .mockup-body .dlp-diff p {
	font-size: 11.5px;
	margin-bottom: 4px;
}

.aigw-hero .mockup-body .dlp-diff p:last-child {
	margin-bottom: 0;
}

.chat-bubble {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	max-width: 85%;
}

.chat-bubble.user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.chat-bubble.user .message-content {
	background: var(--aigw-brand);
	color: #ffffff;
	border-radius: 12px 2px 12px 12px;
}

.chat-bubble.assistant .message-content {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.9);
	border-radius: 2px 12px 12px 12px;
}

.chat-bubble.system-dlp {
	align-self: flex-start;
	width: 100%;
	max-width: 90%;
}

.chat-bubble.system-dlp .message-content {
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.2);
	color: #f59e0b;
	border-radius: 8px;
	width: 100%;
}

.chat-bubble .avatar,
.chat-bubble .avatar-assistant,
.chat-bubble .avatar-dlp {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 11px;
	flex-shrink: 0;
}

.chat-bubble.user .avatar {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.chat-bubble.assistant .avatar-assistant {
	background: var(--aigw-brand);
	color: #ffffff;
}

.chat-bubble.system-dlp .avatar-dlp {
	font-size: 14px;
}

.message-content {
	padding: 10px 14px;
	line-height: 1.5;
}

.message-content code {
	background: rgba(0, 0, 0, 0.2);
	padding: 1px 5px;
	border-radius: 4px;
	font-family: monospace;
	color: #f43f5e;
}

.dlp-alert {
	margin-bottom: 6px;
	font-size: 12px;
}

.dlp-diff {
	background: rgba(0, 0, 0, 0.15);
	padding: 8px;
	border-radius: 6px;
	font-family: monospace;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.8);
}

.dlp-diff p {
	margin-bottom: 4px;
}
.dlp-diff p:last-child {
	margin-bottom: 0;
}

.dlp-diff del {
	color: #ef4444;
	text-decoration: line-through;
}

.dlp-diff ins {
	color: #10b981;
	text-decoration: none;
	font-weight: 700;
}

/* Mockup Footer */
.mockup-footer {
	padding: 14px 20px;
	background: rgba(15, 23, 42, 0.4);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-input-sim {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	padding: 10px 16px;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.4);
	font-size: 12.5px;
}

.mockup-input-sim svg {
	width: 16px;
	height: 16px;
	color: rgba(255, 255, 255, 0.3);
}

/* Orbes resplandecientes en el Hero */
.glow-orb-primary, .glow-orb-accent {
	position: absolute;
	width: 250px;
	height: 250px;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.15;
	pointer-events: none;
	z-index: 1;
}

.glow-orb-primary {
	background: var(--aigw-primary);
	top: 10%;
	right: 15%;
	animation: floatOrb1 8s ease-in-out infinite;
}

.glow-orb-accent {
	background: var(--aigw-accent);
	bottom: 10%;
	right: 5%;
	animation: floatOrb2 8s ease-in-out infinite;
}

@keyframes floatOrb1 {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes floatOrb2 {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(20px) scale(0.9); }
}

/* ── Hero: fondo de retícula técnica ── */
.aigw-hero-grid-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
	pointer-events: none;
	z-index: 1;
}

/* ── Hero: pills de proveedores ── */
.aigw-hero-providers {
	margin-top: 44px;
}

.providers-label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 12px;
}

.providers-pills {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.provider-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	transition: all 0.25s;
}

.provider-pill:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.22);
	transform: translateY(-2px);
}

.provider-pill .pp-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* ── Hero: chips flotantes de métricas ── */
.aigw-float-chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	backdrop-filter: blur(16px);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
	z-index: 3;
}

.aigw-float-chip .chip-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aigw-float-chip .chip-icon svg { width: 18px; height: 18px; }
.aigw-float-chip .chip-icon.green { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.aigw-float-chip .chip-icon.red { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.aigw-float-chip .chip-text strong { display: block; font-size: 13.5px; color: #fff; font-weight: 700; letter-spacing: -0.01em; }
.aigw-float-chip .chip-text span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }

.chip-savings {
	top: -22px;
	right: -14px;
	animation: floatChip 6s ease-in-out infinite;
}

.chip-dlp {
	bottom: -34px;
	left: -26px;
	animation: floatChip 7s ease-in-out infinite reverse;
}

@keyframes floatChip {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* ── Banda de estadísticas ── */
.aigw-stats-band {
	background: var(--aigw-dark);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 44px 0;
	position: relative;
}

.aigw-stats-band::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(var(--aigw-shadow-rgb), 0.6), transparent);
}

.aigw-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}

.aigw-stat-num {
	font-size: 42px;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.1;
	background: linear-gradient(120deg, var(--aigw-primary), var(--aigw-violet) 50%, var(--aigw-cyan));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.aigw-stat-label {
	margin-top: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

/* ── Cómo funciona: pasos ── */
.aigw-steps-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	gap: 24px;
	align-items: stretch;
}

.aigw-step {
	background: var(--aigw-white);
	border: 1px solid var(--aigw-border);
	border-radius: 18px;
	padding: 34px 30px;
	position: relative;
	box-shadow: var(--aigw-shadow);
	transition: transform 0.25s, box-shadow 0.25s;
}

.aigw-step:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.14);
}

.aigw-step-num {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--aigw-primary), var(--aigw-violet));
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	box-shadow: 0 8px 20px rgba(var(--aigw-shadow-rgb), 0.35);
}

.aigw-step h3 {
	font-size: 18.5px;
	margin-bottom: 10px;
}

.aigw-step p {
	font-size: 14.5px;
	color: var(--aigw-muted);
	line-height: 1.65;
}

.aigw-step-connector {
	align-self: center;
	width: 34px;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--aigw-primary) 0 6px, transparent 6px 12px);
	opacity: 0.5;
}

@media (max-width: 900px) {
	.aigw-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.aigw-steps-grid { grid-template-columns: 1fr; }
	.aigw-step-connector { display: none; }
	.chip-savings { right: 0; }
	.chip-dlp { left: 0; }
}

/* ── Features Section (Glassmorphic) ── */
.aigw-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.aigw-feature-card {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: var(--aigw-radius);
	padding: 40px 32px;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow: var(--aigw-shadow);
}

/* Efecto de línea de gradiente superior activa */
.aigw-feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--aigw-brand);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.aigw-feature-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -15px rgba(var(--aigw-shadow-rgb), 0.18);
	border-color: rgba(var(--aigw-shadow-rgb), 0.25);
}

.aigw-feature-card:hover::before {
	opacity: 1;
}

/* ── Estilos de Colores Individuales para Características (Premium) ── */
/* Azul */
.aigw-feature-card.feat-blue .aigw-feature-icon {
	background: rgba(59, 130, 246, 0.08);
	border-color: rgba(59, 130, 246, 0.15);
	color: #2563eb;
}
.aigw-feature-card.feat-blue::before {
	background: linear-gradient(90deg, #3b82f6, #06b6d4);
}
.aigw-feature-card.feat-blue:hover {
	border-color: rgba(59, 130, 246, 0.3);
	box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.15);
}
.aigw-feature-card.feat-blue:hover .aigw-feature-icon {
	background: linear-gradient(135deg, #3b82f6, #06b6d4);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.4);
}

/* Verde */
.aigw-feature-card.feat-green .aigw-feature-icon {
	background: rgba(16, 185, 129, 0.08);
	border-color: rgba(16, 185, 129, 0.15);
	color: #059669;
}
.aigw-feature-card.feat-green::before {
	background: linear-gradient(90deg, #10b981, #059669);
}
.aigw-feature-card.feat-green:hover {
	border-color: rgba(16, 185, 129, 0.3);
	box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.15);
}
.aigw-feature-card.feat-green:hover .aigw-feature-icon {
	background: linear-gradient(135deg, #10b981, #059669);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.4);
}

/* Naranja */
.aigw-feature-card.feat-orange .aigw-feature-icon {
	background: rgba(245, 158, 11, 0.08);
	border-color: rgba(245, 158, 11, 0.15);
	color: #d97706;
}
.aigw-feature-card.feat-orange::before {
	background: linear-gradient(90deg, #f59e0b, #eab308);
}
.aigw-feature-card.feat-orange:hover {
	border-color: rgba(245, 158, 11, 0.3);
	box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.15);
}
.aigw-feature-card.feat-orange:hover .aigw-feature-icon {
	background: linear-gradient(135deg, #f59e0b, #eab308);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.4);
}

/* Rosa */
.aigw-feature-card.feat-pink .aigw-feature-icon {
	background: rgba(236, 72, 153, 0.08);
	border-color: rgba(236, 72, 153, 0.15);
	color: #db2777;
}
.aigw-feature-card.feat-pink::before {
	background: linear-gradient(90deg, #ec4899, #d946ef);
}
.aigw-feature-card.feat-pink:hover {
	border-color: rgba(236, 72, 153, 0.3);
	box-shadow: 0 20px 40px -15px rgba(236, 72, 153, 0.15);
}
.aigw-feature-card.feat-pink:hover .aigw-feature-icon {
	background: linear-gradient(135deg, #ec4899, #d946ef);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 8px 16px -4px rgba(236, 72, 153, 0.4);
}

/* Indigo */
.aigw-feature-card.feat-indigo .aigw-feature-icon {
	background: rgba(99, 102, 241, 0.08);
	border-color: rgba(99, 102, 241, 0.15);
	color: #4f46e5;
}
.aigw-feature-card.feat-indigo::before {
	background: linear-gradient(90deg, #6366f1, #4f46e5);
}
.aigw-feature-card.feat-indigo:hover {
	border-color: rgba(99, 102, 241, 0.3);
	box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15);
}
.aigw-feature-card.feat-indigo:hover .aigw-feature-icon {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.4);
}

/* Púrpura */
.aigw-feature-card.feat-purple .aigw-feature-icon {
	background: rgba(168, 85, 247, 0.08);
	border-color: rgba(168, 85, 247, 0.15);
	color: #9333ea;
}
.aigw-feature-card.feat-purple::before {
	background: linear-gradient(90deg, #a855f7, #7c3aed);
}
.aigw-feature-card.feat-purple:hover {
	border-color: rgba(168, 85, 247, 0.3);
	box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.15);
}
.aigw-feature-card.feat-purple:hover .aigw-feature-icon {
	background: linear-gradient(135deg, #a855f7, #7c3aed);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 8px 16px -4px rgba(168, 85, 247, 0.4);
}

.aigw-feature-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(var(--aigw-shadow-rgb), 0.08), rgba(var(--aigw-shadow-rgb), 0.02));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--aigw-primary);
	margin-bottom: 18px;
	border: 1px solid rgba(var(--aigw-shadow-rgb), 0.1);
	transition: all 0.35s ease;
}

.aigw-feature-icon svg {
	width: 18px;
	height: 18px;
}

.aigw-feature-card:hover .aigw-feature-icon {
	background: var(--aigw-brand);
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 8px 16px -4px rgba(var(--aigw-shadow-rgb), 0.4);
}

.aigw-feature-card h3 {
	font-size: 19px;
	margin-bottom: 12px;
	font-weight: 750;
}

.aigw-feature-card p {
	color: var(--aigw-muted);
	font-size: 14.5px;
	line-height: 1.65;
}

/* ── Pricing Section (Limpio y Armonioso) ── */
.aigw-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 36px;
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.aigw-price-card {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: var(--aigw-radius);
	padding: 48px 40px;
	text-align: center;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	box-shadow: var(--aigw-shadow);
	color: var(--aigw-ink);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.aigw-price-card h3 {
	font-size: 24px;
	margin-bottom: 8px;
	font-weight: 800;
	color: var(--aigw-dark);
}

.aigw-price-card .price {
	font-size: 52px;
	font-weight: 900;
	color: var(--aigw-dark);
	margin: 20px 0 10px;
	letter-spacing: -0.04em;
	line-height: 1;
}

.aigw-price-card .price.price-text {
	font-size: 28px !important;
	margin: 24px 0 12px;
	letter-spacing: -0.02em;
	line-height: 1.2;
	font-weight: 850;
	color: var(--aigw-dark);
}

.aigw-price-card .price span {
	font-size: 16px;
	color: var(--aigw-muted);
	font-weight: 500;
	letter-spacing: 0;
}

.aigw-price-card .price-sub {
	font-size: 13.5px;
	color: var(--aigw-muted);
	margin-bottom: 32px;
	font-weight: 500;
}

.aigw-price-card ul {
	list-style: none;
	text-align: left;
	margin-bottom: 36px;
	flex-grow: 1;
}

.aigw-price-card ul li {
	padding: 10px 0;
	font-size: 14.5px;
	color: var(--aigw-ink);
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.aigw-price-card ul li:last-child {
	border-bottom: none;
}

.aigw-price-card ul li svg {
	width: 14px;
	height: 14px;
	color: #10b981;
	flex-shrink: 0;
}

.aigw-price-card .aigw-btn {
	width: 100%;
	justify-content: center;
}

.aigw-price-card .aigw-btn-outline {
	color: var(--aigw-primary);
	border-color: rgba(var(--aigw-shadow-rgb), 0.25);
}

.aigw-price-card .aigw-btn-outline:hover {
	background: var(--aigw-brand);
	color: #ffffff;
	border-color: transparent;
}

.aigw-price-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

/* Tarjeta PRO destacada */
.aigw-price-card.featured {
	background: linear-gradient(135deg, #ffffff 60%, #f3f7ff 100%);
	border: 2px solid var(--aigw-primary);
	box-shadow: 0 25px 50px -12px rgba(var(--aigw-shadow-rgb), 0.25);
}

.aigw-price-card.featured::before {
	content: 'Recomendado';
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--aigw-brand);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 5px 20px;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 4px 10px rgba(var(--aigw-shadow-rgb), 0.3);
}

.aigw-price-card.featured h3 {
	color: var(--aigw-dark);
}

.aigw-price-card.featured .price {
	color: var(--aigw-dark);
}

.aigw-price-card.featured .price span {
	color: var(--aigw-muted);
}

.aigw-price-card.featured .price-sub {
	color: var(--aigw-muted);
}

.aigw-price-card.featured ul li {
	color: var(--aigw-ink);
	border-bottom-color: #f1f5f9;
}

/* ── Testimonials Section (Cajas de Diálogo) ── */
.aigw-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.aigw-testimonial {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: var(--aigw-radius);
	padding: 36px;
	position: relative;
	box-shadow: var(--aigw-shadow);
	transition: all 0.3s ease;
}

/* Bordes e Iniciales Coloreados Dinámicos para Testimonios */
.aigw-testimonial.testi-blue {
	border-left: 4px solid #3b82f6;
}
.aigw-testimonial.testi-blue .aigw-testimonial-avatar {
	background: linear-gradient(135deg, #3b82f6, #06b6d4);
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.aigw-testimonial.testi-green {
	border-left: 4px solid #10b981;
}
.aigw-testimonial.testi-green .aigw-testimonial-avatar {
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.aigw-testimonial.testi-indigo {
	border-left: 4px solid #6366f1;
}
.aigw-testimonial.testi-indigo .aigw-testimonial-avatar {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.aigw-testimonial:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.12);
}

.aigw-testimonial::before {
	content: '“';
	position: absolute;
	top: 15px;
	right: 24px;
	font-size: 72px;
	color: rgba(var(--aigw-shadow-rgb), 0.12);
	font-family: Georgia, serif;
	line-height: 1;
	pointer-events: none;
}

.aigw-testimonial p {
	font-size: 15px;
	color: var(--aigw-muted);
	line-height: 1.7;
	margin-bottom: 24px;
	font-style: italic;
	position: relative;
	z-index: 2;
}

.aigw-testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.aigw-testimonial-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--aigw-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-weight: 750;
	font-size: 15px;
	box-shadow: 0 4px 10px rgba(var(--aigw-shadow-rgb), 0.25);
}

.aigw-testimonial-info {
	font-size: 13.5px;
}

.aigw-testimonial-info strong {
	display: block;
	color: var(--aigw-dark);
	font-weight: 700;
}

.aigw-testimonial-info span {
	color: var(--aigw-muted);
}

/* ── FAQ Section (Acordeón Premium) ── */
.aigw-faq {
	max-width: 780px;
	margin: 0 auto;
}

.aigw-faq-item {
	border: 1px solid var(--aigw-border);
	border-radius: 14px;
	margin-bottom: 14px;
	overflow: hidden;
	background: #ffffff;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.aigw-faq-item:hover {
	border-color: rgba(var(--aigw-shadow-rgb), 0.3);
}

.aigw-faq-item.open {
	border-color: var(--aigw-primary);
	box-shadow: 0 10px 20px -10px rgba(var(--aigw-shadow-rgb), 0.15);
}

.aigw-faq-q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 28px;
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	color: var(--aigw-dark);
	transition: background 0.25s ease;
}

.aigw-faq-q:hover {
	background: #fdfefe;
}

.aigw-faq-q svg {
	width: 20px;
	height: 20px;
	color: var(--aigw-muted);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
}

.aigw-faq-item.open .aigw-faq-q svg {
	transform: rotate(180deg);
	color: var(--aigw-primary);
}

.aigw-faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fafbfc;
}

.aigw-faq-item.open .aigw-faq-a {
	max-height: 300px;
	border-top: 1px solid #f1f5f9;
}

.aigw-faq-a-inner {
	padding: 20px 28px;
	color: var(--aigw-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* ── Contact Section ── */
.aigw-contact-form {
	max-width: 600px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	padding: 48px;
	border-radius: var(--aigw-radius);
	box-shadow: var(--aigw-shadow);
}

.aigw-contact-form .aigw-field {
	margin-bottom: 20px;
}

.aigw-contact-form label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--aigw-dark);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.aigw-contact-form input,
.aigw-contact-form textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--aigw-border);
	border-radius: 12px;
	font-size: 14.5px;
	font-family: var(--aigw-font);
	background: #f8fafc;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
}

.aigw-contact-form input:focus,
.aigw-contact-form textarea:focus {
	border-color: var(--aigw-primary);
	box-shadow: 0 0 0 4px rgba(var(--aigw-shadow-rgb), 0.15);
	background: #ffffff;
}

.aigw-contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.aigw-contact-form .aigw-row {
	display: flex;
	gap: 20px;
}

.aigw-contact-form .aigw-row .aigw-field {
	flex: 1;
}

.aigw-contact-msg {
	padding: 14px 20px;
	border-radius: 12px;
	font-size: 14.5px;
	margin-bottom: 20px;
	display: none;
}

.aigw-contact-msg.success {
	display: block;
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.aigw-contact-msg.error {
	display: block;
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

/* ── Footer Section ── */
.aigw-footer {
	background: #090d16;
	color: rgba(255, 255, 255, 0.55);
	padding: 80px 0 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
	z-index: 2;
}

.aigw-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

.aigw-footer h4 {
	color: #ffffff;
	font-size: 15px;
	margin-bottom: 20px;
	font-weight: 750;
	letter-spacing: 0.02em;
}

.aigw-footer p {
	font-size: 14.5px;
	line-height: 1.7;
	max-width: 320px;
}

.aigw-footer ul {
	list-style: none;
}

.aigw-footer ul li {
	margin-bottom: 10px;
}

.aigw-footer ul a {
	color: rgba(255, 255, 255, 0.55);
	font-size: 14.5px;
}

.aigw-footer ul a:hover {
	color: #ffffff;
}

.aigw-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
}

.aigw-footer-social {
	display: flex;
	gap: 14px;
}

.aigw-footer-social a {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
}

.aigw-footer-social a:hover {
	background: rgba(var(--aigw-shadow-rgb), 0.25);
	color: #ffffff;
	transform: translateY(-2px);
}

.aigw-footer-social a svg {
	width: 18px;
	height: 18px;
	color: rgba(255, 255, 255, 0.7);
}

/* ── Portal & Auth (provided by plugin) ── */
.aigw-portal-wrap {
	max-width: 1050px;
	margin: 0 auto;
	padding: 120px 24px 80px;
}

.aigw-auth-wrap {
	max-width: 460px;
	margin: 0 auto;
	padding: 140px 24px 80px;
}

.aigw-auth-card {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: 20px;
	padding: 44px;
	box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

.aigw-auth-card h2 {
	text-align: center;
	margin-bottom: 28px;
	font-size: 26px;
}

.aigw-auth-card .aigw-field {
	margin-bottom: 18px;
}

.aigw-auth-card label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--aigw-dark);
}

.aigw-auth-card input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--aigw-border);
	border-radius: 10px;
	font-size: 14.5px;
	outline: none;
	transition: all 0.25s ease;
}

.aigw-auth-card input:focus {
	border-color: var(--aigw-primary);
	box-shadow: 0 0 0 3px rgba(var(--aigw-shadow-rgb), 0.15);
}

.aigw-auth-card .aigw-btn {
	width: 100%;
	justify-content: center;
	margin-top: 12px;
}

.aigw-auth-link {
	text-align: center;
	margin-top: 20px;
	font-size: 13.5px;
	color: var(--aigw-muted);
}

/* ── Portal Tabs ── */
.aigw-portal-tabs {
	display: flex;
	gap: 6px;
	border-bottom: 2px solid var(--aigw-border);
	margin-bottom: 32px;
}

.aigw-portal-tab {
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 700;
	color: var(--aigw-muted);
	cursor: pointer;
	border: none;
	background: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.25s ease;
}

.aigw-portal-tab:hover {
	color: var(--aigw-primary);
}

.aigw-portal-tab.active {
	color: var(--aigw-primary);
	border-bottom-color: var(--aigw-primary);
}

.aigw-portal-view {
	display: none;
}

.aigw-portal-view.active {
	display: block;
}

.aigw-portal-card {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: var(--aigw-radius);
	padding: 30px;
	box-shadow: var(--aigw-shadow);
	margin-bottom: 24px;
}

.aigw-portal-card h3 {
	font-size: 18px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.aigw-portal-card table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.aigw-portal-card table th {
	background: #f8fafc;
	padding: 12px 16px;
	text-align: left;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--aigw-muted);
	border-bottom: 1px solid var(--aigw-border);
}

.aigw-portal-card table td {
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	color: var(--aigw-ink);
}

.aigw-portal-card table tr:last-child td {
	border-bottom: none;
}

/* Status badges */
.aigw-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}

.aigw-badge.ok {
	background: rgba(16, 185, 129, 0.1);
	color: #059669;
	border: 1px solid rgba(16, 185, 129, 0.15);
}

.aigw-badge.off {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
	border: 1px solid rgba(239, 68, 68, 0.15);
}

.aigw-badge.warn {
	background: rgba(245, 158, 11, 0.1);
	color: #d97706;
	border: 1px solid rgba(245, 158, 11, 0.15);
}

.aigw-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.aigw-badge.ok .aigw-badge-dot { background: #10b981; }
.aigw-badge.off .aigw-badge-dot { background: #ef4444; }
.aigw-badge.warn .aigw-badge-dot { background: #f59e0b; }

/* ── Responsive Design ── */
@media (max-width: 992px) {
	.aigw-hero-grid-layout {
		grid-template-columns: 1fr;
		gap: 50px;
		text-align: center;
	}
	
	.aigw-hero-content {
		text-align: center;
	}
	
	.aigw-hero h1 {
		font-size: 46px;
	}
	
	.aigw-hero p {
		margin-left: auto;
		margin-right: auto;
	}
	
	.aigw-hero-cta {
		justify-content: center;
	}

	.aigw-features-grid,
	.aigw-testimonials-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.aigw-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.aigw-features-grid,
	.aigw-testimonials-grid,
	.aigw-pricing-grid {
		grid-template-columns: 1fr;
	}
	
	.aigw-pricing-grid {
		max-width: 440px;
	}

	.aigw-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	
	.aigw-hero h1 {
		font-size: 38px;
	}
	
	.aigw-hero p {
		font-size: 17px;
	}
	
	.aigw-section {
		padding: 70px 0;
	}
	
	.aigw-section-title h2 {
		font-size: 32px;
	}
	
	.aigw-nav {
		display: none;
	}
	
	.aigw-mobile-toggle {
		display: block;
	}
	
	/* Mobile Menu Open */
	.aigw-nav.open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 80px;
		left: 0;
		right: 0;
		background: #ffffff;
		padding: 30px 24px;
		box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
		gap: 20px;
		border-bottom: 1px solid var(--aigw-border);
	}
	
	.aigw-nav.open a {
		color: var(--aigw-dark);
		width: 100%;
		padding: 5px 0;
	}
	
	.aigw-nav-cta {
		flex-direction: column;
		width: 100%;
		gap: 12px;
		margin-top: 10px;
	}
	
	.aigw-nav-cta .aigw-btn {
		width: 100%;
		justify-content: center;
	}
	
	.aigw-contact-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.aigw-contact-form-box {
		padding: 32px 24px;
	}
	
	.aigw-form-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ── Contact Section (Dos Columnas Premium) ── */
.aigw-contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	max-width: 1100px;
	margin: 0 auto;
	align-items: start;
}

.aigw-contact-info h2 {
	font-size: 38px;
	font-weight: 850;
	color: var(--aigw-dark);
	margin-bottom: 16px;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.aigw-contact-desc {
	font-size: 16px;
	line-height: 1.65;
	color: var(--aigw-muted);
	margin-bottom: 40px;
}

.aigw-contact-details {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 40px;
}

.aigw-contact-card {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: var(--aigw-radius);
	padding: 20px 24px;
	transition: all 0.3s ease;
}

.aigw-contact-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--aigw-shadow);
	border-color: rgba(var(--aigw-shadow-rgb), 0.15);
}

.aigw-contact-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid rgba(var(--aigw-shadow-rgb), 0.1);
}

.aigw-contact-icon svg {
	width: 20px;
	height: 20px;
}

/* Colores de Iconos heredando los gradientes ya definidos */
.aigw-contact-icon.feat-blue {
	background: rgba(59, 130, 246, 0.08);
	color: #2563eb;
	border-color: rgba(59, 130, 246, 0.15);
}
.aigw-contact-icon.feat-green {
	background: rgba(16, 185, 129, 0.08);
	color: #059669;
	border-color: rgba(16, 185, 129, 0.15);
}
.aigw-contact-icon.feat-orange {
	background: rgba(245, 158, 11, 0.08);
	color: #d97706;
	border-color: rgba(245, 158, 11, 0.15);
}

.aigw-contact-text {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.aigw-contact-text strong {
	font-size: 15px;
	font-weight: 750;
	color: var(--aigw-dark);
	margin-bottom: 2px;
}

.aigw-contact-text a {
	font-size: 14.5px;
	color: var(--aigw-primary);
	text-decoration: none;
	font-weight: 600;
}

.aigw-contact-text a:hover {
	text-decoration: underline;
}

.aigw-contact-text span {
	font-size: 14px;
	color: var(--aigw-muted);
}

.aigw-contact-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #f8fafc;
	border: 1px solid var(--aigw-border);
	padding: 10px 16px;
	border-radius: 50px;
	font-size: 13.5px;
	color: var(--aigw-ink);
	font-weight: 500;
}

.status-indicator-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	position: relative;
}

.status-indicator-dot.online {
	background: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
	animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
	0% { box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.4); }
	70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
	100% { box-shadow: 0 0 0 0px rgba(16, 185, 129, 0); }
}

/* Columna Derecha Formulario */
.aigw-contact-form-wrapper {
	width: 100%;
}

.aigw-contact-form-box {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: var(--aigw-radius);
	padding: 48px;
	box-shadow: var(--aigw-shadow);
}

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

.aigw-form-group {
	display: flex;
	flex-direction: column;
	text-align: left;
	margin-bottom: 24px;
}

.aigw-form-group:last-of-type {
	margin-bottom: 30px;
}

.aigw-form-group label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--aigw-dark);
	margin-bottom: 8px;
}

.aigw-form-group input,
.aigw-form-group select,
.aigw-form-group textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--aigw-border);
	border-radius: 8px;
	font-size: 14.5px;
	background: #f8fafc;
	color: var(--aigw-dark);
	transition: all 0.3s ease;
	font-family: inherit;
}

.aigw-form-group input:focus,
.aigw-form-group select:focus,
.aigw-form-group textarea:focus {
	outline: none;
	border-color: var(--aigw-primary);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(var(--aigw-shadow-rgb), 0.08);
}

.aigw-form-group textarea {
	resize: none;
}

#aigw-contact-msg {
	display: none;
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	font-weight: 550;
}

#aigw-contact-msg.success {
	background: rgba(16, 185, 129, 0.1);
	color: #047857;
	border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ══════════════════════════════════════════════════════════════════
   PORTAL DE CLIENTES — "Consola ChatAI"
   App-shell: sidebar de tinta con aurora índigo/cian + lienzo claro.
   Display: Bricolage Grotesque · Mono: JetBrains Mono · Body: Inter
   ══════════════════════════════════════════════════════════════════ */

:root {
	--cp-ink: #0b1023;
	--cp-ink-2: #131b40;
	--cp-canvas: #eef1f8;
	--cp-card: #ffffff;
	--cp-line: #e3e7f2;
	--cp-text: #17203a;
	--cp-dim: #6b7694;
	--cp-indigo: #6366f1;
	--cp-violet: #8b5cf6;
	--cp-cyan: #22d3ee;
	--cp-green: #10b981;
	--cp-amber: #f59e0b;
	--cp-red: #ef4444;
	--cp-display: 'Bricolage Grotesque', var(--aigw-font);
	--cp-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
	--cp-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.aigw-client-auth-section {
	padding: 118px 0 90px;
	position: relative;
	min-height: 92vh;
	overflow: hidden;
	background:
		radial-gradient(900px 480px at 85% -5%, rgba(99, 102, 241, 0.10), transparent 60%),
		radial-gradient(700px 420px at -10% 30%, rgba(34, 211, 238, 0.08), transparent 60%),
		linear-gradient(180deg, #f2f4fa 0%, var(--cp-canvas) 100%);
}
/* Retícula de puntos sutil sobre el lienzo */
.aigw-client-auth-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(23, 32, 58, 0.055) 1px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
	pointer-events: none;
}
.aigw-client-auth-section .aigw-container { max-width: min(1800px, 94vw); width: 100%; }

/* ── Caja de autenticación clásica (la usa /registro/) ── */
.aigw-auth-box {
	max-width: 480px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--aigw-radius);
	padding: 48px;
	box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.10),
	            0 0 50px -10px rgba(var(--aigw-shadow-rgb), 0.05);
	position: relative;
	z-index: 5;
}
.aigw-auth-header { text-align: center; margin-bottom: 36px; }
.aigw-auth-icon {
	width: 60px; height: 60px; border-radius: 16px;
	margin: 0 auto 20px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--aigw-primary), var(--aigw-violet));
	color: #fff;
	box-shadow: 0 12px 28px -8px rgba(var(--aigw-shadow-rgb), 0.5);
}
.aigw-auth-icon svg { width: 28px; height: 28px; }
.aigw-auth-header h2 {
	font-family: var(--cp-display);
	font-size: 28px; font-weight: 800; color: var(--aigw-dark);
	margin-bottom: 12px; letter-spacing: -0.03em;
}
.aigw-auth-header p { color: var(--aigw-muted); font-size: 14.5px; line-height: 1.5; }
.aigw-auth-form { display: flex; flex-direction: column; }
.aigw-auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--aigw-muted); }
.aigw-auth-footer a { color: var(--aigw-primary); text-decoration: none; font-weight: 600; }
.aigw-auth-footer a:hover { text-decoration: underline; }
.aigw-auth-msg { margin-top: 20px; padding: 14px 18px; border-radius: 10px; font-size: 14px; text-align: left; line-height: 1.5; }
.aigw-auth-msg.error { background: rgba(239, 68, 68, 0.08); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.15); }
.aigw-auth-msg.success { background: rgba(16, 185, 129, 0.08); color: #047857; border: 1px solid rgba(16, 185, 129, 0.15); }

/* ══════════ LOGIN SPLIT-SCREEN ══════════ */
.cp-login {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	max-width: 1020px;
	margin: 0 auto;
	border-radius: 26px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(120, 130, 200, 0.22);
	box-shadow: 0 40px 90px -30px rgba(11, 16, 35, 0.35);
	position: relative;
	z-index: 5;
}
.cp-login-brand {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-height: 560px;
	padding: 52px 46px 40px;
	background:
		radial-gradient(560px 380px at 90% -10%, rgba(99, 102, 241, 0.38), transparent 62%),
		radial-gradient(420px 300px at -10% 110%, rgba(34, 211, 238, 0.20), transparent 60%),
		linear-gradient(165deg, var(--cp-ink-2) 0%, var(--cp-ink) 55%, #070b1a 100%);
}
.cp-login-brand::after {
	content: ''; position: absolute; inset: 0;
	background-image: var(--cp-noise);
	opacity: 0.07; pointer-events: none; z-index: -1;
}
.cp-login-orb {
	position: absolute;
	width: 460px; aspect-ratio: 1;
	right: -160px; top: -140px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0% 38%, rgba(99, 102, 241, 0.85) 50%, rgba(34, 211, 238, 0.75) 60%, transparent 72% 100%);
	filter: blur(34px);
	opacity: 0.55;
	animation: cpSpin 14s linear infinite;
	z-index: -1;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }
.cp-login-badge {
	display: inline-block;
	font-family: var(--cp-mono);
	font-size: 10.5px; font-weight: 600;
	letter-spacing: 0.24em; text-transform: uppercase;
	color: #67e8f9;
	padding: 7px 14px; border-radius: 99px;
	border: 1px solid rgba(34, 211, 238, 0.35);
	background: rgba(34, 211, 238, 0.08);
	margin-bottom: 26px;
}
.cp-login-brand h2 {
	font-family: var(--cp-display);
	font-size: clamp(30px, 3.2vw, 42px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: #fff;
	margin: 0 0 30px;
	max-width: 380px;
}
.cp-login-brand h2 em {
	font-style: normal;
	background: linear-gradient(100deg, #a5b4fc, var(--cp-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.cp-login-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.cp-login-feats li {
	display: flex; align-items: center; gap: 12px;
	font-family: var(--cp-mono);
	font-size: 12.5px; color: #aab3d6;
}
.cp-login-feats li::before {
	content: '✓';
	display: flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 7px;
	font-size: 11px; font-weight: 700; color: #67e8f9;
	background: rgba(34, 211, 238, 0.10);
	border: 1px solid rgba(34, 211, 238, 0.30);
	flex-shrink: 0;
}
.cp-login-brand-foot {
	font-family: var(--cp-mono);
	font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
	color: #4a547c;
}
.cp-login-panel {
	display: flex; flex-direction: column; justify-content: center;
	padding: 52px 48px;
}
.cp-login-panel h3 {
	font-family: var(--cp-display);
	font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
	color: var(--cp-text); margin: 0 0 8px;
}
.cp-login-sub { font-size: 14px; color: var(--cp-dim); margin: 0 0 30px; line-height: 1.55; }

/* ══════════ APP-SHELL (logueado) ══════════ */
.cp-shell {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

/* ── Sidebar de tinta ── */
.cp-side {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 150px);
	padding: 20px 14px 14px;
	border-radius: 22px;
	background: linear-gradient(168deg, var(--cp-ink-2) 0%, var(--cp-ink) 48%, #080c1c 100%);
	border: 1px solid rgba(120, 130, 200, 0.20);
	box-shadow: 0 24px 60px -20px rgba(11, 16, 35, 0.45);
	overflow: hidden;
	isolation: isolate;
}
.cp-side::before {
	content: ''; position: absolute; inset: -30% -30% auto;
	height: 70%;
	background:
		radial-gradient(340px 220px at 75% 20%, rgba(99, 102, 241, 0.30), transparent 65%),
		radial-gradient(260px 180px at 15% 5%, rgba(34, 211, 238, 0.14), transparent 60%);
	animation: cpAurora 16s ease-in-out infinite alternate;
	z-index: -1;
	pointer-events: none;
}
@keyframes cpAurora {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(6%, 4%, 0) scale(1.12); }
}
.cp-side::after {
	content: ''; position: absolute; inset: 0;
	background-image: var(--cp-noise);
	opacity: 0.06; pointer-events: none; z-index: -1;
}

.cp-side-user {
	display: flex; align-items: center; gap: 12px;
	padding: 8px 10px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 10px;
}
.cp-avatar {
	width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--cp-display);
	font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #fff;
	background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
	box-shadow: 0 8px 22px -6px rgba(99, 102, 241, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cp-side-user-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-side-company {
	font-family: var(--cp-display);
	font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
	color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-side-email {
	font-family: var(--cp-mono);
	font-size: 10.5px; color: #8b95b8;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Navegación ── */
.cp-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cp-nav-label {
	font-family: var(--cp-mono);
	font-size: 9.5px; font-weight: 600;
	letter-spacing: 0.24em; text-transform: uppercase;
	color: #566089;
	padding: 14px 12px 7px;
}
.cp-nav-label.admin {
	color: #b08b46;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	margin-top: 10px; padding-top: 16px;
}
.cp-tab {
	display: flex; align-items: center; gap: 11px;
	width: 100%; text-align: left;
	padding: 11px 12px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: none;
	cursor: pointer;
	color: #a4aed2;
	font-family: var(--aigw-font);
	font-size: 13.5px; font-weight: 600;
	line-height: 1;
	position: relative;
	transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cp-tab svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.75; transition: opacity 0.2s; }
.cp-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.cp-tab.active {
	color: #fff;
	background: linear-gradient(120deg, rgba(99, 102, 241, 0.30), rgba(139, 92, 246, 0.14));
	border-color: rgba(129, 140, 248, 0.38);
	box-shadow: 0 8px 20px -10px rgba(99, 102, 241, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.cp-tab.active::before {
	content: '';
	position: absolute; left: 3px; top: 22%;
	width: 3px; height: 56%; border-radius: 4px;
	background: var(--cp-cyan);
	box-shadow: 0 0 12px var(--cp-cyan);
}
.cp-tab.active svg { opacity: 1; color: #c7d2fe; }
.cp-nav-count {
	margin-left: auto;
	font-family: var(--cp-mono);
	font-size: 10.5px; font-weight: 600;
	padding: 3px 9px; border-radius: 99px;
	background: rgba(255, 255, 255, 0.09);
	color: #c7d2fe;
}
.cp-nav-spark {
	margin-left: auto;
	font-family: var(--cp-mono);
	font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
	padding: 3px 9px; border-radius: 99px;
	color: #67e8f9;
	background: rgba(34, 211, 238, 0.12);
	border: 1px solid rgba(34, 211, 238, 0.32);
}
/* Zona admin: acento ámbar */
.cp-tab-admin:hover { background: rgba(245, 158, 11, 0.08); }
.cp-tab-admin.active {
	background: linear-gradient(120deg, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0.08));
	border-color: rgba(245, 158, 11, 0.38);
	box-shadow: 0 8px 20px -10px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.cp-tab-admin.active::before { background: var(--cp-amber); box-shadow: 0 0 12px var(--cp-amber); }
.cp-tab-admin.active svg { color: #fcd34d; }

/* ── Pie del sidebar ── */
.cp-side-foot {
	display: flex; flex-direction: column; gap: 9px;
	padding-top: 14px; margin-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-side-wp {
	font-family: var(--cp-mono);
	font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
	color: #566089; text-align: center; text-decoration: none;
	transition: color 0.2s;
}
.cp-side-wp:hover { color: #c7d2fe; }
.cp-btn-logout {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 14px; border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #a4aed2;
	font-size: 13px; font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
}
.cp-btn-logout:hover {
	background: rgba(239, 68, 68, 0.14);
	color: #fca5a5;
	border-color: rgba(239, 68, 68, 0.35);
}

/* ── Cabecera del contenido ── */
.cp-main { min-width: 0; }
.cp-main-head {
	display: flex; justify-content: space-between; align-items: flex-end;
	gap: 18px; flex-wrap: wrap;
	margin-bottom: 28px;
}
.cp-hello-eyebrow {
	display: flex; align-items: center; gap: 9px;
	font-family: var(--cp-mono);
	font-size: 10.5px; font-weight: 600;
	letter-spacing: 0.26em; text-transform: uppercase;
	color: var(--cp-indigo);
	margin: 0 0 9px;
}
.cp-hello-eyebrow::before {
	content: '';
	width: 24px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--cp-indigo), var(--cp-cyan));
}
.cp-hello {
	font-family: var(--cp-display);
	font-size: clamp(27px, 3.4vw, 38px);
	font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
	color: var(--cp-text);
	margin: 0;
}
.cp-hello em {
	font-style: normal;
	background: linear-gradient(100deg, var(--cp-indigo), var(--cp-violet));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.cp-stats-mini { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-stat-pill {
	font-family: var(--cp-mono);
	font-size: 12px;
	padding: 9px 15px; border-radius: 12px;
	background: #fff;
	border: 1px solid var(--cp-line);
	color: var(--cp-dim);
	box-shadow: 0 2px 10px rgba(23, 32, 58, 0.04);
	display: inline-flex; align-items: center; gap: 6px;
}
.cp-stat-num { font-weight: 700; font-size: 14px; color: var(--cp-text); }
.cp-stat-pill.green { border-color: rgba(16, 185, 129, 0.30); background: #f0fdf7; color: #047857; }
.cp-stat-pill.green .cp-stat-num { color: #047857; }

/* ── Paneles + animación de entrada ── */
.cp-panel { display: none; }
.cp-panel.active { display: block; }
@keyframes cpRise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}
.cp-panel.active > * { animation: cpRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cp-panel.active .cp-licenses-grid > *,
.cp-panel.active .cp-support-grid > * { animation: cpRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cp-panel.active .cp-licenses-grid > *:nth-child(2),
.cp-panel.active .cp-support-grid > *:nth-child(2) { animation-delay: 0.07s; }
.cp-panel.active .cp-licenses-grid > *:nth-child(3),
.cp-panel.active .cp-support-grid > *:nth-child(3) { animation-delay: 0.14s; }
.cp-panel.active .cp-licenses-grid > *:nth-child(4) { animation-delay: 0.21s; }
.cp-panel.active .cp-licenses-grid > *:nth-child(5) { animation-delay: 0.28s; }
.cp-panel.active .cp-licenses-grid > *:nth-child(6) { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
	.cp-panel.active > *, .cp-panel.active .cp-licenses-grid > *, .cp-panel.active .cp-support-grid > * { animation: none; }
	.cp-side::before, .cp-login-orb { animation: none; }
}

/* ══════════ TARJETAS DE LICENCIA (access cards) ══════════ */
.cp-licenses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr));
	gap: 22px;
}
.cp-license-card {
	position: relative;
	border-radius: 18px;
	padding: 24px 24px 22px;
	background: var(--cp-card);
	border: 1px solid var(--cp-line);
	box-shadow: 0 4px 18px rgba(23, 32, 58, 0.05);
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
}
.cp-license-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 44px -16px rgba(23, 32, 58, 0.22);
}
/* Barrido holográfico al pasar el mouse */
.cp-license-card::after {
	content: '';
	position: absolute; top: 0; bottom: 0; left: -70%;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
	transform: skewX(-18deg);
	opacity: 0;
	pointer-events: none;
	z-index: 1;
}
.cp-license-card:hover::after { animation: cpSheen 0.9s ease forwards; }
@keyframes cpSheen {
	from { left: -70%; opacity: 1; }
	to   { left: 130%; opacity: 0; }
}
/* Licencia activa / por vencer = tarjeta oscura tipo keycard */
.cp-license-card.status-active,
.cp-license-card.status-expiring {
	background: linear-gradient(160deg, #161e46 0%, #0d1230 55%, #0a0e24 100%);
	border-color: rgba(120, 130, 200, 0.30);
}
.cp-license-card.status-active::before,
.cp-license-card.status-expiring::before {
	content: '';
	position: absolute; inset: 0;
	background:
		radial-gradient(420px 260px at 82% -12%, rgba(99, 102, 241, 0.36), transparent 62%),
		radial-gradient(300px 200px at -6% 112%, rgba(34, 211, 238, 0.16), transparent 60%);
	z-index: -1;
	pointer-events: none;
}
.cp-license-card.status-expiring::before {
	background:
		radial-gradient(420px 260px at 82% -12%, rgba(245, 158, 11, 0.30), transparent 62%),
		radial-gradient(300px 200px at -6% 112%, rgba(99, 102, 241, 0.16), transparent 60%);
}
.cp-license-card.inactive { opacity: 0.85; }

.cp-lic-header {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 15px; position: relative; z-index: 2;
}
.cp-lic-plan {
	font-family: var(--cp-mono);
	font-size: 10.5px; font-weight: 700;
	letter-spacing: 0.18em; text-transform: uppercase;
	padding: 5px 12px; border-radius: 8px;
	background: linear-gradient(120deg, var(--cp-indigo), var(--cp-violet));
	color: #fff;
	box-shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.60);
}
.cp-lic-status {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--cp-mono);
	font-size: 11px; font-weight: 600;
	padding: 4px 11px 4px 9px; border-radius: 99px;
}
.cp-lic-status::before {
	content: '';
	width: 7px; height: 7px; border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}
.cp-lic-status.active {
	background: rgba(16, 185, 129, 0.16);
	color: #34d399;
	border: 1px solid rgba(16, 185, 129, 0.35);
}
.cp-lic-status.active::before { box-shadow: 0 0 9px currentColor; animation: cpPulse 2s ease-in-out infinite; }
@keyframes cpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cp-lic-status.expired   { background: rgba(239, 68, 68, 0.09); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.22); }
.cp-lic-status.revoked   { background: rgba(100, 116, 139, 0.10); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.22); }
.cp-lic-status.suspended { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.28); }

.cp-invoices-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cp-invoices-table th {
	text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em; color: var(--cp-dim);
	border-bottom: 1px solid var(--cp-line);
}
.cp-invoices-table td { padding: 12px 14px; border-bottom: 1px solid var(--cp-line); color: var(--cp-text); }
.cp-invoices-table tr:last-child td { border-bottom: none; }

.cp-invoice-status {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--cp-mono);
	font-size: 11px; font-weight: 600;
	padding: 4px 11px 4px 9px; border-radius: 99px;
}
.cp-invoice-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.cp-invoice-status.completed { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.cp-invoice-status.pending   { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.28); }
.cp-invoice-status.failed    { background: rgba(239, 68, 68, 0.09); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.22); }
.cp-invoice-status.refunded  { background: rgba(100, 116, 139, 0.10); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.22); }

.cp-invoice-pdf-link { color: var(--aigw-primary); font-weight: 600; text-decoration: none; }
.cp-invoice-pdf-link:hover { text-decoration: underline; }
.cp-invoice-pending { color: var(--cp-dim); font-size: 12.5px; }

.cp-lic-domain {
	font-family: var(--cp-display);
	font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
	color: var(--cp-text);
	margin-bottom: 16px;
	position: relative; z-index: 2;
	overflow-wrap: anywhere;
}
.status-active .cp-lic-domain,
.status-expiring .cp-lic-domain { color: #fff; }

.cp-lic-key-wrap {
	display: flex; align-items: center; gap: 6px;
	padding: 7px 8px 7px 13px;
	border-radius: 12px;
	background: #f4f6fb;
	border: 1px solid var(--cp-line);
	margin-bottom: 18px;
	position: relative; z-index: 2;
}
.status-active .cp-lic-key-wrap,
.status-expiring .cp-lic-key-wrap {
	background: rgba(6, 10, 26, 0.55);
	border-color: rgba(120, 130, 200, 0.28);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.cp-lic-key {
	flex: 1; min-width: 0;
	border: none; background: none; outline: none;
	font-family: var(--cp-mono);
	font-size: 12.5px; letter-spacing: 0.04em;
	color: var(--cp-text);
}
.status-active .cp-lic-key,
.status-expiring .cp-lic-key { color: #c7d2fe; }
.cp-lic-btn {
	width: 31px; height: 31px; border-radius: 9px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--cp-line);
	background: #fff; color: var(--cp-dim);
	cursor: pointer;
	transition: all 0.15s;
}
.cp-lic-btn svg { width: 15px; height: 15px; }
.cp-lic-btn:hover { background: var(--cp-indigo); color: #fff; border-color: var(--cp-indigo); }
.cp-lic-btn.copied { background: var(--cp-green); color: #fff; border-color: var(--cp-green); }
.status-active .cp-lic-btn,
.status-expiring .cp-lic-btn {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
	color: #a4aed2;
}
.status-active .cp-lic-btn:hover,
.status-expiring .cp-lic-btn:hover { background: var(--cp-indigo); color: #fff; border-color: var(--cp-indigo); }
.status-active .cp-lic-btn.copied,
.status-expiring .cp-lic-btn.copied { background: var(--cp-green); color: #fff; border-color: var(--cp-green); }

.cp-lic-meta { display: flex; gap: 24px; flex-wrap: wrap; position: relative; z-index: 2; }
.cp-lic-meta-item { font-size: 13px; font-weight: 600; color: #3d4763; }
.status-active .cp-lic-meta-item,
.status-expiring .cp-lic-meta-item { color: #dbe2ff; }
.cp-lic-meta-label {
	display: block;
	font-family: var(--cp-mono);
	font-size: 9px; font-weight: 600;
	letter-spacing: 0.20em; text-transform: uppercase;
	color: #96a0bd;
	margin-bottom: 3px;
}
.status-active .cp-lic-meta-label,
.status-expiring .cp-lic-meta-label { color: #6b76a3; }
.cp-lic-meta-item.warn { color: #d97706; display: flex; align-items: flex-end; }
.status-expiring .cp-lic-meta-item.warn { color: #fbbf24; }
.cp-lic-header-right {
	display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.cp-lic-trial-badge {
	font-family: var(--cp-mono);
	font-size: 9px; font-weight: 700;
	letter-spacing: 0.16em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 6px;
	background: rgba(34, 211, 238, 0.14);
	color: #67e8f9;
	border: 1px solid rgba(34, 211, 238, 0.35);
}
.cp-license-card.status-expired .cp-lic-trial-badge,
.cp-license-card.status-off .cp-lic-trial-badge {
	background: rgba(100, 116, 139, 0.10);
	color: #64748b;
	border-color: rgba(100, 116, 139, 0.25);
}

.cp-lic-transfer-toggle {
	position: relative; z-index: 2;
	margin-top: 12px;
	background: none; border: none; padding: 0;
	font-size: 12px; font-weight: 600;
	color: var(--cp-dim); cursor: pointer;
	text-decoration: underline; text-underline-offset: 2px;
}
.status-active .cp-lic-transfer-toggle,
.status-expiring .cp-lic-transfer-toggle { color: rgba(255,255,255,0.75); }
.cp-lic-transfer-toggle:hover { color: var(--aigw-primary); }

.cp-lic-transfer-form {
	position: relative; z-index: 2;
	display: none;
	gap: 8px; align-items: center; flex-wrap: wrap;
	margin-top: 10px;
}
.cp-lic-transfer-form.open { display: flex; }
.cp-lic-transfer-form input[type="text"] {
	flex: 1; min-width: 140px;
	padding: 7px 10px; border-radius: 8px;
	border: 1px solid var(--cp-line);
	background: #fff; font-size: 12.5px;
}
.status-active .cp-lic-transfer-form input[type="text"],
.status-expiring .cp-lic-transfer-form input[type="text"] {
	background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.2);
}
.cp-lic-transfer-form button[type="submit"] {
	padding: 7px 14px; border-radius: 8px; border: none;
	background: var(--aigw-primary); color: #fff;
	font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.cp-lic-transfer-msg { width: 100%; font-size: 11.5px; }
.cp-lic-transfer-msg.success { color: #34d399; }
.cp-lic-transfer-msg.error { color: #f87171; }

/* ── Estado vacío ── */
.cp-empty {
	text-align: center;
	padding: 80px 24px;
	background: var(--cp-card);
	border: 1.5px dashed #c9d0e4;
	border-radius: 20px;
}
.cp-empty svg { animation: cpFloat 3.5s ease-in-out infinite; }
@keyframes cpFloat { 50% { transform: translateY(-8px); } }
.cp-empty h3 {
	font-family: var(--cp-display);
	font-size: 19px; font-weight: 700; color: var(--cp-text);
	margin: 16px 0 6px;
}
.cp-empty p { color: var(--cp-dim); font-size: 14px; }

/* ══════════ TARJETAS DE CONTENIDO ══════════ */
.cp-profile-card {
	background: var(--cp-card);
	border: 1px solid var(--cp-line);
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 4px 18px rgba(23, 32, 58, 0.05);
}
.cp-profile-card h3 {
	font-family: var(--cp-display);
	font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
	color: var(--cp-text); margin: 0 0 20px;
}
.cp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.cp-form-msg { font-size: 13px; display: none; }
.cp-form-msg.success { color: #059669; }
.cp-form-msg.error { color: #dc2626; }

.cp-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.cp-card-icon {
	width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.cp-card-icon svg { width: 20px; height: 20px; }
.cp-card-icon.blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45); }
.cp-card-icon.green  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.45); }
.cp-card-icon.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 6px 16px -4px rgba(124, 58, 237, 0.45); }
.cp-card-icon.amber  { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 16px -4px rgba(217, 119, 6, 0.45); }
.cp-card-head h3 { margin: 0 0 4px; }
.cp-card-head-text p { margin: 0; font-size: 13px; color: var(--cp-dim); line-height: 1.5; }

/* ── Comprar + métodos de pago ── */
.cp-buy-card { max-width: 640px; }
.cp-buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-pay-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px; margin-top: 2px;
}
.cp-pay-option {
	position: relative;
	display: flex; align-items: center; gap: 10px;
	padding: 13px 14px;
	border-radius: 13px;
	border: 2px solid var(--cp-line);
	background: #fff;
	cursor: pointer;
	transition: all 0.18s;
}
.cp-pay-option:hover { border-color: #c3cbe2; transform: translateY(-1px); }
.cp-pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.cp-pay-icon {
	width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.cp-pay-icon svg { width: 17px; height: 17px; }
.cp-pay-text strong { display: block; font-size: 13.5px; color: var(--cp-text); }
.cp-pay-text small { display: block; font-size: 11px; color: var(--cp-dim); margin-top: 2px; line-height: 1.3; }
.cp-pay-option.purple .cp-pay-icon { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.cp-pay-option.blue   .cp-pay-icon { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.cp-pay-option.green  .cp-pay-icon { background: rgba(5, 150, 105, 0.12); color: #059669; }
.cp-pay-option.amber  .cp-pay-icon { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.cp-pay-option.selected { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.cp-pay-option.selected.purple { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15); }
.cp-pay-option.selected.blue   { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.cp-pay-option.selected.green  { border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15); }
.cp-pay-option.selected.amber  { border-color: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.cp-pay-empty { font-size: 13px; color: var(--cp-dim); margin: 0; }

/* ── Trial: borde degradado ── */
.cp-trial-card {
	max-width: 560px;
	padding: 40px;
	border-radius: 20px;
	text-align: center;
	border: 1.5px solid transparent;
	background:
		linear-gradient(var(--cp-card), var(--cp-card)) padding-box,
		linear-gradient(120deg, var(--cp-indigo), var(--cp-cyan)) border-box;
	box-shadow: 0 10px 34px -12px rgba(99, 102, 241, 0.28);
}
.cp-trial-icon {
	width: 64px; height: 64px; border-radius: 17px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 20px;
	color: #fff;
	background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
	box-shadow: 0 10px 26px -8px rgba(99, 102, 241, 0.60);
}
.cp-trial-card h3 {
	font-family: var(--cp-display);
	font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
	color: var(--cp-text); margin: 0 0 8px;
}
.cp-trial-card p { font-size: 14px; color: var(--cp-dim); margin: 0 0 20px; line-height: 1.6; }
.cp-trial-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.cp-trial-features li {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 0;
	font-size: 14px; color: #334155;
	border-bottom: 1px solid #eef1f8;
}
.cp-trial-features li::before {
	content: '✓';
	display: flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; border-radius: 6px;
	font-size: 11px; font-weight: 700;
	color: var(--cp-indigo);
	background: rgba(99, 102, 241, 0.10);
	flex-shrink: 0;
}
.cp-trial-card .aigw-form-group { text-align: left; }

/* ── Soporte ── */
.cp-support-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.cp-support-card {
	background: var(--cp-card);
	border: 1px solid var(--cp-line);
	border-radius: 18px;
	padding: 30px 26px;
	box-shadow: 0 4px 18px rgba(23, 32, 58, 0.05);
	text-align: center;
	position: relative;
	overflow: hidden;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}
.cp-support-card::before {
	content: '';
	position: absolute; top: 0; left: 20%; right: 20%;
	height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.55), transparent);
	opacity: 0; transition: opacity 0.25s;
}
.cp-support-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(23, 32, 58, 0.18); }
.cp-support-card:hover::before { opacity: 1; }
.cp-support-icon {
	width: 48px; height: 48px; border-radius: 13px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 16px;
	color: var(--cp-indigo);
	background: rgba(99, 102, 241, 0.10);
}
.cp-support-icon.blue   { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.cp-support-icon.purple { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.cp-support-icon.amber  { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.cp-support-card h4 {
	font-family: var(--cp-display);
	font-size: 15.5px; font-weight: 700;
	color: var(--cp-text); margin: 0 0 8px;
}
.cp-support-card p { font-size: 13px; color: var(--cp-dim); margin: 0 0 16px; line-height: 1.5; }

/* ══════════ ZONA ADMIN (iframe License Manager) ══════════ */
.cp-admin-toolbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	padding: 14px 18px;
	margin-bottom: 16px;
	border-radius: 16px;
	background: linear-gradient(120deg, var(--cp-ink-2), var(--cp-ink));
	border: 1px solid rgba(120, 130, 200, 0.25);
	box-shadow: 0 12px 30px -14px rgba(11, 16, 35, 0.45);
}
.cp-admin-toolbar p {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	margin: 0; font-size: 13px; color: #a4aed2;
}
.cp-admin-badge {
	display: inline-flex; align-items: center; gap: 7px;
	font-family: var(--cp-mono);
	font-size: 10px; font-weight: 700;
	letter-spacing: 0.18em; text-transform: uppercase;
	padding: 5px 12px; border-radius: 99px;
	color: #fcd34d;
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.38);
}
.cp-admin-badge::before {
	content: '';
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--cp-amber);
	box-shadow: 0 0 9px var(--cp-amber);
	animation: cpPulse 2s ease-in-out infinite;
}
.cp-admin-toolbar .aigw-btn-outline {
	border-color: rgba(255, 255, 255, 0.25);
	color: #e2e8ff;
}
.cp-admin-toolbar .aigw-btn-outline:hover {
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}
.cp-admin-frame {
	display: block;
	width: 100%;
	min-height: 700px;
	border: none;
	border-radius: 0;
	background: transparent;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
	.cp-shell { grid-template-columns: 1fr; gap: 20px; }
	.cp-side { position: static; min-height: 0; }
	.cp-nav { flex-direction: row; align-items: center; overflow-x: auto; gap: 6px; padding: 4px 0; scrollbar-width: thin; }
	.cp-nav-label { display: none; }
	.cp-tab { width: auto; white-space: nowrap; flex-shrink: 0; }
	.cp-tab.active::before { display: none; }
	.cp-side-foot { flex-direction: row; align-items: center; justify-content: space-between; }
	.cp-side-wp { text-align: left; }
	.cp-btn-logout { padding: 9px 14px; }
}
@media (max-width: 900px) {
	.cp-login { grid-template-columns: 1fr; }
	.cp-login-brand { min-height: 0; padding: 40px 32px 32px; gap: 28px; }
	.cp-login-panel { padding: 40px 32px; }
}
@media (max-width: 640px) {
	.aigw-client-auth-section { padding: 104px 0 64px; }
	.cp-buy-grid { grid-template-columns: 1fr; }
	.cp-form-grid { grid-template-columns: 1fr; }
	.cp-main-head { align-items: flex-start; flex-direction: column; }
	.cp-side { padding: 16px 12px 12px; }
	.cp-profile-card { padding: 24px 20px; }
	.cp-trial-card { padding: 30px 22px; }
	.cp-admin-frame { min-height: 640px; }
}

/* Legacy dashboard (keep for compat) */
.aigw-dashboard-box {
	width: 100%;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: var(--aigw-radius);
	padding: 48px;
	box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.06);
	position: relative;
	z-index: 5;
}

.aigw-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--aigw-border);
	padding-bottom: 28px;
	margin-bottom: 36px;
}

.aigw-dashboard-header h2 {
	font-size: 32px;
	font-weight: 850;
	color: var(--aigw-dark);
	margin-bottom: 6px;
	letter-spacing: -0.03em;
}

.aigw-dashboard-header p {
	color: var(--aigw-muted);
	font-size: 15px;
}

.aigw-dashboard-content {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 40px;
	align-items: start;
}

.aigw-dashboard-main {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.aigw-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.aigw-card-header h3 {
	font-size: 19px;
	font-weight: 800;
	color: var(--aigw-dark);
}

.badge-count {
	background: rgba(var(--aigw-shadow-rgb), 0.08);
	color: var(--aigw-dark);
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
}

.aigw-empty-state {
	text-align: center;
	padding: 60px 40px;
}

.aigw-empty-state svg {
	width: 48px;
	height: 48px;
	color: var(--aigw-muted);
	margin-bottom: 18px;
}

.aigw-empty-state p {
	font-size: 15px;
	color: var(--aigw-ink);
	margin-bottom: 12px;
}

/* Tabla del Dashboard */
.aigw-table-responsive {
	overflow-x: auto;
	margin: 0 -10px;
}

.aigw-dashboard-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.aigw-dashboard-table th {
	padding: 12px 16px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--aigw-muted);
	border-bottom: 2px solid var(--aigw-border);
}

.aigw-dashboard-table td {
	padding: 16px;
	font-size: 14.5px;
	border-bottom: 1px solid var(--aigw-border);
	vertical-align: middle;
	color: var(--aigw-ink);
}

.aigw-dashboard-table tbody tr:last-child td {
	border-bottom: none;
}

.plan-badge {
	background: rgba(var(--aigw-shadow-rgb), 0.06);
	color: var(--aigw-dark);
	font-size: 11px;
	font-weight: 800;
	padding: 4px 8px;
	border-radius: 4px;
	letter-spacing: 0.02em;
}

.status-badge {
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 50px;
	display: inline-flex;
	align-items: center;
}

.status-badge.active {
	background: rgba(16, 185, 129, 0.1);
	color: #047857;
}

.status-badge.expired {
	background: rgba(239, 68, 68, 0.1);
	color: #b91c1c;
}

.status-badge.suspended,
.status-badge.revoked {
	background: rgba(100, 116, 139, 0.1);
	color: #475569;
}

/* Celda de la Clave de Licencia */
.license-key-wrapper {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid var(--aigw-border);
	border-radius: 6px;
	padding: 4px 8px;
	max-width: 280px;
}

.license-key-input {
	border: none;
	background: transparent;
	font-family: monospace;
	font-size: 14px;
	color: var(--aigw-dark);
	flex-grow: 1;
	width: 140px;
	padding: 6px 4px;
	outline: none;
}

.btn-toggle-key,
.btn-copy-key {
	border: none;
	background: transparent;
	color: var(--aigw-muted);
	padding: 6px;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	position: relative;
}

.btn-toggle-key:hover,
.btn-copy-key:hover {
	color: var(--aigw-dark);
	background: rgba(0, 0, 0, 0.05);
}

.btn-toggle-key svg,
.btn-copy-key svg {
	width: 15px;
	height: 15px;
}

/* Tooltip Copiado */
.btn-copy-key .tooltip-text {
	visibility: hidden;
	background-color: var(--aigw-dark);
	color: #fff;
	text-align: center;
	padding: 5px 10px;
	border-radius: 6px;
	position: absolute;
	z-index: 10;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity 0.3s;
	font-size: 11px;
	white-space: nowrap;
}

.btn-copy-key .tooltip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: var(--aigw-dark) transparent transparent transparent;
}

.btn-copy-key .tooltip-text.show {
	visibility: visible;
	opacity: 1;
}

/* Sidebar del Dashboard */
.aigw-dashboard-sidebar {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* ── Profile edit section ── */
.aigw-profile-section {
	background: #fff;
	border: 1px solid var(--aigw-border);
	border-radius: 14px;
	margin-bottom: 24px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(15,23,42,.03);
}
.aigw-profile-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 16px 20px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--aigw-ink);
	transition: background .2s;
}
.aigw-profile-toggle:hover { background: #f8fafc; }
.aigw-profile-section.open .aigw-chevron { transform: rotate(180deg); }
.aigw-profile-form-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}
.aigw-profile-section.open .aigw-profile-form-wrap { max-height: 500px; }
.aigw-profile-form {
	padding: 0 20px 20px;
}
.aigw-profile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 600px) {
	.aigw-profile-grid { grid-template-columns: 1fr; }
}

.aigw-sidebar-card {
	background: #ffffff;
	border: 1px solid var(--aigw-border);
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.aigw-sidebar-card h4 {
	font-size: 16px;
	font-weight: 800;
	color: var(--aigw-dark);
	margin-bottom: 12px;
	letter-spacing: -0.01em;
}

.aigw-sidebar-card p {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--aigw-muted);
	margin-bottom: 20px;
}

.aigw-sidebar-form .aigw-form-group {
	margin-bottom: 16px;
}

.aigw-sidebar-form .aigw-form-group label {
	font-size: 10px;
	margin-bottom: 6px;
}

.aigw-sidebar-form .aigw-form-group input {
	padding: 10px 14px;
	font-size: 13.5px;
}

/* Responsividad del Dashboard */
@media (max-width: 1024px) {
	.aigw-dashboard-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.aigw-dashboard-box {
		padding: 32px 24px;
	}
}

@media (max-width: 640px) {
	.aigw-dashboard-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	
	.aigw-dashboard-header .aigw-btn {
		width: 100%;
		justify-content: center;
	}
	
	.aigw-dashboard-main {
		padding: 20px;
	}
}

