/* ============================================
   CIFRE Landing — estilo alineado con Cifre Academy campus
   ============================================ */

:root {
  --navy: #0d1545;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-50: #eff6ff;
  --neutral-50: #f8fafc;
  /* Altura real del header fijo: logo 3rem + padding nav 1rem × 2 */
  --site-header-height: 5rem;
  --nav-height: var(--site-header-height);
}

body.lm-body {
  background: #fff;
  padding-top: 0;
}

/* —— Header —— */
body.lm-body header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(13, 21, 69, 0.06);
  backdrop-filter: none;
}

body.lm-body .nav-links a {
  color: var(--navy);
  font-size: 1rem;
}

body.lm-body .nav-links a:hover {
  color: var(--primary-600);
}

body.lm-body .btn-primary {
  background: var(--primary-600);
  box-shadow: none;
  border-radius: 8px;
}

body.lm-body .btn-primary:hover {
  background: var(--primary-700);
  transform: none;
}

.lm-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lm-btn-ghost-nav {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.lm-btn-ghost-nav:hover {
  background: var(--neutral-50);
}

@media (min-width: 768px) {
  .lm-btn-ghost-nav {
    display: inline-flex;
  }
}

/* —— Hero carousel (estilo campus) —— */
body.lm-body .lm-carousel.hero-carousel {
  margin-top: var(--site-header-height);
  height: calc(100svh - var(--site-header-height));
  height: calc(100dvh - var(--site-header-height));
  max-height: calc(100dvh - var(--site-header-height));
  min-height: min(calc(100svh - var(--site-header-height)), 820px);
  background: var(--neutral-50);
  scroll-margin-top: var(--site-header-height);
}

body.lm-body .lm-carousel .slide-content {
  padding-top: 1rem;
  padding-bottom: var(--carousel-safe-bottom);
}

@media (max-width: 768px) {
  body.lm-body .lm-carousel.hero-carousel {
    min-height: 0;
  }
}

body.lm-body .lm-slide--light.company-slide {
  background: linear-gradient(180deg, #fff 0%, var(--neutral-50) 55%, #eef2ff 100%);
}

body.lm-body .lm-slide--light.company-slide::before,
body.lm-body .lm-slide--light.company-slide::after {
  display: none;
}

body.lm-body .lm-slide--dark.academy-slide {
  background: linear-gradient(135deg, #1e40af 0%, var(--navy) 48%, #070b1f 100%);
}

body.lm-body .lm-slide--dark.academy-slide::before {
  display: none;
}

body.lm-body .lm-slide__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 968px) {
  body.lm-body .lm-slide__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  body.lm-body .lm-slide__grid--academy {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

body.lm-body .lm-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-600);
}

body.lm-body .lm-eyebrow--light {
  color: #93c5fd;
}

body.lm-body .lm-slide--light .company-text h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  background: none;
  -webkit-text-fill-color: unset;
}

body.lm-body .lm-academy-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

body.lm-body .lm-slide__lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: #64748b;
}

body.lm-body .lm-slide__lead--light {
  color: rgba(219, 234, 254, 0.92);
}

body.lm-body .lm-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

body.lm-body .lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.lm-body .lm-btn--primary {
  background: var(--primary-600);
  color: #fff;
}

body.lm-body .lm-btn--primary:hover {
  background: var(--primary-700);
}

body.lm-body .lm-btn--outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid #e2e8f0;
}

body.lm-body .lm-btn--outline:hover {
  background: var(--neutral-50);
  border-color: #cbd5e1;
}

body.lm-body .lm-btn--white {
  background: #fff;
  color: var(--navy);
}

body.lm-body .lm-btn--white:hover {
  background: var(--primary-50);
}

body.lm-body .lm-btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

body.lm-body .lm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.lm-body .lm-slide__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.lm-body .lm-slide__visual img {
  max-width: min(100%, 380px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.15));
}

body.lm-body .lm-academy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

body.lm-body .lm-academy-badge img {
  width: 55%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.45));
}

body.lm-body .lm-carousel .carousel-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(13, 21, 69, 0.08);
}

body.lm-body .lm-carousel .carousel-btn svg {
  color: var(--navy);
}

body.lm-body .lm-carousel .carousel-btn:hover {
  background: #fff;
  border-color: #bfdbfe;
}

body.lm-body .lm-carousel .carousel-dot {
  border-color: rgba(37, 99, 235, 0.35);
}

body.lm-body .lm-carousel .carousel-dot.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

body.lm-body .lm-carousel .carousel-dot:hover {
  border-color: var(--primary-600);
}

@media (max-width: 967px) {
  body.lm-body .lm-slide__grid {
    text-align: center;
    gap: 1.25rem;
  }

  body.lm-body .lm-slide__lead,
  body.lm-body .lm-slide--light .company-text h1 {
    margin-left: auto;
    margin-right: auto;
  }

  body.lm-body .lm-slide__actions {
    justify-content: center;
  }

  body.lm-body .lm-slide__visual {
    order: -1;
  }

  body.lm-body .lm-slide__visual img {
    max-width: min(100%, 220px);
  }

  body.lm-body .lm-academy-badge {
    width: min(200px, 52vw);
    border-radius: 20px;
  }
}

/* Móvil: contenido desplazable si no cabe en el viewport */
@media (max-width: 768px) {
  body.lm-body .lm-carousel .slide-content {
    align-items: flex-start;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-padding-top: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  body.lm-body .lm-slide__grid {
    gap: 1rem;
    width: 100%;
  }

  body.lm-body .lm-eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  body.lm-body .lm-slide--light .company-text h1,
  body.lm-body .lm-academy-copy h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.15;
  }

  body.lm-body .lm-slide__lead {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  body.lm-body .lm-slide__actions {
    margin-top: 1rem;
    gap: 0.5rem;
  }

  body.lm-body .lm-btn {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.8125rem;
  }

  body.lm-body .lm-carousel .carousel-dots {
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Pantallas bajas (iPhone SE, etc.): texto primero, visual más pequeño */
@media (max-width: 768px) and (max-height: 740px) {
  body.lm-body .lm-carousel .slide-content {
    padding-top: 0.5rem;
    padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.lm-body .lm-slide__visual,
  body.lm-body .company-visual.lm-slide__visual {
    order: 1 !important;
  }

  body.lm-body .company-text,
  body.lm-body .lm-academy-copy {
    order: 0;
  }

  body.lm-body .lm-slide__visual img {
    max-width: min(100%, 140px);
    max-height: 120px;
    object-fit: contain;
  }

  body.lm-body .lm-academy-badge {
    width: min(140px, 38vw);
    margin: 0 auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  body.lm-body .lm-academy-badge img {
    width: 50%;
  }

  body.lm-body .lm-slide__grid {
    gap: 0.65rem;
  }

  body.lm-body .lm-slide__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  body.lm-body .lm-slide__actions .lm-btn {
    width: 100%;
  }
}

@media (max-width: 390px) and (max-height: 740px) {
  body.lm-body .lm-slide--light .company-text h1,
  body.lm-body .lm-academy-copy h1 {
    font-size: 1.25rem;
  }

  body.lm-body .lm-slide__lead {
    font-size: 0.8125rem;
  }
}

/* —— Section headers —— */
body.lm-body .section-header {
  margin-bottom: 3rem;
}

body.lm-body .section-header::before {
  content: attr(data-eyebrow);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-600);
}

body.lm-body .section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* —— Partners —— */
body.lm-body .partners {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

body.lm-body .partners-title {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

/* —— Features —— */
body.lm-body .features {
  padding: 4.5rem 0;
  background: var(--neutral-50);
}

body.lm-body .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  body.lm-body .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body.lm-body .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.lm-body .feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(13, 21, 69, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

body.lm-body .feature-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

body.lm-body .feature-icon {
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: 12px;
  margin-bottom: 1rem;
}

body.lm-body .feature-card h3 {
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

body.lm-body .feature-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* —— Services —— */
body.lm-body .services {
  padding: 4.5rem 0;
  background: #fff;
}

body.lm-body .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  body.lm-body .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.lm-body .service-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 21, 69, 0.04);
}

body.lm-body .service-card h3 {
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

body.lm-body .service-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

body.lm-body .services-cta-wrapper {
  margin-top: 2rem;
}

body.lm-body .service-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  border: none;
  color: #fff;
  padding: 2.5rem 2rem;
}

body.lm-body .service-cta h3,
body.lm-body .service-cta p {
  color: rgba(255, 255, 255, 0.95);
}

body.lm-body .service-cta p {
  color: rgba(219, 234, 254, 0.85);
  max-width: 32rem;
  margin: 0.75rem auto 0;
}

body.lm-body .btn-service-cta {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

body.lm-body .btn-service-cta:hover {
  background: var(--primary-50);
}

/* —— Contact —— */
body.lm-body .contact {
  padding: 4.5rem 0 5rem;
  background: var(--neutral-50);
}

body.lm-body .contact-content {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  body.lm-body .contact-content {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

body.lm-body .contact-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(13, 21, 69, 0.06);
}

body.lm-body .form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

body.lm-body .form-group input,
body.lm-body .form-group textarea {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

body.lm-body .form-group input:focus,
body.lm-body .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

body.lm-body .contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.lm-body .info-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
}

body.lm-body .info-text h4 {
  color: var(--navy);
  font-size: 0.9375rem;
}

body.lm-body .info-text p,
body.lm-body .info-text a {
  color: #64748b;
  font-size: 0.9rem;
}

/* —— Footer —— */
body.lm-body footer {
  background: var(--navy);
}

