:root {
  --navy-950: #080b18;
  --navy-900: #0c1226;
  --navy-800: #121a38;
  --navy-700: #1a2348;
  --navy-600: #29315c;
  --navy-border: rgba(255, 255, 255, 0.08);
  --gold-400: #f2c14e;
  --gold-500: #e0a92e;
  --text-light: #f5f6fb;
  --text-muted-light: #aab1cf;
  --text-dark: #10142b;
  --text-muted-dark: #5b6178;
  --surface-alt: #f6f7fb;
  --radius-lg: 16px;
  --radius-md: 12px;
}

.ld-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
  margin: 0;
}

.ld-body a {
  text-decoration: none;
}

/* Mismo ancho máximo que el .container de Bootstrap usado en las páginas autenticadas */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Header */
.ld-header {
  background: var(--navy-950);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--navy-border);
}

.ld-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ld-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.15rem;
}

.ld-brand .ld-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gold-400);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.ld-brand .ld-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ld-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.ld-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-nav a {
  color: var(--text-muted-light);
  font-size: 0.92rem;
  font-weight: 500;
}

.ld-nav a:hover {
  color: var(--text-light);
}

.ld-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ld-link-muted {
  color: var(--text-muted-light);
  font-size: 0.92rem;
  font-weight: 500;
}

.ld-link-muted:hover {
  color: var(--text-light);
}

/* Buttons */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ld-btn:hover {
  transform: translateY(-1px);
}

.ld-btn-gold {
  background: var(--gold-400);
  color: var(--navy-950);
}

.ld-btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--navy-border);
}

.ld-btn-block {
  width: 100%;
}

/* Hero */
.ld-hero {
  background: radial-gradient(ellipse at 20% 0%, var(--navy-800) 0%, var(--navy-950) 60%);
  color: var(--text-light);
  padding: 90px 0 110px;
}

.ld-hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.ld-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.12);
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.ld-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}

.ld-hero h1 em {
  color: var(--gold-400);
  font-style: italic;
}

.ld-hero p.lead {
  color: var(--text-muted-light);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 30px;
}

.ld-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Hero preview card */
.ld-preview-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.ld-preview-card .ld-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted-light);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.ld-preview-metric {
  color: var(--gold-400);
  font-weight: 700;
  font-size: 1.4rem;
}

.ld-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy-700);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.ld-preview-row:last-child {
  margin-bottom: 0;
}

.ld-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.ld-tag-green { background: rgba(52, 199, 89, 0.15); color: #4ade80; }
.ld-tag-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.ld-tag-gold { background: rgba(242, 193, 78, 0.15); color: var(--gold-400); }

/* Logos strip */
.ld-logos {
  background: var(--navy-950);
  padding: 26px 0 50px;
  text-align: center;
}

.ld-logos .ld-eyebrow {
  color: var(--text-muted-light);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.ld-logos-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.ld-logos-row span {
  width: 96px;
  height: 28px;
  background: var(--navy-700);
  border-radius: 6px;
  display: inline-block;
}

/* Generic section */
.ld-section {
  padding: 90px 0;
}

.ld-section-alt {
  background: var(--surface-alt);
}

.ld-section-dark {
  background: var(--navy-950);
  color: var(--text-light);
}

.ld-eyebrow-badge {
  display: inline-block;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ld-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.ld-section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.ld-section-dark .ld-section-head h2 {
  color: var(--text-light);
}

.ld-section-head p {
  color: var(--text-muted-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.ld-section-dark .ld-section-head p {
  color: var(--text-muted-light);
}

/* Solution cards */
.ld-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ld-card {
  background: #fff;
  border: 1px solid #e9ebf3;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ld-card:hover {
  box-shadow: 0 18px 40px rgba(16, 20, 43, 0.08);
  transform: translateY(-2px);
}

.ld-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(242, 193, 78, 0.15);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.ld-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.ld-card p {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.ld-card a {
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Products carousel */
.ld-carousel,
.ld-carousel * {
  box-sizing: border-box;
}

.ld-carousel {
  position: relative;
  padding: 0 56px;
}

.ld-carousel-viewport {
  overflow: hidden;
  padding: 8px 0;
}

.ld-carousel-track {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: transform 0.4s ease;
  will-change: transform;
}

.ld-product-card {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.ld-product-media {
  border-radius: 12px;
  overflow: hidden;
  height: 160px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #eef0f7;
}

.ld-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 10px;
}

.ld-product-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20, 33, 74, 0.06), rgba(242, 193, 78, 0.14));
}

.ld-product-media-icon {
  font-size: 2.4rem;
  color: var(--navy-700);
  opacity: 0.7;
}

.ld-product-long {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-bottom 0.35s ease;
}

.ld-product-card.is-expanded .ld-product-long {
  max-height: 400px;
  opacity: 1;
}

.ld-product-toggle {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
}

.ld-product-toggle:hover {
  text-decoration: underline;
}

.ld-product-card.is-expanded .ld-product-toggle-arrow {
  display: inline-block;
  transform: rotate(90deg);
}

.ld-carousel-arrow {
  position: absolute;
  top: 122px;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e0e3ee;
  background: #fff;
  color: var(--navy-700);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

.ld-carousel-prev {
  left: 0;
}

.ld-carousel-next {
  right: 0;
}

.ld-carousel-arrow:hover {
  box-shadow: 0 8px 20px rgba(16, 20, 43, 0.12);
}

.ld-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.ld-carousel-dots {
  position: absolute;
  bottom: -34px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ld-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d3d8e6;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ld-carousel-dot.is-active {
  background: var(--gold-500);
  transform: scale(1.25);
}

/* Control section (checklist + preview) */
.ld-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ld-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-checklist li {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.ld-checklist .ld-check-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(242, 193, 78, 0.12);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.ld-checklist strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-light);
}

.ld-checklist span {
  color: var(--text-muted-light);
  font-size: 0.88rem;
}

/* Stats */
.ld-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.ld-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.ld-stat-label {
  color: var(--text-muted-dark);
  font-size: 0.88rem;
}

/* Process steps */
.ld-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ld-step {
  text-align: center;
  padding: 0 12px;
}

.ld-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 18px;
}

.ld-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ld-step p {
  color: var(--text-muted-dark);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Testimonials */
.ld-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ld-testimonial {
  background: #fff;
  border: 1px solid #e9ebf3;
  border-radius: var(--radius-lg);
  padding: 26px;
}

.ld-testimonial .ld-stars {
  color: var(--gold-500);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.ld-testimonial p {
  color: var(--text-dark);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.ld-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ld-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.ld-testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.ld-testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted-dark);
}

/* CTA */
.ld-cta {
  text-align: center;
}

.ld-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-light);
}

.ld-cta p {
  color: var(--text-muted-light);
  margin-bottom: 32px;
}

.ld-cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* Contact form */
.ld-contact-form {
  box-sizing: border-box;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.ld-contact-form * {
  box-sizing: border-box;
}

.ld-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ld-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.ld-form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 7px;
}

.ld-form-field input,
.ld-form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ld-form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.ld-form-field input::placeholder,
.ld-form-field textarea::placeholder {
  color: rgba(170, 177, 207, 0.6);
}

.ld-form-field input:focus,
.ld-form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(224, 169, 46, 0.18);
}

.ld-field-error {
  color: #ffb4a8;
  font-size: 0.8rem;
  margin-top: 6px;
}

.ld-form-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.ld-form-alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 0.9rem;
}

.ld-form-alert-ok {
  background: rgba(45, 189, 122, 0.14);
  border: 1px solid rgba(45, 189, 122, 0.4);
  color: #a8f0cd;
}

.ld-form-alert-err {
  background: rgba(224, 90, 70, 0.14);
  border: 1px solid rgba(224, 90, 70, 0.4);
  color: #ffb4a8;
}

/* Footer */
.ld-footer {
  background: var(--navy-950);
  color: var(--text-muted-light);
  padding: 64px 0 28px;
  border-top: 1px solid var(--navy-border);
}

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

.ld-footer-grid h4 {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.ld-footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-footer-grid li {
  margin-bottom: 10px;
}

.ld-footer-grid a {
  color: var(--text-muted-light);
  font-size: 0.88rem;
}

.ld-footer-grid a:hover {
  color: var(--text-light);
}

.ld-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--navy-border);
  font-size: 0.8rem;
}

/* Login page */
.ld-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 0%, var(--navy-800) 0%, var(--navy-950) 65%);
  padding: 24px;
}

.ld-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  color: var(--text-light);
}

.ld-login-card .ld-brand {
  justify-content: center;
  margin-bottom: 8px;
}

.ld-login-card h1 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 18px 0 6px;
}

.ld-login-card .ld-login-subtitle {
  text-align: center;
  color: var(--text-muted-light);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.ld-field {
  margin-bottom: 18px;
}

.ld-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted-light);
}

.ld-field input {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-light);
  font-size: 0.92rem;
}

.ld-field input:focus {
  outline: none;
  border-color: var(--gold-400);
}

.ld-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.ld-login-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  color: var(--text-muted-light);
  font-size: 0.85rem;
}

.ld-login-back:hover {
  color: var(--gold-400);
}

/* Responsive */
@media (max-width: 900px) {
  .ld-hero .container,
  .ld-control-grid {
    grid-template-columns: 1fr;
  }

  .ld-cards-grid,
  .ld-testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ld-product-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .ld-stats-grid,
  .ld-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ld-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ld-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .ld-cards-grid,
  .ld-testimonial-grid,
  .ld-stats-grid,
  .ld-steps-grid {
    grid-template-columns: 1fr;
  }

  .ld-product-card {
    flex-basis: 100%;
  }

  .ld-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ld-contact-form {
    padding: 22px;
  }

  .ld-form-actions {
    flex-direction: column;
  }

  .ld-hero h1 {
    font-size: 2rem;
  }
}
