/* =========================
   LOOK-AGENDA LANDING CSS
   Opción 3: Transformación dual
========================= */

:root {
  --transition: 0.3s ease;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --container-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* =========================
   LIGHT THEME
========================= */
body[data-theme="light"] {
  --bg-main: #f4f8ff;
  --bg-soft: #edf4ff;
  --bg-card: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.88);

  --text-main: #162033;
  --text-soft: #5e6f8f;
  --heading-color: #0f172a;

  --border: rgba(37, 99, 235, 0.1);

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);

  --accent: #2563eb;

  --success: #1fa971;
  --warning: #d28b00;

  --shadow: 0 16px 34px rgba(37, 99, 235, 0.08);
}

/* =========================
   DARK THEME
========================= */
body[data-theme="dark"] {
  --bg-main: #0f1115;
  --bg-soft: #151922;
  --bg-card: #1a1f29;
  --bg-navbar: rgba(18, 20, 27, 0.88);

  --text-main: #f5f7fb;
  --text-soft: #bcc4d4;
  --heading-color: #ffffff;

  --border: rgba(255, 255, 255, 0.08);

  --primary: #d7b270;
  --primary-hover: #c89f5b;
  --primary-soft: rgba(215, 178, 112, 0.12);

  --accent: #d7b270;

  --success: #45d19a;
  --warning: #ffcf6c;

  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

main {
  position: relative;
}

.section-light {
  background: var(--bg-main);
  color: var(--text-main);
}

.section-dark {
  background: var(--bg-soft);
  color: var(--text-main);
}

.section-spacing {
  padding: 88px 0;
}

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

/* =========================
   NAVBAR
========================= */
.landing-navbar {
  backdrop-filter: blur(12px);
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  padding-top: 14px;
  padding-bottom: 14px;
}

.landing-navbar.is-scrolled {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}

.brand-logo,
.footer-logo {
  width: auto;
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  opacity: 0.92;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

.navbar-toggler {
  border-color: var(--border);
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--accent);
}

.navbar-toggler-icon {
  filter: invert(1);
}

body[data-theme="light"] .navbar-toggler-icon {
  filter: none;
}

/* =========================
   THEME TOGGLE
========================= */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* =========================
   BUTTONS
========================= */
.btn {
  border-radius: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-gold {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light,
.btn-outline-dark {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =========================
   HERO
========================= */
.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at top left, var(--primary-soft), transparent 28%),
    linear-gradient(180deg, var(--bg-main) 0%, var(--bg-soft) 100%);
}

.hero-row {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

.hero-badge,
.section-label,
.mini-label {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-title {
  color: var(--heading-color);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.hero-description,
.hero-dynamic-label,
.section-heading p,
.feature-panel p,
.highlight-panel p,
.step-card p,
.suite-card p,
.demo-panel p,
.cta-box p,
.problem-card p,
.footer-copy {
  color: var(--text-soft);
}

.hero-description {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-dynamic-message {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-dynamic-text {
  color: var(--accent);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-actions .btn-lg {
  padding: 0.95rem 1.4rem;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* =========================
   HERO MOCKUP
========================= */
.hero-mockup-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary-soft);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: 1px solid var(--border);
}

.mockup-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.18);
}

.mockup-dot:hover:not(.active) {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: scale(1.1);
}

.mockup-app-label {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: var(--transition);
}

.mockup-slides-wrapper {
  min-height: 490px;
  position: relative;
  overflow: hidden;
}

.mockup-slide {
  display: none;
  min-height: 490px;
}

.mockup-slide.active {
  display: flex;
  animation: mockupSlideIn 0.38s ease;
}

@keyframes mockupSlideIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.stat-sm {
  font-size: 1rem !important;
  line-height: 1.2;
}

.mockup-sidebar {
  width: 145px;
  padding: 20px 14px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.mockup-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
}

.mockup-menu-item {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mockup-menu-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.mockup-content {
  flex: 1;
  padding: 22px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.mockup-header h5 {
  margin: 0 0 4px;
  color: var(--heading-color);
  font-weight: 800;
}

.mockup-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.stat-card,
.appointment-item,
.feature-panel,
.highlight-panel,
.step-card,
.suite-card,
.demo-panel,
.cta-box,
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.stat-card strong {
  display: block;
  color: var(--heading-color);
  font-size: 1.6rem;
  line-height: 1;
}

.appointment-list {
  display: grid;
  gap: 12px;
}

.appointment-item {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.appointment-item strong {
  color: var(--heading-color);
  display: block;
}

.appointment-item p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.appointment-item-blocked {
  background: var(--primary-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag-success {
  background: rgba(31, 169, 113, 0.12);
  color: var(--success);
}

.tag-warning {
  background: rgba(210, 139, 0, 0.12);
  color: var(--warning);
}

.tag-accent {
  background: var(--primary-soft);
  color: var(--primary);
}

.floating-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 700;
}

.floating-chip-1 {
  top: -18px;
  right: 18px;
}

.floating-chip-2 {
  bottom: -18px;
  left: 18px;
}

/* =========================
   SECTION HEADINGS
========================= */
.section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  color: var(--heading-color);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 14px;
  margin-bottom: 12px;
  line-height: 1.14;
}

/* =========================
   PROBLEM CARDS
========================= */
.problem-card {
  padding: 28px;
  height: 100%;
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
}

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}

.problem-card h3 {
  color: var(--heading-color);
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* =========================
   BENEFIT PANELS
========================= */
.feature-panel,
.highlight-panel,
.demo-panel,
.cta-box,
.suite-card,
.step-card {
  padding: 28px;
  transition: var(--transition);
}

.feature-panel:hover,
.highlight-panel:hover,
.demo-panel:hover,
.cta-box:hover,
.suite-card:hover,
.step-card:hover {
  transform: translateY(-4px);
}

.feature-panel h3,
.highlight-panel h3,
.suite-card h3,
.step-card h3,
.demo-panel h2,
.cta-box h2,
.footer-title {
  color: var(--heading-color);
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-check {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.feature-item strong {
  color: var(--heading-color);
  display: block;
  margin-bottom: 4px;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-tags span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
}

/* =========================
   STEPS
========================= */
.step-number {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 14px;
}

.step-card h3,
.suite-card h3 {
  font-size: 1.14rem;
}

/* =========================
   DEMO / CTA
========================= */
.demo-panel,
.cta-box {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   FOOTER
========================= */
.landing-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-title {
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.footer-copy {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links a {
  color: var(--text-main);
  font-weight: 600;
}

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

/* =========================
   REVEAL
========================= */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* =========================
   RESPONSIVE — Tablet grande (≤ 1199px)
========================= */
@media (max-width: 1199.98px) {
  .brand-logo,
  .footer-logo {
    max-width: 160px;
    height: 40px;
  }

  .mockup-sidebar {
    width: 120px;
  }

  .mockup-menu-item {
    font-size: 0.85rem;
    padding: 9px 10px;
  }
}

/* =========================
   RESPONSIVE — Tablet (≤ 991px)
========================= */
@media (max-width: 991.98px) {
  .section-spacing {
    padding: 64px 0;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 56px;
  }

  .hero-row {
    min-height: auto;
    padding: 20px 0 0;
  }

  /* Sidebar horizontal en tablet */
  .mockup-slide.active {
    flex-direction: column;
  }

  .mockup-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 14px;
  }

  .mockup-logo {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .mockup-menu-item {
    font-size: 0.78rem;
    padding: 6px 10px;
    margin-bottom: 0;
  }

  .mockup-content {
    padding: 16px;
  }

  .mockup-slides-wrapper,
  .mockup-slide {
    min-height: 380px;
  }

  .floating-chip {
    display: none;
  }
}

/* =========================
   RESPONSIVE — Móvil (≤ 767px)
========================= */
@media (max-width: 767.98px) {
  .section-spacing {
    padding: 48px 0;
  }

  .hero-section {
    padding-top: 88px;
    padding-bottom: 40px;
  }

  .hero-row {
    min-height: auto;
    padding: 16px 0 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  /* Ocultar sidebar del mockup — solo mostrar contenido */
  .mockup-sidebar {
    display: none;
  }

  .mockup-slides-wrapper,
  .mockup-slide {
    min-height: 330px;
  }

  .mockup-content {
    padding: 16px 14px;
  }

  .mockup-header {
    margin-bottom: 14px;
  }

  .mockup-header h5 {
    font-size: 0.98rem;
  }

  .mockup-header p {
    font-size: 0.85rem;
  }

  .stat-card {
    padding: 12px 14px;
  }

  .stat-card strong {
    font-size: 1.3rem;
  }

  .stat-card span {
    font-size: 0.82rem;
  }

  .appointment-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .appointment-item strong {
    font-size: 0.9rem;
  }

  .appointment-item p {
    font-size: 0.82rem;
  }

  /* Chips flotantes — ocultar para evitar overflow */
  .floating-chip {
    display: none;
  }

  /* Botones hero full-width en mobile */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-lg {
    width: 100%;
    text-align: center;
  }

  /* Sección encabezados */
  .section-heading h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* Cards con menos padding */
  .feature-panel,
  .highlight-panel,
  .demo-panel,
  .cta-box,
  .suite-card,
  .step-card,
  .problem-card {
    padding: 20px;
  }

  /* Footer bottom en columna */
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer-main {
    padding: 40px 0 28px;
  }
}

/* =========================
   RESPONSIVE — Teléfono pequeño (≤ 479px)
========================= */
@media (max-width: 479.98px) {
  .hero-chips span {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .hero-chips {
    gap: 8px;
  }

  .hero-dynamic-message {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mockup-slides-wrapper,
  .mockup-slide {
    min-height: 290px;
  }

  .audience-tags span {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .btn-gold.btn-lg,
  .btn-outline-light.btn-lg {
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
  }
}


/* =========================
   CONTACT FORM
========================= */
.contact-form .form-label {
  color: var(--heading-color);
  font-weight: 700;
}

.contact-form .form-control,
.contact-form .form-select,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.contact-form .form-control::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-soft);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem var(--primary-soft);
  background: var(--bg-card);
  color: var(--text-main);
}

/* =========================
   FOOTER NUEVO
========================= */
.landing-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-main {
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-brand-wrap {
  max-width: 340px;
}

.footer-tagline {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.footer-title {
  color: var(--heading-color);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 500;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-dev a {
  color: var(--text-soft);
  font-weight: 600;
}

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