/* Commercial flow uses the desktop's existing terminal palette and windows. */
.commercial-page { height: auto; min-height: 100vh; overflow: auto; }
.commercial-page .desktop { height: auto; overflow: visible; }
.commercial-home { max-width: 1120px; margin: auto; padding: 0 28px 36px; }
.commercial-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.commercial-nav > div { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.commercial-nav a { font-size: 16px; }
.commercial-nav .commercial-brand { font-size: 22px; color: var(--terminal-text); font-weight: bold; border: 0; letter-spacing: 2px; }
.commercial-brand span, .console-command, .service-number, .service-price { color: var(--accent-secondary); }
.commercial-home .window { backdrop-filter: none; }
.commercial-home .window:hover { transform: none; }
.commercial-section { margin-top: 28px; scroll-margin-top: 20px; }
.commercial-content { padding: clamp(22px, 4vw, 48px); }
.commercial-home .window-titlebar { cursor: default; }
.console-dots { display: flex; gap: 8px; }
.console-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,59,48,.8); }
.console-dots i:nth-child(2) { background: rgba(255,196,0,.8); }
.console-dots i:nth-child(3) { background: rgba(40,205,65,.8); }
.console-session, .console-comment, .console-muted { color: #b5b5b5; }
.console-session { font-size: 12px; }
.console-command { margin-bottom: 22px; font-size: 16px; }
.commercial-hero h1 { font-size: clamp(28px, 4.5vw, 49px); line-height: 1.2; letter-spacing: -1px; text-transform: none; margin-bottom: 24px; }
.commercial-hero h1 > span:first-of-type { color: var(--accent-secondary); }
.console-cursor { animation: blink 1.4s step-end infinite; }
.hero-specialties { font-weight: bold; }
.commercial-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.commercial-home .btn-retro, .floating-whatsapp { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.commercial-home .btn-retro.primary { background: var(--accent-secondary); color: #080808; }
.commercial-home .btn-retro.primary:hover { background: #f0d16e; }
.hero-meta { margin-top: 26px; }
.hero-meta p, .price-note { font-size: 15px; color: #b5b5b5; }
.commercial-home h2 { font-size: clamp(21px, 3vw, 28px); }
.service-row { border-bottom: 1px solid var(--window-border); }
.service-row summary { cursor: pointer; display: flex; gap: 15px; align-items: center; list-style: none; min-height: 64px; padding: 14px 0; }
.service-row summary::-webkit-details-marker { display: none; }
.service-toggle { margin-left: auto; color: var(--accent-secondary); font-size: 24px; }
.service-row[open] .service-toggle { transform: rotate(45deg); }
.service-detail { padding: 0 0 24px 58px; max-width: 780px; }
.service-detail p { font-size: 17px; }
.service-price { font-weight: bold; margin: 18px 0; }
.price-note { margin-top: 24px; }
.urgent-section { border-color: var(--accent-secondary); }
.urgent-problems { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 22px 0; }
.urgent-problems li { font-size: 17px; }
.urgent-assurance { margin-top: 26px; font-weight: bold; }
.price-list > div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px dashed var(--window-border); }
.price-list dd { text-align: right; }
.price-list strong { color: var(--accent-secondary); }
.floating-whatsapp { position: fixed; right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1100; padding: 10px 18px; background: #111; border: 1px solid var(--accent-secondary); color: var(--accent-secondary); box-shadow: 0 3px 20px #0008; font-weight: bold; }
.floating-whatsapp:hover { background: var(--accent-secondary); color: #080808; }
.commercial-page .tiling-container { height: 85svh; min-height: 480px; scroll-margin-top: 20px; margin-bottom: max(90px, 15svh); }
.commercial-page .tiling-container .window { min-width: 0; }
.commercial-page .content-container { min-width: 0; }
.commercial-page .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.commercial-page .commercial-home ~ .tiling-container { max-width: 1400px; margin-left: auto; margin-right: auto; }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 4px; }
@media (max-width: 650px) {
  .commercial-home { padding: 0 12px 20px; }
  .commercial-nav { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 8px; }
  .commercial-nav > div { gap: 0 16px; }
  .commercial-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .commercial-nav .language-switch { font-size: 14px; margin: 0; }
  .commercial-content { padding: 22px 18px; }
  .commercial-hero h1 { font-size: clamp(26px, 6.6vw, 38px); }
  .commercial-home p { font-size: 16px; }
  .commercial-home .hero-meta p, .commercial-home .price-note { font-size: 14px; }
  .console-session, .console-comment { display: none; }
  .commercial-actions { flex-direction: column; }
  .commercial-home .btn-retro { font-size: 14px; padding: 12px; max-width: 100%; overflow-wrap: anywhere; }
  .service-row summary { font-size: 16px; gap: 9px; }
  .service-detail { padding-left: 0; }
  .service-number { flex-shrink: 0; }
  .price-list > div { gap: 6px; flex-direction: column; padding: 12px 0; font-size: 16px; }
  .price-list dd { text-align: left; }
  .floating-whatsapp { right: 12px; font-size: 16px; }
  .commercial-page .window-content { padding: 16px; }
  .commercial-page .preview-trigger-btn { min-height: 44px; }
  .commercial-page .portfolio-thumbnail-overlay { opacity: 1; background: #0005; }
}
@media (prefers-reduced-motion: reduce) {
  .console-cursor { animation: none; }
  .commercial-home *, .floating-whatsapp { transition: none; }
}
.commercial-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.commercial-pair .commercial-content { padding: 28px; }
.status-online, .status-list dd { color: #83cd92; }
.status-list { margin: 22px 0; }
.status-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-bottom: 1px dotted var(--window-border); font-size: 15px; }
.bio-link { margin-top: 20px; font-size: 15px; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lead-fields label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 16px; }
.lead-wide { grid-column: 1 / -1; }
.lead-fields input, .lead-fields select, .lead-fields textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px; background: #151515; color: var(--terminal-text); border: 1px solid #777; border-radius: 0; font: inherit; font-size: 16px; }
.lead-fields textarea { resize: vertical; }
#lead-feedback { margin-top: 20px; }
[hidden] { display: none !important; }
.explore-intro { padding: 44px 0 0; }
@media (max-width: 800px) { .commercial-pair { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 650px) { .lead-fields { grid-template-columns: 1fr; } .commercial-pair .commercial-content { padding: 22px 18px; } }
.case-facts { margin: 12px 0 24px; }
.case-facts dt { font-size: 13px; letter-spacing: 1px; color: var(--accent-secondary); margin-top: 16px; }
.case-facts dd { font-size: 16px; line-height: 1.6; margin-top: 4px; }
.portfolio-case { margin-bottom: 20px; }
.portfolio-case summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--accent-secondary); }
.desktop-return { position: fixed; bottom: 16px; left: 12px; z-index: 1100; background: #111; border: 1px solid #777; padding: 10px 12px; min-height: 48px; display: flex; align-items: center; font-size: 14px; }
@media (max-width: 370px) { .desktop-return { font-size: 12px; padding: 10px 6px; } }
@media (max-width: 768px) {
  .tiling-container .window-buttons .close-btn { width: 44px; height: 44px; border-radius: 0; background: radial-gradient(circle, rgba(255,59,48,.8) 6px, transparent 7px); }
  .tiling-container .window-buttons { align-items: center; }
  .tiling-container .window-titlebar { padding: 0 10px; min-height: 48px; }
}
/* Laptop/desktop: edge-to-edge terminal workspace, without a centered page frame. */
@media (min-width: 769px) {
  .commercial-page { background: #080808; }
  .commercial-home { width: 100%; max-width: none; margin: 0; padding: 0; }
  .commercial-nav { min-height: 64px; padding: 10px 24px; background: #121212; border-bottom: 1px solid var(--window-border); }
  .commercial-home .window { box-shadow: none; }
  .commercial-hero { min-height: 0; }
  .commercial-content { padding: 28px 32px; }
  .commercial-section { margin-top: 0; scroll-margin-top: 0; }
  .commercial-pair { gap: 0; }
  .explore-intro { padding: 28px 32px; }
  .commercial-page .commercial-home ~ .tiling-container { width: 100%; max-width: none; height: 100svh; margin: 0; scroll-margin-top: 0; }
}

/* Tile related information together instead of giving each section a screen. */
@media (min-width: 1024px) {
  .commercial-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .commercial-home > * { min-width: 0; }
  .commercial-nav, #cotizar, .explore-intro { grid-column: 1 / -1; }
  .commercial-pair { display: contents; }
  .commercial-content, .commercial-pair .commercial-content { padding: 20px 24px; }
  .commercial-hero h1 { font-size: clamp(28px, 2.8vw, 42px); }
  .commercial-home h2 { font-size: 22px; }
  .commercial-home .console-session { display: none; }
  #servicios .commercial-content { padding: 18px 24px; }
  #servicios .console-command { margin-bottom: 12px; }
  #servicios .service-row summary { min-height: 44px; padding: 8px 0; gap: 12px; font-size: 16px; }
  #servicios .price-note { margin-top: 12px; font-size: 14px; }
  .commercial-home .btn-retro { max-width: 100%; overflow-wrap: anywhere; }
  .price-list > div { gap: 12px; font-size: 16px; }
}
