/* Estilos de login.html. Eran 1.183 líneas de <style> inline; ahora se cachean y se editan aparte. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; } }
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2c7a4b;
  --primary-dark: #1e5c37;
  --primary-light: #e0f0e8;
  --primary-mid: #3a9960;
  --accent: #f5f0e8;
  --accent-warm: #e8d9c0;
  --gray-100: #f8fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #64748b;
  --gray-600: #5b6577;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  background: var(--gray-100);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout principal ────────────────────────────────── */
.login-page {
  display: flex;
  min-height: 100vh;
  animation: pageLoad 0.5s ease both;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Panel izquierdo (branding) ──────────────────────── */
.login-brand {
  flex: 0 0 48%;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-mid) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 52px;
  position: relative;
  overflow: hidden;
}

/* Formas decorativas de fondo */
.login-brand::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -120px;
  right: -140px;
}

.login-brand::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -80px;
  left: -80px;
}

.brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: brandIn 0.7s 0.15s ease both;
}

@keyframes brandIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.brand-icon-wrap svg {
  animation: levitate 3.6s ease-in-out infinite;
}

.brand-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.18);
  margin-bottom: 28px;
  font-size: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.brand-name {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto 28px;
}

/* Pills de características */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 300px;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.90);
  font-size: 13.5px;
  font-weight: 500;
}

.brand-feature-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Burbujas flotantes ──────────────────────────────── */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  animation: bubbleFloat linear infinite;
  pointer-events: none;
}

@keyframes bubbleFloat {
  0%   { transform: translateY(0)   translateX(0)    scale(1); }
  25%  { transform: translateY(-18px) translateX(8px)  scale(1.03); }
  50%  { transform: translateY(-34px) translateX(-6px) scale(1); }
  75%  { transform: translateY(-18px) translateX(10px) scale(0.97); }
  100% { transform: translateY(0)   translateX(0)    scale(1); }
}

/* Decoracion de mascotas sutil abajo */
.brand-deco {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  opacity: 0.22;
  letter-spacing: 4px;
  z-index: 1;
}

/* ── Panel derecho (formulario) ──────────────────────── */
.login-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: var(--white);
}

.login-form-inner {
  width: 100%;
  max-width: 400px;
  animation: formIn 0.6s 0.25s ease both;
}

@keyframes formIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-header {
  margin-bottom: 38px;
}

.form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 400;
}

/* ── Mensaje de error ────────────────────────────────── */
.error-msg {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.5;
}

.error-msg.visible {
  display: flex;
  animation: errorShake 0.35s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
}

.error-msg::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #c53030;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

/* ── Grupos de formulario ────────────────────────────── */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--transition);
}

.form-group input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: var(--font-family);
  color: var(--gray-900);
  background: var(--gray-100);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.form-group input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(44,122,75,0.12);
}

.form-group input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  opacity: 0.85;
}

/* ── Boton de submit ─────────────────────────────────── */
.btn-biometria { background: var(--white); color: var(--primary); border: 1.5px solid var(--primary) !important; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-biometria:hover { background: var(--primary-light); }
.btn-biometria[disabled] { opacity: .7; cursor: wait; }
.btn-biometria-sec { background: none; border: none !important; color: var(--gray-600); font-weight: 500; font-size: 0.82rem; padding: 6px; margin-top: 4px; }
.btn-biometria-sec:hover { background: none; color: var(--primary); }
.btn-biometria-sec svg { width: 16px; height: 16px; }
.btn-login {
  width: 100%;
  padding: 13px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(44,122,75,0.25);
  position: relative;
  overflow: hidden;
}

.btn-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.btn-login:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(44,122,75,0.32);
  transform: translateY(-1px);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(44,122,75,0.20);
}

.btn-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Estado de carga en el boton */
.btn-login.loading {
  color: transparent;
}

.btn-login.loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Footer del formulario ───────────────────────────── */
.form-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-600);
}

.form-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.form-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--gray-400);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Badge de version / copyright */
.form-panel-footer {
  position: absolute;
  bottom: 24px;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

/* ── Modal de contacto ───────────────────────────────── */
.contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.contact-overlay.visible { display: flex; }
.contact-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
}
.contact-modal h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}
.contact-modal p.contact-sub {
  margin: 0 0 20px;
  font-size: 0.83rem;
  color: #64748b;
}
.contact-modal label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.contact-modal input,
.contact-modal textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1e293b;
  background: #f8fafc;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 14px;
}
.contact-modal input:focus,
.contact-modal textarea:focus { border-color: var(--primary, #2563eb); background: #fff; }
.contact-modal textarea { resize: vertical; min-height: 90px; }
.contact-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.4rem; color: #94a3b8;
  cursor: pointer; line-height: 1;
}
.contact-close:hover { color: #1e293b; }
.contact-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.contact-btn-cancel {
  background: none; border: 1.5px solid #e2e8f0;
  border-radius: 8px; padding: 8px 18px;
  font-size: 0.85rem; color: #64748b;
  cursor: pointer;
}
.contact-btn-cancel:hover { background: #f1f5f9; }
.contact-btn-send {
  background: var(--primary, #2563eb); border: none;
  border-radius: 8px; padding: 8px 22px;
  font-size: 0.85rem; color: #fff; font-weight: 600;
  cursor: pointer;
}
.contact-btn-send:hover { opacity: 0.9; }
.contact-btn-send:disabled { opacity: 0.6; cursor: default; }
.contact-msg {
  font-size: 0.83rem;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}
.contact-msg.ok  { color: #16a34a; }
.contact-msg.err { color: #dc2626; }
/* Honeypot oculto */
.hp-field { display: none !important; }
.contact-footer-link {
  color: inherit; opacity: 0.6; font-size: 0.78rem;
  text-decoration: none; background: none; border: none;
  cursor: pointer; padding: 0; font-family: inherit;
}
.contact-footer-link:hover { opacity: 1; text-decoration: underline; }

/* ── Botón Google OAuth ──────────────────────────────── */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--gray-800);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn-google:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-google:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.btn-google svg { flex-shrink: 0; }

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── Modal registro Google ────────────────────────────── */
.gmodal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.gmodal-overlay.visible { display: flex; }
.gmodal {
  background: var(--white);
  border-radius: 18px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  position: relative;
}
.gmodal-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.gmodal h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.gmodal p.gmodal-sub { font-size: 13.5px; color: var(--gray-600); margin-bottom: 24px; line-height: 1.5; }
.gmodal-field { margin-bottom: 18px; }
.gmodal-field label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.gmodal-field input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius);
  font-size: 14.5px; font-family: var(--font-family); color: var(--gray-900);
  background: var(--gray-100); outline: none; box-sizing: border-box;
  transition: border-color var(--transition), background var(--transition);
}
.gmodal-field input:focus { border-color: var(--primary); background: var(--white); }
.gmodal-email-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.gmodal-actions { display: flex; gap: 10px; }
.gmodal-btn-cancel {
  flex: 1; padding: 11px; background: var(--gray-100);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--gray-600);
  cursor: pointer; font-family: var(--font-family);
}
.gmodal-btn-cancel:hover { background: var(--gray-200); }
.gmodal-btn-submit {
  flex: 2; padding: 11px; background: var(--primary);
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: #fff;
  cursor: pointer; font-family: var(--font-family);
  transition: background var(--transition);
}
.gmodal-btn-submit:hover:not(:disabled) { background: var(--primary-dark); }
.gmodal-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.gmodal-err { font-size: 13px; color: #c53030; margin-top: 12px; text-align: center; min-height: 18px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .login-brand {
    display: none;
  }

  .login-form-panel {
    padding: 40px 24px;
    background: var(--gray-100);
  }

  .login-form-inner {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 400px) {
  .login-form-inner {
    padding: 28px 20px;
  }
}

/* ── App Preview (trailer) ───────────────────────────────── */
@keyframes mockupFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}

@keyframes showScreen {
  0%      { opacity: 0; transform: translateY(6px); }
  6%      { opacity: 1; transform: translateY(0); }
  27%     { opacity: 1; transform: translateY(0); }
  33.33%  { opacity: 0; transform: translateY(-6px); }
  100%    { opacity: 0; }
}

.app-preview {
  margin-top: 28px;
  width: 100%;
  max-width: 310px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  animation: mockupFloat 5s ease-in-out infinite;
}

.app-preview-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ap-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.ap-dot:nth-child(1) { background: rgba(252,129,129,0.55); }
.ap-dot:nth-child(2) { background: rgba(246,173,85,0.55); }
.ap-dot:nth-child(3) { background: rgba(104,211,145,0.55); }
.ap-title { font-size: 10px; color: rgba(255,255,255,0.45); margin-left: 6px; font-weight: 500; letter-spacing: 0.04em; }

.app-preview-screens {
  position: relative;
  height: 148px;
}

.preview-screen {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  opacity: 0;
  animation: showScreen 15s linear infinite;
}
.preview-screen:nth-child(1) { animation-delay: 0s; }
.preview-screen:nth-child(2) { animation-delay: -10s; }
.preview-screen:nth-child(3) { animation-delay: -5s; }

/* Screen header */
.ps-header {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Screen 1 – Dashboard stats + bar chart */
.ps-stats { display: flex; gap: 6px; margin-bottom: 10px; }
.ps-stat {
  flex: 1;
  background: rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 7px 5px;
  text-align: center;
}
.ps-num { font-size: 17px; font-weight: 700; color: #fff; line-height: 1; }
.ps-lbl { font-size: 8.5px; color: rgba(255,255,255,0.50); margin-top: 3px; }
.ps-chart { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.ps-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(255,255,255,0.20);
}
.ps-bar:nth-child(odd)  { background: rgba(255,255,255,0.35); }
.ps-bar:nth-child(3)    { background: rgba(104,211,145,0.55); }

/* Screen 2 – Agenda */
.ps-citas { display: flex; flex-direction: column; gap: 6px; }
.ps-cita {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 7px;
  padding: 6px 8px;
  border-left: 2.5px solid rgba(255,255,255,0.20);
}
.ps-cita.g { border-left-color: #68d391; }
.ps-cita.o { border-left-color: #f6ad55; }
.ps-cita.b { border-left-color: #63b3ed; }
.ps-time { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.65); min-width: 30px; }
.ps-info { flex: 1; }
.ps-pname { font-size: 10px; font-weight: 600; color: #fff; }
.ps-svc   { font-size: 8.5px; color: rgba(255,255,255,0.45); }
.ps-badge {
  font-size: 8px; font-weight: 600;
  padding: 2px 6px; border-radius: 99px;
}
.ps-badge.g { background: rgba(104,211,145,0.20); color: #68d391; }
.ps-badge.o { background: rgba(246,173,85,0.20);  color: #f6ad55; }
.ps-badge.b { background: rgba(99,179,237,0.20);  color: #63b3ed; }

/* Screen 3 – Mascotas */
.ps-pets { display: flex; gap: 7px; }
.ps-pet-card {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.ps-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  margin: 0 auto 6px;
}
.ps-pnm { font-size: 10px; font-weight: 600; color: #fff; }
.ps-pbr { font-size: 8px; color: rgba(255,255,255,0.42); margin-top: 2px; }
.ps-tag {
  display: inline-block;
  margin-top: 5px;
  font-size: 7.5px; font-weight: 600;
  padding: 1px 5px; border-radius: 99px;
  background: rgba(104,211,145,0.18); color: #68d391;
}

/* ── Boton Ver Demo ──────────────────────────────── */
.trailer-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 20px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 50px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-family);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.trailer-open-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.trailer-open-btn-form {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

/* ── Trailer Modal ───────────────────────────────── */
#trailerModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
#trailerModal.open { display: flex; }

.trailer-wrap {
  width: min(1060px, 96vw);
  background: #0d1820;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
  position: relative;
  animation: trailerIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes trailerIn {
  from { opacity:0; transform: scale(0.93) translateY(16px); }
  to   { opacity:1; transform: scale(1)    translateY(0); }
}

.trailer-progress {
  height: 3px;
  background: rgba(255,255,255,0.07);
  position: relative;
}
.trailer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2c7a4b, #68d391);
  width: 0%;
  transition: width 0.08s linear;
}

.trailer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trailer-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-dots { display:flex; gap:4px; }
.tl-dot  { width:9px;height:9px;border-radius:50%; }
.tl-dot:nth-child(1) { background:rgba(252,129,129,0.55); }
.tl-dot:nth-child(2) { background:rgba(246,173,85,0.55); }
.tl-dot:nth-child(3) { background:rgba(104,211,145,0.55); }
.tl-brand { font-size:12.5px;font-weight:700;color:rgba(255,255,255,0.65);margin-left:6px; }
.tl-subtitle { font-size:11px;color:rgba(255,255,255,0.28); }

.trailer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-family);
  line-height: 1;
}
.trailer-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.trailer-slides {
  position: relative;
  height: 520px;
  overflow: hidden;
}

/* ── Slides ──────────────────────────────────────── */
.tslide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(28px);
}
.tslide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.tslide.exit {
  opacity: 0;
  transform: translateX(-28px);
}

/* Special: full-width slides (intro, outro) */
.tslide.full { flex-direction: column; align-items: center; justify-content: center; }

/* Left text panel */
.ts-text {
  width: 252px;
  min-width: 252px;
  padding: 30px 24px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ts-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #68d391;
  background: rgba(104,211,145,0.11);
  border: 1px solid rgba(104,211,145,0.20);
  border-radius: 99px;
  padding: 3px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 13px;
  width: fit-content;
}
.ts-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.ts-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 16px;
}
.ts-bullets { display:flex; flex-direction:column; gap:7px; }
.ts-bullet {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.60);
}
.ts-bullet::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #68d391;
  flex-shrink: 0;
}

/* Right mockup panel */
.ts-mock {
  flex: 1;
  height: 100%;
  background: rgba(255,255,255,0.025);
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* ── Shared mockup primitives ─────────────────────── */
.mk-topbar {
  display:flex;align-items:center;gap:5px;
  font-size:9px;color:rgba(255,255,255,0.25);font-weight:600;
  letter-spacing:0.06em;text-transform:uppercase;
  padding:6px 10px;background:rgba(255,255,255,0.04);
  border-radius:6px;margin-bottom:2px;
}
.mk-d{width:6px;height:6px;border-radius:50%;}
.mk-d.r{background:rgba(252,129,129,0.55);}
.mk-d.y{background:rgba(246,173,85,0.55);}
.mk-d.g{background:rgba(104,211,145,0.55);}

.mk-kpis{display:flex;gap:7px;}
.mk-kpi{flex:1;background:rgba(255,255,255,0.05);border-radius:8px;padding:10px 8px;text-align:center;border:1px solid rgba(255,255,255,0.06);}
.mk-kpi-v{font-size:19px;font-weight:800;color:#fff;line-height:1;}
.mk-kpi-l{font-size:7.5px;color:rgba(255,255,255,0.32);margin-top:3px;text-transform:uppercase;letter-spacing:0.05em;}
.mk-kpi-t{font-size:8.5px;color:#68d391;margin-top:2px;font-weight:600;}

.mk-chart{display:flex;align-items:flex-end;gap:4px;height:72px;padding:0 2px;}
.mk-cb{flex:1;border-radius:3px 3px 0 0;background:rgba(44,122,75,0.35);}
.mk-cb.hi{background:rgba(104,211,145,0.62);}
.mk-cb.ac{background:rgba(99,179,237,0.40);}

.mk-row{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,0.04);border-radius:6px;padding:7px 9px;border:1px solid rgba(255,255,255,0.05);font-size:10px;}
.mk-row-l{flex:1;color:rgba(255,255,255,0.68);font-weight:500;}
.mk-row-v{color:#fff;font-weight:700;font-size:11px;}
.mk-tag{font-size:8px;font-weight:700;padding:2px 7px;border-radius:99px;}
.mk-tag.g{background:rgba(104,211,145,0.15);color:#68d391;}
.mk-tag.o{background:rgba(246,173,85,0.15);color:#f6ad55;}
.mk-tag.r{background:rgba(252,129,129,0.15);color:#fc8181;}
.mk-tag.b{background:rgba(99,179,237,0.15);color:#63b3ed;}
.mk-tag.p{background:rgba(183,148,244,0.15);color:#b794f4;}

.mk-cita{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,0.04);border-radius:6px;padding:7px 9px;border-left:3px solid rgba(255,255,255,0.12);}
.mk-cita.g{border-left-color:#68d391;}.mk-cita.o{border-left-color:#f6ad55;}.mk-cita.b{border-left-color:#63b3ed;}.mk-cita.p{border-left-color:#b794f4;}
.mk-ct{font-size:9px;font-weight:700;color:rgba(255,255,255,0.5);min-width:32px;}
.mk-ci{flex:1;}.mk-ci-n{font-size:10.5px;font-weight:600;color:#fff;}.mk-ci-s{font-size:8px;color:rgba(255,255,255,0.38);}

.mk-pets{display:flex;gap:7px;}
.mk-pet{flex:1;background:rgba(255,255,255,0.05);border-radius:10px;padding:12px 7px;text-align:center;border:1px solid rgba(255,255,255,0.07);}
.mk-pet-av{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#2c7a4b,#68d391);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;color:#fff;margin:0 auto 5px;}
.mk-pet-n{font-size:11px;font-weight:700;color:#fff;}
.mk-pet-b{font-size:8px;color:rgba(255,255,255,0.38);margin-top:1px;}
.mk-pet-tag{display:inline-block;margin-top:5px;font-size:7.5px;font-weight:700;padding:2px 6px;border-radius:99px;background:rgba(104,211,145,0.15);color:#68d391;}

.mk-stock-row{display:flex;align-items:center;gap:8px;font-size:10px;}
.mk-stock-nm{color:rgba(255,255,255,0.60);width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mk-stock-bw{flex:1;height:5px;background:rgba(255,255,255,0.07);border-radius:99px;overflow:hidden;}
.mk-stock-bf{height:100%;border-radius:99px;}
.mk-stock-vl{color:rgba(255,255,255,0.45);font-size:9px;min-width:22px;text-align:right;}

.mk-sale-item{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,0.04);border-radius:6px;padding:6px 9px;font-size:10px;}
.mk-sale-i{flex:1;color:rgba(255,255,255,0.65);}
.mk-sale-q{color:rgba(255,255,255,0.35);min-width:18px;text-align:center;}
.mk-sale-p{color:#fff;font-weight:700;}
.mk-sale-total{display:flex;justify-content:space-between;align-items:center;background:rgba(44,122,75,0.18);border:1px solid rgba(44,122,75,0.28);border-radius:8px;padding:9px 12px;margin-top:2px;}
.mk-sale-tl{font-size:10px;color:rgba(255,255,255,0.55);font-weight:600;}
.mk-sale-tv{font-size:17px;color:#68d391;font-weight:800;}

.mk-donut-wrap{display:flex;align-items:center;gap:16px;}
.mk-donut{width:82px;height:82px;border-radius:50%;background:conic-gradient(#68d391 0% 37%,#63b3ed 37% 61%,#f6ad55 61% 78%,#fc8181 78% 88%,rgba(255,255,255,0.1) 88% 100%);flex-shrink:0;position:relative;}
.mk-donut::after{content:'';position:absolute;inset:18px;border-radius:50%;background:#0d1820;}
.mk-dl{display:flex;flex-direction:column;gap:5px;}
.mk-dl-row{display:flex;align-items:center;gap:5px;font-size:9px;color:rgba(255,255,255,0.50);}
.mk-dl-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;}

.mk-branch{background:rgba(255,255,255,0.04);border-radius:9px;border:1px solid rgba(255,255,255,0.07);padding:11px 10px;margin-bottom:6px;}
.mk-branch-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.mk-branch-n{font-size:11px;font-weight:700;color:#fff;}
.mk-branch-stat{font-size:9px;color:rgba(255,255,255,0.38);display:flex;justify-content:space-between;margin-bottom:3px;}
.mk-branch-bar{height:4px;background:rgba(255,255,255,0.07);border-radius:99px;overflow:hidden;}
.mk-branch-bf{height:100%;border-radius:99px;background:linear-gradient(90deg,#2c7a4b,#68d391);}

/* Intro slide */
.ts-intro-wrap {
  width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;height:100%;
  background:linear-gradient(160deg,#162b1f 0%,#0d1820 60%,#080e16 100%);
  padding:32px;
}
.ts-intro-logo{width:70px;height:70px;border-radius:22px;background:rgba(44,122,75,0.22);border:1px solid rgba(104,211,145,0.22);display:flex;align-items:center;justify-content:center;font-size:34px;margin-bottom:18px;box-shadow:0 8px 32px rgba(44,122,75,0.28);animation:levitate 3.6s ease-in-out infinite;}
.ts-intro-brand{font-size:38px;font-weight:900;color:#fff;letter-spacing:-1.5px;margin-bottom:8px;}
.ts-intro-tag{font-size:14.5px;color:rgba(255,255,255,0.48);line-height:1.6;max-width:440px;margin-bottom:22px;}
.ts-intro-pills{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;}
.ts-intro-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.10);border-radius:99px;padding:5px 13px;color:rgba(255,255,255,0.65);}

/* Outro slide */
.ts-outro-wrap {
  width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;height:100%;
  background:linear-gradient(160deg,#162b1f 0%,#0d1820 60%,#080e16 100%);
  padding:32px;
}
.ts-outro-check{width:64px;height:64px;border-radius:50%;background:rgba(44,122,75,0.22);border:1px solid rgba(104,211,145,0.22);display:flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:16px;}
.ts-outro-t{font-size:28px;font-weight:800;color:#fff;letter-spacing:-0.8px;margin-bottom:8px;}
.ts-outro-s{font-size:14px;color:rgba(255,255,255,0.45);margin-bottom:22px;line-height:1.6;max-width:400px;}
.ts-outro-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;background:linear-gradient(135deg,#2c7a4b,#3a9960);border-radius:50px;color:#fff;font-size:14px;font-weight:700;cursor:pointer;border:none;font-family:var(--font-family);box-shadow:0 4px 20px rgba(44,122,75,0.35);transition:transform 0.15s,box-shadow 0.15s;letter-spacing:0.01em;}
.ts-outro-btn:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(44,122,75,0.45);}

/* Bottom bar */
.trailer-bottombar{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-top:1px solid rgba(255,255,255,0.06);}
.trailer-dots{display:flex;gap:5px;}
.trailer-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,0.16);cursor:pointer;transition:background 0.2s,transform 0.2s;}
.trailer-dot.active{background:#68d391;transform:scale(1.4);}
.trailer-nav{display:flex;gap:5px;align-items:center;}
.trailer-nbtn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,0.07);border:none;color:rgba(255,255,255,0.5);font-size:12px;cursor:pointer;transition:background 0.15s,color 0.15s;font-family:var(--font-family);}
.trailer-nbtn:hover{background:rgba(255,255,255,0.14);color:#fff;}
.trailer-nbtn.pause-btn{width:32px;height:32px;font-size:13px;background:rgba(255,255,255,0.10);color:rgba(255,255,255,0.75);}
.trailer-nbtn.pause-btn:hover{background:rgba(255,255,255,0.18);color:#fff;}
.trailer-nbtn.pause-btn.paused{background:rgba(104,211,145,0.18);color:#68d391;border:1px solid rgba(104,211,145,0.25);}
.trailer-time{font-size:10px;color:rgba(255,255,255,0.25);font-weight:500;}
/* Progress bar pausa */
.trailer-progress-fill.paused{background:rgba(255,255,255,0.25);transition:none;}
/* Overlay de pausa sobre el slide */
.trailer-pause-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity 0.2s;}
.trailer-pause-overlay.show{opacity:1;}
.trailer-pause-icon{width:52px;height:52px;border-radius:50%;background:rgba(0,0,0,0.55);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;border:1.5px solid rgba(255,255,255,0.20);}

@media (max-width: 620px) {
  .ts-text { display: none; }
  .ts-mock { border-left: none; }
  .trailer-slides { height: 420px; }
}
