/* ---------- Texto ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 18px;
}

.kicker::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent-cyan);
}

h1 {
  font-size: clamp(38px, 6vw, 74px);
}

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 24px);
}

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.75;
}

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

em {
  font-style: normal;
  color: var(--ink);
  position: relative;
}

/* ---------- Marca / logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-mark .bar {
  stroke-linecap: round;
}

.brand-mark .bar-1 {
  stroke: var(--accent-blue);
}

.brand-mark .bar-2 {
  stroke: var(--accent-cyan);
}

.brand-mark .bar-3 {
  stroke: var(--accent-green);
}

.brand-mark .bracket {
  stroke: var(--ink);
}

/* ---------- Panel decorativo (split "por qué EGTOC") ---------- */
.code-panel-bar:nth-child(1) {
  width: 92%;
}

.code-panel-bar:nth-child(2) {
  width: 64%;
  margin-left: 22px;
}

.code-panel-bar:nth-child(3) {
  width: 78%;
}

.code-panel-bar:nth-child(4) {
  width: 45%;
  margin-left: 22px;
}

.code-panel-bar:nth-child(5) {
  width: 88%;
}

.code-panel-bar:nth-child(6) {
  width: 33%;
  margin-left: 22px;
  margin-bottom: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(244, 246, 250, 0.15);
}

.btn-accent {
  background: var(--gradient);
  color: #05070a;
  font-weight: 600;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--surface);
}

.btn-full {
  width: 100%;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Tarjetas ---------- */
.card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-cyan);
}

.card h3 {
  margin-bottom: 12px;
}

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

/* tarjeta de proyecto (categorias) */
.project-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.project-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.project-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
  display: block;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Proceso ---------- */
.process-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-2);
}

.process-step h3 {
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  max-width: 480px;
}

/* ---------- Diff list (split) ---------- */
.diff-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
}

.diff-item p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Stats hero ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.stat-sub {
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- Planes ---------- */
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.plan-card.is-featured {
  border-color: var(--accent-cyan);
  background: var(--bg-elevated);
  box-shadow: var(--glow);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #05070a;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.plan-card h3 {
  margin-bottom: 8px;
}

.plan-card .plan-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
}

.plan-features svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--ink);
}

.faq-question .plus {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
  transition: transform var(--dur-fast) var(--ease);
}

.faq-question .plus::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.faq-question .plus::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

.faq-item.is-open .plus::after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}

.faq-answer p {
  padding: 0 4px 26px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Formulario ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-note {
  margin-bottom: 4px;
}

.footer-tagline {
  margin-top: 16px;
  max-width: 260px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field textarea {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-cyan);
  background: var(--bg-elevated);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff6767;
}

.field-error {
  font-size: 12px;
  color: #ff6767;
  min-height: 14px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-green);
  flex-shrink: 0;
}

/* ---------- Nav toggle icon ---------- */
.nav-toggle {
  width: 24px;
  height: 18px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Estándar EGTOC de chat / audio / envío ----------
   No hay chat activo en este sitio todavía — se deja listo para que,
   si en algún momento se suma uno acá, use los mismos valores exactos
   que el Asistente IA del panel de administración (fuente:
   admin-engine/public/admin.css) en vez de improvisar uno nuevo.
   Se definen con nombre propio (--chat-*) para no pisar el degradé/
   paleta general del sitio (--gradient, --accent-*). */
:root {
  --chat-gradient: linear-gradient(135deg, #1f6feb, #22b8e6, #24d6b4);
  --chat-blob: 62% 38% 55% 45% / 45% 55% 45% 55%;
  --chat-danger: #e10600;
  --chat-input-radius: 14px;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--chat-input-radius);
  padding: 10px 15px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: border-color var(--dur-fast) var(--ease);
}

.chat-form input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.chat-form button,
.chat-mic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--chat-gradient);
  border: none;
  color: #05070a;
  border-radius: var(--chat-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}

.chat-form button:hover,
.chat-mic:hover {
  transform: scale(1.06);
}

.chat-form button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.chat-mic.is-recording {
  background: var(--chat-danger);
  color: #fff;
  animation: chat-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes chat-mic-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(225, 6, 0, 0);
  }
}

.chat-audio {
  display: flex;
  align-items: center;
  gap: 11px;
}

.chat-audio-play {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: var(--chat-blob);
  border: none;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-audio-waveform {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 70px;
}

.chat-audio-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  display: block;
}

.chat-audio-duration {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
