/* ==========================================================================
   CONTERBA — CONSULTING LANDING PAGE (STAGE 1)
   Estética Técnica Corporativa Clara | Contreras + Terba Energy
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --bg-primary: #FAFAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3F4F6;
  
  --text-dark: #111827;
  --text-main: #374151;
  --text-muted: #6B7280;
  
  --brand-primary: #032646;       /* CONTERBA Navy Industrial */
  --brand-primary-light: #074377;
  --brand-primary-dark: #01182D;
  --brand-secondary: #0B2545;     /* CONTERBA Navy Dark (Zócalo / Footer Background) */
  
  --accent-solar: #F9AD03;        /* CONTERBA Amber */
  --accent-cyan: #06B6D4;         /* CONTERBA Stage 1 Telemetry Cyan */
  --accent-green: #059669;        /* Efficiency Green */
  --accent-blue: #0284C7;         /* Info Blue */
  --accent-red-bg: #FEF2F2;
  --accent-green-bg: #ECFDF5;
  --accent-blue-bg: #F0F9FF;
  
  --border-light: #E5E7EB;
  --border-medium: #D1D5DB;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1140px;
  --gap: 30px;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-intro {
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-primary);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background-color: var(--brand-primary);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

.highlight {
  color: var(--brand-primary);
}

.highlight-red {
  color: var(--brand-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--accent-solar) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary, .nav-cta, .btn-submit, .calc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--bg-secondary);
  border: 1px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--brand-primary-light);
  border-color: var(--brand-primary-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-dark);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-dark);
  transform: translateY(-1px);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo .logo-shield {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-logo .logo-text {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.nav-cta {
  background-color: var(--brand-secondary);
  color: var(--bg-secondary);
  font-size: 0.85rem;
  padding: 8px 18px;
  border: 1px solid var(--brand-secondary);
}

.nav-cta:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.nav-hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO SECTION --- */
.hero {
  padding: 160px 0 100px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-wrapper.stacked {
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--accent-blue-bg);
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Simulated Chart in Hero */
.hero-image-container {
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  height: 480px;
  transform: translateZ(0);
}

.hero-visual-card.wide {
  max-width: 900px;
  height: 420px;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 75%, rgba(15, 23, 42, 0.3) 100%);
  padding: 24px 30px;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlay-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--brand-primary);
  color: var(--bg-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}

.hero-text-overlay h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.hero-text-overlay p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #E2E8F0;
  margin: 0;
}

.hero-text-overlay .highlight-text {
  border-left: 2px solid var(--brand-primary);
  padding-left: 12px;
  color: #F1F5F9;
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 4px 0;
}

.overlay-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.overlay-tags .tag {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-visual-card.wide {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  
  .hero-visual-card.wide .hero-bg-img {
    height: 240px;
  }
  
  .hero-visual-card.wide .hero-text-overlay {
    position: relative;
    background: #0f172a;
    gap: 16px;
    padding: 20px;
  }
}

/* --- TRUST BADGES --- */
.trust-badges {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.badges-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.badges-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badges-logos {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.badge-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  opacity: 0.6;
}

/* --- PROBLEM SECTION --- */
.problem-section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 50px;
}

.problem-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* --- METHOD SECTION --- */
.method-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.method-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 60px;
  position: relative;
}

.method-timeline::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-light);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
}

.timeline-number {
  width: 50px;
  height: 50px;
  background-color: var(--bg-secondary);
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-primary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-image {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  height: 180px;
  width: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.97);
  
  /* Browser scaling optimizations for high-quality downsampling */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* --- DELIVERABLE SECTION --- */
.deliverable-section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.deliverable-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.deliverable-desc {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-dark);
  font-weight: 500;
}

.deliverable-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deliverable-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.deliverable-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--brand-primary);
  font-weight: 900;
  font-size: 1rem;
}

.deliverable-list li strong {
  color: var(--text-dark);
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

/* Report mockup card styling */
.report-box-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.report-badge {
  background-color: var(--accent-solar);
  color: var(--bg-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.report-box-card h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.report-doc-pages {
  display: flex;
  gap: 16px;
  background-color: var(--bg-tertiary);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.page-min {
  flex: 1;
  height: 120px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-title {
  height: 6px;
  width: 50%;
  background-color: var(--text-dark);
  border-radius: 1px;
}
.bar-text {
  height: 4px;
  width: 80%;
  background-color: var(--border-medium);
  border-radius: 1px;
}
.bar-text.long { width: 100%; }
.bar-text.short { width: 40%; }

.chart-min {
  display: flex;
  justify-content: space-around;
  height: 50px;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 2px;
  margin-top: auto;
}
.chart-min span {
  width: 20%;
  background-color: var(--brand-primary);
  border-radius: 1px 1px 0 0;
}
.chart-min span:nth-child(1) { height: 40%; }
.chart-min span:nth-child(2) { height: 80%; }
.chart-min span:nth-child(3) { height: 60%; }

.table-min {
  width: 100%;
  border-collapse: collapse;
  margin-top: auto;
}
.table-min td {
  border: 1px solid var(--border-light);
  height: 10px;
}

.report-footer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- SOLUTIONS PREVIEW --- */
.solutions-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.sol-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.sol-image-panel {
  position: relative;
}

.sol-features-overlay {
  position: absolute;
  top: -20px;
  left: -20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 240px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overlay-feat-item {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-main);
}
.overlay-feat-item strong {
  display: block;
  color: var(--brand-primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.sol-specs-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-item {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.spec-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

/* --- ROI CALCULATOR --- */
.calculator-section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.calc-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.slider-label strong {
  color: var(--brand-primary);
  font-size: 1.15rem;
}

.input-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
  margin: 15px 0 8px;
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  border: 2px solid var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast);
}

.input-slider::-webkit-slider-thumb:hover {
  background: var(--brand-primary-light);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  outline: none;
  margin-top: 8px;
}

.calc-note {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.calc-outputs {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 35px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.output-box {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-light);
}

.out-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.out-val {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin: 10px 0;
}

.out-sub {
  font-size: 0.9rem;
}

.output-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.sub-out-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 15px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.sub-out-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sub-out-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.calc-cta-btn {
  background-color: var(--brand-primary);
  color: var(--bg-secondary);
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}
.calc-cta-btn:hover {
  background-color: var(--brand-primary-light);
}

/* --- ABOUT SECTION (QUIÉNES SOMOS) --- */
.about-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.about-full-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 45px 0;
}

.about-img-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  height: 380px;
  background-color: #0F172A;
}

.about-img-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background-color: #0F172A;
  transition: transform 0.5s ease;
}

.about-img-card:hover img {
  transform: scale(1.02);
}

.about-img-card.cover-fit img {
  object-fit: cover;
  object-position: center bottom;
}

.about-img-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  color: #F8FAFC;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.about-footer-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 40px 45px;
  box-shadow: var(--shadow-sm);
}

.about-solidez-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 14px;
}

.about-solidez-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.6;
}

.about-solidez-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-badges {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border-light);
  padding-top: 25px;
}

.about-badge-item {
  flex: 1;
  border-left: 3px solid var(--brand-primary);
  padding-left: 15px;
}

.about-badge-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.about-badge-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- ALLIANCE SECTION --- */
.alliance-section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.alliance-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-md);
  margin-top: 50px;
  text-align: center;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.c-feat-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.c-feat-icon {
  width: 24px;
  height: 24px;
  background-color: var(--accent-green-bg);
  color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.c-feat-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.c-feat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* WIZARD FORM STYLES */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2;
  background-color: var(--bg-secondary);
  padding-right: 8px;
}

.wizard-step-indicator .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--border-medium);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.wizard-step-indicator.active {
  color: var(--brand-primary);
}

.wizard-step-indicator.active .step-num {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

.wizard-step-indicator.completed .step-num {
  background-color: var(--accent-green);
  color: #FFFFFF;
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-medium);
  margin: 0 10px;
}

.wizard-step-panel {
  display: none;
  animation: fadeInStep 0.35s ease forwards;
}

.wizard-step-panel.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.wizard-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* CHECKBOX CARDS */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.checkbox-card:hover {
  border-color: var(--brand-primary);
  background-color: rgba(185, 28, 28, 0.02);
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-dark, #94A3B8);
  border-radius: 4px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-custom {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-text {
  color: var(--text-dark);
  font-weight: 600;
}

.checkbox-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.wizard-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
}

.wizard-nav-buttons.justify-end {
  justify-content: flex-end;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(156, 30, 61, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.btn-submit {
  background-color: var(--brand-primary);
  color: var(--bg-secondary);
  border: 1px solid var(--brand-primary);
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--brand-primary-light);
}

.form-success-message {
  display: none;
  background-color: var(--accent-green-bg);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 15px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 15px;
  line-height: 1.5;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #0F172A;
  color: #CBD5E1;
  padding: 60px 0 30px;
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand img.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--bg-secondary);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.site-footer {
  background-color: var(--brand-secondary);
  color: #CBD5E1;
  padding: 60px 0 30px;
  font-size: 0.88rem;
}

.footer-links a {
  color: #94A3B8;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  font-size: 0.82rem;
  color: #94A3B8;
}

.mobile-floating-cta {
  display: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-wrapper,
  .about-grid,
  .deliverable-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-image-container {
    justify-content: center;
  }
  
  .method-timeline {
    grid-template-columns: 1fr 1fr;
  }
  
  .method-timeline::before {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  --section-padding: 60px 0;
  
  .nav-hamburger {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    align-items: stretch;
    display: none; /* Controlled by JS */
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-link {
    text-align: center;
  }
  
  .nav-cta {
    text-align: center;
  }
  
  .problem-grid,
  .method-timeline,
  .calc-grid,
  .output-sub-grid,
  .form-row,
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .calc-card {
    padding: 24px;
  }
  
  .contact-form-container {
    padding: 24px;
  }
  
  .about-full-images {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
  }

  .about-img-card {
    height: 240px;
  }

  .about-footer-card {
    padding: 25px 20px;
  }

  .about-badges {
    flex-direction: column;
    gap: 15px;
  }
  
  .alliance-card {
    padding: 30px 20px;
    margin-top: 30px;
  }
  
  .out-val {
    font-size: 2.2rem;
  }
  
  .mobile-floating-cta {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  .mobile-floating-cta a {
    width: 100%;
    background-color: var(--brand-primary);
    color: var(--bg-secondary);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3), 0 4px 6px -4px rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color var(--transition-fast);
  }
  
  .mobile-floating-cta a:active {
    background-color: var(--brand-primary-light);
  }
}
