/* ==========================================================================
   INMOTIC SPAIN | HIGH-END ARCHITECTURAL AUTOMATION & ENGINEERING
   Estilo: Lujo arquitectónico, sobrio, contemporáneo y ultra-profesional
   ========================================================================== */

:root {
  --bg-core: #07080B;
  --bg-surface: #0E1015;
  --bg-elevated: #13161D;
  --bg-card: rgba(19, 22, 29, 0.85);
  
  --accent-cyan: #38BDF8;
  --accent-blue: #0284C7;
  --accent-platinum: #E2E8F0;
  --accent-gold: #D4AF37;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --border-line: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-core);
  color: var(--text-primary);
}

body.luxury-dark {
  font-family: var(--font-text);
  background-color: var(--bg-core);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Tipografía de Alto Nivel */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #FFFFFF;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

.section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-line);
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Botones Sobrios y Precisos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.25s var(--ease-luxury);
  border: 1px solid transparent;
}

.btn-primary {
  background: #FFFFFF;
  color: #07080B;
  border-color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000000;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid var(--border-line);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-line);
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.5rem;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-link:hover {
  opacity: 0.8;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* ==================== HEADER ARQUITECTÓNICO ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-line);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: #FFFFFF;
  color: #07080B;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  letter-spacing: -0.05em;
}

.brand-naming {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 0.4rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: #FFFFFF;
  transition: all 0.3s ease;
}

/* SPA Page Management */
.page-section {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding-top: 4.8rem;
}

.page-section.active-page {
  display: block;
  opacity: 1;
}

/* ==================== HERO EDITORIAL ==================== */
.hero-editorial {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.02);
  transition: transform 1.2s ease-out;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 11, 0.4) 0%,
    rgba(7, 8, 11, 0.75) 60%,
    var(--bg-core) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 0 3rem;
  max-width: 1100px;
}

.hero-meta-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
}

.badge-index {
  color: #FFFFFF;
  font-weight: 700;
}

.badge-sep {
  color: var(--text-muted);
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.8rem;
  max-width: 980px;
}

.hero-highlight {
  color: #CBD5E1;
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: #94A3B8;
  max-width: 740px;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-action-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2.5rem;
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-figure {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.metric-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==================== STATEMENT / MANIFIESTO ==================== */
.statement-section {
  background: var(--bg-surface);
}

.statement-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.statement-aside {
  font-size: 1.4rem;
  color: #FFFFFF;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.lead-quote {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.quote-signature {
  display: flex;
  flex-direction: column;
}

.sig-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.sig-role {
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

/* ==================== SISTEMAS DE INGENIERÍA ==================== */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
}

/* Foco de luz interactivo que sigue el cursor */
.system-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  pointer-events: none;
}

/* Haz de luz luminiscente en el borde superior */
.system-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover {
  background: rgba(20, 24, 32, 0.95);
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-8px) scale(1.015);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 35px -5px rgba(56, 189, 248, 0.25),
    inset 0 0 25px rgba(56, 189, 248, 0.05);
}

.system-card:hover::before {
  opacity: 1;
}

.system-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.system-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.system-card:hover .system-index {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  letter-spacing: 0.16em;
}

.system-icon-minimal {
  width: 44px;
  height: 44px;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-icon-minimal svg {
  width: 100%;
  height: 100%;
}

.system-card:hover .system-icon-minimal {
  transform: scale(1.15) translateY(-3px);
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.9));
  color: #FFFFFF;
}

.system-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.system-card:hover .system-title {
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.system-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.system-specs {
  list-style: none;
  border-top: 1px solid var(--border-line);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s ease;
}

.system-card:hover .system-specs {
  border-top-color: rgba(56, 189, 248, 0.2);
}

.system-specs li {
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
  transition: all 0.25s ease;
}

.system-specs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  transition: transform 0.25s ease;
}

.system-card:hover .system-specs li {
  color: #E2E8F0;
  transform: translateX(4px);
}

.system-card:hover .system-specs li::before {
  transform: scaleX(1.3);
}

/* ==================== SEGMENTACIÓN DUAL ==================== */
.dual-segment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.dual-card {
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dual-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(56, 189, 248, 0.15);
}

.dual-image-wrap {
  height: 320px;
  overflow: hidden;
}

.dual-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.dual-card:hover .dual-image-wrap img {
  transform: scale(1.04);
}

.dual-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dual-category {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.dual-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.dual-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* ==================== SHOWCASE DE PROYECTOS ==================== */
.project-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.showcase-card {
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.showcase-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 35px -5px rgba(56, 189, 248, 0.25);
}

.showcase-visual {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.showcase-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-visual img {
  transform: scale(1.04);
}

.showcase-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-line);
}

.showcase-badge.badge-corp {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

.showcase-info {
  padding: 2rem;
}

.showcase-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.showcase-title {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.showcase-summary {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.showcase-stats-row {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border-line);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.showcase-stats-row strong {
  color: #FFFFFF;
}

/* ==================== PROCESO DE INGENIERÍA ==================== */
.process-section {
  background: var(--bg-surface);
}

.process-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.step-digit {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.step-heading {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.step-text {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==================== FAQ REFINADA ==================== */
.faq-container-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
}

.faq-side-desc {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.direct-contact-hint {
  padding-top: 2rem;
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.faq-accordion-refined {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-line);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
}

.faq-toggle-cross {
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.faq-toggle-cross::before, .faq-toggle-cross::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.faq-toggle-cross::before {
  top: 6px;
  left: 0;
  right: 0;
  height: 1.5px;
}

.faq-toggle-cross::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1.5px;
}

.faq-item.active .faq-toggle-cross::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 250px;
}

.faq-answer p {
  padding-bottom: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==================== BANNER CONTACTO ==================== */
.contact-banner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 4.5rem 3rem;
  text-align: center;
}

.banner-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.banner-sub {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.banner-cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==================== PÁGINA: NUESTROS TRABAJOS ==================== */
.page-header-editorial {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-surface);
}

.page-main-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 0.8rem;
}

.page-main-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.header-intro-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.portfolio-filter-nav {
  display: inline-flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 0.2rem;
}

.filter-tab {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.filter-tab:hover, .filter-tab.active {
  color: #FFFFFF;
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
}

.portfolio-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.portfolio-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-luxury);
  display: flex;
  flex-direction: column;
}

.portfolio-entry:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.entry-media {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-entry:hover .entry-media img {
  transform: scale(1.04);
}

.entry-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 8, 11, 0.85);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-line);
}

.entry-tag.tag-business {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.entry-details {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.entry-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.entry-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.entry-text {
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.entry-metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-line);
  padding-top: 1rem;
}

.entry-metrics span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

/* ==================== PÁGINA: ACTUALIDAD E IDEAS ==================== */
.editorial-featured-post {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 4rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.editorial-featured-post:hover {
  border-color: var(--accent-cyan);
}

.featured-visual {
  height: 380px;
}

.featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meta-tag-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.tag-pill {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
}

.read-estimate {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.featured-headline {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.featured-lead {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.read-link-action {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.card-visual {
  position: relative;
  height: 220px;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 8, 11, 0.85);
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
}

.card-details {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.card-headline {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.card-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.card-action {
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-cyan);
}

/* ==================== PÁGINA: SOBRE NOSOTROS ==================== */
.company-story-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.story-paragraph {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

.story-paragraph.lead-p {
  color: #E2E8F0;
  font-size: 1.15rem;
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-line);
  padding-top: 2rem;
}

.pillar-box {
  display: flex;
  flex-direction: column;
}

.pillar-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.pillar-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pillar-box p {
  font-size: 0.85rem;
  line-height: 1.55;
}

.studio-photo-card {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.studio-photo-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.photo-caption-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 11, 0.95) 80%);
  display: flex;
  flex-direction: column;
}

.photo-caption-tag strong {
  color: #FFFFFF;
  font-size: 0.95rem;
}

.photo-caption-tag span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.credentials-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-line);
  padding-top: 3rem;
}

.cred-item {
  border-left: 2px solid var(--accent-cyan);
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
}

.cred-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.cred-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== FOOTER EDITORIAL ==================== */
.site-footer {
  background: var(--bg-core);
  border-top: 1px solid var(--border-line);
  padding-top: 5rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-claim {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 300px;
  margin-top: 1rem;
}

.footer-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.footer-col-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col-nav a:hover {
  color: var(--accent-cyan);
}

.footer-col-contact p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.footer-subline {
  border-top: 1px solid var(--border-line);
  padding: 1.8rem 0;
}

.footer-subline-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.subline-links {
  display: flex;
  gap: 1.5rem;
}

.subline-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.subline-links a:hover {
  color: #FFFFFF;
}

/* ==================== MODALES ==================== */
.site-modal {
  border: none;
  background: transparent;
  padding: 1rem;
  max-width: 580px;
  width: 92%;
  margin: auto;
}

.site-modal::backdrop {
  background: rgba(4, 5, 7, 0.85);
  backdrop-filter: blur(10px);
}

.site-modal.modal-wide {
  max-width: 820px;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 2.8rem;
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

.modal-head {
  margin-bottom: 2rem;
}

.modal-heading {
  font-size: 1.6rem;
  margin: 0.2rem 0 0.5rem;
}

.modal-subheading {
  font-size: 0.9rem;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-group input,
.field-group select,
.field-group textarea {
  background: var(--bg-core);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 0.8rem 1rem;
  color: #FFFFFF;
  font-family: var(--font-text);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.privacy-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.success-screen {
  text-align: center;
  padding: 2rem 0;
}

.check-circle {
  width: 50px;
  height: 50px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

/* ==================== COMPARATIVA DE PARADIGMAS ==================== */
.comparison-section {
  background: var(--bg-surface);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-luxury);
  position: relative;
}

.conventional-card {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.08);
}

.conventional-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.inmotic-card {
  background: rgba(20, 24, 33, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(56, 189, 248, 0.15);
}

.inmotic-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(56, 189, 248, 0.25);
}

.comparison-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-highlight {
  color: var(--accent-cyan);
}

.comparison-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.comparison-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-line);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.comparison-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.comp-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.comp-icon.red {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-icon.cyan {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.comparison-list strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.comparison-list p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==================== CANAL ARQUITECTOS B2B ==================== */
.architects-hub-section {
  background: var(--bg-core);
}

.architects-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.architects-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-line);
  padding-top: 2rem;
}

.arch-perk-item {
  display: flex;
  flex-direction: column;
}

.arch-perk-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.arch-perk-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.arch-perk-item p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.architects-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.blueprint-card {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.blueprint-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.blueprint-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-line);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bp-icon {
  font-size: 1.8rem;
}

.blueprint-tag strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.blueprint-tag span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-metrics-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .statement-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dual-segment-grid { grid-template-columns: 1fr; }
  .project-showcase-grid { grid-template-columns: 1fr; }
  .process-steps-row { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .faq-container-layout { grid-template-columns: 1fr; gap: 2rem; }
  .company-story-layout { grid-template-columns: 1fr; }
  .editorial-featured-post { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: 1fr 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .architects-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .architects-perks-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
  }

  .main-nav.mobile-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-metrics-bar {
    grid-template-columns: 1fr;
  }

  .field-split {
    grid-template-columns: 1fr;
  }

  .pillars-row {
    grid-template-columns: 1fr;
  }

  .credentials-bar {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }
}
