/* FAND landing theme — shared with index.html */
:root {
  --primary: #e4068c;
  --secondary: #d70081;
  --dark: #1f1f1f;
  --light: #ffffff;
  --muted: #6d6d6d;
  --gradient: linear-gradient(135deg, rgba(228, 6, 140, 0.92) 0%, rgba(215, 0, 129, 0.9) 100%);
  --surface: #f9f9fb;
  --surface-muted: #ebede9;
  --card-bg: #f8f8fb;
  --radius-card: 24px;
  --radius-hero: 40px;
  --shadow-soft: 0 20px 30px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 30px 60px rgba(0, 0, 0, 0.12);
  --shadow-pink: 0 20px 50px rgba(228, 6, 140, 0.2);
}

html {
  scroll-behavior: smooth;
}

body.landing-page {
  font-family: 'Poppins', sans-serif;
  background: var(--surface);
  color: var(--dark);
}

body.landing-page p,
body.landing-page li,
body.landing-page label,
body.landing-page input,
body.landing-page textarea,
body.landing-page select,
body.landing-page button,
body.landing-page .mbr-text,
body.landing-page .card-text,
body.landing-page .mbr-fonts-style {
  font-family: 'Poppins', sans-serif !important;
}

body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page .section-header h2,
body.landing-page .feature-title,
body.landing-page .program-card h3,
body.landing-page .taller-card h3,
body.landing-page .pricing-card h3,
body.landing-page .display-1,
body.landing-page .display-2,
body.landing-page .display-4,
body.landing-page .display-5 {
  font-family: 'Montserrat', sans-serif !important;
}

body.landing-page .display-4,
body.landing-page .display-5,
body.landing-page .display-6,
body.landing-page .display-7 {
  font-family: 'Poppins', sans-serif !important;
}

body.landing-page h1.display-1,
body.landing-page h1.display-2,
body.landing-page h2.display-2,
body.landing-page h2.display-5,
body.landing-page .hero-text h1,
body.landing-page .hero-landing .hero-title {
  font-family: 'Montserrat', sans-serif !important;
}

.landing-page .main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.landing-page .section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.landing-page .section-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.landing-page .section-header p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

.landing-page .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Grids */
.landing-page .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.landing-page .programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Feature cards (index) */
.landing-page .feature-card {
  border-radius: var(--radius-card);
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
}

.landing-page .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.landing-page .feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(228, 6, 140, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.landing-page .feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.landing-page .feature-desc {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
}

/* Program cards (index) */
.landing-page .program-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.landing-page .program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.landing-page .program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-pink);
  border-color: var(--primary);
}

.landing-page .program-card:hover::before {
  transform: scaleX(1);
}

.landing-page .program-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.landing-page .program-card:hover .program-icon {
  transform: scale(1.1) rotate(10deg);
}

.landing-page .program-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  margin-top: 1rem;
  font-family: 'Poppins', sans-serif;
}

.landing-page .program-link:hover {
  background: rgba(228, 6, 140, 0.08);
  box-shadow: 0 8px 20px rgba(228, 6, 140, 0.08);
  transform: translateY(-3px);
  color: var(--primary);
}

/* Hover lift utility */
.landing-page .hover-lift {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.landing-page .hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

/* Alias: taller / metodologia / tech / pricing / gallery → index language */
.landing-page .taller-card,
.landing-page .metodologia-item,
.landing-page .tech-item,
.landing-page .pricing-card,
.landing-page .gallery-item {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-page .taller-card::before,
.landing-page .metodologia-item::before,
.landing-page .tech-item::before,
.landing-page .pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
  opacity: 1;
}

.landing-page .taller-card:hover,
.landing-page .metodologia-item:hover,
.landing-page .tech-item:hover,
.landing-page .pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-pink);
  border-color: var(--primary);
}

.landing-page .taller-card:hover::before,
.landing-page .metodologia-item:hover::before,
.landing-page .tech-item:hover::before,
.landing-page .pricing-card:hover::before {
  transform: scaleX(1);
}

.landing-page .taller-card h3,
.landing-page .pricing-card h3,
.landing-page .tech-item h4,
.landing-page .metodologia-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.landing-page .btn-explorar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.landing-page .btn-explorar:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(228, 6, 140, 0.25);
  text-decoration: none;
}

.landing-page .pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.landing-page .pricing-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(228, 6, 140, 0.28);
}

.landing-page .pricing-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
}

.landing-page .section-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
}

.landing-page .section-subtitle {
  font-family: 'Poppins', sans-serif;
  color: var(--muted);
  text-align: center;
}

/* Hero interior pages */
.landing-page .hero-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-hero);
  margin: 8.5rem 2rem 0;
  padding: 5rem 0 4rem;
  min-height: auto;
}

/* Pages that used full-viewport heroes keep usable height without breaking layout */
.landing-page .hero-section.min-vh-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.landing-page .hero-section .hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: white;
}

.landing-page .hero-section .hero-text p {
  font-family: 'Poppins', sans-serif;
  color: rgba(255, 255, 255, 0.9);
}

/* Bootstrap + Mobirise cards on landings */
.landing-page .card.hover-lift,
.landing-page .card.h-100,
.landing-page .features23 .item-wrapper,
.landing-page .features4 .item-wrapper,
.landing-page .people3 .item-wrapper {
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #fff;
}

.landing-page .card.hover-lift:hover,
.landing-page .card.h-100:hover,
.landing-page .features23 .item-wrapper:hover,
.landing-page .features4 .item-wrapper:hover,
.landing-page .people3 .item-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.landing-page .card-title,
.landing-page .item-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
}

.landing-page .features23 .item-wrapper,
.landing-page .features4 .item-wrapper,
.landing-page .people3 .item-wrapper {
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Empty Mobirise content-head wrappers must not look like cards */
.landing-page .content-head .card-wrapper:has(.card-box:empty),
.landing-page .content-head .card-wrapper .card-box:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 0 !important;
}

/* Nosotros / pages without hero: clear fixed navbar */
.landing-page > section.article4:first-of-type,
.landing-page > section.menu + section.article4 {
  padding-top: 8.5rem;
}

/* Testimonial cards */
.landing-page .testimonial-card {
  border-radius: var(--radius-card);
  padding: 2rem;
  background: #f4f4f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-page .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

/* Scroll reveal */
.landing-page .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.landing-page .reveal.is-visible {
  opacity: 1 !important;
  transform: none;
}

.landing-page .reveal-stagger > .reveal,
.landing-page .reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-page .reveal-stagger.is-visible > .reveal,
.landing-page .reveal-stagger.is-visible > * {
  opacity: 1 !important;
  transform: none;
}

.landing-page .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.landing-page .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.landing-page .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.landing-page .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.landing-page .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.landing-page .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.landing-page .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.landing-page .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .landing-page .reveal,
  .landing-page .reveal-stagger > .reveal,
  .landing-page .reveal-stagger > *,
  .landing-page .hover-lift,
  .landing-page .feature-card,
  .landing-page .program-card,
  .landing-page .taller-card,
  .landing-page .metodologia-item,
  .landing-page .tech-item,
  .landing-page .pricing-card {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .landing-page .hero-section {
    margin: 7rem 1rem 0;
    padding: 3.5rem 0 2.5rem;
    border-radius: 28px;
  }

  .landing-page .section-header h2 {
    font-size: 2rem;
  }

  .landing-page .features-grid,
  .landing-page .programs-grid {
    gap: 1.25rem;
  }
}
