:root {
  --primary: #0EA5A4;
  --primary-dark: #0b8786;
  --primary-light: #e6f6f6;
  --secondary: #0F172A;
  --accent: #67E8F9;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-alt: #F1F5F9;
  --text-main: #334155;
  --text-light: #64748B;
  --border: #E2E8F0;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.bg-surface {
  background-color: var(--surface);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0b8786, #0891b2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14, 165, 164, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--surface);
  border-color: var(--text-light);
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  background-color: white;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.d-none {
  display: none;
}

@media (min-width: 768px) {
  .d-md-block {
    display: block;
  }
}

/* Nav */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 0.625rem 1.25rem !important;
  font-size: 1rem !important;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  background: radial-gradient(circle at 100% 0%, #f0fbcc00 0%, var(--bg) 100%), linear-gradient(180deg, #F0FFFF 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-benefit-line {
  font-size: 1.125rem !important;
  font-weight: 600;
  color: var(--primary) !important;
  margin-bottom: 1.5rem !important;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 2.5rem;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--secondary);
  font-weight: 500;
}

.hero-bullets .icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.hero-sub-cta {
  margin-top: 1.5rem;
}

.hero-sub-cta-main {
  font-size: 0.95rem !important;
  color: var(--text-main) !important;
  margin-bottom: 0.25rem !important;
  font-weight: 500;
}

.hero-sub-cta-secondary {
  font-size: 0.85rem !important;
  color: var(--text-light) !important;
  margin-bottom: 0 !important;
}

.hero-trust-line {
  margin-top: 1.5rem;
  font-size: 0.9rem !important;
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.hero-gradient-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
}

/* Problems Section */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  background: var(--bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #FFF1F2;
  color: #E11D48;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 1rem;
  margin: 0;
}

/* Solution Section */
.solution {
  background-color: var(--secondary);
  color: white;
  overflow: hidden;
}

.solution h2,
.solution h3,
.solution p {
  color: white;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.solution-point {
  display: flex;
  gap: 1.25rem;
}

.solution-point-icon {
  background: rgba(103, 232, 249, 0.1);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-point h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.solution-point p {
  font-size: 1rem;
  color: #CBD5E1;
  margin: 0;
}

.solution-image {
  position: relative;
}

.solution-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* How It Works Layer */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 6px -1px rgba(14, 165, 164, 0.4);
}

.step-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  display: inline-block;
}

.step-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Differentiation Section */
.comparison-table {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.comparison-column {
  padding: 3rem;
}

.comparison-column:first-child {
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
}

.comparison-column.feature-active {
  background: white;
  position: relative;
}

.comparison-column.feature-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
}

.comparison-column h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.comparison-list {
  list-style: none;
}

.comparison-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.comparison-column:first-child .comparison-list li {
  color: var(--text-light);
}

.comparison-column.feature-active .comparison-list li {
  color: var(--secondary);
  font-weight: 500;
}

.icon-cross {
  color: #EF4444;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.icon-check {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.use-case-card:hover {
  box-shadow: var(--shadow-md);
}

.use-case-header {
  background: var(--surface);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.use-case-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.use-case-body {
  padding: 2rem;
}

.chat-bubble {
  background: var(--surface-alt);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0;
  margin-bottom: 1rem;
  display: inline-block;
  max-width: 90%;
  position: relative;
}

.chat-bubble.bot {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 1rem;
  border-bottom-right-radius: 0;
  margin-left: auto;
  border-bottom-left-radius: 1rem;
  display: block;
  float: right;
  clear: both;
}

.chat-container::after {
  content: "";
  display: table;
  clear: both;
}

.use-case-result {
  clear: both;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Benefits Container */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  padding: 2.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  margin: 0;
  font-size: 1rem;
}

/* Timeline Section */
.timeline-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.timeline-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.timeline-step p {
  font-size: 0.9rem;
}

.timeline-circle {
  width: 50px;
  height: 50px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.timeline-circle-done {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  background: url('assets/dental-environment.png') center/cover no-repeat;
  position: relative;
  text-align: center;
  color: white;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(14, 165, 164, 0.85));
}

.cta-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 10;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: #E2E8F0;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #94A3B8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94A3B8;
  max-width: 400px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94A3B8;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

.footer-powered {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 1.5rem;
  text-align: center;
  opacity: 0.8;
}

.footer-powered a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.footer-powered a:hover {
  text-decoration: underline;
  color: #94A3B8;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background: #20bd5a;
}

/* Animations using Intersection Observer */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 992px) {

  .hero .container,
  .solution-grid,
  .comparison-table,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 7rem 0 3rem;
    text-align: center;
  }

  .hero-bullets li {
    justify-content: center;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .comparison-column:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* TASK 6 — Navbar: solo logo, links ocultos */
  .navbar .container {
    flex-direction: row;
    height: 56px;
    padding: 0 1rem;
    gap: 0;
  }

  .nav-links {
    display: none;
  }

  .navbar .logo {
    font-size: 1.25rem;
  }

  /* TASK 5 — Hero compacto above the fold */
  h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 4.5rem 0 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-content > p {
    font-size: 1.05rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-benefit-line {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-bullets {
    margin-bottom: 1.5rem;
  }

  .hero-bullets li {
    text-align: left;
    flex-direction: row;
    align-items: flex-start;
    font-size: 1rem;
    margin-bottom: 0.625rem;
  }

  /* TASK 3 — CTA principal visible, no duplicado */
  .btn-group {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .btn-group .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .hero-sub-cta {
    margin-top: 1rem;
  }

  .hero-sub-cta-main {
    font-size: 0.875rem !important;
  }

  .hero-sub-cta-secondary {
    font-size: 0.8rem !important;
  }

  .hero-trust-line {
    margin-top: 1rem;
    font-size: 0.8rem !important;
    padding: 0.375rem 0.75rem;
  }

  .hero-image {
    margin-top: 1.5rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    flex-direction: column;
    align-items: center;
  }

  .timeline-line {
    display: none;
  }

  .timeline-step {
    min-width: unset;
    width: 100%;
    max-width: 300px;
  }

  .comparison-column {
    padding: 1.5rem;
  }

  .comparison-list li {
    font-size: 0.95rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .cta-content p {
    font-size: 1.05rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* TASK 1 — WhatsApp float: solo icono en mobile */
  .whatsapp-float {
    padding: 14px;
    border-radius: 50%;
    bottom: 16px;
    right: 16px;
    font-size: 0;
    gap: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
