/* ==========================================================================
   DigiBox Diálisis — Design System
   ========================================================================== */

:root {
  --cream: #f5f5f0;
  --black: #000000;
  --amber: #d4a017;
  --teal: #0a8a8a;
  --light-gray: #e6e6e2;
  --muted-gray: #999999;
  --white: #ffffff;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Typography */
.overline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.text-teal { color: var(--teal); }
.text-amber { color: var(--amber); }
.text-white { color: var(--white); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }

h1, h2, h3, h4 { font-family: var(--font-display); }

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.heading-2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.body-text {
  font-size: 1.125rem;
  color: #444;
  margin-bottom: 28px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-640 { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-1100 { max-width: 1100px; margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.mb-16 { margin-bottom: 64px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section { padding: 120px 0; }
.bg-cream { background: var(--cream); }
.bg-light-gray { background: var(--light-gray); }
.bg-black { background: var(--black); color: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.two-col.reverse .content-col { order: 2; }
.two-col.reverse .visual-col { order: 1; }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #222; transform: translateY(-2px); }

.btn-amber { background: var(--amber); color: var(--black); }
.btn-amber:hover { background: #c08f12; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35); }

.btn-outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-white { border-color: rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn-sm { padding: 10px 24px; font-size: 0.875rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s ease;
  padding: 20px 0;
}

.nav.scrolled {
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.nav-logo-mark {
  height: 44px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--teal);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--teal); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.nav-cta:hover { background: var(--teal); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: var(--cream);
  z-index: 99;
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.4s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.08);
}

.mobile-menu.open { right: 0; }

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-nav-cta {
  background: var(--amber);
  color: var(--black);
  text-align: center;
  padding: 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 12px;
}

/* ==========================================================================
   Hero — plain white background
   ========================================================================== */

.hero {
  min-height: 100vh;
  background: #ffffff;
  padding: 160px 0 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-text-centered {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 56px;
}

.hero-subheadline {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-points {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.35;
}

.hero-deco-teal {
  width: 320px;
  height: 320px;
  background: var(--teal);
  top: -80px;
  right: -60px;
}

.hero-deco-amber {
  width: 260px;
  height: 260px;
  background: var(--amber);
  bottom: -60px;
  left: -40px;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-gray);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   Browser frames (desktop mockups)
   ========================================================================== */

.browser-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.browser-dark {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0f0ec;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.browser-dots { display: flex; gap: 6px; }

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame img {
  width: 100%;
  height: auto;
}

.browser-stack {
  position: relative;
}

.browser-stack .browser-back {
  width: 78%;
  transform: rotate(-2deg);
  position: absolute;
  top: -32px;
  left: 0;
  opacity: 0.9;
}

.browser-stack .browser-front {
  width: 85%;
  margin-left: auto;
  position: relative;
  margin-top: 80px;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.trusted-by {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 28px 0;
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #555;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.white-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.white-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.white-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.card-icon { margin-bottom: 20px; }

/* Check list */
.check-list {
  list-style: none;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 1rem;
  color: #333;
}

.check-list li svg { flex-shrink: 0; margin-top: 2px; }

.check-list.white li { color: rgba(255, 255, 255, 0.9); }

/* Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.pill {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
}

.pill-filled { background: var(--teal); color: var(--white); }
.pill-outline { border: 1.5px solid var(--teal); color: var(--teal); }

/* ==========================================================================
   How it works — sticky steps
   ========================================================================== */

.how-it-works {
  position: relative;
  height: 400vh;
  background: var(--white);
}

.how-bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.04;
}

.how-bg-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.how-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 0 24px;
  height: 70vh;
}

.step-block {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex;
  align-items: center;
}

.step-block.active { opacity: 1; visibility: visible; }

.step-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 56px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}

.step-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
}

.browser-sm { border-radius: var(--radius); }

.how-progress {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.how-progress-line {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--light-gray);
  transition: background 0.4s;
}

.how-progress-line.active { background: var(--teal); }

/* ==========================================================================
   Dashboard preview + metrics
   ========================================================================== */

.dashboard-preview {
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  margin-bottom: 64px;
}

.dashboard-preview .browser-chrome { background: #1c1c1c; border-bottom-color: rgba(255,255,255,0.08); }

.browser-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-img { width: 100%; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 28px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.95rem; }
.author-title { font-size: 0.8rem; color: var(--muted-gray); }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section {
  background: var(--teal);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -200px;
  right: -120px;
}

.cta-iso {
  position: absolute;
  left: -90px;
  bottom: -120px;
  width: 420px;
  height: auto;
  opacity: 0.12;
  transform: rotate(-8deg);
  pointer-events: none;
}

.cta-heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 32px;
}

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

.footer-logo { display: flex; flex-direction: column; line-height: 1.1; margin-bottom: 20px; }

.footer-logo-img {
  width: 120px;
  height: auto;
  opacity: 0.95;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

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

.footer-col .btn { margin-top: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--white); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .two-col.reverse .content-col { order: 1; }
  .two-col.reverse .visual-col { order: 2; }
  .three-col { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; gap: 32px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 80px 0; }
  .hero { padding-top: 120px; }
  .three-col { grid-template-columns: 1fr; }
  .browser-stack .browser-back { display: none; }
  .browser-stack .browser-front { width: 100%; margin-top: 0; }
  .step-card { padding: 32px 24px; }
  .how-content-wrapper { height: 78vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-points { flex-direction: column; align-items: center; gap: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-ctas .btn { width: 100%; }
  .cta-buttons .btn { width: 100%; }
}

/* ==========================================================================
   FAQ (acordeón nativo)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 0 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(10, 138, 138, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black, #000);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 138, 138, 0.1);
  color: var(--teal, #0a8a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--teal, #0a8a8a);
  color: #ffffff;
}

.faq-answer {
  margin: 0;
  padding: 0 0 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 768px) {
  .faq-item { padding: 0 20px; }
  .faq-question { font-size: 0.98rem; }
}
