/*
Theme Name: Mi Tema Corporativo
Theme URI: https://misitio.com
Author: Johann Avila
Author URI: https://misitio.com
Description: Tema corporativo personalizado creado desde Visual Studio Code.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mi-tema-corporativo
*/

:root {
  --bg: #040915;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --text: #e9ecf5;
  --muted: #b7c3d7;
  --primary: #7c5dff;
  --secondary: #4fe7f5;
  --accent: #ffb86c;
  --border: rgba(255, 255, 255, 0.08);
  --header-opacity: 0.08;
  --veil-strength: 0.55;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shell-width: min(1180px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(124, 93, 255, 0.14), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(79, 231, 245, 0.14), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  color-scheme: dark;
}

.bg-aurora {
  position: absolute;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
}

.glow-1 {
  width: 40vw;
  height: 40vw;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(124, 93, 255, 0.35), transparent 55%);
}

.glow-2 {
  width: 46vw;
  height: 46vw;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(79, 231, 245, 0.32), transparent 60%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 16px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(12px);
  background: rgba(4, 9, 21, var(--header-opacity));
  border: 1px solid rgba(255, 255, 255, calc(var(--header-opacity) * 0.7));
  box-shadow: 0 16px 40px rgba(0, 0, 0, calc(var(--header-opacity) + 0.1));
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c5dff, #4fe7f5);
  color: #0a0f1d;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(124, 93, 255, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 12px;
}

.nav-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-list li a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.header-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-content {
  position: relative;
  z-index: 1;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 70vh 0 88px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(135deg, rgba(124, 93, 255, 0.12), rgba(79, 231, 245, 0.08)), var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.video-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.video-frame {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: #000;
  position: relative;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 9, 21, calc(var(--veil-strength) * 1.00)) 0%,
    rgba(4, 9, 21, calc(var(--veil-strength) * 0.65)) 40%,
    rgba(4, 9, 21, calc(var(--veil-strength) * 1.30)) 100%
  );
  pointer-events: none;
}

.fade-tuner {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 30;
  background: rgba(4, 9, 21, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.fade-icon {
  font-size: 1.1rem;
}

.fade-tuner label {
  font-size: 0.9rem;
  color: var(--muted);
}

.fade-tuner input[type="range"] {
  accent-color: var(--primary);
}

.fade-value {
  color: var(--text);
  font-weight: 600;
  min-width: 38px;
  text-align: right;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.gradient-text {
  background: linear-gradient(120deg, #7c5dff 0%, #4fe7f5 60%, #ffb86c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #7c5dff, #4fe7f5);
  color: #0a0f1d;
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(124, 93, 255, 0.35);
}

.btn.ghost {
  color: var(--text);
  background: var(--surface);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.pill.soft {
  background: rgba(124, 93, 255, 0.12);
  color: #d3c9ff;
  border-color: rgba(124, 93, 255, 0.25);
}

.hero-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.panel-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.overline {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  margin: 0 0 6px;
}

.panel-card h2 {
  margin: 0 0 10px;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.panel-list li {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.panel-highlights {
  display: grid;
  gap: 10px;
}

.highlight-card {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124, 93, 255, 0.1), rgba(4, 9, 21, 0.8));
}

.highlight-card h3 {
  margin: 8px 0 6px;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
}

.section-block {
  margin-top: 64px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.service-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(79, 231, 245, 0.08), rgba(4, 9, 21, 0.9));
  display: grid;
  gap: 12px;
}

.service-top h3 {
  margin: 10px 0 0;
  font-size: 1.2rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.service-list li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.content-card {
  padding: clamp(20px, 4vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-card.empty {
  text-align: center;
}

.rich-text {
  color: var(--muted);
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  color: var(--text);
}

.rich-text a {
  color: #9de1ff;
  text-decoration: underline;
}

.rich-text p {
  margin: 0 0 12px;
}

.rich-text ul,
.rich-text ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.post-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.post-body {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.post-excerpt {
  color: var(--muted);
  margin: 0;
}

.read-more {
  color: #9de1ff;
  font-weight: 600;
  justify-self: flex-start;
}

.cta {
  margin-top: 72px;
  padding: 1px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, #7c5dff, #4fe7f5);
}

.cta-inner {
  padding: 28px;
  background: #040915;
  border-radius: inherit;
  display: grid;
  gap: 10px;
  text-align: center;
}

.cta-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--shell-width);
  margin: 32px auto 0;
  padding: 18px 0 26px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.chat-section .ghost-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.chat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4fe7f5;
  box-shadow: 0 0 0 6px rgba(79, 231, 245, 0.14);
}

.chat-title {
  font-weight: 700;
}

.chat-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.chat-window {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  min-height: 160px;
  display: grid;
  gap: 10px;
}

.chat-bubble {
  max-width: 640px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.5;
}

.chat-bubble.user {
  background: rgba(124, 93, 255, 0.15);
  border: 1px solid rgba(124, 93, 255, 0.35);
  justify-self: start;
}

.chat-bubble.agent {
  background: rgba(79, 231, 245, 0.12);
  border: 1px solid rgba(79, 231, 245, 0.35);
  justify-self: start;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-form input,
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.chat-form input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.custom-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  width: min(420px, 94vw);
  height: min(95vh, 760px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: #0f172a;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.custom-chat.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-chat__header {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9fafb;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.custom-chat__header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-chat__header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124, 93, 255, 0.3);
  background: white;
}

.custom-chat__header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-chat__header-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0a0f1d;
}

.custom-chat__header-status {
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 500;
}

.custom-chat__tabs {
  display: inline-flex;
  gap: 8px;
  background: #eef2ff;
  padding: 4px;
  border-radius: 999px;
}

.custom-chat__tab {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #6366f1;
  cursor: pointer;
}

.custom-chat__tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.16);
}

.custom-chat__body {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  background: #f9fafb;
  overflow-y: auto;
}

.custom-chat__greeting {
  text-align: center;
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
}

.custom-chat__greeting img {
  width: 46px;
  height: 46px;
  margin: 0 auto;
}

.custom-chat__collapsible {
  max-height: 900px; /* alto amplio para evitar cortar chips/sugerencias */
  overflow: visible;
  opacity: 1;
  transform: none;
  padding-top: 8px;
  pointer-events: auto;
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease;
}

.custom-chat__collapsible.is-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  pointer-events: none;
  overflow: hidden;
}

.custom-chat__toggle {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-chat__toggle:focus-visible {
  outline: 2px solid #7c5dff;
  outline-offset: 2px;
}

.custom-chat__suggestions {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

/* Scrollbar sutil y casi transparente para sugerencias/áreas scrollables */
.chat-window::-webkit-scrollbar,
.custom-chat__suggestions::-webkit-scrollbar,
.custom-chat__messages::-webkit-scrollbar,
.custom-chat__body::-webkit-scrollbar {
  width: 8px;
}

.chat-window::-webkit-scrollbar-track,
.custom-chat__suggestions::-webkit-scrollbar-track,
.custom-chat__messages::-webkit-scrollbar-track,
.custom-chat__body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-window::-webkit-scrollbar-thumb,
.custom-chat__suggestions::-webkit-scrollbar-thumb,
.custom-chat__messages::-webkit-scrollbar-thumb,
.custom-chat__body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.chat-window {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.custom-chat__suggestions::-webkit-scrollbar,
.custom-chat__messages::-webkit-scrollbar,
.custom-chat__body::-webkit-scrollbar {
  width: 8px;
}

.custom-chat__suggestions::-webkit-scrollbar-track,
.custom-chat__messages::-webkit-scrollbar-track,
.custom-chat__body::-webkit-scrollbar-track {
  background: transparent;
}

.custom-chat__suggestions::-webkit-scrollbar-thumb,
.custom-chat__messages::-webkit-scrollbar-thumb,
.custom-chat__body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.custom-chat__suggestions {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.custom-chat__suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.94rem;
}

.custom-chat__suggestion:hover {
  border-color: #7c5dff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.custom-chat__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-chat__chip {
  padding: 6px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  cursor: pointer;
  font-size: 0.92rem;
}

.custom-chat__chip.active {
  border-color: #7c5dff;
  color: #7c5dff;
  box-shadow: 0 6px 16px rgba(124, 93, 255, 0.18);
}

.custom-chat__messages {
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 10px;
}

.custom-chat__message-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.custom-chat__message-wrapper.user {
  justify-content: flex-end;
}

.custom-chat__message-wrapper.agent {
  justify-content: flex-start;
}

.custom-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 70%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(124, 93, 255, 0.2);
  background: white;
}

.custom-chat__bubble {
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  max-width: 70%;
}

.custom-chat__bubble.user {
  background: rgba(124, 93, 255, 0.12);
  border-color: rgba(124, 93, 255, 0.25);
}

.custom-chat__footer {
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 8px;
}

.custom-chat__input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.custom-chat__input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0c1019b1 !important;
  font-size: 1rem;
  font-weight: 700;
  caret-color: #12151f;
  text-shadow: 0 0 0 #d0d3d8;
}

.custom-chat__input::placeholder {
  color: rgba(10, 15, 29, 0.4) !important;
}

.custom-chat__send {
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #f0eff6, #98e7ee);
  color: #0a0f1d;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(124, 93, 255, 0.26);
}

.custom-chat__status {
  font-size: 0.9rem;
  color: #475569;
  text-align: right;
}

.chat-form input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.chat-form input::placeholder {
  color: var(--muted);
}

.chat-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2def3, #4fe7f5);
  color: #0a0f1d;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 32px rgba(124, 93, 255, 0.3);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}

.chat-launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(143, 118, 255, 0.36);
}

.chat-launcher.is-active {
  transform: translate(-270%, 4px) scale(0.95);
  box-shadow: 0 12px 28px rgba(46, 38, 82, 0.28);
}

.chat-launcher__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.chat-launcher__label {
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .brand {
    justify-content: space-between;
  }

  .site-nav .nav-list {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 18px;
  }

  .site-header {
    position: relative;
  }

  .brand-tagline {
    max-width: 70vw;
  }

  .video-intro {
    height: 100vh;
  }

  .page-content {
    padding: 110vh 0 80px;
  }

  .video-frame video {
    object-fit: cover;
    object-position: center center;
    width: 100vw;
    height: 100vh;
  }
}
