/* ==========================================================================
   REDAG · Promotora Inmobiliaria & Constructora
   Estilo Corporativo Sobrio · Demo SimCodec
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Paleta Corporativa Sobria */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-main: #0f172a;       /* Slate 900 */
  --text-body: #334155;       /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;      /* Slate 400 */
  
  --brand-primary: #ba2608;   /* Rojo Terracota RedAg */
  --brand-hover: #961e06;
  --brand-light: #fef2f0;
  --brand-border: #fca593;
  
  --accent-navy: #1e293b;
  --accent-blue: #0284c7;
  --accent-gold: #b45309;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1);
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --max-width: 1240px;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-body);
  background-color: var(--bg-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Barra de aviso oficial de SimCodec */
.demo-top-bar {
  background-color: #0f172a;
  color: #f8fafc;
  font-size: 0.8125rem;
  padding: 8px 16px;
  border-bottom: 1px solid #1e293b;
  position: relative;
  z-index: 1000;
}

.demo-top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--brand-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-top-bar-text {
  flex: 1;
  text-align: center;
  font-weight: 500;
  color: #e2e8f0;
}

.demo-top-bar-text strong {
  color: #ffffff;
}

.demo-top-bar-link {
  color: #94a3b8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.demo-top-bar-link:hover {
  color: #ffffff;
}

/* Header Corporativo 100% Opaco */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 990;
  width: 100%;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #ffffff;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-light);
  padding-left: 12px;
}

.brand-meta-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-meta-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Navegación Desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.header-phone-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header-phone-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.header-phone:hover .header-phone-val {
  color: var(--brand-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.4;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-light);
}

.btn-dark {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-dark:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text-main);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  padding: 6px 0;
}

/* Secciones y contenedores */
.section {
  padding: 72px 24px;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  background-color: var(--brand-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--brand-border);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hero Section Sobrio */
.hero-section {
  padding: 56px 24px 64px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--brand-primary);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-number span {
  color: var(--brand-primary);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.3;
}

.hero-visual-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-img-wrap {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.hero-visual-card:hover .hero-img-wrap img {
  transform: scale(1.02);
}

.hero-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

.hero-card-content {
  padding: 20px 24px;
  background-color: #ffffff;
}

.hero-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hero-card-location {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-card-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.hero-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.hero-card-features {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-body);
  font-weight: 600;
}

.hero-card-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Pilares Corporativos */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pilar-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pilar-card:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pilar-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--brand-border);
}

.pilar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.35;
}

.pilar-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Portafolio y Proyectos */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

.filter-btn.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.project-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.03);
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.project-badge.badge-red {
  background-color: var(--brand-primary);
}

.project-badge.badge-blue {
  background-color: #0369a1;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-loc {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.project-specs-list {
  list-style: none;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-spec-item {
  font-size: 0.8125rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-spec-item svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-price-info {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.price-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-primary);
}

/* Calculadora Financiera de Inversión */
.calculator-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.calc-val-display {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.calc-range {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--brand-primary);
}

.calc-results-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-results-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-body);
}

.result-row.highlight {
  background-color: #ffffff;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border);
}

.result-row.highlight .result-label {
  font-weight: 700;
  color: var(--text-main);
}

.result-row.highlight .result-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.calc-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

/* Especificaciones Técnicas y Tabla */
.specs-table-wrap {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.specs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-body);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background-color: var(--bg-secondary);
}

.spec-badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #065f46;
  background-color: #d1fae5;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Sección Nosotros & Identidad */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.nosotros-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nosotros-lead {
  font-size: 1.125rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.6;
}

.nosotros-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

.nosotros-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.sub-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.sub-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.sub-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.nosotros-gallery-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* Sede & Ubicación Corporativa */
.sede-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
}

.sede-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.sede-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sede-item {
  display: flex;
  gap: 16px;
}

.sede-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sede-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sede-item-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sede-map-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.map-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.map-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Formulario de Contacto Sobrio */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-primary);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
}

.form-feedback.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-direct-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.direct-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.direct-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.direct-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.direct-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}

.direct-item {
  display: flex;
  gap: 14px;
}

.direct-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direct-content {
  display: flex;
  flex-direction: column;
}

.direct-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.direct-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.direct-val a:hover {
  color: var(--brand-primary);
}

/* Footer Corporativo y Aviso Obligatorio */
.site-footer {
  background-color: #0b1329;
  color: #94a3b8;
  padding: 64px 24px 24px;
  margin-top: auto;
  border-top: 3px solid var(--brand-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffffff;
}

/* Barra de aviso oficial de SimCodec en Footer */
.footer-demo-notice {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-notice-text {
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-notice-text strong {
  color: #ffffff;
}

.footer-notice-badge {
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: #ffffff;
}

/* Modal de Ficha Técnica */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background-color: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.modal-spec-item {
  display: flex;
  flex-direction: column;
}

.modal-spec-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.modal-spec-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Responsividad */
@media (max-width: 1024px) {
  .hero-grid, .calc-grid, .nosotros-grid, .sede-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .header-phone {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.15rem;
  }
  
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .projects-grid, .pilares-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .demo-top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
