/* ============================================================
   ClinicUp — Landing Site
   css/styles.css
   Design system fundacional. Mobile-first.
   ============================================================ */

/* ============================================================
   1. GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ============================================================
   2. VARIABLES CSS
   ============================================================ */
:root {
  /* Paleta */
  --color-primary:        #1A2B3C;
  --color-primary-light:  #243548;
  --color-primary-dark:   #111E2A;
  --color-accent:         #48C9B0;
  --color-accent-hover:   #3AB5A0;
  --color-accent-light:   #E8F5F2;
  --color-bg:             #F4F7F9;
  --color-bg-alt:         #EDF1F4;
  --color-text:           #4A5568;
  --color-text-muted:     #718096;
  --color-text-light:     #A0AEC0;
  --color-white:          #FFFFFF;
  --color-border:         rgba(26, 43, 60, 0.10);
  --color-border-light:   rgba(26, 43, 60, 0.06);
  --color-error:          #E53E3E;
  --color-success:        #38A169;

  /* Tipografía */
  --font-base:            'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs:         0.75rem;
  --font-size-sm:         0.875rem;
  --font-size-base:       1rem;
  --font-size-md:         1.125rem;
  --font-size-lg:         1.25rem;
  --font-size-xl:         1.5rem;
  --font-size-2xl:        2rem;
  --font-size-3xl:        2.5rem;
  --font-size-4xl:        3.25rem;
  --line-height-tight:    1.2;
  --line-height-snug:     1.4;
  --line-height-base:     1.65;
  --line-height-relaxed:  1.8;

  /* Espaciado */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Bordes */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-xs:   0 1px 3px rgba(26, 43, 60, 0.06);
  --shadow-sm:   0 2px 8px rgba(26, 43, 60, 0.07);
  --shadow-md:   0 4px 16px rgba(26, 43, 60, 0.09);
  --shadow-lg:   0 8px 32px rgba(26, 43, 60, 0.11);
  --shadow-card: 0 2px 12px rgba(26, 43, 60, 0.06);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-base:   220ms ease;
  --transition-slow:   350ms ease;

  /* Layout */
  --container-max:   1200px;
  --container-wide:  1400px;
  --nav-height:      68px;
}


/* ============================================================
   3. RESET Y BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

button {
  font-family: var(--font-base);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-base);
}

ul, ol {
  list-style: none;
}


/* ============================================================
   4. TIPOGRAFÍA BASE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
  color: var(--color-text);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-4);
}

p:last-child { margin-bottom: 0; }

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

a:hover { color: var(--color-accent-hover); }

strong { font-weight: 600; color: var(--color-primary); }

small {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.lead {
  font-size: var(--font-size-md);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-snug);
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 560px;
}

/* Logo */
.logo-clinic { font-weight: 600; color: var(--color-primary); }
.logo-up     { font-weight: 700; color: var(--color-accent); }


/* ============================================================
   5. LAYOUT Y CONTENEDORES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--space-16);
}

.section--lg {
  padding-block: var(--space-24);
}

.section--sm {
  padding-block: var(--space-10);
}

.section--dark {
  background-color: var(--color-primary);
}

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

.section--white {
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.flex {
  display: flex;
  gap: var(--space-4);
}

.flex--center {
  align-items: center;
  justify-content: center;
}

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

.flex--wrap {
  flex-wrap: wrap;
}


/* ============================================================
   6. HEADER Y NAVEGACIÓN DESKTOP
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-bg);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-cta--mobile {
  display: none;
}


/* ============================================================
   7. MENÚ MOBILE Y HAMBURGER
   ============================================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: none;
  transition: background-color var(--transition-fast);
}

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

.hamburger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.hamburger.is-open .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  z-index: 999;
  padding: var(--space-6);
  overflow-y: auto;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: var(--font-size-base);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}

.mobile-nav .btn-primary {
  margin-top: var(--space-4);
  text-align: center;
  width: 100%;
}


/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-20);
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 40%, rgba(72, 201, 176, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-3);
  background: rgba(72, 201, 176, 0.10);
  border-radius: var(--radius-full);
  border: 1px solid rgba(72, 201, 176, 0.20);
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero__title .accent {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-10);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hero__trust-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.50);
}

.hero__trust-items {
  display: flex;
  gap: var(--space-6);
}

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

.hero__trust-stat strong {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-white);
}

.hero__trust-stat span {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.50);
}

.hero__visual {
  display: none;
  position: relative;
}

/* Custom Image and Floating Bubbles for Hero */
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-main-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.floating-bubble {
  position: absolute;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  animation: float-bubble 4s ease-in-out infinite;
  display: block !important;
}

.floating-bubble-1 {
  top: 15%;
  left: -20%;
  animation-delay: 0s;
}

.floating-bubble-2 {
  bottom: 20%;
  right: -25%;
  animation-delay: 2s;
}

@keyframes float-bubble {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 1024px) {
  .floating-bubble-1 { top: 5%; left: -5%; max-width: 240px; }
  .floating-bubble-2 { bottom: 5%; right: -5%; max-width: 240px; }
}

@media (max-width: 768px) {
  .floating-bubble-1 { top: 2%; left: 0; max-width: 200px; }
  .floating-bubble-2 { bottom: 2%; right: 0; max-width: 200px; }
}


/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card--featured {
  border-color: var(--color-accent);
  border-width: 2px;
  position: relative;
}

.card--dark {
  background: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.08);
}

.card--dark h3, .card--dark h4 {
  color: var(--color-white);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.65);
}

/* Card de beneficio */
.benefit-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  font-size: 1.25rem;
}

.benefit-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.benefit-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* Card de solución */
.solution-card {
  padding: var(--space-8);
}

.solution-card__number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: rgba(26, 43, 60, 0.06);
  line-height: 1;
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}

/* Card de plan */
.plan-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.plan-card__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.plan-card__price {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.plan-card__price sup {
  font-size: var(--font-size-xl);
  font-weight: 600;
  vertical-align: super;
}

.plan-card__period {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.plan-card__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-6);
}

.plan-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.plan-feature__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  margin-top: 2px;
}

.plan-feature--disabled {
  color: var(--color-text-light);
}

.plan-feature--disabled .plan-feature__icon {
  color: var(--color-text-light);
}


/* ============================================================
   10. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--sm {
  font-size: var(--font-size-xs);
  padding: 9px 18px;
}

.btn--lg {
  font-size: var(--font-size-base);
  padding: 15px 36px;
}

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

/* Primary */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-primary:active {
  background-color: #329E8A;
  border-color: #329E8A;
}

.btn-primary:disabled {
  background-color: rgba(72, 201, 176, 0.40);
  border-color: transparent;
  cursor: not-allowed;
}

/* Secondary */
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:active {
  background-color: var(--color-primary-dark);
}

.btn-secondary:disabled {
  opacity: 0.40;
  cursor: not-allowed;
}

/* Outline white (sobre fondos oscuros) */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.50);
}

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

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}


/* ============================================================
   11. FORMULARIOS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: var(--font-size-sm);
  font-family: var(--font-base);
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(72, 201, 176, 0.15);
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  font-weight: 500;
}


/* ============================================================
   12. TABLA COMPARATIVA DE PLANES
   ============================================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  min-width: 560px;
}

.comparison-table thead th {
  padding: var(--space-5) var(--space-6);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.comparison-table thead th:first-child {
  text-align: left;
  width: 40%;
}

.comparison-table thead th.col-featured {
  background: rgba(72, 201, 176, 0.07);
  color: var(--color-accent);
}

.comparison-table tbody td {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
}

.comparison-table tbody td:first-child {
  text-align: left;
  color: var(--color-primary);
  font-weight: 500;
}

.comparison-table tbody td.col-featured {
  background: rgba(72, 201, 176, 0.04);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: var(--color-bg);
}

.comparison-table__check {
  color: var(--color-accent);
  font-size: 1rem;
}

.comparison-table__cross {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.comparison-table__category {
  background: var(--color-bg-alt) !important;
}

.comparison-table__category td {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted) !important;
  padding-block: var(--space-3) !important;
}


/* ============================================================
   13. SIMULACIÓN WHATSAPP
   ============================================================ */
.whatsapp-demo {
  max-width: 360px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.whatsapp-demo__header {
  background: #075E54;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.whatsapp-demo__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
}

.whatsapp-demo__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
}

.whatsapp-demo__status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.70);
}

.whatsapp-demo__body {
  background: #ECE5DD;
  padding: var(--space-4);
  height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Burbuja paciente (derecha) */
.whatsapp-bubble {
  max-width: 78%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  position: relative;
  word-break: break-word;
}

.whatsapp-bubble--patient {
  align-self: flex-end;
  background: var(--color-white);
  border-top-right-radius: var(--radius-sm);
}

/* Burbuja ClinicUp (izquierda) */
.whatsapp-bubble--clinic {
  align-self: flex-start;
  background: #E8F5F2;
  border-top-left-radius: var(--radius-sm);
}

.whatsapp-bubble__text {
  font-size: 13px;
  line-height: 1.45;
  color: #111;
  margin-bottom: 0;
}

.whatsapp-bubble__time {
  font-size: 10px;
  color: #8696a0;
  text-align: right;
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

.whatsapp-bubble__check {
  font-size: 11px;
  color: #53bdeb;
}

.whatsapp-demo__input {
  background: #F0F2F5;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.whatsapp-demo__input-field {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  color: var(--color-text-muted);
  border: none;
  outline: none;
}

.whatsapp-demo__send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #075E54;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}


/* ============================================================
   14. CALCULADORA DE ROI
   ============================================================ */
.roi-calculator {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.roi-calculator__inputs {
  padding: var(--space-8);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.roi-calculator__input-group {
  margin-bottom: var(--space-6);
}

.roi-calculator__input-group:last-child {
  margin-bottom: 0;
}

.roi-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
}

.roi-input-value {
  font-weight: 700;
  color: var(--color-accent);
}

.roi-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--color-accent) 0%, var(--color-border) 0%);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.roi-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.roi-calculator__results {
  padding: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.roi-result__value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.roi-result__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: var(--line-height-snug);
}

.roi-result--accent .roi-result__value {
  color: var(--color-accent);
}

.roi-calculator__footer {
  padding: var(--space-5) var(--space-8);
  background: var(--color-accent);
  text-align: center;
}

.roi-calculator__footer p {
  font-size: var(--font-size-sm);
  color: var(--color-white);
  font-weight: 500;
  margin: 0;
}


/* ============================================================
   15. ACORDEONES FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.is-open {
  border-color: rgba(72, 201, 176, 0.30);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--color-bg);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   16. BADGES Y ETIQUETAS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1;
  letter-spacing: 0.02em;
}

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

.badge--accent-light {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid rgba(72, 201, 176, 0.25);
}

.badge--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge--primary-light {
  background: rgba(26, 43, 60, 0.07);
  color: var(--color-primary);
}

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

.badge--popular {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge--new {
  background: #EBF8FF;
  color: #2B6CB0;
  border: 1px solid rgba(43, 108, 176, 0.20);
}

/* Tag más amplia */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}


/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.60);
  padding-top: var(--space-16);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.60);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand .site-logo {
  font-size: var(--font-size-lg);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.footer__brand p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.50);
  line-height: var(--line-height-relaxed);
  max-width: 280px;
  margin-bottom: 0;
}

.footer__col-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--font-size-sm);
}

.footer__bottom {
  padding-block: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
}

.footer__bottom-legal {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer__social-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.60);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.footer__social-icon:hover {
  background: rgba(72, 201, 176, 0.15);
  color: var(--color-accent);
}


/* ============================================================
   18. CLASES UTILITARIAS
   ============================================================ */

/* Texto */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: var(--color-white); }
.text-sm      { font-size: var(--font-size-sm); }
.text-xs      { font-size: var(--font-size-xs); }
.text-lg      { font-size: var(--font-size-lg); }
.fw-400       { font-weight: 400; }
.fw-500       { font-weight: 500; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

/* Márgenes */
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Display */
.d-none    { display: none; }
.d-flex    { display: flex; }
.d-grid    { display: grid; }
.d-block   { display: block; }
.d-inline  { display: inline; }

/* Visualmente oculto pero accesible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Separadores */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}


/* ============================================================
   19. BREAKPOINTS RESPONSIVE — MOBILE-FIRST
   ============================================================ */

/* — Tablet: 768px — */
@media (min-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }

  .section-title { font-size: var(--font-size-3xl); }
  .hero__title   { font-size: var(--font-size-4xl); }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero__actions {
    flex-wrap: nowrap;
  }

  .roi-calculator__results {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* — Desktop: 1024px — */
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    padding-top: calc(var(--nav-height) + var(--space-20));
    padding-bottom: var(--space-24);
  }

  .hero .container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }

  .hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero__content {
    max-width: none;
  }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .footer__grid {
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
  }
}

/* — Desktop wide: 1280px — */
@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-8);
  }

  .section { padding-block: var(--space-20); }
  .section--lg { padding-block: var(--space-24); }
}


/* ============================================================
   20. ESTADOS DE INTERACCIÓN
   ============================================================ */

/* Focus general para accesibilidad */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Hover en links de navegación ya definidos arriba */

/* Hover cards */
.card:hover .benefit-card__icon {
  background: var(--color-accent);
  color: var(--color-white);
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Estados de plan featured al hover */
.plan-card.card--featured:hover {
  box-shadow: 0 6px 24px rgba(72, 201, 176, 0.18);
}

/* Inputs focus ya definidos arriba */

/* Active state general */
*:active {
  outline: none;
}


/* ============================================================
   21. ANIMACIONES LIGERAS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.60; }
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); }
}

/* Clases de animación */
.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease both;
}

.animate-slide-up {
  animation: slideUp 0.45s ease both;
}

.animate-slide-down {
  animation: slideDown 0.30s ease both;
}

/* Aparición de secciones al hacer scroll (se activa con JS) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* Tipeo en WhatsApp */
.whatsapp-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: var(--space-2) var(--space-3);
}

.whatsapp-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #8696a0;
  animation: typingDot 1.2s infinite ease;
}

.whatsapp-typing span:nth-child(2) { animation-delay: 0.15s; }
.whatsapp-typing span:nth-child(3) { animation-delay: 0.30s; }

/* Gradient de texto (uso selectivo) */
.text-gradient {
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(255,255,255,0.70) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }


/* ============================================================
   22. COMPONENTES ESPECÍFICOS DE PÁGINA
   ============================================================ */

/* ── Hero microcopy ──────────────────────────────────────── */
.hero__microcopy {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0;
}

/* ── Hero mockup (dashboard preview) ────────────────────── */
.hero-mockup {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-width: 500px;
  width: 100%;
}

.hero-mockup__bar {
  background: var(--color-bg-alt);
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-mockup__bar span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.hero-mockup__bar span:nth-child(1) { background: #FF5F57; }
.hero-mockup__bar span:nth-child(2) { background: #FFBD2E; }
.hero-mockup__bar span:nth-child(3) { background: #28C840; }

.hero-mockup__body {
  display: flex;
  min-height: 260px;
}

.hero-mockup__sidebar {
  width: 120px;
  flex-shrink: 0;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.hero-sidebar-item--active {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.hero-mockup__main {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-stat-row {
  display: flex;
  gap: var(--space-3);
}

.hero-stat {
  flex: 1;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}

.hero-stat__num {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat__num.accent { color: var(--color-accent); }

.hero-stat__label {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
  display: block;
}

.hero-agenda {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero-agenda__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border-left: 3px solid var(--color-border);
}

.hero-agenda__item--done {
  opacity: 0.55;
  border-left-color: var(--color-text-light);
}

.hero-agenda__item--now {
  background: var(--color-accent-light);
  border-left-color: var(--color-accent);
}

.hero-agenda__time {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 36px;
}

.hero-agenda__name {
  font-size: 11px;
  color: var(--color-text);
  flex: 1;
}

.hero-agenda__tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.hero-agenda__tag--pending {
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

/* ── WhatsApp Section Layout ─────────────────────────────── */
.whatsapp-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: center;
}

.whatsapp-section__text {
  max-width: 520px;
}

.whatsapp-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.whatsapp-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* Burbuja entrada animada */
.whatsapp-bubble {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.whatsapp-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive WhatsApp section ─────────────────────────── */
@media (min-width: 1024px) {
  .whatsapp-section {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-16);
    align-items: center;
  }

  .whatsapp-section__text {
    flex: 1;
  }

  .whatsapp-demo {
    flex-shrink: 0;
    margin-inline: 0;
  }

  .hero__visual {
    display: flex;
    justify-content: flex-end;
  }
}
