/* ==========================================================================
   TuGestor24.com — design system: verde gestoría + navy profesional
   ========================================================================== */

:root {
  --primary: #2f9c5c;
  --primary-dark: #24824a;
  --primary-soft: #e7f6ec;
  --navy: #101a2c;
  --navy-2: #16233a;
  --navy-border: rgba(255,255,255,0.1);
  --bg: #ffffff;
  --sand: #f7f6f2;
  --card: #ffffff;
  --border: #e6e9ee;
  --text: #16202f;
  --muted: #5b6b7c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(16,26,44,.04), 0 12px 30px -18px rgba(16,26,44,.18);
  --shadow-float: 0 2px 6px rgba(16,26,44,.06), 0 24px 48px -24px rgba(16,26,44,.28);
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-check { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.text-accent { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-float); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.cta-sheen { position: relative; overflow: hidden; }
.cta-sheen::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%); pointer-events: none;
}
.cta-sheen:hover::after { animation: sheen .9s ease-out; }
@keyframes sheen { to { transform: translateX(220%); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 24px; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.1; flex-shrink: 0; }
.brand-icon { height: 40px; width: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 20px; color: var(--navy); }
.brand-accent { color: var(--primary); }
.brand-tag { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.brand-logo { height: 68px; width: auto; max-width: none; display: block; flex-shrink: 0; }

.main-nav { display: flex; gap: 20px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--text); position: relative; padding: 4px 0; white-space: nowrap; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Menú desplegable "Trámites de tráfico" ---------- */
.nav-item-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text); padding: 4px 0; white-space: nowrap;
}
.nav-dropdown-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.nav-item-dropdown.open .nav-dropdown-trigger svg, .nav-item-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-trigger.active { color: var(--primary); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; margin-top: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-float); padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.nav-item-dropdown:hover .nav-dropdown-menu, .nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--sand); color: var(--primary); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }

/* ---------- Hero (portada) ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #fbfdfc, #fff); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-panel { position: relative; width: 100%; max-width: 620px; aspect-ratio: 822/648; }
.hero-panel-glow {
  position: absolute; inset: -10%; border-radius: 40%;
  background: radial-gradient(circle at 35% 30%, rgba(47,156,92,.18), transparent 65%);
  filter: blur(10px);
}
.hero-panel-inner {
  position: relative; height: 100%; border-radius: var(--radius-lg);
  background: var(--sand); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero-illustration { width: 78%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 14px; box-shadow: var(--shadow-float);
  animation: float 6s ease-in-out infinite;
}
.float-card-1 { top: 6%; left: -6%; }
.float-card-2 { bottom: 20%; right: -8%; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.float-card-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.float-card-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--primary); stroke-width: 2; }
.float-card-icon-pending { background: #fef3e2; }
.float-card-icon-pending svg { stroke: #d68a1d; }
.float-card-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.float-card-status { font-size: 11.5px; font-weight: 600; }

.badge-card {
  position: absolute; bottom: -6%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 20px 10px 10px; box-shadow: var(--shadow-float);
  white-space: nowrap;
}
.badge-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.badge-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.badge-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.badge-sub { font-size: 11px; color: var(--muted); }
.hero-panel-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Hero (trámites de tráfico): foto a sangre completa con degradado ---------- */
.hero-section { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.95) 34%, rgba(255,255,255,.6) 58%, rgba(255,255,255,0) 78%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .8fr; gap: 40px; align-items: start; padding: 68px 24px 84px; }

.hero-copy h1 { font-size: 46px; line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; color: var(--navy); }
.hero-lead { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 480px; }

.hero-checks { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.hero-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); }

.hero-ctas { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.status-done { color: var(--primary); }
.status-pending { color: #d68a1d; }

/* ---------- Tarjetas "en curso" flotando sobre la foto ---------- */
.quick-stack { display: grid; gap: 12px; margin-top: 6px; }
.quick-card {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  background: rgba(255,255,255,.94); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 13px 15px; box-shadow: var(--shadow-float); backdrop-filter: blur(10px);
}
.quick-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--primary); stroke-width: 2; }
.quick-icon-pending { background: #fef3e2; }
.quick-icon-pending svg { stroke: #d68a1d; }
.quick-copy strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.quick-copy small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; }
.quick-copy small svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.quick-chevron { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }

/* ---------- Franja de confianza superpuesta a la foto ---------- */
.assurance-wrap { position: relative; padding: 0 0 88px; background: #fff; }
.assurance-bar {
  position: relative; z-index: 3; margin-top: -34px;
  display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.assurance-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; border-right: 1px solid var(--border); }
.assurance-item:last-child { border-right: 0; }
.assurance-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assurance-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--primary); stroke-width: 2; }
.assurance-item strong { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.assurance-item p { font-size: 12px; color: var(--muted); margin-top: 4px; }

.assurance-item-highlight { background: var(--primary); }
.assurance-item-highlight .assurance-icon { background: rgba(255,255,255,.18); }
.assurance-item-highlight .assurance-icon svg { stroke: #fff; }
.assurance-item-highlight strong { color: #fff; }
.assurance-item-highlight p { color: rgba(255,255,255,.82); }

/* ---------- "Así de fácil" + tarjeta de confianza, lado a lado ---------- */
.steps-confidence-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.steps-confidence-grid .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.steps-confidence-grid .section-head { text-align: left; margin: 0 0 32px; max-width: none; }
.confidence-card { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 32px 28px; }
.confidence-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.confidence-card h3 em { color: #6bd695; font-style: normal; }
.confidence-stat { padding: 14px 0; border-top: 1px solid var(--navy-border); }
.confidence-stat:first-of-type { border-top: none; }
.confidence-stat strong { display: block; font-size: 24px; font-weight: 800; }
.confidence-stat span { font-size: 12.5px; color: rgba(255,255,255,.65); }
.confidence-card .btn { width: 100%; margin-top: 18px; }

/* ---------- Notas decorativas escritas a mano ---------- */
.doodle-note {
  position: absolute; font-family: 'Caveat', cursive; font-weight: 700;
  color: var(--primary); font-size: 19px; line-height: 1.2; text-align: center;
  pointer-events: none; z-index: 5;
}
.doodle-note-confidence { bottom: -8%; right: -4%; transform: rotate(-3deg); }
.doodle-note-services { top: 6px; right: 2%; transform: rotate(3deg); }
.doodle-note-callback { top: 8px; right: 4%; font-size: 20px; transform: rotate(-5deg); text-align: right; }
@media (max-width: 900px) { .doodle-note { display: none; } }

/* ---------- Móvil "Así de fácil" (mockup de la app) ---------- */
.steps-confidence-grid { grid-template-columns: 190px 1fr .7fr; }
.phone-mock { align-self: center; }
.phone-mock-frame { background: var(--navy); border-radius: 30px; padding: 10px; box-shadow: var(--shadow-float); }
.phone-mock-screen { background: #fff; border-radius: 20px; padding: 20px 16px; min-height: 260px; }
.phone-mock-brand { font-size: 12px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.phone-mock-brand span { color: var(--primary); }
.phone-mock-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.phone-mock-step { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.phone-mock-step:last-child { border-bottom: none; }
.phone-mock-step.done { color: var(--primary); }
.phone-mock-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.phone-mock-check { width: 17px; height: 17px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-mock-check svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3; }

@media (max-width: 900px) {
  .steps-confidence-grid { grid-template-columns: 1fr; }
  .steps-confidence-grid .steps-grid { grid-template-columns: 1fr; }
  .phone-mock { display: none; }
}

/* ---------- Área profesionales ---------- */
.pro-section { background: var(--navy); color: #fff; padding: 88px 0; }
.pro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }

.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.eyebrow-light { color: #6bd695; }

.pro-copy h2 { font-size: 34px; font-weight: 800; line-height: 1.2; }
.pro-lead { margin-top: 16px; color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 440px; }

.pro-checks { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.pro-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.pro-checks .icon-check { stroke: #6bd695; }

.pro-copy .btn { margin-top: 30px; }

.pro-visual { max-width: 100%; overflow-x: auto; }
.dashboard-mock {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float); overflow: hidden; color: var(--text);
  min-width: 420px;
}
.dashboard-topbar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ef5350; } .dot-yellow { background: #f4b740; } .dot-green { background: #46b36b; }
.dashboard-title { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

.dashboard-body { display: grid; grid-template-columns: 130px 1fr; min-height: 300px; }
.dashboard-side { border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.d-item { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.d-active { background: var(--primary-soft); color: var(--primary); }

.dashboard-main { padding: 18px 20px; }
.dashboard-h { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.dashboard-stats { display: flex; gap: 14px; margin-bottom: 20px; }
.stat { background: var(--sand); border-radius: var(--radius-sm); padding: 10px 16px; flex: 1; text-align: center; }
.stat-num { display: block; font-size: 20px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 600; }

.dashboard-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-progress { background: #fef3e2; color: #d68a1d; }
.tag-done { background: var(--primary-soft); color: var(--primary); }
.tag-nuevo { background: #eaf1fb; color: #3a6bc4; }

/* ---------- Panel de profesionales: lote de vehículos ---------- */
.vehiculo-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; position: relative; }
.vehiculo-card h4 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.vehiculo-card-remove {
  position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: underline;
}
.tramites-tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tramites-tabla th { text-align: left; padding: 10px 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.tramites-tabla td { padding: 12px; border-bottom: 1px solid var(--border); }
.tramites-tabla tr:last-child td { border-bottom: none; }

.dashboard-fab {
  position: absolute; bottom: -18px; right: -14px;
  background: var(--primary); color: #fff; border-radius: 999px;
  width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 8px; box-shadow: var(--shadow-float);
}
.dashboard-fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.dashboard-fab span { font-size: 8.5px; font-weight: 700; line-height: 1.2; }

/* ---------- Servicios ---------- */
.services-section { padding: 92px 0; background: #fff; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--navy); margin-top: 8px; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.services-section .section-head, .steps-section .section-head { text-align: center; }
.services-section .eyebrow, .steps-section .eyebrow { display: block; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Tarjetas de servicio compactas (portada) ---------- */
.services-grid-compact { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.service-card-compact { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 16px 14px; }
.service-card-compact .service-icon { width: 42px; height: 42px; margin: 0; border-radius: 50%; }
.service-card-compact .service-icon svg { width: 20px; height: 20px; }
.service-card-compact h3 { font-size: 12.5px; }
.service-card-compact p { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.35; }
.service-card-chevron { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px 20px; text-align: center;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); border-color: rgba(47,156,92,.4); }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.service-price { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--primary); }

.services-cta { text-align: center; margin-top: 40px; }

/* ---------- 4 pasos ---------- */
.steps-section { padding: 92px 0; background: var(--sand); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.step { text-align: center; position: relative; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.step-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: var(--shadow-card);
}
.step-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.step p { font-size: 13.5px; color: var(--muted); max-width: 220px; margin: 0 auto; }

/* ---------- Contact banner ---------- */
.contact-banner { padding: 0 0 92px; }
.banner-inner {
  display: flex; align-items: center; gap: 24px; background: var(--primary-soft);
  border-radius: var(--radius-lg); padding: 30px 36px; flex-wrap: wrap;
}
.banner-icon {
  width: 54px; height: 54px; border-radius: 50%; background: var(--primary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.banner-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; }
.banner-text { flex: 1; min-width: 220px; }
.banner-q { font-size: 13px; font-weight: 700; color: var(--primary); }
.banner-text h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 4px 0; }
.banner-hours { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.85); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--navy-border); }
.footer-brand .brand { align-items: center; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255,255,255,.55); margin-top: 2px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 14px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.footer-col h4 { font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: #6bd695; }
.footer-contact p { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 12px; line-height: 1.4; }
.footer-contact .icon-sm { stroke: #6bd695; margin-top: 2px; }

.footer-bottom { display: flex; justify-content: space-between; padding: 20px 24px; font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pro-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: min(380px, 100%); margin: 0 auto; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .quick-stack { max-width: 380px; margin-top: 28px; }
  .assurance-bar { grid-template-columns: repeat(2, 1fr); }
  .assurance-item:nth-child(4) { border-right: 0; }
  .assurance-item-highlight { grid-column: 1 / -1; }
  .services-grid-compact { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 16px; display: none; max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { height: 68px; }
  .brand-logo { height: 42px; }
  .header-actions { flex-shrink: 0; }
  .nav-dropdown-trigger { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; margin-top: 8px; padding: 0 0 0 14px; display: none;
  }
  .nav-item-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 0; }
  .header-actions .btn-sm span { display: none; }
  .hero-section { min-height: 0; display: block; }
  .hero-photo { position: relative; height: 280px; object-position: 65% center; }
  .hero-wash { display: none; }
  .hero-inner { padding: 24px 20px 40px; }
  .hero-copy h1 { font-size: 34px; }
  .quick-stack { display: none; }
  .assurance-bar { grid-template-columns: 1fr; margin-top: -20px; border-radius: var(--radius-md); }
  .assurance-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .assurance-item:last-child { border-bottom: 0; }
  .assurance-item-highlight { grid-column: auto; }
  .pro-copy h2 { font-size: 27px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid-compact { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Páginas internas — cabecera de sección
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, var(--sand), #fff);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.page-hero h1 { font-size: 36px; font-weight: 800; color: var(--navy); }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 560px; }

.main-nav a.active { color: var(--primary); }
.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Servicios — página completa
   ========================================================================== */
.services-full { padding: 80px 0; }
.service-card-full {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.service-card-full:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: rgba(47,156,92,.4); }
.service-card-full .service-icon { flex-shrink: 0; margin: 0; }
.service-card-full h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-card-full p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.services-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .services-full-grid { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq-section { padding: 0 0 90px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: none; padding: 18px 22px; font-size: 15px; font-weight: 700;
  color: var(--navy); text-align: left; cursor: pointer;
}
.faq-question svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2; transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.16,1,.3,1); }
.faq-answer p { padding: 0 22px 20px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   Nosotros
   ========================================================================== */
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 15px; margin-top: 14px; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.about-stat { text-align: center; background: var(--sand); border-radius: var(--radius-md); padding: 22px 10px; }
.about-stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.about-stat-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 760px) { .values-grid, .about-grid { grid-template-columns: 1fr; } }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; text-align: center; }
.value-card .service-icon { margin: 0 auto 16px; }
.value-card h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--muted); }

.timeline { position: relative; margin-top: 40px; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 90px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-left: 130px; padding-bottom: 36px; }
.timeline-year { position: absolute; left: 0; top: 0; font-weight: 800; color: var(--primary); font-size: 14px; width: 70px; text-align: right; }
.timeline-dot { position: absolute; left: 84px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border); }
.timeline-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.timeline-item p { font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 34px; height: fit-content; }
.contact-info-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,.65); font-size: 13.5px; margin-bottom: 26px; }
.contact-info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-row .icon-sm { stroke: #6bd695; width: 18px; height: 18px; margin-top: 2px; }
.contact-info-row strong { display: block; font-size: 13.5px; }
.contact-info-row span { font-size: 12.5px; color: rgba(255,255,255,.65); }
.map-embed { margin-top: 24px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--navy-border); }
.map-embed iframe { width: 100%; height: 170px; border: 0; display: block; filter: grayscale(.2); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px;
  font-family: var(--font-sans); font-size: 14px; color: var(--text); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-error { font-size: 12px; color: #d64545; min-height: 16px; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: #d64545; }
.form-success {
  display: none; align-items: center; gap: 10px; background: var(--primary-soft); color: var(--primary-dark);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13.5px; font-weight: 600; margin-top: 6px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.checkbox-field input { margin-top: 3px; accent-color: var(--primary); }
.checkbox-field label { font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Portal de cliente — pestañas
   ========================================================================== */
.portal-tabs { display: flex; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.portal-tab-btn {
  background: none; border: none; padding: 12px 18px; font-size: 13.5px; font-weight: 700; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px;
}
.portal-tab-btn:hover { color: var(--text); }
.portal-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.portal-tab-panel { display: none; }
.portal-tab-panel.active { display: block; }
.portal-plan-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.portal-plan-nombre { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.factura-lista { display: flex; flex-direction: column; }
.factura-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.factura-item:last-child { border-bottom: none; }
.factura-item-nombre { display: flex; align-items: center; gap: 10px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factura-item-fecha { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.factura-item a { flex-shrink: 0; font-weight: 700; color: var(--primary); }

/* ==========================================================================
   Área profesionales — login
   ========================================================================== */
.auth-section { padding: 70px 0 100px; min-height: 60vh; display: flex; align-items: center; }
.auth-card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-card); text-align: center; }
.auth-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.auth-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 2; }
.auth-card h1 { font-size: 22px; font-weight: 800; color: var(--navy); }
.auth-card > p { font-size: 13.5px; color: var(--muted); margin-top: 8px; margin-bottom: 26px; }
.auth-card .form-field { text-align: left; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12.5px; }
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-note { margin-top: 18px; font-size: 11.5px; color: var(--muted); background: var(--sand); border-radius: var(--radius-sm); padding: 10px 14px; }

/* ==========================================================================
   Solicitar trámite — wizard
   ========================================================================== */
.wizard-section { padding: 70px 0 100px; }
.wizard-shell { max-width: 640px; margin: 0 auto; }
.wizard-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 40px; }
.wizard-step-dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--sand); border: 2px solid var(--border);
  color: var(--muted); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
  transition: all .3s ease; flex-shrink: 0;
}
.wizard-step-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-step-dot.done { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.wizard-progress-line { flex: 1; max-width: 60px; height: 2px; background: var(--border); }
.wizard-progress-line.done { background: var(--primary); }

.wizard-panel { display: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.wizard-panel.active { display: block; }
.wizard-panel h2 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 22px; }

.tramite-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .tramite-options { grid-template-columns: 1fr; } }
.tramite-option { position: relative; }
.tramite-option input { position: absolute; opacity: 0; }
.tramite-option label {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.tramite-option input:checked + label { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.tramite-option svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 1.8; flex-shrink: 0; }

.wizard-actions { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.wizard-summary { background: var(--sand); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; font-size: 13.5px; }
.wizard-summary div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.wizard-summary div:last-child { border-bottom: none; }
.wizard-summary strong { color: var(--navy); }

.wizard-success { text-align: center; padding: 20px 0; }
.wizard-success .auth-icon { width: 70px; height: 70px; }
.wizard-success .auth-icon svg { width: 32px; height: 32px; }
.wizard-success h2 { margin-top: 6px; }
.wizard-success p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ==========================================================================
   Calculadora de ITP
   ========================================================================== */
.calc-section { padding: 70px 0 40px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-card);
}
.calc-card h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 22px; }

.calc-result { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--sand); }
.calc-result-empty { color: var(--muted); padding: 20px; }
.calc-result-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.calc-result-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; }
.calc-result-content { width: 100%; text-align: left; }
.calc-result-content .eyebrow { text-align: center; display: block; }
.calc-result-amount { font-size: 42px; font-weight: 800; color: var(--primary-dark); text-align: center; margin: 6px 0; }
.calc-result-sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 18px; }

.calc-breakdown { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 16px; }
.calc-breakdown div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.calc-breakdown div:last-child { border-bottom: none; }
.calc-breakdown strong { color: var(--navy); }

.calc-total-section {
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border);
}
.calc-total-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.calc-total-section select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: var(--font-sans); font-size: 13.5px; color: var(--text);
  background: #fff; margin-bottom: 14px;
}
.calc-total-breakdown { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.calc-total-breakdown div { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.calc-total-breakdown strong { color: var(--text); font-weight: 600; }
.calc-total-final {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.calc-total-final span { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.75); }
.calc-total-final strong { font-size: 22px; font-weight: 800; }

.calc-disclaimer {
  max-width: 900px; margin: 28px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--muted);
  background: var(--sand); border-radius: var(--radius-sm); padding: 16px 20px;
}

/* ==========================================================================
   Páginas de texto (legales, ayuda, blog, mapa del sitio)
   ========================================================================== */
.legal-section { padding: 60px 0 100px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 34px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 20px 0 8px; }
.legal-content p { font-size: 14.5px; line-height: 1.75; color: var(--text); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin: 0 0 14px 20px; }
.legal-content li { font-size: 14.5px; line-height: 1.7; color: var(--text); margin-bottom: 6px; }
.legal-content a { color: var(--primary); font-weight: 600; }
.legal-content strong { color: var(--navy); }
.legal-updated { font-size: 12.5px; color: var(--muted); margin-bottom: 30px; }
.legal-placeholder {
  background: #fff8e6; border: 1px solid #f0d585; border-radius: var(--radius-sm);
  padding: 2px 6px; color: #8a6516; font-weight: 700; font-size: 0.95em;
}
.legal-note {
  background: var(--sand); border-radius: var(--radius-md); padding: 16px 20px;
  font-size: 13px; color: var(--muted); margin-bottom: 30px; line-height: 1.6;
}
.legal-toc { background: var(--sand); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 30px; }
.legal-toc p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: 10px; }
.legal-toc ol { margin: 0 0 0 18px; }
.legal-toc li { font-size: 13.5px; margin-bottom: 4px; }
.legal-toc a { color: var(--text); font-weight: 600; }
.legal-toc a:hover { color: var(--primary); }

/* Mapa del sitio */
.sitemap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-col h3 { font-size: 13.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.sitemap-col ul { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sitemap-col a { font-size: 14.5px; color: var(--text); font-weight: 600; }
.sitemap-col a:hover { color: var(--primary); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.blog-card-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.blog-card h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin: 8px 0; }
.blog-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.blog-card-meta { font-size: 12px; color: var(--muted); }

/* Lista de documentación requerida */
.required-docs {
  background: var(--primary-soft); border-radius: var(--radius-md);
  padding: 18px 20px; margin-bottom: 20px;
}
.required-docs-title { font-size: 13.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.required-docs ul { display: flex; flex-direction: column; gap: 8px; }
.required-docs li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.required-docs li svg { width: 17px; height: 17px; fill: none; stroke: var(--primary); stroke-width: 2; flex-shrink: 0; }

/* File upload */
.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 30px 20px; text-align: center;
  cursor: pointer; transition: border-color .2s ease, background .2s ease; position: relative;
}
.file-drop:hover, .file-drop.drag { border-color: var(--primary); background: var(--primary-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop svg { width: 30px; height: 30px; fill: none; stroke: var(--primary); stroke-width: 1.8; margin: 0 auto 10px; }
.file-drop p { font-size: 13px; color: var(--muted); }
.file-drop strong { color: var(--primary); }
.file-drop-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.file-list-item { display: flex; align-items: center; justify-content: space-between; background: var(--sand); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px; }
.file-list-item button { background: none; border: none; color: #d64545; cursor: pointer; font-weight: 700; }

/* ==========================================================================
   Pricing (Para profesionales)
   ========================================================================== */
.pricing-section { padding: 80px 0; background: var(--sand); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; transition: transform .3s ease, box-shadow .3s ease; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-float); position: relative; }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.pricing-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.pricing-price { font-size: 68px; font-weight: 800; color: var(--navy); margin: 20px 0 6px; letter-spacing: -.02em; text-align: center; line-height: 1; }
.pricing-price span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.pricing-card > p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pricing-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pricing-list .icon-check { width: 16px; height: 16px; }
.pricing-card .btn { width: 100%; }

.compare-group-title { font-size: 18px; font-weight: 800; color: var(--navy); margin: 40px 0 16px; }
.compare-group-title:first-of-type { margin-top: 10px; }
.compare-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); margin-bottom: 34px; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .compare-feature-col { width: 30%; }
.compare-table td:first-child { text-align: left; font-size: 13.5px; color: var(--text); }
.compare-table thead th { vertical-align: bottom; padding-top: 26px; border-bottom: 2px solid var(--border); position: relative; }
.compare-plan-name { display: block; font-size: 17px; font-weight: 800; color: var(--navy); }
.compare-plan-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.compare-plan-price { display: block; font-size: 24px; font-weight: 800; color: var(--navy); margin-top: 10px; }
.compare-plan-price small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.compare-table th.compare-featured, .compare-table td.compare-featured { background: var(--primary-soft); }
.compare-badge { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.compare-table .icon-check { width: 18px; height: 18px; display: block; margin: 0 auto; }
.compare-table tfoot td { border-bottom: none; padding-top: 20px; padding-bottom: 22px; }
.compare-table tfoot .btn { width: 100%; max-width: 220px; }
@media (max-width: 640px) {
  .compare-plan-name { font-size: 15px; }
  .compare-plan-price { font-size: 20px; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
}

.quote-card {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 40px 44px; max-width: 900px; margin: 0 auto;
}
.quote-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.quote-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; }
.quote-text { flex: 1; min-width: 240px; }
.quote-text h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.quote-text p { font-size: 14px; color: rgba(255,255,255,.72); }
@media (max-width: 640px) { .quote-card { padding: 30px 26px; text-align: center; justify-content: center; } }

/* Counter numbers */
[data-counter] { font-variant-numeric: tabular-nums; }

/* ---------- Responsive: páginas internas (va al final para ganar la cascada) ---------- */
@media (max-width: 760px) {
  .page-hero h1 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .about-grid, .values-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 30px 26px; text-align: center; justify-content: center; }
  .timeline::before { left: 18px; }
  .timeline-item { padding-left: 50px !important; }
  .timeline-dot { left: 10px !important; }
}


/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 480px) { .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; } .whatsapp-float svg { width: 26px; height: 26px; } }

/* ---------- Franja de confianza (sin permanencia / respuesta 24-48h) ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.trust-strip span { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--navy); }
.trust-strip svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2.2; flex-shrink: 0; }
.trust-strip a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.trust-strip .trust-text { display: inline; }

/* ---------- Aviso de oferta (alta de autónomos gratis) ---------- */
.promo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary-dark, var(--navy));
  border: 1px solid var(--primary); border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.promo-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---------- "Te llamamos gratis" ---------- */
.callback-section { padding: 48px 0; background: var(--sand); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.callback-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.callback-inner h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.callback-inner > p { color: var(--muted); margin-bottom: 20px; font-size: 14.5px; }
.callback-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.callback-form input {
  flex: 1; min-width: 160px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; background: #fff;
}
.callback-form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.callback-form textarea {
  flex-basis: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; background: #fff;
  min-height: 70px; resize: vertical;
}
.callback-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.callback-success { display: none; color: var(--primary-dark); font-weight: 700; margin-top: 14px; }
.callback-success.show { display: block; }
.callback-error { display: block; color: #c0392b; font-size: 13px; margin-top: 10px; }
@media (max-width: 560px) { .callback-form { flex-direction: column; } .callback-form input, .callback-form button { width: 100%; } }

/* ==========================================================================
   Panel de profesionales — app propia con barra lateral
   ========================================================================== */
.pro-shell { display: flex; min-height: 100vh; background: var(--sand); }

.pro-sidebar {
  width: 240px; flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.pro-sidebar-brand { padding: 6px 10px 22px; }
.pro-sidebar-brand .brand-name { color: #fff; font-size: 18px; font-weight: 800; }
.pro-sidebar-brand .brand-name .brand-accent { color: var(--primary); }
.pro-sidebar-brand p { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }
.pro-sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pro-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
  background: none; border: none; color: rgba(255,255,255,.72); font-family: inherit; font-size: 13.5px;
  font-weight: 600; text-align: left; cursor: pointer; width: 100%;
}
.pro-nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.pro-nav-item:hover { background: var(--navy-2); color: #fff; }
.pro-nav-item.active { background: #2f6fed; color: #fff; }
.pro-sidebar-footer {
  margin-top: 18px; padding: 16px; background: var(--navy-2); border-radius: var(--radius-md);
  font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.5;
}

.pro-main { flex: 1; min-width: 0; padding: 22px 32px 60px; }
.pro-topbar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.pro-user-chip { display: flex; align-items: center; gap: 10px; position: relative; }
.pro-user-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.pro-user-name { font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.pro-user-role { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pro-user-chip .btn-outline { padding: 8px 14px; }

.panel-view { display: none; }
.panel-view.active { display: block; }

.pro-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.pro-header-row h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.pro-header-row p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.pro-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.pro-stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease;
}
.pro-stat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.pro-stat-top { display: flex; align-items: center; justify-content: space-between; }
.pro-stat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.pro-stat-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--primary-dark); stroke-width: 2; }
.pro-stat-card .chevron { width: 15px; height: 15px; stroke: var(--muted); }
.pro-stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.pro-stat-num { font-size: 26px; font-weight: 800; color: var(--navy); }
.pro-stat-sub { font-size: 11px; color: var(--muted); margin-top: -6px; }

.pro-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.pro-summary-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.pro-summary-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pro-summary-icon svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; }
.pro-summary-icon.ok { background: var(--primary); }
.pro-summary-icon.progreso { background: #2f6fed; }
.pro-summary-icon.pendiente { background: #d68a1d; }
.pro-summary-num { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.pro-summary-label { font-size: 12px; color: var(--muted); }

.pro-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 16px; }
.pro-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pro-card-head h3 { font-size: 15px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.pro-card-head h3 svg { width: 17px; height: 17px; stroke: var(--primary-dark); fill: none; stroke-width: 2; }
.pro-card-head a { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); text-decoration: none; }

.email-recipient-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-md); margin-top: 10px; }
.email-recipient-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); cursor: pointer; }
.email-recipient-item:last-child { border-bottom: none; }
.email-recipient-item:hover { background: var(--sand); }
.email-recipient-item input { flex-shrink: 0; }

.pro-tabla-wrap { overflow-x: auto; }
.pro-tabla { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.pro-tabla th { text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.pro-tabla td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.pro-tabla tr:last-child td { border-bottom: none; }
.pro-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.pro-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.pro-pagination button {
  min-width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff;
  font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer;
}
.pro-pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 980px) {
  .pro-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pro-summary-grid, .pro-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pro-shell { flex-direction: column; }
  .pro-sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 14px; }
  .pro-sidebar-brand, .pro-sidebar-footer { display: none; }
  .pro-sidebar-nav { flex-direction: row; }
  .pro-nav-item span { display: none; }
  .pro-main { padding: 18px 16px 40px; }
  .pro-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Panel de profesionales: aviso de cuenta pendiente de activar ---------- */
.panel-activation-banner {
  background: #fff8e6; border: 1px solid #f0c14b; border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
}
.panel-activation-text { font-size: 13.5px; color: var(--navy); flex: 1; min-width: 240px; line-height: 1.5; }
.panel-activation-text strong { color: #c0392b; }
.panel-activation-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-activation-upload .file-drop p { font-size: 12px; }
.panel-activation-upload .form-error { font-size: 12px; }

/* ==========================================================================
   OFICINA VIRTUAL del autónomo (portal-cliente.html, js/oficina.js)
   ========================================================================== */
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.of-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Barra lateral: etiquetas de grupo, logo del cliente, contador de mensajes */
.pro-nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.38); padding: 16px 12px 6px; }
.pro-nav-item { position: relative; }
.of-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 6px;
  border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; margin-left: auto; line-height: 1;
}
.of-logo-sidebar { margin-top: 14px; background: #fff; border-radius: var(--radius-md); padding: 10px 12px; display: flex; align-items: center; justify-content: center; }
.of-logo-sidebar img { max-height: 46px; max-width: 100%; object-fit: contain; }
.pro-user-avatar.con-logo { background: #fff; border: 1px solid var(--border); overflow: hidden; padding: 3px; }
.pro-user-avatar.con-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Cabeceras, filtros y tarjetas resumen */
.of-botones-cabecera { display: flex; gap: 10px; flex-wrap: wrap; }
.of-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.of-select, .of-buscar {
  font-family: inherit; font-size: 13.5px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
}
.of-buscar { flex: 1; min-width: 200px; max-width: 340px; }
.of-select:focus, .of-buscar:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.of-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.of-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.of-tile-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.of-tile-num { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.of-tile-sub { font-size: 11.5px; color: var(--muted); }
.of-tiles-grandes .of-tile-num { font-size: 27px; }
.of-verde { color: var(--primary-dark); }
.of-tile-resultado.positivo { background: var(--primary-soft); border-color: #cbead6; }
.of-tile-resultado.positivo .of-tile-num { color: var(--primary-dark); }
.of-tile-resultado.negativo { background: #fdeeee; border-color: #f5cdcd; }
.of-tile-resultado.negativo .of-tile-num { color: #c0392b; }

.of-dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.of-dos-columnas > .pro-card { margin-bottom: 0; }

/* Tablas */
.of-tabla td { vertical-align: middle; }
.of-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.of-celda-texto { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.of-chip { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--sand); padding: 3px 9px; border-radius: 999px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.of-chip-ia { display: inline-block; font-size: 9.5px; font-weight: 800; color: #2f6fed; background: #eaf1fd; padding: 2px 6px; border-radius: 999px; margin-left: 4px; vertical-align: middle; letter-spacing: .03em; }
.of-acciones { text-align: right; white-space: nowrap; }
.of-acciones button {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.of-acciones button:hover { background: var(--sand); color: var(--navy); border-color: var(--border); }
.of-acciones button[data-borrar]:hover { color: #c0392b; }
.of-vacio { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* Avisos */
.of-bloqueo {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px;
  background: linear-gradient(135deg, #101a2c 0%, #1c2d4a 100%); color: #fff; border-radius: var(--radius-md);
}
.of-bloqueo > div:nth-child(2) { flex: 1; min-width: 220px; }
.of-bloqueo p { font-size: 13.5px; color: rgba(255,255,255,.75); }
.of-bloqueo .of-bloqueo-titulo { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.of-bloqueo-icono { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.of-bloqueo-icono .of-icon { width: 20px; height: 20px; stroke: #6bd695; }
.of-info { background: #eaf1fd; border: 1px solid #cfdcf6; color: #1d3d78; border-radius: var(--radius-md); padding: 14px 18px; font-size: 13.5px; margin-bottom: 16px; }
.of-info a { color: #2f6fed; font-weight: 700; text-decoration: underline; }
.of-disclaimer { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; }

/* Modal */
.of-sin-scroll { overflow: hidden; }
.of-modal-fondo {
  position: fixed; inset: 0; z-index: 1000; background: rgba(16,26,44,.55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
  animation: of-aparecer .15s ease;
}
.of-modal { width: 100%; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); animation: of-subir .2s ease; }
.of-modal-cabecera { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.of-modal-cabecera h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.of-modal-cerrar { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--sand); font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.of-modal-cerrar:hover { background: var(--border); color: var(--navy); }
.of-modal-cuerpo { padding: 22px 24px 24px; }
.of-modal-acciones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@keyframes of-aparecer { from { opacity: 0; } }
@keyframes of-subir { from { opacity: 0; transform: translateY(12px); } }

/* Formularios de la oficina */
.of-form .form-field { margin-bottom: 14px; }
.of-form .form-field input, .of-form .form-field select { font-size: 14px; }
.of-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.of-importes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; background: var(--sand); border-radius: var(--radius-md); padding: 16px 16px 2px; margin: 4px 0 12px; }
.of-importes input, .of-importes select { background: #fff; }
.of-drop { padding: 26px 20px; }
.of-drop .of-icon { width: 30px; height: 30px; stroke: var(--primary); margin: 0 auto 10px; }
.of-drop-ia { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px !important; font-weight: 700; color: #2f6fed !important; background: #eaf1fd; padding: 4px 10px; border-radius: 999px; }
.of-drop-ia .of-icon { width: 14px; height: 14px; margin: 0; stroke: #2f6fed; }
.of-leyendo { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 26px; background: #eaf1fd; color: #1d3d78; border-radius: var(--radius-md); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.of-spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(47,111,237,.2); border-top-color: #2f6fed; animation: of-girar .8s linear infinite; flex-shrink: 0; }
@keyframes of-girar { to { transform: rotate(360deg); } }
.of-aviso-revisar { display: flex; align-items: center; gap: 10px; background: #fff8e6; border: 1px solid #f0d58a; color: #6b4d00; border-radius: var(--radius-md); padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; }
.of-aviso-revisar .of-icon { stroke: #d68a1d; }
.of-archivo-actual { font-size: 13px; color: var(--muted); margin: 10px 0 14px; }
.of-archivo-actual:empty { display: none; }

/* Nueva factura */
.of-factura-cabecera { display: grid; grid-template-columns: auto auto 1fr; gap: 24px; background: var(--sand); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px; }
.of-factura-cabecera strong { display: block; font-size: 14.5px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-mini-label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.of-seccion-form { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-dark); margin: 6px 0 10px; }
.of-lineas { display: flex; flex-direction: column; gap: 8px; }
.of-linea { display: grid; grid-template-columns: 1fr 70px 110px 80px 32px; gap: 8px; align-items: end; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.of-linea .form-field { margin-bottom: 0; }
.of-linea-quitar { width: 32px; height: 40px; border: none; background: none; color: var(--muted); font-size: 22px; cursor: pointer; border-radius: var(--radius-sm); }
.of-linea-quitar:hover { background: #fdeeee; color: #c0392b; }
.of-btn-linea { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: none; border: 1px dashed var(--primary); color: var(--primary-dark); font-family: inherit; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; }
.of-btn-linea:hover { background: var(--primary-soft); }
.of-totales { margin: 16px 0 12px auto; max-width: 320px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.of-totales > div { display: flex; justify-content: space-between; gap: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.of-totales .of-total-final { border-top: 2px solid var(--navy); padding-top: 8px; margin-top: 4px; font-size: 17px; font-weight: 800; color: var(--navy); }
.of-nota-legal { font-size: 12px; color: var(--muted); background: var(--sand); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.of-exito { text-align: center; padding: 10px 0 6px; }
.of-exito p { color: var(--muted); margin-bottom: 18px; }
.of-exito .of-exito-titulo { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.of-exito-icono { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.of-exito-icono svg { width: 34px; height: 34px; fill: none; stroke: var(--primary); stroke-width: 2; }

/* Datos de facturación y logo */
.of-dos-columnas:has(.of-logo-card) { grid-template-columns: 1.6fr 1fr; }
.of-card-titulo { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.of-logo-preview { height: 130px; border: 1px dashed var(--border); border-radius: var(--radius-md); background: repeating-conic-gradient(#f7f6f2 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; padding: 14px; }
.of-logo-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.of-logo-preview span { color: var(--muted); font-size: 13px; }
.of-logo-btn { cursor: pointer; }

/* Resultados */
.of-leyenda { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.of-leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.of-leyenda i.ing, .of-barra.ing { background: var(--primary); }
.of-leyenda i.gas, .of-barra.gas { background: #b8c2cf; }
.of-barras { display: flex; align-items: stretch; gap: 6px; height: 200px; }
.of-barra-grupo { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.of-barra-grupo span { font-size: 11px; color: var(--muted); }
.of-barra-par { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--border); }
.of-barra { width: 42%; max-width: 22px; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .4s ease; }
.of-cat { margin-bottom: 12px; }
.of-cat-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 5px; }
.of-cat-fila span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-cat-fila strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.of-cat-barra { height: 7px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.of-cat-barra div { height: 100%; background: linear-gradient(90deg, var(--primary), #6bd695); border-radius: 999px; }

/* Impuestos */
.of-aviso-estimacion { background: #fff8e6; border: 1px solid #f0d58a; color: #6b4d00; border-radius: var(--radius-md); padding: 12px 16px; font-size: 13.5px; margin-bottom: 12px; }
.of-plazo { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.of-plazo strong { color: var(--navy); }
.of-modelo-cabecera { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.of-modelo-cabecera h3 { font-size: 16px; font-weight: 800; color: var(--navy); }
.of-modelo-cabecera p { font-size: 12.5px; color: var(--muted); }
.of-modelo-num { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.of-imp-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.of-imp-fila span:first-child { color: var(--muted); }
.of-imp-fila.of-imp-sub span { color: var(--navy); font-weight: 700; }
.of-imp-resultado { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 700; }
.of-imp-resultado strong { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.of-imp-resultado.pagar { background: #fff1e6; color: #a8521a; }
.of-imp-resultado.favor { background: var(--primary-soft); color: var(--primary-dark); }
.of-imp-nota { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* Chat */
.of-chat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 460px; max-height: 760px; overflow: hidden; }
.of-chat-cabecera { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.of-chat-nombre { font-weight: 800; color: var(--navy); font-size: 15px; }
.of-chat-sub { font-size: 12px; color: var(--muted); }
.of-chat-mensajes { flex: 1; overflow-y: auto; padding: 20px; background: var(--sand); display: flex; flex-direction: column; gap: 8px; }
.of-chat-bienvenida { margin: auto; max-width: 420px; text-align: center; color: var(--muted); font-size: 13.5px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.of-chat-bienvenida strong { color: var(--navy); font-size: 15px; }
.of-chat-bienvenida p + p { margin-top: 6px; }
.of-chat-dia { text-align: center; margin: 10px 0 4px; }
.of-chat-dia span { font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; text-transform: capitalize; }
.of-msg { max-width: 72%; padding: 10px 14px 6px; border-radius: 16px; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; word-wrap: break-word; }
.of-msg.asesor { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.of-msg.propio { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.of-msg-autor { font-size: 11.5px; font-weight: 800; color: var(--primary-dark); }
.of-msg-hora { font-size: 10.5px; opacity: .65; align-self: flex-end; }
.of-msg-adjunto { font-family: inherit; font-size: 13px; font-weight: 700; text-align: left; border: none; border-radius: 10px; padding: 8px 10px; cursor: pointer; background: rgba(16,26,44,.06); color: inherit; }
.of-msg.propio .of-msg-adjunto { background: rgba(255,255,255,.18); }
.of-chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fff; }
.of-chat-adjuntar, .of-chat-enviar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; border: none; }
.of-chat-adjuntar { background: var(--sand); color: var(--muted); }
.of-chat-adjuntar:hover { color: var(--navy); }
.of-chat-enviar { background: var(--primary); color: #fff; }
.of-chat-enviar:hover { background: var(--primary-dark); }
.of-chat-enviar:disabled { opacity: .5; }
.of-chat-escribir { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.of-chat-escribir textarea { font-family: inherit; font-size: 14px; resize: none; border: 1px solid var(--border); border-radius: 21px; padding: 10px 16px; min-height: 42px; max-height: 140px; line-height: 1.4; }
.of-chat-escribir textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.of-chat-adjunto { font-size: 12.5px; background: var(--sand); border-radius: var(--radius-sm); padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.of-chat-adjunto button { border: none; background: none; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }

/* Resumen en Inicio */
.of-inicio:empty { display: none; }
.of-enlace { border: none; background: none; color: var(--primary-dark); font-family: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.of-accesos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.of-accesos button {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: #fff; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.of-accesos button:hover { border-color: var(--primary); background: var(--primary-soft); }
.of-accesos button .of-icon { stroke: var(--primary-dark); }

@media (max-width: 980px) {
  .of-dos-columnas, .of-dos-columnas:has(.of-logo-card) { grid-template-columns: 1fr; }
  .of-accesos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pro-nav-label, .of-logo-sidebar { display: none !important; }
  .of-badge { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .of-tiles { grid-template-columns: 1fr; gap: 10px; }
  .of-tiles .of-tile { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
  .of-grid-2, .of-importes { grid-template-columns: 1fr; }
  .of-importes { grid-template-columns: 1fr 1fr; }
  .of-linea { grid-template-columns: 1fr 1fr 32px; }
  .of-linea .of-linea-desc { grid-column: 1 / -1; }
  .of-linea .form-field:nth-child(4) { grid-column: 1 / 2; }
  .of-factura-cabecera { grid-template-columns: 1fr 1fr; gap: 12px; }
  .of-factura-cabecera > div:last-child { grid-column: 1 / -1; }
  .of-modal-fondo { padding: 0; align-items: stretch; }
  .of-modal { border-radius: 0; min-height: 100%; max-width: none !important; }
  .of-modal-cuerpo { padding: 18px 16px 24px; }
  .of-modal-acciones { flex-direction: column-reverse; }
  .of-modal-acciones .btn { width: 100%; }
  .of-botones-cabecera, .of-botones-cabecera .btn, .pro-header-row > .btn { width: 100%; }
  .of-buscar { max-width: none; }
  .of-msg { max-width: 88%; }
  .of-chat { height: calc(100vh - 170px); border-radius: var(--radius-md); }
  .of-accesos { grid-template-columns: 1fr; }
  .of-barras { height: 160px; }
}

/* Admin — pestaña Oficina virtual */
.ofa-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.ofa-lista-card { max-height: calc(100vh - 140px); overflow-y: auto; position: sticky; top: 16px; }
.ofa-cliente { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; font-family: inherit; }
.ofa-cliente:hover { background: var(--sand); }
.ofa-cliente.activo { background: #eaf1fd; border-color: #cfdcf6; }
.ofa-cliente-nombre { font-weight: 700; font-size: 13.5px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofa-cliente-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofa-cliente-tags { grid-column: 1 / -1; display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ofa-detalle-cabecera h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.ofa-detalle-cabecera p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ofa-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 16px 0; overflow-x: auto; }
.ofa-subtabs button { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 14px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ofa-subtabs button.activo { color: #2f6fed; border-bottom-color: #2f6fed; }
.ofa-subtabs .of-badge { margin-left: 0; }
.ofa-chat { height: 520px; min-height: 0; border-radius: var(--radius-md); }
.ofa-titulo-seccion { font-size: 14px; font-weight: 800; color: var(--navy); margin: 8px 0 10px; }
.ofa-titulo-seccion ~ .ofa-titulo-seccion { margin-top: 26px; }
.ofa-nada { font-size: 13px; color: var(--muted); }
.ofa-carpeta { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; padding: 0 14px; }
.ofa-carpeta summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--navy); font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.ofa-carpeta summary span { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.ofa-subcarpeta { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-dark); margin: 6px 0; }
.ofa-carpeta .pro-tabla-wrap { margin-bottom: 12px; }
.ofa-config { display: flex; flex-direction: column; gap: 16px; }
.ofa-config-bloque { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.ofa-config-bloque h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.ofa-config-bloque p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ofa-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.ofa-estado strong { color: var(--navy); }
@media (max-width: 980px) {
  .ofa-layout { grid-template-columns: 1fr; }
  .ofa-lista-card { position: static; max-height: 320px; }
}
.of-en-chat .whatsapp-float { display: none; }

/* Oficina virtual — impuestos (trimestrales / anuales) */
.of-imp-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.of-segmentos { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.of-segmentos button { border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.of-segmentos button.activo { background: var(--navy); color: #fff; }
.of-modelos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.of-modelos-grid > .pro-card { margin-bottom: 0; }
.of-imp-vacio { font-size: 13px; color: var(--muted); background: var(--sand); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.of-imp-tabla { margin: 4px 0 6px; }
.of-imp-tabla .pro-tabla { font-size: 12.5px; }
.of-imp-resultado.neutro { background: #eef2f7; color: var(--navy); }
.of-trimestres-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.of-trimestres-mini div { background: var(--sand); border-radius: var(--radius-sm); padding: 8px; text-align: center; }
.of-trimestres-mini span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.of-trimestres-mini strong { font-size: 12.5px; color: var(--navy); font-variant-numeric: tabular-nums; }
.of-falta-nif { font-size: 11px; font-weight: 700; color: #c0392b; background: #fdeeee; padding: 2px 8px; border-radius: 999px; }
.of-imp-aviso { font-size: 12.5px; color: #a8521a; background: #fff1e6; border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.of-acciones .of-btn-pdf { width: auto; padding: 0 12px; gap: 6px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--primary-dark); border-color: var(--primary); }
.of-acciones .of-btn-pdf:hover { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary); }
.of-ayuda { font-size: 12px; color: #1d3d78; background: #eaf1fd; border-radius: var(--radius-sm); padding: 8px 10px; }
@media (max-width: 980px) { .of-modelos-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .of-segmentos { width: 100%; } .of-segmentos button { flex: 1; padding: 8px 10px; } .of-trimestres-mini { grid-template-columns: repeat(2, 1fr); } }

/* Oficina virtual — contador del límite del plan Básico */
.of-limite { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 14px; }
.of-limite-texto { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.of-limite-texto strong { color: var(--navy); }
.of-limite-texto a { color: #2f6fed; font-weight: 700; }
.of-limite-barra { height: 7px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.of-limite-barra div { height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s ease; }
.of-limite.casi .of-limite-barra div { background: #d68a1d; }
.of-limite.lleno { border-color: #f5cdcd; background: #fdf6f6; }
.of-limite.lleno .of-limite-barra div { background: #c0392b; }
.of-icono-limite { background: #fff1e6; }
.of-icono-limite .of-icon { width: 30px; height: 30px; stroke: #d68a1d; }

/* Oficina virtual — calendario fiscal */
.of-cal-proximo { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, #101a2c 0%, #1c2d4a 100%); color: #fff; border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 16px; }
.of-cal-cuenta { width: 92px; height: 92px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.of-cal-cuenta-num { font-size: 36px; font-weight: 800; line-height: 1; color: #6bd695; }
.of-cal-cuenta span:last-child { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; }
.of-cal-proximo-etiqueta { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.of-cal-proximo-titulo { font-size: 21px; font-weight: 800; margin: 2px 0 4px; }
.of-cal-proximo-sub { font-size: 13.5px; color: rgba(255,255,255,.75); }
.of-cal-columnas { grid-template-columns: 1.7fr 1fr; }
.of-cal-lista { display: flex; flex-direction: column; }
.of-cal-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.of-cal-item:last-child { border-bottom: none; }
.of-cal-item.pasado { opacity: .5; }
.of-cal-fecha { width: 52px; height: 56px; border-radius: 12px; background: var(--sand); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.of-cal-fecha strong { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1; }
.of-cal-fecha span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.of-cal-info { flex: 1; min-width: 0; }
.of-cal-periodo { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.of-cal-modelos { display: flex; flex-wrap: wrap; gap: 5px; }
.of-cal-modelos span { font-size: 11.5px; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; }
.of-dias { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.of-dias.pronto { background: #fef3e2; color: #b06d12; }
.of-dias.urgente { background: #fdeeee; color: #c0392b; }
.of-cal-mis-modelos { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.of-cal-mis-modelos li { font-size: 13.5px; color: var(--text); background: var(--sand); border-radius: var(--radius-sm); padding: 8px 12px; }
.of-cal-mis-modelos strong { display: inline-block; min-width: 34px; color: var(--navy); }
.of-cal-avisos { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.of-cal-avisos strong { color: var(--navy); }
.of-cal-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-family: inherit; font-size: 13.5px; color: #6b4d00; background: #fff8e6; border: 1px solid #f0d58a; border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 16px; cursor: pointer; }
.of-cal-banner.urgente { color: #8f2a1f; background: #fdeeee; border-color: #f5cdcd; }
.of-cal-banner-dias { background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.of-cal-banner-dias strong { font-size: 17px; }
.of-cal-banner-ver { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* Admin — calendario fiscal */
.cal-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cal-mini { font-size: 11.5px; color: var(--muted); }
.cal-pasado td { opacity: .5; }
.cal-interruptor { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--navy); position: relative; user-select: none; }
.cal-interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.cal-interruptor-bola { width: 44px; height: 24px; border-radius: 999px; background: #cfd6df; position: relative; transition: background .2s ease; flex-shrink: 0; }
.cal-interruptor-bola::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cal-interruptor input:checked + .cal-interruptor-bola { background: var(--primary); }
.cal-interruptor input:checked + .cal-interruptor-bola::after { transform: translateX(20px); }
.cal-interruptor.deshabilitado { opacity: .6; cursor: not-allowed; }
.cal-modelos-check { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px; margin-bottom: 12px; }
.cal-modelos-check .ofa-check { font-weight: 500; font-size: 13.5px; margin-bottom: 4px; }
@media (max-width: 980px) { .of-cal-columnas { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .of-cal-proximo { padding: 18px; gap: 14px; }
  .of-cal-cuenta { width: 72px; height: 72px; }
  .of-cal-cuenta-num { font-size: 28px; }
  .of-cal-proximo-titulo { font-size: 17px; }
  .of-cal-item { flex-wrap: wrap; }
  .of-cal-banner { flex-wrap: wrap; }
  .of-cal-banner-ver { margin-left: 0; }
  .cal-modelos-check { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portada: sección Oficina virtual + demo gratis
   ========================================================================== */
.hero-oficina-link { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: var(--navy); background: var(--primary-soft); border: 1px solid #cbead6; border-radius: 999px; padding: 7px 14px 7px 7px; transition: background .2s ease; }
.hero-oficina-link:hover { background: #d9f0e1; }
.hero-oficina-link strong { color: var(--primary-dark); }
.hero-oficina-nuevo { background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }

.oficina-section { padding: 96px 0; background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); overflow: hidden; }
.oficina-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.oficina-copy h2 { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.oficina-lead { max-width: 560px; font-size: 16px; }
.oficina-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 30px; }
.oficina-feature { display: flex; gap: 12px; align-items: flex-start; }
.oficina-feature-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oficina-feature-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oficina-feature h3 { font-size: 14.5px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.oficina-feature p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.oficina-nota { margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.oficina-visual { position: relative; padding: 20px 10px; }
.oficina-mock { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); overflow: hidden; }
.oficina-mock-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--sand); }
.oficina-mock-h { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.oficina-mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oficina-mock-tiles div { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.oficina-mock-tiles span { font-size: 11px; color: var(--muted); font-weight: 600; }
.oficina-mock-tiles strong { font-size: 17px; font-weight: 800; color: var(--navy); }
.oficina-mock-tiles strong.verde { color: var(--primary-dark); }
.oficina-mock-tiles .beneficio { background: var(--primary-soft); border-color: #cbead6; }
.oficina-mock-tiles .beneficio strong { color: var(--primary-dark); }
.oficina-mock-leyendo { display: flex; align-items: center; gap: 10px; background: #eaf1fd; color: #1d3d78; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; }
.oficina-mock-leyendo em { font-style: normal; font-weight: 600; margin-left: auto; color: #2f6fed; }
.oficina-mock-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(47,111,237,.25); border-top-color: #2f6fed; animation: of-girar .9s linear infinite; }
.oficina-mock-impuestos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oficina-mock-impuestos > div { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.oficina-mock-impuestos .num { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oficina-mock-impuestos p { font-size: 11px; color: var(--muted); }
.oficina-mock-impuestos strong { font-size: 14px; color: #a8521a; }
.oficina-mock-chat { display: flex; flex-direction: column; gap: 6px; }
.oficina-mock-chat .burbuja { max-width: 80%; font-size: 12.5px; padding: 8px 12px; border-radius: 14px; line-height: 1.4; }
.oficina-mock-chat .cliente { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.oficina-mock-chat .asesor { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.oficina-mock-chat .asesor b { display: block; font-size: 11px; color: var(--primary-dark); }
.oficina-flotante { position: absolute; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-float); border-radius: 999px; padding: 9px 14px; font-size: 12.5px; font-weight: 700; color: var(--navy); white-space: nowrap; animation: oficina-flotar 5s ease-in-out infinite; }
.oficina-flotante-1 { top: 0; right: -6px; }
.oficina-flotante-2 { bottom: 34px; left: -14px; animation-delay: 1.5s; }
.oficina-mock-nota { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
@keyframes oficina-flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes of-girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .oficina-flotante, .oficina-mock-spinner { animation: none; } }
@media (max-width: 980px) {
  .oficina-grid { grid-template-columns: 1fr; gap: 40px; }
  .oficina-visual { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .oficina-section { padding: 64px 0; }
  .oficina-copy h2 { font-size: 27px; }
  .oficina-features { grid-template-columns: 1fr; }
  .oficina-flotante-1 { right: 4px; }
  .oficina-flotante-2 { left: 4px; }
  .oficina-mock-tiles strong { font-size: 14px; }
  .oficina-mock-impuestos { grid-template-columns: 1fr; }
}

/* Página demo-gratis.html */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.demo-incluye { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 30px; }
.demo-incluye h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.demo-incluye > p { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 18px; }
.demo-incluye ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.demo-incluye li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.demo-incluye li svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: #6bd695; stroke-width: 2; }
.demo-condiciones { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.65); line-height: 1.6; }
.demo-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.demo-paso { background: var(--sand); border-radius: var(--radius-md); padding: 14px; font-size: 13px; color: var(--muted); }
.demo-paso strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.demo-paso span { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 12px; align-items: center; justify-content: center; margin-bottom: 8px; }
.campo-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .demo-pasos { grid-template-columns: 1fr; } }

/* Oficina: aviso de demo en el portal */
.of-demo-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, #2f6fed 0%, #1d4fc4 100%); color: #fff; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px; }
.of-demo-banner p { flex: 1; min-width: 220px; font-size: 13.5px; color: rgba(255,255,255,.9); }
.of-demo-banner strong { color: #fff; }
.of-demo-banner .btn { background: #fff; color: #1d4fc4; border-color: #fff; }
.of-demo-fin { max-width: 560px; margin: 60px auto; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow-card); }
.of-demo-fin h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin: 14px 0 8px; }
.of-demo-fin p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.of-demo-fin .of-exito-icono { margin: 0 auto; }

/* Portada: 3 pasos de la oficina virtual */
.oficina-lead strong { color: var(--navy); }
.oficina-pasos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.oficina-pasos li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; font-size: 12.5px; color: var(--muted); line-height: 1.4; box-shadow: var(--shadow-card); }
.oficina-pasos li > span { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oficina-pasos strong { display: block; font-size: 14px; color: var(--navy); }
@media (max-width: 760px) { .oficina-pasos { grid-template-columns: 1fr; } }

/* Asesoría autónomos: franja de la oficina virtual */
.oficina-banda { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 30px 34px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 0 auto; }
.oficina-banda > div { flex: 1; min-width: 260px; }
.oficina-banda h2 { font-size: 24px; font-weight: 800; line-height: 1.25; }
.oficina-banda p { color: rgba(255,255,255,.75); font-size: 14.5px; margin-top: 8px; }
.oficina-banda .text-accent { color: #6bd695; }
.oficina-precio { margin-top: 5px; font-size: 12.5px !important; color: var(--primary-dark) !important; background: var(--primary-soft); display: inline-block; padding: 3px 9px; border-radius: 999px; }

/* Oficina: fraccionar un pago */
.of-fracc { margin-top: 16px; }
.of-fracc-cabecera { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.of-fracc-cabecera > div:nth-child(2) { flex: 1; min-width: 220px; }
.of-fracc-cabecera h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.of-fracc-cabecera p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.of-fracc-icono { width: 44px; height: 44px; border-radius: 12px; background: #eaf1fd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.of-fracc-icono svg { width: 22px; height: 22px; fill: none; stroke: #2f6fed; stroke-width: 2; }
.of-fracc-lista { margin-top: 14px; border-top: 1px solid var(--border); }
.of-fracc-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.of-fracc-item:last-child { border-bottom: none; }
.of-fracc-item strong { display: block; font-size: 13.5px; color: var(--navy); }
.of-fracc-item span { font-size: 12px; color: var(--muted); }
.of-fracc-item .of-fracc-nota { display: block; margin-top: 3px; color: #1d3d78; }
.of-fracc-item .tag { flex-shrink: 0; }
.ofa-fracc-fila td { vertical-align: top; }
.ofa-fracc-fila textarea { width: 100%; min-width: 180px; font-family: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; resize: vertical; }

/* ==========================================================================
   Portal: MI AGENDA (calendario)
   ========================================================================== */
.ag-leyenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.ag-leyenda i, .ag-puntos i, .ag-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ag-leyenda i.fiscal, .ag-puntos i.fiscal, .ag-punto.fiscal { background: var(--navy); }
.ag-leyenda i.asesor, .ag-puntos i.asesor, .ag-punto.asesor { background: #2f6fed; }
.ag-leyenda i.propio, .ag-puntos i.propio, .ag-punto.propio { background: var(--primary); }
.ag-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.ag-layout > .pro-card { margin-bottom: 0; }
.ag-cabecera { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ag-cabecera h3 { font-size: 17px; font-weight: 800; color: var(--navy); min-width: 150px; text-align: center; }
.ag-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer; }
.ag-nav:hover { background: var(--sand); }
.ag-hoy { margin-left: auto; }
.ag-rejilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ag-semana { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.ag-dia { min-height: 92px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 6px; display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; font-family: inherit; overflow: hidden; transition: border-color .15s ease, background .15s ease; }
.ag-dia:hover { border-color: #b9c7da; background: #fbfcfd; }
.ag-dia.vacio { border: none; background: none; cursor: default; }
.ag-dia.hoy { border-color: var(--primary); background: var(--primary-soft); }
.ag-dia.seleccionado { border-color: #2f6fed; box-shadow: 0 0 0 2px #cfdcf6; }
.ag-num { font-size: 12.5px; font-weight: 800; color: var(--navy); }
.ag-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-chip { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.ag-chip.fiscal { background: var(--navy); }
.ag-chip.asesor { background: #2f6fed; }
.ag-chip.propio { background: var(--primary); }
.ag-chip.hecho { opacity: .45; text-decoration: line-through; }
.ag-mas { font-size: 10.5px; color: var(--muted); font-weight: 700; padding-left: 4px; }
.ag-puntos { display: none; }
.ag-fila { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ag-fila:last-of-type { border-bottom: none; }
.ag-fila.hecho .ag-fila-info strong { text-decoration: line-through; color: var(--muted); }
.ag-fila .ag-punto { margin: 6px 0 0; flex-shrink: 0; }
.ag-fila-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ag-fila-info strong { font-size: 13.5px; color: var(--navy); }
.ag-fila-info span { font-size: 11.5px; color: var(--muted); }
.ag-fila-info em { font-style: normal; font-size: 12px; color: var(--text); }
.ag-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--primary); background: #fff; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.ag-fila.hecho .ag-check { background: var(--primary); }
.ag-mini { width: 28px; height: 28px; border: none; background: none; color: var(--muted); border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-mini:hover { background: var(--sand); color: var(--navy); }
.ag-mini .of-icon { width: 15px; height: 15px; }
.ag-subtitulo { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 2px; }
#inicioAgendaPreview .ag-fila { padding: 9px 0; }
@media (max-width: 980px) { .ag-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ag-dia { min-height: 54px; padding: 5px 4px; align-items: center; }
  .ag-chips { display: none; }
  .ag-puntos { display: flex; gap: 2px; }
  .ag-puntos i { margin: 0; width: 6px; height: 6px; }
  .ag-cabecera h3 { min-width: 0; font-size: 15px; }
}

/* ==========================================================================
   Portal: MI ALTA DE AUTÓNOMO
   ========================================================================== */
.alta-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.alta-paso { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.alta-paso span { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--muted); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alta-paso p { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.alta-paso.actual { border-color: #2f6fed; box-shadow: 0 0 0 2px #eaf1fd; }
.alta-paso.actual span { background: #2f6fed; color: #fff; }
.alta-paso.actual p { color: var(--navy); }
.alta-paso.hecho span { background: var(--primary); color: #fff; }
.alta-paso.hecho p { color: var(--primary-dark); }
.alta-sms { border-color: #f0d58a; background: #fffaf0; }
.alta-sms h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.alta-sms p { font-size: 13.5px; color: var(--text); margin-bottom: 12px; }
.alta-sms-form { display: flex; gap: 10px; flex-wrap: wrap; }
.alta-sms-form input { flex: 1; min-width: 160px; font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: .2em; padding: 10px 14px; border: 2px solid #f0d58a; border-radius: var(--radius-sm); }
.alta-checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.alta-checklist li { font-size: 13.5px; color: var(--text); padding-left: 28px; position: relative; }
.alta-checklist li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); }
.alta-checklist li.ok::before { content: "✓"; border-color: var(--primary); background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.alta-checklist a { color: #2f6fed; font-weight: 700; }
.alta-completada { margin-bottom: 16px; }
@media (max-width: 760px) { .alta-pasos { grid-template-columns: 1fr; } }

/* Portal: documentos para el asesor */
.doc-asesor-item { align-items: flex-start; }
.doc-asesor-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-asesor-cat { font-size: 11.5px; color: var(--muted); }
.doc-asesor-respuesta { margin-top: 6px; font-size: 13px; color: #1d3d78; background: #eaf1fd; border-radius: var(--radius-sm); padding: 8px 10px; white-space: normal; }

/* ==========================================================================
   Página alta-autonomo.html
   ========================================================================== */
.alta-como { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.alta-como-paso { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-card); }
.alta-como-paso span { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.alta-como-paso h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.alta-como-paso p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.alta-planes-titulo { font-size: 14px; font-weight: 800; color: var(--navy); margin: 6px 0 10px; }
.alta-planes-titulo span { font-weight: 500; color: var(--muted); font-size: 13px; }
.alta-planes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.alta-plan { position: relative; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--border); border-radius: var(--radius-md); padding: 16px; cursor: pointer; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.alta-plan input { position: absolute; opacity: 0; pointer-events: none; }
.alta-plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.alta-plan-nombre { font-size: 15px; font-weight: 800; color: var(--navy); }
.alta-plan-precio { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.alta-plan-precio small { font-size: 12px; font-weight: 600; color: var(--muted); }
.alta-plan-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.alta-plan-badge { position: absolute; top: -11px; right: 12px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.alta-condiciones { background: var(--sand); border-radius: var(--radius-md); padding: 14px 16px; font-size: 13px; color: var(--text); line-height: 1.55; margin: 14px 0; }
#altaSuccess span { flex: 1; }
@media (max-width: 900px) { .alta-como { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .alta-como, .alta-planes { grid-template-columns: 1fr; } }

/* ==========================================================================
   Página colaboraciones.html
   ========================================================================== */
.colab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.colab-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); }
.colab-icono { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.colab-icono svg { width: 22px; height: 22px; fill: none; stroke: var(--primary-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.colab-card h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.colab-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.colab-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.colab-card li { font-size: 13.5px; color: var(--text); padding-left: 24px; position: relative; }
.colab-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.colab-porque { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 30px; }
.colab-porque div { display: flex; flex-direction: column; gap: 3px; }
.colab-porque strong { font-size: 20px; font-weight: 800; color: #6bd695; }
.colab-porque span { font-size: 13px; color: rgba(255,255,255,.75); }
.colab-form-wrap { max-width: 760px; margin: 0 auto; }
@media (max-width: 900px) { .colab-grid { grid-template-columns: 1fr; } .colab-porque { grid-template-columns: 1fr 1fr; } }

/* Portada y Autónomos: "Asesoría + software, todo en uno" */
a.promo-badge { text-decoration: none; transition: transform .15s ease; }
a.promo-badge:hover { transform: translateY(-1px); }
.todo-en-uno-section { padding: 88px 0 20px; background: #fff; }
.todo-en-uno-section .section-head { max-width: 680px; }
.todo-en-uno-section .eyebrow { display: block; }
.todo-en-uno-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.todo-en-uno-card { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.todo-en-uno-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.todo-en-uno-card li { font-size: 14.5px; line-height: 1.5; padding-left: 30px; position: relative; }
.todo-en-uno-etiqueta { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.todo-en-uno-card.antes { background: var(--sand); border: 1px solid var(--border); color: var(--muted); }
.todo-en-uno-card.antes .todo-en-uno-etiqueta { color: var(--muted); }
.todo-en-uno-card.antes li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e9e4dc; color: #a19a8f; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.todo-en-uno-card.ahora { background: var(--navy); color: rgba(255,255,255,.85); box-shadow: var(--shadow-float); }
.todo-en-uno-card.ahora .todo-en-uno-etiqueta { color: #6bd695; }
.todo-en-uno-card.ahora strong { color: #fff; }
.todo-en-uno-card.ahora li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.todo-en-uno-card.ahora .btn { align-self: flex-start; margin-top: auto; }
.todo-en-uno-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.todo-en-uno-chips span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--navy); }
.compare-grupo td { background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: 13px; text-align: left !important; }
.compare-link { font-size: 12px; font-weight: 700; color: var(--primary); margin-left: 6px; white-space: nowrap; }
@media (max-width: 860px) { .todo-en-uno-grid { grid-template-columns: 1fr; } .todo-en-uno-section { padding: 64px 0 10px; } }

/* Admin: altas de autónomo */
.alta-admin.cerrada { opacity: .6; }
.alta-admin-cabecera { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.alta-admin-cabecera h4 { font-size: 16px; font-weight: 800; color: var(--navy); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.alta-admin-cabecera p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.alta-admin-faltan { align-self: flex-start; font-size: 12px; font-weight: 700; color: #a8521a; background: #fff1e6; padding: 5px 10px; border-radius: 999px; }
.alta-admin-datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; background: var(--sand); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.alta-admin-datos div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alta-admin-datos span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.alta-admin-datos strong { font-size: 13.5px; color: var(--navy); font-weight: 600; word-break: break-word; }
.alta-admin-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.alta-admin-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.alta-admin-form label.ancho { flex: 1; min-width: 220px; }
.alta-admin-form textarea { font-family: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; resize: vertical; }

/* Admin: documentos para revisar */
.doc-revisar { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.doc-revisar:last-child { border-bottom: none; }
.doc-revisar.revisado { opacity: .65; }
.doc-revisar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-revisar-info strong { font-size: 13.5px; color: var(--navy); }
.doc-revisar-info span { font-size: 12px; color: var(--muted); }
.doc-revisar-info em { font-size: 13px; color: var(--text); }
.doc-revisar-resp { font-size: 12.5px; color: #1d3d78; background: #eaf1fd; border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.doc-revisar-acciones { display: flex; gap: 6px; align-items: flex-start; }
.doc-revisar-form { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.doc-revisar-form textarea { width: 100%; font-family: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }

.compare-plan-iva, .alta-plan-iva { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* Profesionales: tarifa única (panel) y ventajas (página pública) */
.tarifas-pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.tarifa-pro { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tarifa-pro.destacada { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tarifa-pro-nombre { font-size: 13px; font-weight: 700; color: var(--muted); }
.tarifa-pro-precio { font-size: 26px; font-weight: 800; color: var(--navy); }
.tarifa-pro-precio small { font-size: 13px; font-weight: 700; color: var(--muted); }
.tarifa-pro-nota { font-size: 11.5px; color: var(--muted); }
.tarifa-pro-total { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--navy); }
.tarifa-pro-total strong { font-size: 16px; color: var(--primary-dark); }
.tarifas-pro-ventajas { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tarifas-pro-ventajas li { font-size: 13.5px; color: var(--text); padding-left: 24px; position: relative; }
.tarifas-pro-ventajas li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.pro-ventajas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.pro-ventaja { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); }
.pro-ventaja-icono { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.pro-ventaja-icono svg { width: 21px; height: 21px; fill: none; stroke: var(--primary-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pro-ventaja h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.pro-ventaja p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .tarifas-pro-grid, .pro-ventajas-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tarifas-pro-grid, .pro-ventajas-grid { grid-template-columns: 1fr; } }

/* Nóminas (portal y admin) */
.nom-mes .pro-card-head { margin-bottom: 6px; }
.nom-fila { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nom-fila:last-child { border-bottom: none; }
.nom-icono { width: 36px; height: 36px; border-radius: 10px; background: #fdeeee; color: #c0392b; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nom-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nom-info strong { font-size: 13.5px; color: var(--navy); }
.nom-info span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nom-subida { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.nom-subida label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.nom-subida label.ancho { flex: 1; min-width: 220px; }

/* Pymes: tabla de 3 planes */
.compare-group-sub { max-width: 760px; margin: -6px auto 16px; text-align: center; color: var(--muted); font-size: 14px; }
.compare-plan-desc { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 2px 0 6px; text-transform: none; letter-spacing: 0; }
.compare-3 th:not(.compare-feature-col), .compare-3 td:not(:first-child) { width: 22%; }

.alta-bonificaciones { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.55; }
.alta-bonificaciones strong { color: #fff; }
.alta-bonif-titulo { font-size: 15px; font-weight: 800; color: #fff; }
.alta-bonif-nota { color: #6bd695; font-weight: 700; }

/* Evita que el formulario aplaste la columna de la izquierda */
.demo-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-grid .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.demo-grid .form-field input, .demo-grid .form-field select, .demo-grid .form-field textarea { width: 100%; min-width: 0; }
@media (max-width: 1100px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .demo-grid .form-grid { grid-template-columns: 1fr; } }

.compare-nota-pymes { max-width: 760px; margin: 0 auto 16px; font-size: 13px; color: #1d3d78; background: #eaf1fd; border: 1px solid #cfdcf6; border-radius: var(--radius-md); padding: 10px 14px; text-align: center; }
.oficina-banda-etiqueta { font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #6bd695 !important; margin: 0 0 6px !important; }

/* Pymes: carpetas de facturas + estado contabilizada */
.carpeta-subida-fila { margin-bottom: 12px; }
.carpeta-subida-fila label { display: inline-flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.carpeta summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--navy); }
.carpeta summary::-webkit-details-marker { display: none; }
.carpeta-icono { font-size: 20px; }
.carpeta-cuenta { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.carpeta[open] summary { margin-bottom: 8px; }
.of-chip-completar, .of-chip-revisar { display: inline-block; margin-top: 4px; font: inherit; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; }
.of-chip-completar { color: #9a5b00; background: #fff3dc; }
.of-chip-revisar { color: #2f6fed; background: #eaf1fd; }
.of-chip-completar:hover, .of-chip-revisar:hover { filter: brightness(.95); }
.of-bloque { padding: 14px; }
.of-bloque .of-leyendo { margin-top: 10px; }
.of-drop-bloque { padding: 18px 16px; }
.of-drop-bloque.ocupado { opacity: .55; pointer-events: none; }
.ofa-leer-ia { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #eaf1fd; color: #1f4fb8; font-size: 13.5px; }
.ofa-subidas-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.ofa-export { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ofa-export .of-select { padding: 7px 10px; font-size: 12.5px; }
.ofa-contab-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ofa-contab-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.ofa-contabilizada td { background: #f6fbf8; }
.ofa-contabilizada .ofa-contab-check { color: var(--primary-dark); }
.ofa-marcar-todas { margin: 4px 0 8px; }

/* Admin → Configuración → Verifacti automático */
.ofa-vf-form { margin-top: 10px; padding: 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; background: #fafbfc; }
.ofa-vf-form > p { margin: 0 0 10px; font-size: 13.5px; }
.ofa-vf-modo { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.ofa-vf-nota { font-size: 12.5px; color: var(--muted); margin: 8px 0 !important; }
.ofa-vf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.ofa-vf-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ofa-vf-campo input { width: 100%; padding: 8px 10px; border: 1px solid var(--border, #d9dde3); border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--text, #111); }
.ofa-vf-avanzado { margin-top: 12px; font-size: 13px; }
.ofa-vf-avanzado summary { cursor: pointer; color: var(--muted); }
.of-firma-aviso { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Formulario de gasto/ingreso con la factura al lado (visor) */
.of-modal.of-modal-con-visor { max-width: 1120px !important; }
.of-modal-con-visor .of-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.of-doc-visor { position: sticky; top: 0; height: min(72vh, 760px); border: 1px solid var(--border); border-radius: 12px; overflow: auto; background: #f4f5f7; }
.of-doc-visor iframe { display: block; width: 100%; height: 100%; border: 0; }
.of-doc-visor img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .of-modal-con-visor .of-doc-layout { grid-template-columns: 1fr; }
  .of-doc-visor { position: static; height: 320px; }
}
.of-importes > .form-field, .of-grid-2 > .form-field { min-width: 0; }
.of-importes input, .of-importes select, .of-grid-2 input, .of-grid-2 select { width: 100%; min-width: 0; box-sizing: border-box; }
.of-modal-con-visor .of-importes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Aviso de factura posiblemente duplicada */
.of-chip-duplicada { display: inline-block; margin-top: 4px; margin-left: 4px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #b42318; background: #fde8e7; white-space: nowrap; }
.of-aviso-duplicada { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin: 0 0 12px; border-radius: 10px; background: #fde8e7; color: #8a1c12; font-size: 13px; }

/* Ingresos: facturas recurrentes y «Mis clientes» */
.of-dos-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.of-dos-columnas > .pro-card { margin: 0; }
.of-head-boton { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.of-ayuda-card { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.of-rec-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.of-rec-fila.pausada { opacity: .6; }
.of-rec-info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.of-rec-info span { font-size: 12.5px; color: var(--muted); }
.of-rec-error { color: #b42318 !important; font-weight: 700; }
.of-rec-acciones { display: flex; gap: 6px; flex-shrink: 0; }
.of-check-form { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; font-size: 13.5px; }
.of-recurrente-caja { background: #eef6f1; border-radius: 12px; padding: 14px 14px 4px; margin: 12px 0; }

/* Cobros y pagos */
.of-chip-cobro { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.of-chip-cobro.ok { color: #1a7f4b; background: #e3f5ea; }
.of-chip-cobro.pendiente { color: #7a5b00; background: #fff5d6; }
.of-chip-cobro.hoy { color: #9a4a00; background: #ffe9d1; }
.of-chip-cobro.vencida { color: #b42318; background: #fde8e7; }
.of-cobro-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.of-cobro-fila.vencida .of-cobro-info strong { color: #b42318; }
.of-cobro-info { display: flex; flex-direction: column; gap: 3px; font-size: 14px; min-width: 0; }
.of-cobro-info span { font-size: 12.5px; color: var(--muted); }
.of-cobro-importe { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 15px; }
.of-cobro-acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.of-tile-alerta { border-color: #f5b5b0 !important; background: #fff6f5 !important; }
.of-tile-alerta .of-tile-num { color: #b42318; }
@media (max-width: 700px) {
  .of-cobro-fila { grid-template-columns: 1fr; }
  .of-cobro-importe { align-items: flex-start; flex-direction: row; }
  .of-cobro-acciones { justify-content: flex-start; }
}

/* Importar de Excel */
.of-imp-pasos { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.of-imp-paso { display: flex; gap: 12px; align-items: flex-start; }
.of-imp-paso > span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.of-imp-paso > div { flex: 1; min-width: 0; }
.of-imp-paso p { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.of-imp-resumen { background: var(--sand); border-radius: 12px; padding: 14px; font-size: 14px; }
.of-imp-resumen p { margin: 0 0 8px; }
.of-imp-errores { background: #fff6f5; border: 1px solid #f5c2bd; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 13px; color: #8a1c12; }
.of-imp-errores ul { margin: 6px 0 6px 18px; }

/* Ayuda y guía de uso */
.of-ayuda-buscador #ofAyudaBuscar { max-width: none; width: 100%; font-size: 16px; padding: 14px 16px; }
.of-ayuda-sugerencias { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.of-ayuda-sugerencias button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--navy); }
.of-ayuda-sugerencias button:hover { border-color: var(--primary); color: var(--primary-dark); }
.of-ayuda-titulo-res { margin: 14px 0 6px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.of-ayuda-tema { border-top: 1px solid var(--border); padding: 4px 0; }
.of-ayuda-tema summary { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 0; list-style: none; }
.of-ayuda-tema summary::-webkit-details-marker { display: none; }
.of-ayuda-tema summary > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.of-ayuda-tema summary small { color: var(--muted); font-size: 13px; }
.of-ayuda-icono { font-size: 22px; line-height: 1.2; }
.of-ayuda-tema ol { margin: 0 0 12px 58px; padding: 0; font-size: 14px; line-height: 1.6; }
.of-ayuda-tema .btn { margin: 0 0 12px 46px; }
.of-ayuda-asesor { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #eef6f1; }

/* Plan Autónomo Esencial */
.compare-plan-para { display: block; font-size: 11px; font-weight: 700; color: var(--primary-dark); margin-top: 4px; }
.compare-nota-plan { max-width: 900px; margin: 12px auto 30px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Opiniones (carrusel de reseñas de Google) ---------- */
.reviews-section { padding: 88px 0; background: var(--sand); }
.reviews-sub { margin-top: 12px; color: var(--muted); font-size: 15px; }
.reviews-sub a, .reviews-note a { color: var(--primary-dark); font-weight: 700; }
.reviews-stars { color: #f5b301; letter-spacing: 2px; }
.reviews-carousel { position: relative; }
.reviews-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review-card blockquote { flex: 1; color: var(--text); font-size: 15px; line-height: 1.6; }
.review-card blockquote::before { content: "“"; } .review-card blockquote::after { content: "”"; }
.review-card figcaption { font-weight: 700; color: var(--navy); font-size: 14px; }
.review-card figcaption span { font-weight: 500; color: var(--muted); }
.reviews-arrow { position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.reviews-prev { left: -20px; } .reviews-next { right: -20px; }
.reviews-arrow:hover { color: var(--primary); }
.reviews-note { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .review-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .reviews-section { padding: 64px 0; }
  .review-card { flex-basis: 85%; }
  .reviews-arrow { display: none; }
}

/* ---------- Equipo (nosotros) ---------- */
.team-section { padding: 0 0 80px; }
.team-card { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px; }
.team-photo { width: 100%; height: 380px; object-fit: cover; object-position: center 25%; border-radius: var(--radius-md); }
.team-copy h2 { font-size: 30px; font-weight: 800; color: var(--navy); }
.team-role { color: var(--primary-dark); font-weight: 700; margin: 6px 0 16px; }
.team-copy p { color: var(--muted); line-height: 1.7; }
.team-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--primary-dark); }
@media (max-width: 760px) {
  .team-card { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .team-photo { height: 320px; }
}

/* Cabecera: botón único «Acceder» con desplegable (autónomos / profesionales / colaboradores) */
.acceso-dropdown { position: relative; }
.acceso-trigger .acceso-flecha { width: 14px; height: 14px; margin-left: 2px; transition: transform .2s; }
.acceso-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 270px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-float); padding: 6px; display: none; z-index: 60; }
.acceso-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.acceso-menu a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; color: var(--navy); text-decoration: none; }
.acceso-menu a:hover { background: var(--primary-soft); }
.acceso-menu strong { font-size: 14px; font-weight: 700; }
.acceso-menu small { font-size: 12px; color: var(--muted); }
.acceso-dropdown:hover .acceso-menu, .acceso-dropdown:focus-within .acceso-menu { display: block; }
.acceso-dropdown:hover .acceso-flecha { transform: rotate(180deg); }
/* En pantallas táctiles el botón lleva a la página acceso.html (sin desplegable). */
@media (hover: none) { .acceso-dropdown:hover .acceso-menu { display: none; } .acceso-flecha { display: none; } }

/* Página acceso.html: elegir tipo de acceso */
.acceso-tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.acceso-tipo { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.acceso-tipo:hover { transform: translateY(-3px); border-color: var(--primary); }
.acceso-tipo-icono { font-size: 30px; }
.acceso-tipo h2 { font-size: 19px; color: var(--navy); margin: 0; }
.acceso-tipo p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.acceso-tipo span.btn { align-self: flex-start; margin-top: 8px; }
.tarifas-col-titulo { font-size: 15px; font-weight: 800; color: var(--navy); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }

/* Canjes en 3 pasos (panel de colaboradores) */
.canje-paso { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; font-size: 14px; }
.canje-paso.bloqueado { background: #f6f7f9; color: var(--muted); }
.canje-paso-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.canje-paso-cab strong { flex: 1; color: var(--navy); font-size: 15px; }
.canje-num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.canje-paso.bloqueado .canje-num { background: #c3c9d1; }
.canje-paso p { margin: 4px 0 10px; }
.canje-paso ol { margin: 4px 0 10px 18px; line-height: 1.6; }
.canje-ok { color: var(--primary-dark); font-weight: 700; }
.aviso-cert { background: #fff4e5; border: 2px solid #f0a020; border-radius: 12px; padding: 12px 14px; margin: 6px 0 14px; font-size: 13.5px; color: #6b3d00; }
.aviso-cert > strong { display: block; font-size: 14px; color: #8a4b00; margin-bottom: 4px; }
.aviso-cert p { margin: 4px 0 0; }
.campo-direccion-wrap[hidden], .campo-cert-wrap[hidden] { display: none !important; }
.nota-cert { background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--navy); margin: 0 0 12px; }

/* Resumen del pedido (tras enviar trámites) */
.pedido-intro { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.pedido-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.pedido-item-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pedido-item-cab strong { color: var(--navy); font-size: 15px; }
.pedido-precio { font-size: 20px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.pedido-dato { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 4px 0; border-top: 1px dashed var(--border); }
.pedido-dato span { color: var(--muted); }
.pedido-dato strong { text-align: right; color: var(--text); font-weight: 600; }
.pedido-nota { background: var(--sand); border-radius: 10px; padding: 9px 12px; font-size: 13px; margin: 10px 0 0; }
.pedido-pagar { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 16px; }
.pedido-total { text-align: right; font-size: 15px; margin: 4px 0 8px; }
.pedido-pie { font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
.mandato-caja { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.mandato-caja p { margin: 0; flex: 1; min-width: 220px; font-size: 12px; color: var(--navy); }

/* Chat del panel de colaboradores */
.colab-chat { display: flex; flex-direction: column; gap: 12px; }
.colab-chat-mensajes { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.colab-msg { max-width: 75%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.colab-msg-texto { white-space: pre-wrap; }
.colab-msg small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.colab-msg.mio { align-self: flex-end; background: var(--primary-soft); border-bottom-right-radius: 4px; }
.colab-msg.suyo { align-self: flex-start; background: #f1f3f6; border-bottom-left-radius: 4px; }
.colab-chat-form { display: flex; gap: 10px; align-items: flex-end; }
.colab-chat-form textarea { flex: 1; resize: vertical; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; }
.colab-chat-badge { margin-left: auto; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.canje-asterisco { font-size: 12px; color: var(--muted); margin: -4px 0 10px !important; }

/* Colaboraciones: bloque destacado del área de colaboradores */
.colab-area-destacada { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--primary-soft); border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 28px; }
.colab-area-destacada h2 { font-size: 22px; line-height: 1.3; margin: 10px 0 10px; }
.colab-area-destacada p { margin: 0 0 8px; font-size: 15px; }
.colab-area-botones { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.colab-area-botones .btn { text-align: center; justify-content: center; }
@media (max-width: 900px) { .colab-area-destacada { grid-template-columns: 1fr; padding: 20px 18px; } .colab-area-botones { min-width: 0; } }
.direccion-partes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.direccion-partes .campo-dir-calle { grid-column: 1 / -1; }
