/* 
  Nacexia Landing Page 
  Style: B2B SaaS, Technical, Minimalist, Clean
*/

/* --- CSS Variables --- */
:root {
  /* Colors */
  --bg-color: #F9F8F6;
  --surface-color: #E9E7E2;
  --border-color: #DEDAD3;
  
  --text-main: #2A2622;
  --text-muted: #8A8075;
  --text-light: #A09890;
  
  --accent-color: #9B583B; /* Rust accent */
  --accent-hover: #8A4E34;
  
  /* Technical grays */
  --tech-gray-1: #f3f4f6;
  --tech-gray-2: #DEDAD3;
  --tech-gray-3: #8A8075;
  --tech-gray-dark: #3D3834;
  --soft-black: #3D3834;

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --section-padding: 120px 24px;
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-tech: 0 0 0 1px var(--border-color), 0 10px 15px -3px rgba(0,0,0,0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: var(--accent-color);
}

ul {
  list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.2);
}

/* --- Icons --- */
.icon {
  width: 20px;
  height: 20px;
}

/* --- Header --- */
.site-header {
  position: relative;
  background-color: var(--bg-color);
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

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

.site-logo {
  height: 160px; 
  width: auto;
  opacity: 1; 
  transition: opacity 0.3s ease;
  margin-top: -30px; /* Compensar espacio blanco de la imagen para alinear con textos */
  margin-bottom: -30px; /* Reducir alto visual del header general si la imagen tiene padding interno */
}

.site-logo:hover {
  opacity: 1;
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links li a {
  color: var(--soft-black); /* Contraste sobre fondo claro */
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Navigation for Mobile */
@media (max-width: 992px) {
  .main-nav, .header-cta {
    display: none; /* Hide for now on small screens, can implement hamburger menu later */
  }
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('hero-architecture.jpg');
  background-size: cover;
  background-position: center center;
  color: white;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 64px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
}

.hero-title .highlight {
  color: var(--surface-color);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  max-width: 800px;
  margin-right: auto;
  color: var(--bg-color);
}

.hero-bullets {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: white;
  font-weight: 500;
  text-align: left;
}

.hero-bullets .icon-check {
  color: var(--accent-color);
}

/* --- Hero Diagram --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.diagram-container {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.diagram-inputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.diagram-channels {
  position: absolute;
  bottom: 100%;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--surface-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.diagram-node {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--soft-black);
  position: relative;
  z-index: 2;
}

.node-system {
  background: var(--soft-black);
  color: white;
  border-color: var(--soft-black);
  padding: 24px 32px;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.node-output {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: #f0f7fb;
}

.diagram-connections {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Drawing connecting lines */
.diagram-connections .line {
  height: 1px;
  background-color: var(--border-color);
  width: 100%;
  position: relative;
}

.in-connections .line::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.in-connections {
  width: 40px;
}

.out-connections {
  width: 40px;
  justify-content: center;
}

.out-connections .line-out::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  transform: rotate(45deg);
}


/* --- General Sections utilities --- */
.section-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--soft-black);
}

.text-center {
  text-align: center;
}

.bg-surface {
  background-color: var(--surface-color);
}

.highlight-dark {
  color: var(--accent-color);
  font-weight: 600;
}

/* --- Section 2: Problem --- */
.problem-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.problem-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.card-icon .icon {
  width: 28px;
  height: 28px;
}

.problem-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--soft-black);
}

.problem-result {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.problem-conclusion {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* --- Section 3: How it Works --- */
.flow-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.vertical-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto 64px auto;
}

.flow-step {
  padding: 16px 24px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 500;
  width: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.step-source {
  border-style: dashed;
  color: var(--text-muted);
}

.step-system {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--accent-color);
}

.step-highlight {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  font-weight: 600;
}

.flow-line {
  width: 2px;
  height: 32px;
  background-color: var(--border-color);
  position: relative;
}

.flow-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--border-color);
  border-right: 2px solid var(--border-color);
  transform: rotate(45deg);
}

.flow-conclusion {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.flow-conclusion strong {
  color: var(--soft-black);
}

/* --- Section 4: Benefits --- */
.benefits-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefit-block {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.benefit-block:hover {
  box-shadow: var(--shadow-tech);
}

.benefit-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--tech-gray-2);
  line-height: 1;
}

.benefit-block h3 {
  font-size: 1.5rem;
  color: var(--soft-black);
  margin: 0;
}

/* Transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section 5: Real Case --- */
.case-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.comparison-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px auto;
}

.comparison-card {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.card-before {
  border-color: var(--border-color);
  background-color: var(--bg-color);
  opacity: 0.9;
}

.card-after {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-tech);
}

.card-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}

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

.badge-after {
  background-color: var(--accent-color);
}

.comparison-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--soft-black);
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.comparison-list .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.list-negative li {
  color: var(--text-muted);
}

.list-negative .icon {
  color: var(--text-muted);
}

.list-positive li {
  color: var(--soft-black);
  font-weight: 500;
}

.list-positive .icon {
  color: var(--accent-color);
}

.comparison-arrow {
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.case-conclusion {
  max-width: 600px;
  margin: 0 auto;
}

.highlight-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-size: 1.25rem;
  color: var(--soft-black);
}

.highlight-label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: inline-block;
}

/* --- Section 6: For Whom --- */
.for-whom-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.for-whom-content {
  max-width: 600px;
  margin: 0 auto;
}

.for-whom-list {
  text-align: left;
  margin-bottom: 32px;
}

.for-whom-list li {
  font-size: 1.25rem;
  color: var(--soft-black);
  margin-bottom: 16px;
  padding-left: 32px;
  position: relative;
}

.for-whom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 2px;
  background-color: var(--accent-color);
}

.for-whom-conclusion {
  font-size: 1rem;
  font-style: italic;
}

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

/* --- Section 7: Diagnosis Block --- */
.diagnosis-section {
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border-color);
}

.diagnosis-content {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.diagnosis-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--soft-black);
}

.diagnosis-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.125rem;
  color: var(--soft-black);
  padding: 16px;
  background-color: var(--surface-color);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.check-item:hover {
  border-color: var(--border-color);
}

.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-color);
  opacity: 0.7;
}

/* --- Section 5.5: Testimonials --- */
.testimonials-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--surface-color);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  text-align: left;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.quote-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-color);
  margin-bottom: 24px;
  opacity: 0.8;
}

.testimonial-quote {
  font-size: 1.125rem;
  color: var(--soft-black);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.testimonial-author strong {
  color: var(--soft-black);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Section 8: Final CTA & Form --- */
.contact-section {
  padding-top: 120px;
  padding-bottom: 120px;
  background-color: var(--soft-black);
  color: white;
  border-top: 1px solid var(--border-color);
}

.contact-header {
  max-width: 800px;
  margin: 0 auto 64px auto;
}

.contact-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: var(--tech-gray-2);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--soft-black);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(155, 88, 59, 0.1);
}

.form-checkbox {
  align-items: flex-start;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--soft-black);
}

.checkbox-container input {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.checkbox-container .checkbox-text a {
  text-decoration: underline;
}

.btn-submit {
  margin-top: 16px;
  width: 100%;
}

.btn-large {
  font-size: 1.125rem;
  padding: 16px 36px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .comparison-grid {
    flex-direction: column;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 20px;
  }

  .section-title {
    font-size: 2rem;
  }
  
  .benefit-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .diagnosis-content {
    padding: 32px 20px;
  }

  .diagnosis-title, .contact-title {
    font-size: 1.75rem;
  }
  
  .check-item {
    font-size: 1rem;
    padding: 12px;
  }

  .for-whom-list li {
    font-size: 1.125rem;
  }

  .btn-large {
    width: 100%;
    padding: 14px 20px;
  }

  .card-badge {
    left: 20px;
  }

  .comparison-card {
    padding: 32px 20px;
  }
  
  .contact-form-wrapper {
    padding: 32px 24px;
  }
}

/* --- Site Footer --- */
.site-footer {
  background-color: var(--bg-color);
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 0;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-links li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- Success Message --- */
.success-message {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
