/* ═══════════════════════════════════════════════════
   Viglaslink — Master Stylesheet
   Extracted from inline styles + new visual improvements
   ═══════════════════════════════════════════════════ */

/* ─── Google Fonts (Inter + Sora) ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  --primary: #2563EB;
  --primary-600: #1D4ED8;
  --primary-700: #1e40af;
  --accent: #14B8A6;
  --accent-600: #0d9488;
  --bg: #f6f7fb;
  --text: #0f172a;
  --text-secondary: #2c3e50;
  --muted: #576574;
  --border: #e5e7eb;
  --card-bg: rgba(255,255,255,0.85);
  --font-sans: "Inter", "Segoe UI", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 16px 38px rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 10px 26px rgba(37, 99, 235, 0.22);
  --shadow-accent: 0 10px 26px rgba(20, 184, 166, 0.22);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Tarjetas — página pública (perfil personal, etc.) */
  --pc-card-radius: 18px;
  --pc-card-border: 1px solid #dbeafe;
  --pc-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  --pc-card-shadow: 0 4px 6px rgba(15, 23, 42, 0.03), 0 14px 32px rgba(37, 99, 235, 0.09);
  --pc-accent-bar: linear-gradient(90deg, #2563eb 0%, #14b8a6 50%, #6366f1 100%);
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

/* ─── Animation Utility Classes ─── */
.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-slide-up {
  animation: slideUp 0.6s ease both;
}

.animate-slide-left {
  animation: slideInLeft 0.5s ease both;
}

.animate-slide-right {
  animation: slideInRight 0.5s ease both;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease both;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ─── Scroll-triggered animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Microinteractions ─── */

/* Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

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

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* Button Variants */
.btn.primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-primary);
}

.btn.primary:hover {
  background: var(--primary-600);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary) !important;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.04);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-primary);
}

.btn-outline-success {
  background: transparent;
  border: 1.5px solid #10b981;
  color: #10b981 !important;
}

.btn-outline-success:hover {
  background: #10b981;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--muted) !important;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text) !important;
}

/* Ripple effect for buttons */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 1;
  transition: 0s;
}

/* Card hover effects */
.card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

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

/* Link hover effects */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}
.link-underline:hover::after {
  width: 100%;
}

/* Pill hover */
.pill {
  transition: all var(--transition-fast);
}
.pill:hover {
  border-color: #bfdbfe;
  background: rgba(239, 246, 255, 0.8);
}

/* ─── Modern Gradients ─── */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--accent) 100%);
}

.gradient-hero {
  background:
    radial-gradient(560px 220px at 0% -8%, rgba(37, 99, 235, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
}

.gradient-accent {
  background: linear-gradient(135deg, rgba(37,99,235,0.10) 0%, rgba(20,184,166,0.10) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Phone Mockup for Hero ─── */
.phone-mockup {
  position: relative;
  width: 240px;
  height: 480px;
  margin: 0 auto;
  border-radius: 36px;
  border: 3px solid #1e293b;
  background: #0f172a;
  box-shadow:
    0 0 0 2px rgba(30, 41, 59, 0.3),
    0 20px 60px rgba(15, 23, 42, 0.25),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0f172a;
  border-radius: 12px;
  z-index: 10;
}

.phone-mockup-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 33px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.phone-mockup-content {
  padding: 40px 16px 20px;
  height: 100%;
  overflow: hidden;
}

.phone-mockup-header {
  text-align: center;
  margin-bottom: 16px;
}

.phone-mockup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.phone-mockup-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
}

.phone-mockup-tagline {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.phone-mockup-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.phone-mockup-action {
  padding: 8px 4px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--primary);
}

.phone-mockup-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.phone-mockup-gallery-item {
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.phone-mockup-gallery-item:nth-child(2) {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}

.phone-mockup-gallery-item:nth-child(3) {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.phone-mockup-gallery-item:nth-child(4) {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

/* ─── Testimonials Section ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fff;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.testimonial-author-info {
  font-size: 13px;
}

.testimonial-author-name {
  font-weight: 700;
  color: var(--text);
}

.testimonial-author-meta {
  color: var(--muted);
  font-size: 12px;
}

/* ─── Stats / Social Proof ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-display);
  animation: countUp 0.6s ease both;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ─── Lightbox ─── */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  cursor: pointer;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease both;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ─── Lazy loading images ─── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   SISTEMA TIPOGRÁFICO — Viglaslink Design System
   Fuentes: Inter (body) + Sora (headings/display)
   Escala fluida con clamp() para responsividad
   ═══════════════════════════════════════════════════ */

/* ─── Base Typography ─── */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

/* ─── Fluid Typography Scale ─── */
h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
h4 { font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; }
p  { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }

/* ─── Font Size Utility Classes ─── */
.text-xxs  { font-size: 11px; }
.text-xs   { font-size: 12px; }
.text-sm   { font-size: 13px; }
.text-base { font-size: 14px; }
.text-md   { font-size: 16px; }
.text-lg   { font-size: 18px; }
.text-xl   { font-size: 20px; }
.text-2xl  { font-size: 24px; }
.text-3xl  { font-size: 30px; }
.text-4xl  { font-size: 36px; }
.text-5xl  { font-size: 48px; }

/* ─── Font Weight Utility Classes ─── */
.font-regular  { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black    { font-weight: 900; }

/* ─── Font Family Utility Classes ─── */
.font-sans    { font-family: var(--font-sans); }
.font-display { font-family: var(--font-display); }

/* ─── Line Height Utility Classes ─── */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.15; }
.leading-snug    { line-height: 1.3; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.6; }
.leading-loose   { line-height: 1.8; }

/* ─── Letter Spacing Utility Classes ─── */
.tracking-tighter { letter-spacing: -0.035em; }
.tracking-tight   { letter-spacing: -0.02em; }
.tracking-normal  { letter-spacing: 0; }
.tracking-wide    { letter-spacing: 0.01em; }
.tracking-wider   { letter-spacing: 0.04em; }
.tracking-widest  { letter-spacing: 0.06em; }

/* ─── Text Color Utility Classes ─── */
.text-primary   { color: var(--primary); }
.text-muted     { color: var(--muted); }
.text-secondary { color: var(--text-secondary); }
.text-dark      { color: var(--text); }
.text-white     { color: #ffffff; }
.text-danger    { color: #b91c1c; }
.text-success   { color: #166534; }
.text-warning   { color: #92400e; }

/* ─── Text Transform Utility ─── */
.uppercase   { text-transform: uppercase; }
.capitalize  { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* ─── Composite Typography Classes ─── */

/* Page title — usado en dashboards y secciones principales */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

/* Section heading — para subsecciones */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
}

/* Card title — para cabeceras dentro de cards */
.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 6px;
}

/* KPI value — números destacados */
.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* KPI label — etiqueta debajo de números */
.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

/* Kicker — etiqueta pequeña encima de títulos */
.kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Subtitle — texto secundario debajo de títulos */
.subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Small text — notas, captions */
.text-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Body text — párrafos normales */
.body-text {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Hero title — solo para landing hero */
.hero-display {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

/* Price display */
.price-display {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.price-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* Badge/Pill typography */
.pill-text {
  font-size: 13px;
  font-weight: 600;
}
.badge-text {
  font-size: 12px;
  font-weight: 700;
}
.badge-sm {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Form label (consistent across both bases) */
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* Field note — helper text */
.field-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Button text */
.btn-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Sidebar typography */
.side-title-text {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-link-text {
  font-weight: 600;
  font-size: 14px;
}

/* ─── Improved spacing ─── */
.section {
  padding: 32px 0;
}

.section + .section {
  padding-top: 16px;
}

.card + .card {
  margin-top: 0;
}

/* ─── Standardized breakpoints ─── */
/* Mobile: < 640px, Tablet: 640-1024px, Desktop: > 1024px */

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-value {
    font-size: 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    width: 180px;
    height: 360px;
    border-radius: 28px;
  }

  .phone-mockup::before {
    width: 60px;
    height: 18px;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Form improvements ─── */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ─── Scroll behavior ─── */
html {
  scroll-behavior: smooth;
}

/* ─── Selection color ─── */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text);
}



/* ═══════════════════════════════════════════════════════════════
   ILUSTRACIONES — Estilos para imágenes enterprise
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero illustration ─── */
.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illustration img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.12));
  transition: transform 0.4s ease;
}
.hero-illustration img:hover {
  transform: translateY(-4px);
}

/* ─── Feature card illustrations ─── */
.feature-card-illustration {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(20, 184, 166, 0.04));
}
.feature-card-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.92;
}
.feature-card-illustration img:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* ─── Pricing card illustrations ─── */
.pricing-illustration {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(20, 184, 166, 0.03));
}
.pricing-illustration img {
  height: 120px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}
.pricing-illustration img:hover {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   TARJETAS PÚBLICAS — Estilos unificados personal / contacto / empresa
   ═══════════════════════════════════════════════════════════════ */

/* ─── Wrapper principal (ancho lectura amplio en desktop) ─── */
.public-card-wrap {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.25rem clamp(0.65rem, 3.5vw, 1.75rem) 2.5rem;
  display: grid;
  gap: 1.35rem;
  box-sizing: border-box;
}

/* ─── Hero / header con foto ─── */
.public-card-hero {
  text-align: center;
  padding: 2rem 1.25rem 1.7rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(191, 219, 254, 0.8);
  background:
    radial-gradient(640px 220px at -8% -20%, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.public-card-hero > * {
  position: relative;
  z-index: 1;
}
.public-card-hero .company-badge {
  margin-bottom: 0.75rem;
}
.public-card-hero .company-badge img {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}
.public-card-hero .company-badge-name {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ─── Foto de perfil ─── */
.pc-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  margin: 0 auto 0.75rem;
  display: block;
}
.pc-photo-fallback {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 auto 0.75rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.pc-name {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pc-title {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}
.pc-tagline {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.pc-hero-meta {
  margin-top: .85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}
.pc-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .76rem;
  font-weight: 700;
}
.pc-hero-cta {
  margin-top: .85rem;
}
.pc-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .62rem 1rem;
  border-radius: 10px;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.pc-quote-btn:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: translateY(-1px);
}

/* ─── Quick actions panel ─── */
.pc-top-shell {
  isolation: isolate;
  border-radius: var(--pc-card-radius);
  border: var(--pc-card-border);
  background: linear-gradient(165deg, #eef2ff 0%, #f0f7ff 38%, #f8fbff 100%);
  padding: 1.35rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 1rem 1.25rem;
  align-items: start;
  box-shadow: var(--pc-card-shadow);
  position: relative;
  overflow: hidden;
}
.pc-top-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 240px at 8% -5%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 65%),
    radial-gradient(400px 180px at 92% 100%, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0) 60%);
  pointer-events: none;
}
.pc-top-shell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  opacity: 0.95;
  pointer-events: none;
}
.pc-top-main,
.pc-actions-panel {
  position: relative;
  z-index: 1;
}

/* Copy + métricas + formulario bajo el perfil (columna izquierda en desktop) */
.pc-top-hero-wide {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  align-content: start;
  position: relative;
  z-index: 1;
}
.pc-top-hero-wide .pc-top-summary {
  margin-top: 0;
}
.pc-top-hero-wide .pc-hero-quick-form {
  margin-top: 0.85rem;
}

@media (min-width: 1025px) {
  .pc-top-main {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  /* Solo el panel “rail” legacy (hermano de .pc-top-main); no iconos inline bajo el nombre */
  .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .pc-top-hero-wide {
    grid-column: 1;
    grid-row: 2;
  }
}

.pc-top-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.pc-top-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pc-top-avatar-shell {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: #fff;
  border: 4px solid #fff;
}
.pc-top-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-top-avatar-fb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 2.5rem;
}
.pc-top-avatar-shell img + .pc-top-avatar-fb {
  display: none;
}
.pc-top-name {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: #0f172a;
  line-height: 1.1;
}
.pc-top-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.9;
}
.pc-top-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pc-badge.success { background: #dcfce7; color: #166534; }
.pc-badge.info { background: #dbeafe; color: #1e40af; }

.pc-hero-quick-form {
  margin-top: 2rem;
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.pc-hero-quick-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .pc-hero-quick-form-fields { grid-template-columns: 1fr; }
  .pc-top-profile { flex-direction: column; text-align: center; }
  .pc-top-avatar-shell { margin: 0 auto; }
  .pc-top-badges { justify-content: center; }
}
.pc-top-tagline {
  margin: .55rem 0 .45rem;
  color: var(--text-secondary);
  font-size: .98rem;
}
.pc-top-summary {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.pc-top-tagline.lead {
  color: #0f172a;
  font-weight: 800;
  font-size: 1.06rem;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.pc-top-tagline.subtle {
  color: #475569;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.55;
}
.pc-top-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  row-gap: 0.5rem;
  margin: 0.85rem 0 0.2rem;
}
.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pc-badge.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.pc-badge.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.pc-badge.whatsapp {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.pc-badge.brand {
  border-color: #bfdbfe;
  background: #2563eb;
  color: #fff;
}
.pc-top-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
}
.pc-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pc-metric .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
}
.pc-mobile-quick-form {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: var(--pc-card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.pc-mobile-quick-form .pc-mobile-quick-form-fields {
  display: grid;
  gap: 0.5rem;
}
@media (max-width: 980px) {
  .pc-mobile-quick-form {
    display: block;
  }
}
.pc-top-cta-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.pc-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .62rem 1rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
}
.pc-actions-panel {
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fafc 100%);
  padding: 0.85rem 0.75rem 0.8rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.pc-actions-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.pc-actions-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid #dbeafe;
  background: #fff;
}
.pc-actions-avatar-fb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  font-size: 1rem;
}
.pc-actions-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}
.pc-actions-user {
  margin-top: 1px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}
.pc-actions-label {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ─── Botones de acción (grid de iconos) ─── */
.pc-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(62px, 1fr));
  gap: 0.35rem;
}
.pc-action-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  min-height: 64px;
}
.pc-action-item:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(191, 219, 254, 0.6);
}
.pc-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 0;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.pc-action-item:hover .pc-action-icon {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.pc-action-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}
.pc-action-icon.whatsapp { background: #ecfdf5; border-color: #86efac; color: #15803d; }
.pc-action-icon.phone    { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.pc-action-icon.web      { background: #f5f3ff; border-color: #c4b5fd; color: #6d28d9; }
.pc-action-icon.email    { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.pc-action-icon.save     { background: #ecfeff; border-color: #67e8f9; color: #0e7490; }
.pc-action-icon.company  { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }
.pc-action-caption {
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #64748b;
  font-weight: 700;
  white-space: normal;
  max-width: 90px;
}
.pc-action-item.primary-action {
  border-color: transparent;
  background: transparent;
}
.pc-action-item.primary-action .pc-action-icon.whatsapp {
  border-width: 2px;
  border-color: #4ade80;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}
.pc-action-item.primary-action .pc-action-caption {
  color: #166534;
  font-weight: 800;
}
.pc-action-item.primary-action:hover {
  background: rgba(22, 163, 74, 0.07);
  border-color: rgba(134, 239, 172, 0.5);
}
.pc-actions-foot {
  margin-top: 0.65rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.5rem;
  display: grid;
  gap: 0.3rem;
}
.pc-actions-foot-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.88rem;
  word-break: break-all;
}
.pc-actions-foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #60a5fa;
  flex: 0 0 auto;
}

/* ─── Secciones de contenido (tarjetas homogéneas) ─── */
.pc-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: var(--pc-card-radius);
  border: var(--pc-card-border);
  background: var(--pc-card-bg);
  box-shadow: var(--pc-card-shadow);
  backdrop-filter: blur(8px);
}
.pc-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  z-index: 0;
}
.pc-section h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  padding-top: 0.05rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pc-section-text {
  margin: 0;
  line-height: 1.7;
  color: var(--text-secondary);
}
.pc-section h3 + .pc-section-text {
  margin-bottom: 1rem;
}
.pc-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}
.pc-proposal-form .pc-proposal-grid {
  display: grid;
  gap: 0.85rem;
}
.pc-proposal-actions {
  display: grid;
  gap: 0.65rem;
}
.pc-proposal-details-inner {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.pc-proposal-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) {
  .pc-proposal-details-row {
    grid-template-columns: 1fr;
  }
}
.pc-proposal-card {
  padding: 1.45rem 1.4rem 1.4rem;
  border-radius: var(--pc-card-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #f0f7ff 100%);
  border-color: #bfdbfe;
  box-shadow: var(--pc-card-shadow);
}
.pc-proposal-card .pc-section-text {
  color: #334155;
  font-weight: 500;
  line-height: 1.65;
  max-width: 40rem;
}
.pc-proposal-card .pc-details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pc-proposal-card .pc-details[open] {
  border-color: #93c5fd;
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, 0.1),
    0 6px 16px rgba(37, 99, 235, 0.08);
}
.pc-proposal-card .pc-upload {
  border: 1px dashed #cbd5f5;
  border-radius: 10px;
  padding: 8px;
  background: #f8fbff;
}
.pc-proposal-card .btn.primary {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.pc-proposal-card .btn.primary:hover {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
}
.pc-proposal-card .btn.secondary,
.pc-proposal-card .pc-proposal-actions .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  border-width: 1.5px;
}
.pc-proposal-card .pc-proposal-followup {
  font-weight: 700;
}
.pc-proposal-card input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.pc-proposal-card textarea,
.pc-proposal-card select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border-radius: 11px;
  font-size: 0.95rem;
  border-color: #dbeafe;
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pc-proposal-card textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.pc-proposal-card input:focus,
.pc-proposal-card textarea:focus,
.pc-proposal-card select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}
.pc-details summary::-webkit-details-marker {
  display: none;
}
.pc-details summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--primary);
  transform: translateY(1px);
  transition: transform var(--transition-fast);
}
.pc-details[open] summary::before {
  transform: rotate(90deg);
}
.pc-upload {
  display: grid;
  gap: 0.35rem;
}
.pc-form-hint {
  color: var(--muted);
  font-size: 0.82rem;
}
.pc-map-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.pc-map-actions details {
  margin: 0;
}

/* Location — mismo sistema de tarjeta, tinte azul */
.pc-location-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.52) 100%);
}
.pc-location-details {
  margin-top: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pc-location-details[open] {
  border-color: #bfdbfe;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}
.pc-location-details .pc-map-wrap {
  margin-top: 0.65rem;
}
.pc-location-details .pc-map-wrap iframe {
  min-height: 220px;
  transition: min-height 0.25s ease;
}
.pc-location-details[open] .pc-map-wrap iframe {
  min-height: 320px;
}
.btn.secondary {
  border-color: #dbeafe;
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: none;
}
.btn.secondary:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.pc-share-intro {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.pc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.pc-share-title {
  margin: 0 0 8px;
}
.pc-share-copy {
  margin-bottom: 8px;
}
.pc-rating-summary {
  margin-bottom: .55rem;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ─── Social links ─── */
.pc-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pc-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pc-social-link:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
  transform: translateY(-1px);
}
.pc-social-link svg {
  width: 16px;
  height: 16px;
}

/* ─── Services pills ─── */
.pc-services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}
.pc-testimonials-section + .pc-about-card {
  margin-top: 1.8rem;
}
.pc-testimonials-section {
  padding-bottom: 1.5rem;
}
.pc-testimonials-intro {
  max-width: 36rem;
}
.pc-testimonials-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .pc-testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}
.pc-testimonial-card {
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  position: relative;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.pc-testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #dbeafe;
}
.pc-testimonial-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.55) 0%, rgba(20, 184, 166, 0.45) 100%);
  opacity: 0.9;
}
.pc-testimonial-card::after {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  right: 0.9rem;
  font-size: 2.75rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  color: rgba(37, 99, 235, 0.1);
  pointer-events: none;
}
.pc-testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 1rem;
  line-height: 1;
  color: #f59e0b;
  letter-spacing: 0.02em;
}
.pc-testimonial-stars .pc-star {
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.35));
}
.pc-testimonial-quote {
  margin: 0;
  padding-left: 0.4rem;
}
.pc-testimonial-quote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 500;
}
/* About — tinte editorial sobre la tarjeta base */
.pc-about-card {
  padding-top: 1.55rem;
  border-color: #dbeafe;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.96) 45%, rgba(239, 246, 255, 0.48) 100%);
}
.pc-about-body {
  font-size: 1.02rem;
  line-height: 1.78;
  max-width: 48rem;
  color: #334155;
}
.pc-service-card {
  border: var(--pc-card-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 0.7rem;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: start;
  gap: 0.72rem;
  min-height: 100%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.pc-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}
.pc-service-media {
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  background: transparent;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.pc-service-card--with-image .pc-service-media {
  box-shadow: none;
}
.pc-service-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.pc-service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px dashed #93c5fd;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
    radial-gradient(100% 100% at 100% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
    linear-gradient(165deg, #f0f9ff 0%, #eef2ff 55%, #f8fafc 100%);
  height: auto;
  min-height: 0;
  color: #4f46e5;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  z-index: 1;
}
.pc-service-visual-icon {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.88;
  filter: drop-shadow(0 2px 6px rgba(79, 70, 229, 0.2));
}
.pc-service-card--no-image .pc-service-pill {
  justify-content: flex-start;
  text-align: left;
}
.pc-service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.4rem 0.68rem;
  border-radius: 10px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #f5f7ff 0%, #eef2ff 100%);
  color: #312e81;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  transition: all var(--transition-fast);
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  box-sizing: border-box;
  min-width: 0;
  word-break: break-word;
}
.pc-service-pill:hover {
  background: linear-gradient(180deg, #e8ecff 0%, #e0e7ff 100%);
  border-color: #a5b4fc;
}
.pc-service-content {
  display: grid;
  gap: 0.52rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.pc-service-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}
.pc-service-title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 800;
  min-width: 0;
  word-break: break-word;
}
.pc-service-price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  border: 1px solid #bae6fd;
  background: linear-gradient(180deg, #ecfeff 0%, #e0f2fe 100%);
  color: #0c4a6e;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
}
.pc-service-price-badge--quote {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  color: #3730a3;
}
.pc-service-description {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.pc-service-quote-copy {
  margin: 0;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
}
.pc-service-actions {
  margin-top: 0.1rem;
}
.pc-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 0.36rem 0.58rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}
.pc-service-cta:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
@media (max-width: 820px) {
  .pc-services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
@media (max-width: 560px) {
  .pc-services-list {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .pc-service-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.65rem;
    border-radius: 12px;
  }
  .pc-service-media,
  .pc-service-visual {
    width: 100%;
    min-height: 0;
    border-radius: 10px;
  }
  .pc-service-top-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .pc-service-title {
    font-size: 0.96rem;
    line-height: 1.32;
  }
  .pc-service-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #334155;
    -webkit-line-clamp: 3;
  }
  .pc-service-price-badge {
    width: fit-content;
    min-height: 26px;
    font-size: 0.76rem;
    padding: 0.32rem 0.52rem;
  }
  .pc-service-quote-copy {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .pc-service-actions {
    margin-top: 0.15rem;
  }
  .pc-service-cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    border-radius: 9px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    font-weight: 800;
  }
  .pc-service-media { min-height: 0; }
}

/* ─── Work gallery ─── */
.pc-section .pc-services-list,
.pc-section .pc-work-gallery,
.pc-section .pc-reviews-list {
  margin-top: 0.65rem;
}
.pc-service-card,
.pc-work-item,
.pc-review-item {
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.pc-service-card:hover,
.pc-work-item:hover,
.pc-review-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.11);
}
.pc-work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}
.pc-work-item {
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.pc-work-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.11);
  border-color: #bfdbfe;
}
.pc-work-item img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  background: #f8fafc;
  transition: transform var(--transition-fast);
}
.pc-work-item:hover img {
  transform: scale(1.02);
}
.pc-work-item figcaption {
  padding: 0.62rem 0.72rem 0.68rem;
  font-size: 0.86rem;
  color: #334155;
  font-weight: 700;
  line-height: 1.4;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* ─── Reviews ─── */
.pc-reviews-list {
  display: grid;
  gap: 0.75rem;
}
.pc-review-item {
  padding: 0.95rem 1rem;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.pc-review-item::after {
  content: "“";
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
  color: rgba(59, 130, 246, 0.16);
  pointer-events: none;
}
.pc-review-item:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}
.pc-review-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.pc-review-head strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}
.pc-review-stars {
  color: #f59e0b;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pc-review-item p {
  margin: 0.42rem 0 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .pc-review-item {
    padding: 0.82rem 0.86rem;
  }
  .pc-review-head {
    gap: 0.5rem;
  }
  .pc-review-head strong {
    font-size: 0.9rem;
  }
  .pc-review-stars {
    font-size: 0.8rem;
  }
  .pc-review-item p {
    font-size: 0.85rem;
    line-height: 1.48;
  }
}

/* ─── Mapa ─── */
.pc-map-wrap {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
}
.pc-map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 240px;
  border: 0;
}
.pc-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ─── Footer con guardar contacto / QR ─── */
.pc-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  padding: 1.4rem 1.35rem 1.35rem;
  border-radius: var(--pc-card-radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.96) 40%, rgba(239, 246, 255, 0.72) 100%);
  border: var(--pc-card-border);
  box-shadow: var(--pc-card-shadow);
  margin-top: 1.25rem;
}
.pc-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  opacity: 0.95;
  z-index: 0;
}
.pc-footer-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  padding-top: 0.15rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.pc-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.pc-footer-cta {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}
.pc-footer-actions {
  display: grid;
  gap: 0.5rem;
}
.pc-footer-hint {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.pc-footer-qr {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.pc-footer-qr-inner {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.pc-footer-qr-caption {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  max-width: 11rem;
}
.pc-footer .btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1.5px solid #bfdbfe;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pc-footer .btn-save:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}
.pc-footer .btn-save.primary {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}
.pc-footer .btn-save.primary:hover {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color: #15803d;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.4);
}
.pc-footer .btn-save--icon svg {
  flex-shrink: 0;
  opacity: 0.95;
}
.pc-footer .qr-img {
  width: 132px;
  height: 132px;
  margin: 0;
  display: block;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
}

/* ─── Branding footer ─── */
.pc-branding {
  text-align: center;
  padding: 1rem 0.75rem 0.5rem;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.pc-branding a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.pc-branding a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Mobile conversion bar ─── */
.pc-mobile-convert-bar {
  display: none;
}
.pc-mobile-convert-bar .inner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(8px);
}
.pc-mobile-convert-bar .btn-mobile-main,
.pc-mobile-convert-bar .btn-mobile-ghost {
  min-height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.pc-mobile-convert-bar .btn-mobile-main {
  background: #16a34a;
  border: 1px solid #16a34a;
  color: #fff;
}
.pc-mobile-convert-bar .btn-mobile-ghost {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ─── Background para public cards ─── */
.pc-body-bg {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 65%),
    radial-gradient(760px 360px at 92% 6%, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0) 60%),
    linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%) !important;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .public-card-wrap {
    padding: 1.25rem clamp(0.75rem, 3vw, 1.35rem) 2rem;
  }
  .pc-top-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pc-top-name {
    font-size: 1.6rem;
  }
  .pc-top-title {
    font-size: 1rem;
  }
  .pc-top-tagline {
    font-size: 1rem;
  }
  .pc-actions-panel {
    margin-top: 0.5rem;
  }
  .pc-actions-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 100%;
  }
  .pc-section {
    padding: 1.1rem 1.15rem;
  }
  .pc-footer-grid {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 1.1rem 1.25rem;
  }
}
@media (max-width: 820px) {
  .pc-actions-grid {
    grid-template-columns: repeat(3, minmax(62px, 1fr));
  }
  .pc-action-item {
    min-height: 58px;
  }
  .pc-action-caption {
    font-size: 0.7rem;
  }
}
@media (max-width: 640px) {
  .pc-mobile-convert-bar {
    display: block;
  }
  .contact-public-page .pc-top-info {
    align-items: center;
    text-align: center;
  }
  .contact-public-page .pc-top-brand {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .public-card-wrap {
    padding: 1rem clamp(0.65rem, 4vw, 1rem) 2rem;
  }
  .pc-top-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .pc-top-avatar-shell {
    width: 88px;
    height: 88px;
  }
  .pc-top-avatar,
  .pc-top-avatar-fb,
  .pc-top-avatar-fallback {
    width: 88px;
    height: 88px;
  }
  .pc-top-title {
    font-size: 1.15rem;
  }
  .pc-top-tagline {
    font-size: 1rem;
  }
  .public-card-hero {
    padding: 1.5rem 1rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .pc-photo, .pc-photo-fallback {
    width: 100px;
    height: 100px;
    font-size: 2.2rem;
  }
  .pc-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pc-action-icon {
    width: 32px;
    height: 32px;
  }
  .pc-work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .pc-work-item img {
    height: 148px;
  }
  .pc-footer-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .pc-footer {
    text-align: center;
    margin-bottom: 78px;
    padding: 1.35rem 1.15rem 1.3rem;
  }
  .pc-footer-heading {
    margin-bottom: 0.75rem;
  }
  .pc-footer-hint {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
  .pc-footer-qr-inner {
    max-width: 220px;
    margin: 0 auto;
  }
  .pc-footer-actions {
    grid-template-columns: 1fr;
  }
  .kanban-grid {
    grid-template-columns: 1fr !important;
  }
  .kanban-col {
    min-height: auto !important;
  }
  .grid.cols3, .grid.cols4 {
    grid-template-columns: 1fr !important;
  }
  .dash-title-wrap {
    text-align: center;
    width: 100%;
  }
  .dash-actions {
    justify-content: center;
    width: 100%;
  }
  .login-grid, .signup-grid {
    padding: 1rem !important;
  }
  .login-card, .signup-card {
    border-radius: var(--radius-lg) !important;
  }
  .login-grid > .login-aside, .signup-grid > .signup-aside {
    padding: 2.5rem 1.5rem !important;
  }
}
@media (max-width: 480px) {
  :root { --container-padding: 12px; }
  .dash-company-card { padding: 1rem; }
  .dash-company-stats { gap: 0.5rem; }
  .dash-actions { gap: 0.35rem; }
  .btn.btn-sm { padding: 0.4rem 0.6rem; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Estilos unificados para dashboards
   ═══════════════════════════════════════════════════════════════ */

/* ─── Dashboard container ─── */
.dash-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.dash-container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Una sola capa de margen horizontal: en el shell del dashboard, main.app ya aplica --container-padding */
main.app > .layout > section.app-main .dash-container,
main.app > .layout > section.app-main .dash-container-narrow {
  padding-left: 0;
  padding-right: 0;
}

/* â”€â”€â”€ Sales center â”€â”€â”€ */
.sales-center {
  display: grid;
  gap: 1rem;
}
.sc-hero {
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.08));
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.sc-hero h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(24px, 3vw, 34px);
}
.sc-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 800;
  color: #1d4ed8;
}
.sc-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
/* ─── Sales center specific adjustments ─── */
.sc-filters {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.sc-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.sc-card-header h3 {
  margin: 0 0 0.2rem;
}
.sc-leads {
  display: grid;
  gap: 0.6rem;
}
.sc-lead {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  background: #f8fbff;
}
.sc-lead-main {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.sc-lead-name {
  font-weight: 800;
  color: var(--text);
}
.sc-lead-meta {
  color: var(--muted);
  font-size: 0.85rem;
}
.sc-kpi-grid .dash-kpi {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem;
}
.sc-notes {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
}
.sc-note {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--text-secondary);
  background: #fff;
}
.sc-company {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fcfdfe;
}
.sc-company-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.sc-role {
  display: inline-flex;
  align-items: center;
  margin-left: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
}
.sc-company-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sc-company-kpis {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .sc-filter-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Page header ─── */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dash-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 850;
  color: var(--text);
}
.dash-header .subtitle {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ─── Unified dashboard chrome (empresa / CRM / formularios) — alinea con dashboard principal ─── */
.dash-panel-page {
  --dash-chrome-radius: 16px;
  --dash-chrome-border: #e8ecf0;
}

.dash-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--dash-chrome-border);
  border-radius: var(--dash-chrome-radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.dash-page-head .dash-page-title,
.dash-page-head h1.dash-title,
.dash-page-head .dash-title,
.dash-page-head h1.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.dash-page-head .dash-page-subtitle,
.dash-page-head .dash-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 48rem;
}

.dash-page-head-actions,
.dash-page-head .dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
}

.dash-page-head .btn {
  min-height: 40px;
}

.dash-page-head--compact {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
}

.dash-page-head .sc-kicker {
  display: inline-flex;
  margin-bottom: 0.5rem;
}

.dash-panel-page .main-form-panel,
.dash-form-shell {
  border: 1px solid #e8ecf0 !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.dash-panel-page .dash-card {
  border-color: #e8ecf0;
  border-radius: 14px;
}

/* ─── KPI cards ─── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-kpi {
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal);
}
.dash-kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dash-kpi::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.05);
  pointer-events: none;
}
.dash-kpi-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-display);
  line-height: 1;
}
.dash-kpi-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

/* ─── Pill for status ─── */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.published { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.status-pill.draft { background: #f8fafc; color: var(--muted); border: 1px solid var(--border); }

/* ─── Action buttons row ─── */
.dash-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
/* Deprecated old classes - maintained for compatibility if needed, but updated to inherit .btn */
/* .btn-outline { ... } already defined above */
/* .btn-outline-success { ... } already defined above */
/* .btn-sm { ... } already defined above */

/* ─── Share section ─── */
.dash-share {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.dash-share input[readonly] {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: #f8fafc;
}

/* ─── Empty state ─── */
.dash-empty {
  padding: 3rem 2rem;
  text-align: center;
}
.dash-empty h3 {
  margin: 0 0 0.5rem;
}
.dash-empty p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ─── Unified Dash Card ─── */
.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dash-card:hover {
  box-shadow: var(--shadow-md);
}

/* ─── Company card in dashboard ─── */
.dash-company-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.dash-company-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.dash-company-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dash-company-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.dash-company-logo-fb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.dash-company-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ─── Dashboard visual unification layer ─── */
.dash-container h1,
.dash-container h2,
.dash-container h3,
.dash-container h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.02em;
}

.dash-container .card,
.dash-container .dash-company-card,
.dash-container .sc-card,
.dash-container .sc-company {
  border-radius: var(--radius-lg);
}

.dash-container .btn,
.dash-container .btn.btn-sm {
  border-radius: 10px;
  font-weight: 700;
}

.dash-container input[type="text"],
.dash-container input[type="email"],
.dash-container input[type="url"],
.dash-container input[type="password"],
.dash-container input[type="number"],
.dash-container input[type="tel"],
.dash-container textarea,
.dash-container select {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.dash-container .subtitle,
.dash-container .muted {
  color: var(--muted);
}

.dash-container .dash-actions .btn,
.dash-container .dash-share .btn {
  min-height: 36px;
}

/* ─── Form sections ─── */
.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.form-section h4 {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.form-grid {
  display: grid;
  gap: 1rem;
}
.form-grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.form-field .field-error {
  margin-top: 0.35rem;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}
.field-error.live-error {
  margin-top: 0.35rem;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}
.input-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ─── Billing / checkout ─── */
.checkout-wrap {
  max-width: 880px;
  margin: 2rem auto 3rem;
  padding: 0 0.75rem;
}
.result-card {
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}
.result-card--success::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-radius: 4px 0 0 4px;
}
.result-header {
  position: relative;
  z-index: 1;
  max-width: 62ch;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.result-badge.success { border: 1px solid rgba(34, 197, 94, 0.25); background: rgba(240, 253, 244, 0.95); color: #166534; }
.result-badge.error   { border: 1px solid rgba(239, 68, 68, 0.25); background: rgba(254, 242, 242, 0.95); color: #991b1b; }
.result-title {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.result-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}
.result-steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .result-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.result-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid #e8edf2;
  border-radius: var(--radius-md);
  background: #fafbfc;
  padding: 1rem 1rem 1rem 0.85rem;
  min-height: 100%;
  box-sizing: border-box;
}
.result-step--note {
  background: #f8fafc;
  border-style: dashed;
  border-color: #cbd5e1;
}
.result-step--note .result-step-num {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.result-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  line-height: 1;
}
.result-step-content {
  min-width: 0;
}
.result-step strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.result-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 1;
}
.result-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

/* ─── Pricing unified ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
/* display:grid above can override the UA [hidden] rule; keep toggle/panels working */
.pricing-grid[hidden] {
  display: none !important;
}
.pricing-card {
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border-color: var(--primary);
}
.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.pricing-card h3 {
  margin: 0.5rem 0;
}
.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}
.pricing-card .price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.pricing-card ul {
  text-align: left;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  line-height: 2;
}
.pricing-card ul li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}

/* ─── Auth forms (login/signup) ─── */
.auth-page {
  min-height: calc(100vh - 230px);
  display: flex;
  align-items: center;
  padding: 1rem;
}
.auth-container {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.auth-card {
  border-radius: var(--radius-xl);
  border: 1px solid #dbeafe;
  background:
    radial-gradient(700px 220px at 0% -10%, rgba(37, 99, 235, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.auth-card h2 {
  text-align: center;
  margin: 0 0 0.3rem;
}
.auth-card .auth-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.auth-error-box {
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  font-size: 14px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  width: 100%;
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}
.password-toggle:hover {
  background: #f8fafc;
}
.account-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.account-type-card {
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: #fff;
}
.account-type-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}
.account-type-card input[type="radio"] {
  accent-color: var(--primary);
}
@media (max-width: 640px) {
  .account-type-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .account-type-card {
    padding: 1rem;
  }
}

/* ─── Login (two-column, ViglasCard público) ─── */
.auth-container.login-shell {
  max-width: 920px;
}

.login-card.auth-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.03),
    0 14px 32px rgba(37, 99, 235, 0.09);
}

.login-card.auth-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #14b8a6 50%, #6366f1 100%);
}

.login-card-inner {
  padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 881px) {
  .login-card-inner {
    padding: 1.75rem 1.75rem 2rem;
  }
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.login-grid > .login-aside {
  border-right: 1px solid rgba(219, 234, 254, 0.95);
}

.login-aside {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.login-aside .login-lead {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 16px);
  line-height: 1.55;
  color: var(--text-secondary);
}

.login-aside h3 {
  margin: 12px 0 8px;
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: var(--primary-600);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

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

.login-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}

.login-benefit-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12));
  border: 1px solid #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.login-form-col {
  padding: 0 0 0 1.35rem;
}

.login-form-col .login-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left;
  line-height: 1.2;
  color: var(--text);
}

.login-form-col .auth-subtitle {
  text-align: left;
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.login-form .form-field {
  margin-bottom: 14px;
}

.login-form .form-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  min-height: 48px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.login-forgot {
  margin: -2px 0 16px;
  text-align: right;
}

.login-forgot a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-600);
}

.login-forgot a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.btn.login-submit {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 12px;
}

.login-foot {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-foot .login-meta {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.login-foot .login-meta a {
  font-weight: 700;
  color: var(--primary-600);
}

.login-foot .login-meta a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 880px) {
  .login-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .login-grid > .login-aside {
    padding: 0;
    border-right: none;
    border-top: 1px solid rgba(219, 234, 254, 0.9);
    padding-top: 1.25rem;
  }

  .login-form-col {
    padding: 0;
    order: -1;
  }

  .login-aside {
    order: 1;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.65) 0%, rgba(240, 253, 250, 0.5) 100%);
    border: 1px solid #dbeafe;
    padding: 14px 14px 16px;
  }

  .login-card-inner {
    padding: 1.25rem 1.1rem 1.35rem;
  }
}

/* ─── Table improvements ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.data-table thead tr {
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.data-table th {
  padding: 0.75rem;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.data-table tbody tr:hover {
  background: #fafbfc;
}

/* Legacy compat */
.public-card-header {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  margin: -2rem -1rem 1.5rem;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(20, 184, 166, 0.04));
}
.public-card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.public-card-header .header-bg-illustration {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 200px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.public-card-header > * {
  position: relative;
  z-index: 1;
}

/* ─── Dashboard empty state illustration ─── */
.empty-state-illustration {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
  opacity: 0.85;
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.08));
}

/* ─── Dashboard KPI decoration ─── */
.kpi-card-decorated {
  position: relative;
  overflow: hidden;
}
.kpi-card-decorated::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.05);
  pointer-events: none;
}

/* ─── Responsive adjustments ─── */
@media (max-width: 980px) {
  .hero-illustration img {
    max-width: 360px;
  }
  .feature-card-illustration {
    height: 140px;
  }
  .pricing-illustration {
    height: 120px;
  }
  .pricing-illustration img {
    height: 100px;
  }
  .public-card-header .header-bg-illustration {
    width: 150px;
    opacity: 0.08;
  }
}
@media (max-width: 640px) {
  .hero-illustration {
    order: -1;
    margin-bottom: 12px;
  }
  .hero-illustration img {
    max-width: 280px;
  }
  .feature-card-illustration {
    height: 120px;
  }
  .pricing-illustration {
    height: 100px;
  }
  .pricing-illustration img {
    height: 80px;
  }
  .public-card-header .header-bg-illustration {
    width: 120px;
    opacity: 0.06;
  }
  .empty-state-illustration {
    width: 140px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Perfil público de EMPRESA (company_profile.html) — mismo lenguaje
   que la tarjeta personal (--pc-*)
   ═══════════════════════════════════════════════════════════════ */

.company-public-page.public-page {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.35rem clamp(0.75rem, 3.5vw, 1.75rem) 2rem;
  display: grid;
  gap: 1.35rem;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.55;
  box-sizing: border-box;
}

.company-public-page .hero {
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--pc-card-radius);
  border: var(--pc-card-border);
  background: linear-gradient(165deg, #eef2ff 0%, #f0f7ff 38%, #f8fbff 100%);
  box-shadow: var(--pc-card-shadow);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 0;
}

.company-public-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 240px at 8% -5%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 65%),
    radial-gradient(400px 180px at 92% 100%, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

.company-public-page .hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  z-index: 1;
}

.company-public-page .hero-wrap,
.company-public-page .hero-main {
  position: relative;
  z-index: 2;
}

/* Hero: mismos espacios que .contact-public-page */
.company-public-page .hero-wrap {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: start;
}

.company-public-page .hero-main {
  display: grid;
  gap: 0.85rem;
}

.company-public-page .hero-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.company-public-page .hero-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.company-public-page .hero-title-wrap h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.company-public-page .hero-title-wrap .tagline {
  margin: 0;
  margin-top: 0.1rem;
  font-weight: 800;
  color: #1d4ed8;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.3;
}

.company-public-page .hero-main-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.company-public-page .hero-main-body > .desc {
  margin: 0;
  color: #334155;
  max-width: 64ch;
  font-size: clamp(0.97rem, 1.4vw, 1.05rem);
  line-height: 1.6;
}

.company-public-page .hero-main-body > .desc.desc-lead {
  font-weight: 800;
  color: #1d4ed8;
}

.company-public-page .hero-main-body > .muted {
  margin: 0;
}

.company-public-page .hero-main-body .mobile-quick-form {
  margin-top: 0;
}

.company-public-page .hero-cta-row {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-public-page .hero-points {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  row-gap: 0.4rem;
}

.company-public-page .hero-point {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.company-public-page .hero-point.strong {
  border-color: #86efac;
  background: #ecfdf5;
  color: #166534;
}

.company-public-page .hero-point.brand {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.company-public-page .brand-logo-shell {
  width: 128px;
  height: 128px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.company-public-page .brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  border: 0;
  padding: 0;
}

.company-public-page .brand-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
}

.company-public-page .action-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fafc 100%);
  padding: 0.95rem 0.95rem 1.05rem;
  box-shadow: var(--pc-card-shadow);
  height: fit-content;
}

.company-public-page .action-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.company-public-page .action-panel > * {
  position: relative;
  z-index: 1;
}

.company-public-page .action-panel .kicker {
  padding: 0;
  margin: 0 0 0.55rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 900;
}

.company-public-page .icon-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem 0.35rem;
  padding: 2px 0 1px;
}

.company-public-page .icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  padding: 0.35rem 0.25rem 0.4rem;
  min-height: 62px;
  min-width: 0;
  width: 100%;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.company-public-page button.icon-action {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.company-public-page .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.company-public-page .icon-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.company-public-page .icon-action:hover .icon-btn {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

/* Leyendas bajo iconos: permitir hasta 2 líneas para textos largos ("Guardar contacto", etc.) */
.company-public-page .icon-caption {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-width: 100%;
  text-align: center;
}

.company-public-page .icon-btn.whatsapp { background: #ecfdf5; border-color: #86efac; color: #15803d; }
.company-public-page .icon-btn.phone { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.company-public-page .icon-btn.web { background: #f5f3ff; border-color: #c4b5fd; color: #6d28d9; }
.company-public-page .icon-btn.email { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.company-public-page .icon-btn.save { background: #ecfeff; border-color: #67e8f9; color: #0e7490; }

.company-public-page .trust-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: var(--pc-card-radius);
  border: var(--pc-card-border);
  background: var(--pc-card-bg);
  box-shadow: var(--pc-card-shadow);
}

.company-public-page .trust-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  z-index: 0;
}

.company-public-page .trust-card > * {
  position: relative;
  z-index: 1;
}

.company-public-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.55rem;
}

.company-public-page .proof-note {
  padding: 9px 11px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 10px;
  color: #166534;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.company-public-page .benefits-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

.company-public-page .services-grid {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.company-public-page .section-title-main {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.company-public-page .section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}

.company-public-page .empty-card {
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.company-public-page .media-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  box-shadow: var(--pc-card-shadow);
  background: var(--pc-card-bg);
  padding: 1.1rem 1.15rem 1.15rem;
}

.company-public-page .media-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.company-public-page .media-tile > * {
  position: relative;
  z-index: 1;
}

/* Misma familia que .trust-card: barra --pc-accent-bar y tokens de tarjeta */
.company-public-page .business-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  box-shadow: var(--pc-card-shadow);
  background: var(--pc-card-bg);
  padding: 1.1rem 1.15rem 1.15rem;
}

.company-public-page .business-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.company-public-page .business-box > * {
  position: relative;
  z-index: 1;
}

/* Canales + formulario de leads: misma tarjeta que business-box */
.company-public-page .contact-block,
.company-public-page .lead-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  box-shadow: var(--pc-card-shadow);
  background: var(--pc-card-bg);
  padding: 1.1rem 1.15rem 1.15rem;
}

.company-public-page .contact-block::before,
.company-public-page .lead-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.company-public-page .contact-block > *,
.company-public-page .lead-block > * {
  position: relative;
  z-index: 1;
}

.company-public-page .contact-block .empty-card {
  border-radius: var(--radius-md);
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.company-public-page .conv-form-step2 {
  margin-bottom: 0.65rem;
}

.company-public-page .conv-form-step2-summary {
  cursor: pointer;
  font-weight: 700;
  color: #1d4ed8;
  list-style: none;
}

.company-public-page .conv-form-step2-summary::-webkit-details-marker {
  display: none;
}

.company-public-page .conv-form-step2-body {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.65rem;
}

.company-public-page .conv-form-step2-grid {
  margin-top: 0;
}

.company-public-page .conv-form-upload {
  margin-top: 0;
}

.company-public-page .qr-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  box-shadow: var(--pc-card-shadow);
  background: var(--pc-card-bg);
  padding: 1.1rem 1.15rem 1.15rem;
}

.company-public-page .qr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.company-public-page .qr-card > * {
  position: relative;
  z-index: 1;
}

.company-public-page .faq-item {
  border: var(--pc-card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 0.65rem 0.75rem;
}

.company-public-page .benefit-card {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 10px;
  padding: 9px 10px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  line-height: 1.35;
}

.company-public-page .benefit-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}

.company-public-page .service-pill {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.company-public-page .address-box {
  margin-top: 0.75rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.75rem 0.85rem;
}

.company-public-page .mobile-quick-form {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: var(--pc-card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.company-public-page .mobile-quick-form .quick-grid {
  display: grid;
  gap: 0.5rem;
}

/* Sección «Nuestro equipo»: tarjetas alineadas con trust-card / business-box */
.company-public-page .team-section-hint {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.company-public-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.company-public-page .team-member-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.company-public-page .team-member-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 1.2rem 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  background: var(--pc-card-bg);
  box-shadow: var(--pc-card-shadow);
  height: 100%;
}

.company-public-page .team-member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.company-public-page .team-member-card > * {
  position: relative;
  z-index: 1;
}

.company-public-page .team-member-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.company-public-page .team-member-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.company-public-page .team-member-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.company-public-page .team-member-role {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.company-public-page .team-member-cta {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1d4ed8;
}

.company-public-page .team-member-link:hover .team-member-cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1100px) {
  .company-public-page .hero-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .company-public-page .action-panel {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .company-public-page .hero {
    padding: 1.15rem 1rem 1.25rem;
  }

  .company-public-page .brand-logo-shell {
    width: 112px;
    height: 112px;
  }

  .company-public-page .icon-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .company-public-page .icon-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .company-public-page .benefits-grid {
    grid-template-columns: 1fr;
  }

  .company-public-page .services-grid {
    grid-template-columns: 1fr;
  }

  .company-public-page .hero-main-body > .desc {
    max-width: 100%;
  }

  .company-public-page .hero-head {
    justify-content: center;
  }

  .company-public-page .hero-title-wrap {
    align-items: center;
  }

  .company-public-page .hero-main,
  .company-public-page .hero-main-body {
    text-align: center;
  }

  .company-public-page .section-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .company-public-page .proof-note {
    text-align: center;
  }

  .company-public-page .hero-points,
  .company-public-page .hero-cta-row,
  .company-public-page .share-primary-row,
  .company-public-page .qr-actions,
  .company-public-page .social-actions {
    justify-content: center;
  }

  .company-public-page .brand-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .company-public-page .brand-logo-shell {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  }

  .company-public-page .brand-logo-fallback {
    font-size: 34px;
    border-radius: 16px;
  }

  .company-public-page .ops-list,
  .company-public-page .faq-item,
  .company-public-page .testimonial-item,
  .company-public-page .contact-item,
  .company-public-page .lead-block,
  .company-public-page .qr-card {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .company-public-page.public-page {
    padding: 1.15rem clamp(0.6rem, 4vw, 1rem) 1.65rem;
    gap: 1.15rem;
  }

  .company-public-page .hero {
    padding: 1.05rem 0.95rem 1.15rem;
  }

  .company-public-page .hero-title-wrap h1 {
    font-size: 1.6rem;
  }

  .company-public-page .hero-title-wrap .tagline {
    font-size: 1rem;
  }

  .company-public-page .hero-points {
    justify-content: center;
  }

  .company-public-page .icon-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════════════════════════
   Tarjeta pública de CONTACTO / empleado (contact_card_public.html)
   Mismo lenguaje que company-public-page + tokens --pc-*
   ═══════════════════════════════════════════════════════════════ */

.contact-public-page {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.35rem clamp(0.75rem, 3.5vw, 1.75rem) 2rem;
  display: grid;
  gap: 1.35rem;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.55;
  box-sizing: border-box;
}

/* body.public-view (base.html): tarjeta personal, trabajadores (contacto) y empresa — ancho del main */
body.public-view .public-card-wrap.personal-public-page,
body.public-view .public-card-wrap.contact-public-page,
body.public-view .public-card-wrap.company-public-page {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 1.25rem clamp(0.45rem, 1.65vw, 1.1rem) 2.5rem;
  box-sizing: border-box;
}
/* Mismo nodo puede llevar .company-public-page / .contact-public-page: alinear padding con el wrap */
body.public-view .company-public-page.public-page,
body.public-view .contact-public-page {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 1.25rem clamp(0.45rem, 1.65vw, 1.1rem) 2.5rem;
  box-sizing: border-box;
}

.contact-public-page .hero {
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--pc-card-radius);
  border: var(--pc-card-border);
  background: linear-gradient(165deg, #eef2ff 0%, #f0f7ff 38%, #f8fbff 100%);
  box-shadow: var(--pc-card-shadow);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 0;
}

.contact-public-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 240px at 8% -5%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 65%),
    radial-gradient(400px 180px at 92% 100%, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

.contact-public-page .hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  z-index: 1;
}

.contact-public-page .hero-wrap,
.contact-public-page .hero-main {
  position: relative;
  z-index: 2;
}

.contact-public-page .hero-wrap {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: start;
}

.contact-public-page .hero-main {
  display: grid;
  gap: 0.85rem;
}

.contact-public-page .hero-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.contact-public-page .hero-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.contact-public-page .hero-title-wrap h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.12;
}

.contact-public-page .hero-title-wrap .tagline {
  color: #1d4ed8;
  font-weight: 800;
  margin: 0;
  margin-top: 0.1rem;
}

/* Mismo patrón que company_profile: cuerpo bajo logo+título, ancho completo */
.contact-public-page .hero-main-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.contact-public-page .hero-main-body .desc {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.contact-public-page .hero-main-body .desc-lead {
  font-weight: 800;
  color: #1d4ed8;
}

.contact-public-page .hero-main-body .hero-testimonial {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 700;
  color: #334155;
}

.contact-public-page .brand-logo-shell {
  width: 128px;
  height: 128px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-public-page .brand-logo-shell.has-logo .brand-logo-fallback {
  display: none;
}

.contact-public-page .brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  border: 0;
  padding: 0;
}

.contact-public-page .brand-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  box-shadow: var(--pc-card-shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fafc 100%);
  padding: 0.95rem 0.95rem 1.05rem;
}

.contact-public-page .pc-actions-head {
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.contact-public-page .pc-actions-name {
  font-size: 1.05rem;
  line-height: 1.2;
}

.contact-public-page .pc-actions-user {
  margin-top: 0.2rem;
}

.contact-public-page .pc-actions-label {
  padding-top: 0.65rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.05em;
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) .pc-actions-grid {
  gap: 0.45rem 0.35rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 2px 0 1px;
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) .pc-action-item {
  padding: 0.4rem 0.25rem 0.4rem;
  min-height: 62px;
  min-width: 0;
  width: 100%;
  border-radius: 12px;
  box-sizing: border-box;
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) .pc-action-icon {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  line-height: 0;
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) .pc-action-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) .pc-action-caption {
  font-size: 0.68rem;
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) > * {
  position: relative;
  z-index: 1;
}

.contact-public-page .pc-actions-avatar-shell {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-public-page .pc-actions-avatar-shell.has-photo .pc-actions-avatar-fb {
  display: none;
}

.contact-public-page .pc-actions-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.contact-public-page .pc-actions-avatar-fb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
}

.contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) .pc-action-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 0.1rem;
  line-height: 1.3;
}

.contact-public-page .services-card,
.contact-public-page .pc-section:not(.company-link-card) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--pc-card-radius);
  border: var(--pc-card-border);
  background: var(--pc-card-bg);
  box-shadow: var(--pc-card-shadow);
  padding: 1.1rem 1.15rem 1.15rem;
}

.contact-public-page .services-card::before,
.contact-public-page .pc-section:not(.company-link-card)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  z-index: 0;
}

.contact-public-page .services-card > *,
.contact-public-page .pc-section:not(.company-link-card) > * {
  position: relative;
  z-index: 1;
}

.contact-public-page .company-link-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: var(--pc-card-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  padding: 1.05rem 1.1rem 1.1rem;
}

.contact-public-page .company-link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0;
}

.contact-public-page .company-link-card > * {
  position: relative;
  z-index: 1;
}

.contact-public-page .pc-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--pc-card-radius);
  border: var(--pc-card-border);
  background: var(--pc-card-bg);
  box-shadow: var(--pc-card-shadow);
  padding: 1.1rem 1.15rem 1.2rem;
}

.contact-public-page .pc-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc-accent-bar);
  border-radius: var(--pc-card-radius) var(--pc-card-radius) 0 0;
  z-index: 0;
}

.contact-public-page .pc-footer > * {
  position: relative;
  z-index: 1;
}

.contact-public-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.55rem;
}

.contact-public-page .section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.contact-public-page .section-title-main {
  margin-top: 2px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  font-family: var(--font-display);
}

.contact-public-page .pc-top-brand {
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.42rem 0.8rem 0.42rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #f0f7ff 55%, #e8f2ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 10px rgba(37, 99, 235, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.contact-public-page a.pc-top-brand,
.contact-public-page a.pc-top-brand:link,
.contact-public-page a.pc-top-brand:visited {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-public-page a.pc-top-brand:hover {
  border-color: #93c5fd;
  background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 45%, #e0edff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 22px rgba(37, 99, 235, 0.11);
  transform: translateY(-1px);
}

.contact-public-page a.pc-top-brand:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.contact-public-page a.pc-top-brand:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 8px rgba(37, 99, 235, 0.08);
}

.contact-public-page .pc-mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: #fff;
  flex: 0 0 auto;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.contact-public-page .pc-mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-public-page .pc-brand-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
  text-align: left;
}

.contact-public-page .pc-brand-kicker {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.1;
}

.contact-public-page .pc-brand-name {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.2;
  min-width: 0;
  word-break: break-word;
}

.contact-public-page .proof-note {
  padding: 9px 11px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 10px;
  color: #166534;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.contact-public-page .benefits-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.contact-public-page .benefit-card {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 10px;
  padding: 9px 10px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  line-height: 1.35;
}

.contact-public-page .pc-services-list {
  margin-top: 1rem;
}

.contact-public-page .benefit-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}

.contact-public-page .services-subtitle {
  margin-top: 0.75rem;
  font-size: 14px;
  color: #334155;
  font-weight: 800;
}

.contact-public-page .services-grid {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.contact-public-page .service-pill {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-public-page .address-box {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.75rem 0.85rem;
}

.contact-public-page .address-value {
  margin-top: 4px;
  color: #1f2937;
  font-weight: 600;
}

.contact-public-page .address-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.contact-public-page .address-map {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.contact-public-page .address-map iframe {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
}

.contact-public-page details summary {
  cursor: pointer;
  font-weight: 700;
  color: #1d4ed8;
  list-style: none;
}

.contact-public-page details summary::-webkit-details-marker {
  display: none;
}

.contact-public-page .contact-address-details {
  margin-top: 10px;
}

.contact-public-page .pc-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
}

.contact-public-page .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  row-gap: 0.4rem;
}

.contact-public-page .hero-badge {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-public-page .hero-badge.strong {
  border-color: #86efac;
  background: #ecfdf5;
  color: #166534;
}

.contact-public-page .hero-badge.brand {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.contact-public-page .pc-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.contact-public-page .pc-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.contact-public-page .pc-social-link:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.contact-public-page .pc-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1rem;
  align-items: center;
}

.contact-public-page .qr-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.75rem 0.85rem;
  text-align: center;
}

.contact-public-page .qr-box .qr-img {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  border: 1px solid #e5e7eb;
}

.contact-public-page .qr-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
}

.contact-public-page .contact-help {
  margin-top: 0.65rem;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 10px 12px;
}

.contact-public-page .contact-help .title {
  font-size: 12px;
  font-weight: 900;
  color: #1d4ed8;
}

.contact-public-page .contact-help .steps {
  margin-top: 4px;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.contact-public-page .company-link-card .btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
}

.contact-public-page .pc-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.contact-public-page .pc-branding {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  padding-top: 0.5rem;
  margin-top: 0.15rem;
}

.contact-public-page .pc-branding a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.contact-public-page .pc-branding a:hover {
  text-decoration: underline;
}

.contact-public-page .pc-action-item.primary-action {
  box-shadow: none;
}

.contact-public-page .pc-action-item.primary-action:hover {
  transform: translateY(-1px);
}

.contact-public-page .pc-action-item.primary-action .pc-action-icon.whatsapp {
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.25);
}

.contact-public-page .pc-action-item.primary-action:hover .pc-action-icon.whatsapp {
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
  filter: saturate(1.06);
}

/* Trabajador / contacto con layout tipo tarjeta personal (una columna, iconos bajo el nombre) */
.contact-public-page.personal-public-page .pc-top-shell--personal-onecol {
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (min-width: 1025px) {
  .contact-public-page.personal-public-page .pc-top-shell--personal-onecol .pc-top-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .contact-public-page.personal-public-page .pc-top-shell--personal-onecol .pc-top-hero-wide {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
}
.contact-public-page.personal-public-page .pc-actions-panel--personal-icons-inline {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  isolation: auto !important;
  overflow: visible !important;
  grid-column: unset !important;
  grid-row: unset !important;
}
.contact-public-page.personal-public-page .pc-actions-panel--personal-icons-inline::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
}
.contact-public-page.personal-public-page .pc-actions-panel--personal-icons-inline .pc-actions-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: unset !important;
  padding: 0 !important;
  gap: 0.4rem !important;
}

@media (max-width: 1100px) {
  .contact-public-page .hero-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-public-page .pc-actions-panel:not(.pc-actions-panel--personal-icons-inline) .pc-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-public-page .hero {
    padding: 1.15rem 1rem 1.25rem;
  }

  .contact-public-page .brand-logo-shell {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 768px) {
  .contact-public-page {
    padding: 1.15rem 0.85rem 1.65rem;
    gap: 1.15rem;
  }

  .contact-public-page .hero {
    padding: 1.05rem 0.95rem 1.15rem;
  }

  .contact-public-page .hero-title-wrap h1 {
    font-size: 1.6rem;
  }

  .contact-public-page .hero-title-wrap .tagline {
    font-size: 1rem;
  }

  .contact-public-page .hero-badges {
    justify-content: center;
  }

  .contact-public-page .pc-actions-head {
    align-items: center;
  }
}

@media (max-width: 980px) {
  .contact-public-page .hero-wrap {
    grid-template-columns: 1fr;
  }

  .contact-public-page .pc-footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-public-page .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-public-page .benefits-grid {
    grid-template-columns: 1fr;
  }
}
