:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --bg-dark: #050505;
  --text-light: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-600: #666666;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --section-padding: 8rem 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.text-dark p {
  color: #aaaaaa;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--text-color);
}

.btn--secondary {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--gray-300);
}

.btn--secondary:hover {
  border-color: var(--text-color);
  background-color: var(--gray-100);
}

.btn--whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border-color: #25D366;
  width: 100%;
  margin-top: 1rem;
}

.btn--whatsapp:hover {
  background-color: #1ebe58;
  color: #ffffff;
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__logo-link {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  z-index: 1001;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}

.header__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Menu */
.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.header__link {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header__link:hover {
  color: var(--text-color);
}

/* Header CTA */
.header__cta {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: var(--text-color);
  color: var(--bg-color);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1001;
}

.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #222;
  color: var(--bg-color);
}

.header__cta-mobile {
  display: none;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
  .header {
    height: 72px;
  }
  .header__menu {
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  .header__nav.active {
    transform: translateY(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .header__link {
    font-size: 1.5rem;
    color: var(--text-color);
  }

  .header__cta-desktop {
    display: none;
  }

  .header__cta-mobile {
    display: inline-flex;
    font-size: 1.125rem;
    padding: 1rem 2rem;
  }
  
  .header__hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .header__hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .header__hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==================================================
   HERO SECTION
   ================================================== */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: var(--gray-100);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

/* Left Content */
.hero__content-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 650px;
  z-index: 10;
}

.hero__title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-color);
  margin-bottom: 0;
}

.hero__title .highlight {
  background: linear-gradient(90deg, #000 0%, #444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 550px;
}

.hero__btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero__btn-primary {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.hero__btn-secondary {
  padding: 1rem 2rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  color: var(--text-color);
  background: transparent;
}

.hero__btn-secondary:hover {
  border-color: var(--text-color);
  background: var(--text-color);
  color: var(--bg-color);
}

.hero__closing {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  margin-top: 1rem;
}

/* Right Mockup */
.hero__mockup-right {
  position: relative;
  width: 100%;
  height: 600px;
}

.mockup-ecosystem {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.mockup-item {
  position: absolute;
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-item:hover {
  transform: translateY(-5px);
}

/* 1. Browser */
.mockup-browser {
  width: 400px;
  height: 280px;
  top: 50px;
  left: 20px;
  z-index: 1;
}

.browser-header {
  height: 30px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  position: relative;
}

.browser-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-header .dot.red { background: #ff5f56; }
.browser-header .dot.yellow { background: #ffbd2e; }
.browser-header .dot.green { background: #27c93f; }

.browser-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-color);
  font-size: 10px;
  padding: 3px 12px;
  border-radius: 10px;
  color: var(--gray-600);
}

.browser-body {
  padding: 1.5rem;
}

.wireframe-header {
  height: 10px;
  background: var(--gray-200);
  width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
}

.wireframe-hero-block {
  height: 80px;
  background: var(--gray-100);
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.wireframe-content {
  display: flex;
  gap: 15px;
}

.wireframe-card {
  flex: 1;
  height: 60px;
  background: var(--gray-100);
  border-radius: 6px;
}

/* 2. Dashboard */
.mockup-dashboard {
  width: 320px;
  height: 220px;
  bottom: 80px;
  left: 100px;
  z-index: 3;
  display: flex;
}

.dash-sidebar {
  width: 60px;
  background: #111;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-item {
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.sidebar-item.active {
  background: rgba(255,255,255,0.3);
}

.dash-main {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dash-card-group {
  display: flex;
  gap: 10px;
}

.dash-card {
  flex: 1;
  background: var(--gray-100);
  padding: 10px;
  border-radius: 6px;
}

.dash-val {
  font-weight: 700;
  font-size: 1.25rem;
}

.dash-label {
  font-size: 0.65rem;
  color: var(--gray-600);
}

.dash-chart {
  flex: 1;
  background: var(--gray-100);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  gap: 8px;
}

.dash-chart .bar {
  flex: 1;
  background: var(--text-color);
  border-radius: 2px 2px 0 0;
  opacity: 0.8;
}

/* 3. Agenda */
.mockup-agenda {
  width: 220px;
  top: 30px;
  right: 0;
  z-index: 2;
}

.agenda-header {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agenda-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-slot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  background: var(--gray-100);
  font-size: 0.75rem;
}

.agenda-slot.active {
  background: #f0f7ff;
  border-left: 3px solid #0066cc;
}

.slot-time {
  font-weight: 600;
  color: var(--gray-600);
}

.slot-info {
  font-weight: 500;
}

/* 4. POS */
.mockup-pos {
  width: 180px;
  bottom: 20px;
  right: 20px;
  z-index: 4;
}

.pos-header {
  padding: 12px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

.pos-items {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.pos-total {
  padding: 12px;
  background: var(--gray-100);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.pos-pay {
  background: var(--text-color);
  color: var(--bg-color);
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 5. Smartphone */
.mockup-phone {
  width: 150px;
  height: 300px;
  top: 140px;
  right: -40px;
  z-index: 5;
  border-radius: 20px;
  border: 6px solid #222;
  background: var(--gray-100);
}

.phone-notch {
  width: 50px;
  height: 15px;
  background: #222;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
}

.phone-screen {
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-app-header {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.phone-app-card {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #27c93f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

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

.phone-text strong {
  font-size: 0.65rem;
}

.phone-text span {
  font-size: 0.55rem;
  color: var(--gray-600);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
  .mockup-browser { width: 350px; }
  .mockup-dashboard { width: 280px; left: 50px; }
  .mockup-agenda { right: 20px; }
  .mockup-pos { right: 50px; }
  .mockup-phone { right: -20px; }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__content-left {
    text-align: center;
    margin: 0 auto;
    align-items: center;
    max-width: 700px;
  }
  .hero__btn-group {
    justify-content: center;
  }
  .hero__mockup-right {
    height: 450px;
    margin-top: 2rem;
  }
  .mockup-ecosystem {
    width: 100%;
    transform: scale(0.85);
    transform-origin: top center;
  }
  .mockup-browser { left: 50%; transform: translateX(-60%); }
  .mockup-agenda { right: 10%; }
  .mockup-phone { right: 0; }
  .mockup-dashboard { left: 10%; bottom: 0; }
  .mockup-pos { display: none; }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 2.25rem;
  }
  .hero__btn-group {
    flex-direction: column;
    width: 100%;
  }
  .hero__btn-primary, .hero__btn-secondary {
    width: 100%;
  }
  .mockup-ecosystem {
    transform: scale(0.65);
  }
  .mockup-browser { left: 50%; transform: translateX(-50%); }
  .mockup-agenda { display: none; }
  .mockup-dashboard { display: none; }
  .mockup-phone { display: none; }
  /* En móvil muy pequeño, mostrar solo el browser centrado */
  .hero__mockup-right {
    height: 300px;
  }
}

/* ==================================================
   PROBLEM SECTION
   ================================================== */
.problem-section {
  padding: 8rem 0;
  background-color: var(--bg-color);
  text-align: center;
}

.problem-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px; /* ajustado para ancho de tarjetas */
}

.problem-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.problem-title .highlight-subtle {
  position: relative;
  display: inline-block;
  color: var(--text-color);
}
.problem-title .highlight-subtle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.25em;
  background-color: rgba(0, 0, 0, 0.08); /* Énfasis visual muy sutil */
  z-index: -1;
}

.problem-intro {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 750px;
  margin-bottom: 2.5rem;
}

.problem-transition {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4rem;
}

.problem-transition .highlight-transition {
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.problem-transition .highlight-transition::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
}

/* Cards */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.problem-card {
  background: var(--bg-color);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.problem-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.problem-card-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

/* Card Visuals (Abstract micro-interfaces) */
.problem-card-visual {
  width: 100%;
  height: 100px;
  background-color: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

/* Tarjeta 1 - Búsqueda */
.visual-search-bar {
  width: 80%;
  height: 36px;
  background: var(--bg-color);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding: 0 6px 0 16px;
  justify-content: space-between;
}

.visual-search-text {
  width: 40%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 4px;
}

.visual-search-btn {
  width: 24px;
  height: 24px;
  background: var(--text-color);
  border-radius: 50%;
}

/* Tarjeta 2 - Dashboard */
.visual-dash {
  width: 90%;
  height: 80%;
  background: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  padding: 6px;
  gap: 6px;
}

.visual-dash-nav {
  width: 15%;
  height: 100%;
  background: var(--gray-100);
  border-radius: 4px;
}

.visual-dash-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visual-dash-chart {
  flex: 2;
  background: var(--gray-100);
  border-radius: 4px;
}

.visual-dash-chart-small {
  flex: 1;
  background: var(--gray-100);
  border-radius: 4px;
}

/* Tarjeta 3 - Flujo (Operación) */
.visual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.visual-flow-node {
  width: 24px;
  height: 24px;
  background: var(--bg-color);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-flow-node.active {
  background: var(--text-color);
  border-color: var(--text-color);
  color: var(--bg-color);
  font-size: 0.6rem;
}

.visual-flow-line {
  width: 20px;
  height: 2px;
  background: var(--gray-200);
}

/* Responsive */
@media (max-width: 1024px) {
  .problem-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .problem-title {
    font-size: 2.25rem;
  }
  .problem-cards {
    grid-template-columns: 1fr;
  }
  .problem-card:last-child {
    max-width: 100%;
  }
}

/* ==================================================
   SOLUTIONS SECTION
   ================================================== */
.solutions-section {
  padding: 8rem 0;
  background-color: var(--bg-color);
}

.solutions-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.solutions-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.solutions-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.solution-card {
  background: var(--bg-color);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  border-color: var(--gray-300);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background-color: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.solution-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.solution-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.solution-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  transition: transform 0.3s ease;
  display: inline-block;
  align-self: flex-start;
}

.solution-card:hover .solution-cta {
  transform: translateX(5px);
}

/* Micro-mockups shared container */
.solution-mockup {
  width: 100%;
  height: 120px;
  background-color: var(--gray-100);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.solution-card:hover .solution-mockup > div {
  transform: scale(1.03);
}

/* 1. Presencia Digital */
.mockup-web {
  width: 90%;
  height: 80%;
  background: var(--bg-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.m-web-nav { height: 10px; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.m-web-hero { height: 30px; background: var(--text-color); }
.m-web-body { flex: 1; display: flex; gap: 8px; padding: 8px; }
.m-web-box { flex: 1; background: var(--gray-100); border-radius: 4px; }

/* 2. Citas y Reservas */
.mockup-agenda-mini {
  width: 80%;
  height: 90%;
  background: var(--bg-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
  transition: transform 0.4s ease;
}
.m-agenda-header { height: 12px; width: 50%; background: var(--gray-200); border-radius: 4px; }
.m-agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.m-agenda-slot { background: var(--gray-100); border-radius: 4px; }
.m-agenda-slot.active { background: var(--text-color); }

/* 3. Gestión y Dashboards */
.mockup-dash-mini {
  width: 95%;
  height: 90%;
  background: var(--bg-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  padding: 6px;
  gap: 6px;
  transition: transform 0.4s ease;
}
.m-dash-sidebar { width: 20%; background: var(--gray-100); border-radius: 4px; }
.m-dash-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.m-dash-cards { display: flex; gap: 6px; height: 30%; }
.m-dash-card { flex: 1; background: var(--gray-100); border-radius: 4px; }
.m-dash-chart { flex: 1; background: var(--gray-200); border-radius: 4px; }

/* 4. Ventas e Inventario */
.mockup-pos-mini {
  width: 90%;
  height: 85%;
  background: var(--bg-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  padding: 6px;
  gap: 8px;
  transition: transform 0.4s ease;
}
.m-pos-left { flex: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.m-pos-item { background: var(--gray-100); border-radius: 4px; }
.m-pos-right { flex: 1; background: var(--gray-100); border-radius: 4px; display: flex; flex-direction: column; padding: 4px; justify-content: space-between; }
.m-pos-ticket { height: 60%; background: var(--bg-color); border-radius: 2px; }
.m-pos-btn { height: 12px; background: var(--text-color); border-radius: 2px; }

/* 5. Identidad de Marca */
.mockup-brand-mini {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
  transition: transform 0.4s ease;
}
.m-brand-logo { font-size: 2rem; font-weight: 900; color: var(--text-color); }
.m-brand-colors { display: flex; gap: 4px; }
.m-color { width: 16px; height: 16px; border-radius: 50%; }
.m-color.c1 { background: var(--text-color); }
.m-color.c2 { background: var(--gray-400); }
.m-color.c3 { background: var(--gray-200); }
.m-brand-type { font-size: 1.5rem; font-weight: 500; font-style: italic; color: var(--gray-500); }

/* 6. Soluciones personalizadas */
.mockup-custom-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s ease;
}
.m-custom-node {
  width: 24px;
  height: 24px;
  background: var(--bg-color);
  border: 1px dashed var(--gray-400);
  border-radius: 4px;
}
.m-custom-node.rydran-node {
  border-style: solid;
  border-color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.m-custom-node.result-node {
  border-style: solid;
  background: var(--text-color);
  border-color: var(--text-color);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.m-custom-arrow {
  color: var(--gray-400);
  font-size: 0.8rem;
}
.custom-solution .solution-icon {
  background-color: var(--text-color);
  color: var(--bg-color);
}

/* Responsive Solutions */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .solutions-title {
    font-size: 2.25rem;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   PROCESS SECTION (CONSULTIVO)
   ================================================== */
.process-section {
  padding: 8rem 0;
  background-color: var(--bg-color); /* Blanco/claro */
  position: relative;
  overflow: hidden;
}

.process-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
}

.process-header {
  text-align: center;
  margin-bottom: 6rem;
  max-width: 800px;
}

.process-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.process-title-part1 {
  color: var(--gray-500); /* Un poco más suave */
}

.process-title-part2 {
  color: var(--text-color); /* Mayor peso visual */
}

.process-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Process Flow Layout */
.process-flow {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
  gap: 2rem;
}

/* Connector Line (Desktop) */
.process-flow-line {
  position: absolute;
  top: 60px; /* Alineada al centro de los visuales (asumiendo visual = 120px) */
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-300) 10%, var(--gray-300) 90%, transparent);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  position: relative;
  z-index: 1;
}

.process-step-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--gray-200); /* Muy tenue, marca de agua */
  line-height: 1;
  margin-bottom: 1rem;
  font-family: monospace, sans-serif;
}

.process-step-content {
  margin-top: 1.5rem;
}

.process-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.process-step-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Visuals Container */
.process-step-visual {
  width: 100%;
  height: 120px;
  background-color: var(--bg-color);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  overflow: hidden;
  margin-bottom: 1rem;
}

/* 1. Contexto (Puntos conectados abstractos) */
.p-visual-context {
  position: relative;
  width: 60px;
  height: 60px;
}
.p-dot {
  position: absolute;
  background: var(--gray-300);
  border-radius: 50%;
}
.center-dot {
  width: 16px;
  height: 16px;
  background: var(--text-color);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.p-dot-1 { width: 8px; height: 8px; top: 0; left: 50%; transform: translateX(-50%); }
.p-dot-2 { width: 6px; height: 6px; bottom: 10px; left: 0; }
.p-dot-3 { width: 10px; height: 10px; bottom: 0; right: 10px; }
.p-dot-4 { width: 4px; height: 4px; top: 15px; right: 0; }

/* 2. Oportunidad (Flujo y fricción) */
.p-visual-opportunity {
  display: flex;
  align-items: center;
  gap: 4px;
}
.p-opp-node {
  width: 12px; height: 12px;
  background: var(--gray-300);
  border-radius: 50%;
}
.p-opp-line {
  width: 16px; height: 2px;
  background: var(--gray-200);
}
.friction {
  background: var(--gray-500);
  position: relative;
}
.friction::after {
  content: '!';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; font-weight: bold; color: var(--text-color);
}
.highlight-line {
  background: var(--text-color);
  height: 2px;
}
.opportunity {
  background: var(--text-color);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* 3. Bifurcación (Selección) */
.p-visual-bifurcation {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-bif-start {
  width: 12px; height: 12px;
  background: var(--text-color);
  border-radius: 50%;
}
.p-bif-paths {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.p-bif-paths::before {
  content: '';
  position: absolute;
  left: -12px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 2px; background: var(--text-color);
}
.p-path {
  width: 24px; height: 4px;
  border-radius: 2px;
}
.rejected {
  background: var(--gray-200);
}
.selected {
  background: var(--text-color);
  width: 32px; /* Destaca ligeramente */
}

/* 4. Producto Construido */
.p-visual-product {
  width: 60px;
  height: 48px;
  background: var(--text-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.p-prod-nav {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.p-prod-body {
  display: flex;
  gap: 4px;
  flex: 1;
}
.p-prod-sidebar {
  width: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.p-prod-main {
  flex: 1;
  background: var(--bg-color);
  border-radius: 2px;
}

/* Animaciones de entrada en Scroll (usando .reveal) */
.reveal .process-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active .process-step:nth-child(2) { transition-delay: 0.1s; }
.reveal.active .process-step:nth-child(3) { transition-delay: 0.2s; }
.reveal.active .process-step:nth-child(4) { transition-delay: 0.3s; }
.reveal.active .process-step:nth-child(5) { transition-delay: 0.4s; }

.reveal.active .process-step {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Process */
@media (max-width: 900px) {
  .process-flow {
    flex-direction: column;
    gap: 4rem;
  }
  .process-flow-line {
    /* En móvil, la línea conecta verticalmente */
    top: 60px;
    bottom: 60px;
    left: 40px; /* Alineado al centro del visual */
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom, transparent, var(--gray-300) 10%, var(--gray-300) 90%, transparent);
  }
  .process-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
  }
  .process-step-num {
    position: absolute;
    top: -15px;
    right: 0;
    font-size: 5rem;
    opacity: 0.5;
  }
  .process-step-visual {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .process-step-content {
    margin-top: 0;
    padding-top: 10px;
    padding-right: 4rem; /* espacio para el numero */
  }
}

@media (max-width: 600px) {
  .process-title {
    font-size: 2.25rem;
  }
  .process-step-num {
    font-size: 3.5rem;
    right: -10px;
  }
  .process-step-content {
    padding-right: 2rem;
  }
}

/* ==================================================
   SYSTEMS SECTION (ECOSISTEMA)
   ================================================== */
.systems-section {
  padding: 8rem 0;
  background-color: var(--gray-100); /* Contraste sutil vs blanco */
  position: relative;
  overflow: hidden;
}

.systems-header {
  text-align: center;
  margin: 0 auto 6rem;
  max-width: 800px;
}

.systems-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.systems-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Ecosystem Diagram */
.ecosystem-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 8rem;
  position: relative;
}

.eco-row {
  display: flex;
  justify-content: center;
  gap: 6rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.eco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  width: 220px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eco-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.eco-label {
  font-weight: 600;
  color: var(--text-color);
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Micro-mockups dentro de los nodos */
.eco-mockup {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  background-color: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.eco-mockup-web {
  background: var(--bg-color);
}
.em-web-header { width: 100%; height: 12px; background: var(--gray-200); border-bottom: 1px solid var(--gray-300); }
.em-web-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.em-web-title { width: 60%; height: 6px; background: var(--gray-300); border-radius: 4px; }
.em-web-btn { background: var(--text-color); color: var(--bg-color); font-size: 0.5rem; padding: 4px 8px; border-radius: 4px; font-weight: bold; }

.eco-cliente-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-color);
  color: var(--bg-color);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.eco-mockup-module {
  background: var(--text-color);
}

.em-mod-cal { width: 100%; height: 100%; padding: 8px; display: flex; flex-direction: column; gap: 4px;}
.em-cal-head { width: 50%; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.em-cal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; flex: 1; }
.em-cal-grid div { background: rgba(255,255,255,0.1); border-radius: 2px; }
.em-cal-grid div.active { background: var(--bg-color); }

.em-mod-info { width: 100%; height: 100%; padding: 12px; display: flex; flex-direction: column; gap: 8px; justify-content: center;}
.em-info-line { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.em-info-line.short { width: 60%; }

.em-mod-dash { width: 100%; height: 100%; display: flex; }
.em-dash-nav { width: 15px; background: rgba(255,255,255,0.1); height: 100%; }
.em-dash-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.em-dash-card { flex: 1; background: rgba(255,255,255,0.15); border-radius: 2px; }

.em-mod-gestion { width: 100%; height: 100%; padding: 12px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.em-gest-slider { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; position: relative; }
.em-gest-slider .knob { width: 8px; height: 8px; background: var(--bg-color); border-radius: 50%; position: absolute; top: -2px; left: 30%; }
.em-gest-slider:nth-child(2) .knob { left: 70%; }

.eco-mockup-negocio {
  background: var(--text-color);
  color: var(--bg-color);
  font-size: 2.5rem;
  border: none;
}

/* Líneas conectoras desktop */
.eco-connections {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.eco-line {
  position: absolute;
  background: var(--gray-300);
}

@media (min-width: 901px) {
  .line-web-citas { width: 2px; height: 60px; left: calc(50% - 110px - 3rem); top: 120px; transform: rotate(-45deg); transform-origin: top; background: linear-gradient(var(--text-color), var(--gray-300)); }
  .line-web-info { width: 2px; height: 60px; left: calc(50% + 110px + 3rem); top: 120px; transform: rotate(45deg); transform-origin: top; background: linear-gradient(var(--text-color), var(--gray-300)); }
  .line-citas-panel { width: 2px; height: 3rem; left: calc(50% - 110px - 3rem); top: 310px; }
  .line-info-gestion { width: 2px; height: 3rem; left: calc(50% + 110px + 3rem); top: 310px; }
  .line-panel-negocio { width: 2px; height: 60px; left: calc(50% - 110px - 3rem); top: 500px; transform: rotate(45deg); transform-origin: top; }
  .line-gestion-negocio { width: 2px; height: 60px; left: calc(50% + 110px + 3rem); top: 500px; transform: rotate(-45deg); transform-origin: top; }
}

/* Animaciones del ecosistema */
.reveal .eco-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active .eco-row-1 .eco-item { opacity: 1; transform: translateY(0); }
.reveal.active .eco-row-2 .eco-item { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.reveal.active .eco-row-3 .eco-item { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.reveal.active .eco-row-4 .eco-item { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.reveal.active .eco-line { 
  opacity: 0; 
  animation: drawLine 0.5s ease forwards;
}
@keyframes drawLine { to { opacity: 1; } }

/* PARTE C: Clínica */
.systems-example {
  background: var(--bg-color);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  margin-bottom: 6rem;
  border: 1px solid var(--gray-200);
}

.example-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

.example-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
}

.ex-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ex-col-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gray-600);
}

.ex-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.ex-step {
  background: var(--gray-100);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

.highlight-step {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 2;
}

.ex-arrow {
  font-size: 1.5rem;
  color: var(--gray-400);
}

.ex-connection {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ex-conn-box {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 1px;
  z-index: 2;
}

.ex-conn-line {
  flex: 1;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gray-300) 0, var(--gray-300) 4px, transparent 4px, transparent 8px);
}

/* Statement Final */
.systems-statement {
  text-align: center;
  padding: 6rem 0 2rem;
}

.statement-text {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--text-color), var(--gray-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .eco-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .eco-connections { display: none; }
  
  .ecosystem-diagram::after {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--gray-300);
    z-index: 1;
  }

  .example-grid {
    flex-direction: column;
    gap: 3rem;
  }
  .ex-connection {
    flex-direction: row;
    height: 80px;
    flex: auto;
  }
  .ex-conn-line {
    height: 2px;
    width: auto;
    background: repeating-linear-gradient(to right, var(--gray-300) 0, var(--gray-300) 4px, transparent 4px, transparent 8px);
  }
  .systems-example {
    padding: 2rem;
  }
}

/* Grids and Cards Generales */

.steps-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .steps-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .steps-grid-4, .features-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 3rem 2rem;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--bg-color);
}

.step-card:hover {
  transform: translateY(-5px);
  background-color: var(--text-color);
  color: var(--bg-color);
}

.step-card:hover h3, 
.step-card:hover p,
.step-card:hover .step-num {
  color: var(--bg-color);
}

.step-num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gray-300);
  line-height: 1;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.step-card h3 {
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

/* Dark Section / Dark Card */
.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-dark h2 {
  color: var(--text-light);
}

.dark-card {
  background-color: #111111;
  border-color: #333333;
}
.dark-card h3 {
  color: var(--bg-color);
}
.dark-card .step-num {
  color: #444444;
}

.dark-card:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
}
.dark-card:hover h3, .dark-card:hover .step-num {
  color: var(--text-color);
}


/* Service Card Hover (Section 4) */
.service-card {
  background-color: var(--text-color);
  border: 1px solid var(--text-color);
}

.service-card h3, .service-card i {
  color: var(--bg-color);
  transition: var(--transition);
}

.service-card:hover {
  background-color: var(--bg-color);
}

.service-card:hover h3, .service-card:hover i {
  color: var(--text-color);
}


/* Demos Slider */
.demos-slider {
  padding-bottom: 4rem; /* Room for pagination */
  padding-top: 1rem;
  padding-left: 3rem;
  padding-right: 3rem;
}

.swiper-slide {
  height: auto;
}

.swiper-pagination-bullet-active {
  background: var(--text-color) !important;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--text-color) !important;
}

.swiper-button-prev {
  left: 0 !important;
}

.swiper-button-next {
  right: 0 !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1.5rem !important;
}

.demo-card {
  background: var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.demo-image {
  height: 250px;
  width: 100%;
  object-fit: cover;
  background-color: var(--gray-300);
}

.demo-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.demo-info p {
  flex-grow: 1;
}

/* Contact Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--text-color);
  color: var(--bg-color);
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
  background-color: var(--gray-100);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-color);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Modal Demos ====== */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-color);
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-100);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  color: var(--text-color);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.modal-gallery-col {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--gray-100);
  min-height: 350px;
}

.modal-swiper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.modal-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
}

.modal-swiper .swiper-slide .image-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.modal-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  box-sizing: border-box;
  display: block;
  transition: transform 0.3s ease;
}

.modal-swiper .swiper-slide .image-zoom-container:hover img {
  transform: scale(1.02);
}

.zoom-overlay {
  position: absolute;
  inset: 1rem; /* match image padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 8px;
}

.modal-swiper .swiper-slide .image-zoom-container:hover .zoom-overlay {
  opacity: 1;
}

.pulse-anim {
  font-size: 2.5rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.lightbox-image {
  max-height: 85vh !important;
  object-fit: contain !important;
}

.lightbox-swal-container {
  z-index: 3000 !important;
}

/* Pagination for modal */
.modal-swiper .swiper-pagination-fraction {
  background: rgba(0,0,0,0.5);
  color: white;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.875rem;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-features {
  flex-grow: 1;
}

.modal-features li {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.modal-features li::before {
  margin-top: 5px; /* align checkmark with top of text if it wraps */
}

@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .modal-gallery-col {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
  }
  .modal-content {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .modal-body {
    padding: 1rem;
    padding-top: 4rem; /* space for close button */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .modal-gallery-col {
    min-height: 250px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .modal-close {
    background: var(--gray-200);
    top: 10px;
    right: 10px;
  }
  .modal-title {
    font-size: 1.5rem;
  }
}