/* ==========================================================================
   STANDS SOLUCIONES — Ingeniería Estructural y Montaje para Expos Industriales
   Identidad: BLUEPRINT CLARO (Light) — Papel técnico gris frío, cobalto, naranja industrial
   Tipografía: Rajdhani + IBM Plex Sans + IBM Plex Mono
   Paleta Light: Papel #F0F5FA, Blanco #FFFFFF, Cobalto #1D4ED8, Naranja #EA580C, Tinta #0B1220
   Autocontenido: no depende de hub.css. Footer propio: .sol-footer
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Rajdhani:wght@600;700;800&display=swap');

:root {
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --bg-paper: #f0f5fa;
  --bg-white: #ffffff;
  --bg-panel: #ffffff;
  --bg-elevated: #e8f0fb;

  --cobalt-tech: #1d4ed8;
  --cobalt-deep: #1e40af;
  --cobalt-light: #1e40af;
  --hazard-orange: #ea580c;
  --hazard-text: #c2410c;
  --hazard-glow: rgba(234, 88, 12, 0.22);

  --text-ink: #0b1220;
  --text-body: #33415c;
  --text-slate: #5b6b86;
  --text-dim: #5b6b86;

  --border-blueprint: rgba(29, 78, 216, 0.28);
  --border-grid: rgba(11, 18, 32, 0.10);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-tech: 0 14px 34px -14px rgba(11, 18, 32, 0.22);
  --transition: all 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

body {
  background-color: var(--bg-paper);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  /* Retícula de plano técnico sutil */
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cobalt-tech);
  outline-offset: 3px;
}

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Technical Protocol Bar */
.tech-proto-bar {
  background: var(--text-ink);
  border-bottom: 2px solid var(--hazard-orange);
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #cbd5e1;
}

.tech-proto-bar .container { display: flex; justify-content: space-between; align-items: center; }

/* Header */
.sol-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 245, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-blueprint);
  padding: 16px 0;
}

.sol-nav { display: flex; justify-content: space-between; align-items: center; }

.sol-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.sol-logo-badge {
  background: var(--cobalt-tech);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.sol-logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-ink);
}

.sol-nav-links { display: flex; gap: 26px; list-style: none; }

.sol-nav-links a {
  color: var(--text-body);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}

.sol-nav-links a:hover { color: var(--hazard-text); }

.btn-hazard {
  background: var(--hazard-text);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--hazard-glow);
  transition: var(--transition);
}

.btn-hazard:hover { background: #c2410c; transform: translateY(-2px); }

/* Hero Section */
.sol-hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(234, 88, 12, 0.08) 0%, transparent 50%);
}

.sol-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cobalt-deep);
  background: var(--bg-elevated);
  border: 1px solid var(--border-blueprint);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.sol-hero h1 { font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 20px; }
.sol-hero h1 span { color: var(--hazard-text); }
.sol-hero p { font-size: 16px; color: var(--text-body); line-height: 1.7; margin-bottom: 30px; }

/* CAD Blueprint Technical Spec Box (now leads with a real site photo) */
.cad-spec-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow-tech);
  position: relative;
  overflow: hidden;
}

.cad-photo { width: 100%; height: 190px; object-fit: cover; border-bottom: 1px solid var(--border-blueprint); }

.cad-body { padding: 26px 28px 28px; }

.cad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-grid);
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.cad-specs-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }

.cad-item {
  background: var(--bg-paper);
  border: 1px solid var(--border-grid);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.cad-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-slate); text-transform: uppercase; }
.cad-val { font-family: var(--font-heading); font-size: 17px; color: var(--text-ink); font-weight: 700; }

/* Recinto Inspector Tool Section */
.inspector-section { padding: 90px 0; border-top: 1px solid var(--border-grid); }

.inspector-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-tech);
}

.venue-btn-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 24px 0 30px; }

.venue-btn {
  background: var(--bg-paper);
  border: 1px solid var(--border-grid);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.venue-btn.active, .venue-btn:hover {
  background: var(--cobalt-tech);
  border-color: var(--cobalt-tech);
  color: #fff;
}

.venue-data-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: var(--text-ink);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.v-data-item h5 { font-family: var(--font-mono); font-size: 11px; color: #7dd3fc; text-transform: uppercase; margin-bottom: 4px; }
.v-data-item p { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: #fff; }

/* Real jobsite photo strip */
.sol-jobsite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-top: 30px;
}

.sol-jobsite figure {
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-white);
}

.sol-jobsite img { width: 100%; height: 190px; object-fit: cover; }

.sol-jobsite figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-slate);
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sectors Grid */
.industrial-sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; margin: 40px 0; }

.ind-sector-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-grid);
  border-left: 4px solid var(--cobalt-tech);
  border-radius: var(--radius-sm);
  padding: 26px;
  transition: var(--transition);
}

.ind-sector-card:hover { border-left-color: var(--hazard-orange); transform: translateY(-3px); box-shadow: var(--shadow-tech); }
.ind-sector-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--text-ink); }
.ind-sector-card p { font-size: 13px; color: var(--text-body); line-height: 1.6; }

/* Heavy RFP Form */
.heavy-rfp-section { padding: 80px 0; background: var(--bg-elevated); border-top: 1px solid var(--border-grid); }

.rfp-industrial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-md);
  padding: 36px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-tech);
}

.rfp-grid-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }

.rfp-input, .rfp-select {
  width: 100%;
  background: var(--bg-paper);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: var(--transition);
}

.rfp-input::placeholder { color: var(--text-dim); }
.rfp-input:focus, .rfp-select:focus { border-color: var(--cobalt-tech); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }

/* ==========================================================================
   FOOTER PROPIO STANDS SOLUCIONES (crédito obligatorio Ponciano Studio, cobalto/naranja)
   ========================================================================== */
.sol-footer {
  background: var(--text-ink);
  color: #a8b6cc;
  padding: 54px 0 20px;
  margin-top: auto;
  font-family: var(--font-body);
  border-top: 4px solid var(--hazard-orange);
}

.sol-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.sol-footer h4 { color: #fff; font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.05em; margin-bottom: 14px; }

.sol-footer-brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 8px;
}

.sol-footer p { font-size: 14px; line-height: 1.6; color: #8595ae; }
.sol-footer ul { list-style: none; display: grid; gap: 10px; }
.sol-footer ul a { color: #8595ae; text-decoration: none; font-family: var(--font-mono); font-size: 12px; transition: color 0.2s; }
.sol-footer ul a:hover { color: #7dd3fc; }
.sol-footer-contact { font-family: var(--font-mono); font-size: 13px; color: #8595ae; margin-bottom: 14px; }

.sol-footer-social { display: flex; gap: 12px; }
.sol-footer-social a {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); color: #a8b6cc;
  text-decoration: none; transition: all 0.2s;
}
.sol-footer-social a:hover { background: var(--hazard-orange); color: #fff; transform: translateY(-2px); }

.sol-footer-bottom {
  max-width: 1100px;
  margin: 34px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sol-footer-bottom p { font-size: 12px; margin: 0; color: #8595ae; font-family: var(--font-mono); }

.sol-credito { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4em; min-height: 44px; max-width: 100%; color: #a8b6cc; font-family: var(--font-mono); font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.sol-credito:hover { color: #7dd3fc; }
.sol-footer a:focus-visible { outline-color: #7dd3fc; }

@media (max-width: 850px) {
  .sol-hero-grid { grid-template-columns: 1fr; }
  .sol-nav-links { display: flex; }
  .venue-data-display { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rfp-grid-inputs { grid-template-columns: 1fr; }
  .sol-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .sol-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Corrección acotada: texto, navegación, inspector y RFP demostrativos. */
.sol-proto-note { flex-basis: 100%; }
.tech-proto-bar .container, .sol-nav, .sol-nav-links, .cad-header { flex-wrap: wrap; gap: 12px; }
.sol-nav > *, .sol-hero-grid > *, .cad-specs-list > *, .venue-data-display > *, .rfp-grid-inputs > *, .sol-footer-inner > * { min-width: 0; }
.sol-logo { min-width: 0; min-height: 44px; max-width: 100%; }
.sol-logo-text, h1, h2, h3, .cad-val, .v-data-item p, .sol-footer-brand-name, .sol-footer-bottom p { overflow-wrap: anywhere; }
.sol-nav-links { min-width: 0; }
.sol-nav-links a, .sol-footer ul a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
.btn-hazard, .venue-btn { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.btn-hazard { justify-content: center; text-align: center; }
.sol-hero a[href="#inspector"] { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.rfp-input, .rfp-select { min-width: 0; min-height: 44px; border-color: var(--text-slate); }
.rfp-input:focus, .rfp-select:focus { border-color: var(--cobalt-tech); }
.venue-btn { border-color: var(--text-slate); }
.venue-btn.active, .venue-btn:hover { border-color: var(--cobalt-tech); }
.sol-send { width: 100%; padding: 15px; }
.sol-send:disabled, .sol-send:disabled:hover { background: var(--text-ink); color: var(--bg-white); transform: none; box-shadow: none; cursor: not-allowed; opacity: 1; }
.sol-demo-container { padding-top: 20px; }
.sol-notice { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--cobalt-deep); background: var(--bg-elevated); border: 1px solid var(--border-blueprint); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 18px; overflow-wrap: anywhere; }
.sol-venue-status { font-family: var(--font-mono); font-size: 12px; color: var(--cobalt-deep); margin-bottom: 14px; overflow-wrap: anywhere; }
.sol-footer ul a, .sol-footer-contact { overflow-wrap: anywhere; }
.sol-footer-bottom > * { min-width: 0; max-width: 100%; }
.cad-photo, .sol-jobsite img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sol-jobsite figcaption { overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .sol-header { position: static; }
  .sol-nav-links { width: 100%; order: 3; gap: 8px 18px; }
  .sol-nav .btn-hazard { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .container, .sol-footer-inner { padding-left: 20px; padding-right: 20px; }
  #sectores { padding-left: 20px !important; padding-right: 20px !important; }
  .inspector-box, .rfp-industrial-card { padding: 20px; }
  .cad-body { padding: 20px; }
  .cad-specs-list, .venue-data-display { grid-template-columns: minmax(0, 1fr); }
  .venue-data-display { padding: 20px; }
  .sol-hero-grid { gap: 28px; }
  .tech-tag { max-width: 100%; overflow-wrap: anywhere; }
}
