/* ===== Landing Page – MAX Branding (Grupo M.E.M.E.) ===== */
:root {
  /* Pantone 343 C — superficie */
  --lp-green-deep:    #101915;
  --lp-green-dark:    #255441;
  --lp-green-forest:  #255441;
  --lp-green:         #4E7463;
  --lp-green-sage:    #789587;
  --lp-green-mist:    #A3B7AD;

  /* Tinta / respaldo */
  --lp-earth:         #101915;
  --lp-bronze:        #4E7463;
  --lp-warm:          #789587;

  /* Pantone 7556 C — acento / acción */
  --lp-gold:          #B78B1E;
  --lp-gold-light:    #C49F4D;
  --lp-gold-soft:     #D2B67A;
  --lp-gold-pale:     #E1CDA7;
  --lp-gold-glow:     rgba(183, 139, 30, 0.28);

  /* Neutros */
  --lp-cream:         #F5F3EE;
  --lp-cream-dark:    #E1CDA7;
  --lp-gray:          #4E7463;
  --lp-gray-light:    #F5F3EE;
  --lp-gray-industrial: #4E7463;
  --lp-white:         #ffffff;
  --lp-text:          #101915;

  --lp-font: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

#landingView {
  font-family: var(--lp-font);
  color: var(--lp-text);
  background: var(--lp-cream);
  position: relative;
  overflow-x: hidden;
}

.lp-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Fondos difuminados reutilizables ── */
.lp-blur-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lp-blur-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.lp-blur-bg .blob-1 {
  width: 55vw; height: 55vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, var(--lp-green-sage) 0%, transparent 70%);
  top: -10%; left: -8%;
}
.lp-blur-bg .blob-2 {
  width: 45vw; height: 45vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, var(--lp-green-forest) 0%, transparent 70%);
  bottom: 10%; right: -5%;
}
.lp-blur-bg .blob-3 {
  width: 35vw; height: 35vw; max-width: 400px; max-height: 400px;
  background: radial-gradient(circle, var(--lp-bronze) 0%, transparent 70%);
  top: 40%; right: 20%;
  opacity: 0.35;
}
.lp-blur-bg .blob-4 {
  width: 30vw; height: 30vw; max-width: 350px; max-height: 350px;
  background: radial-gradient(circle, var(--lp-gold) 0%, transparent 70%);
  bottom: -5%; left: 30%;
  opacity: 0.12;
}

/* Image placeholders — tono claro, no bloques oscuros */
.lp-img-placeholder {
  background: linear-gradient(145deg,
    #e8f0ec 0%,
    #A3B7AD 45%,
    #E1CDA7 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--lp-green-dark); font-size: .85rem; text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(37, 84, 65, 0.1);
}
.lp-img-placeholder::before {
  content: '';
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(107, 158, 130, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(183, 139, 30, 0.18) 0%, transparent 50%);
  filter: blur(40px);
}
.lp-img-placeholder::after {
  content: attr(data-label);
  padding: 1rem; max-width: 80%;
  position: relative; z-index: 1;
  font-weight: 500;
}

/* Header — glass */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 31, 24, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(183, 139, 30, 0.2);
}
.lp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.lp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.lp-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(168px, 42vw);
  object-fit: contain;
  object-position: left center;
}
.lp-nav { display: flex; align-items: center; gap: 1.5rem; }
.lp-nav a {
  color: rgba(255,255,255,.8); text-decoration: none; font-size: .875rem;
  transition: color .2s; letter-spacing: 0.02em;
}
.lp-nav a:hover { color: var(--lp-gold-light); }
.lp-nav-login {
  border: 1px solid rgba(183,139,30,.55); padding: .4rem .9rem; border-radius: 6px;
  color: var(--lp-gold-light) !important;
  background: rgba(183,139,30,.1);
  font-family: var(--lp-font);
}
.lp-nav-login:hover {
  background: var(--lp-gold);
  border-color: var(--lp-gold);
  color: var(--lp-green-deep) !important;
}
.lp-menu-btn {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer;
}

/* Hero — dos secciones: imagen izquierda / texto derecha */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 62%);
  min-height: calc(78vh - 64px);
  margin-top: 64px;
  overflow: hidden;
  background: var(--lp-green-deep);
}
.lp-hero-media {
  position: relative;
  min-height: 100%;
  background: #0a100d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}
.lp-hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  /* Llena mejor el frame sin márgenes muertos */
  transform: scale(1.12);
  filter: none;
}
.lp-hero-copy {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg,
    var(--lp-green-deep) 0%,
    var(--lp-green-dark) 45%,
    var(--lp-earth) 100%);
}
/* Marca de agua MAX sobre el panel verde */
.lp-hero-max-bg {
  position: absolute;
  right: -4%;
  bottom: 6%;
  z-index: 0;
  width: min(72%, 560px);
  height: auto;
  max-height: 55%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.38;
  pointer-events: none;
  filter: brightness(1.45) saturate(1.05) drop-shadow(0 8px 24px rgba(0,0,0,.25));
  user-select: none;
}
.lp-hero-copy .lp-blur-bg { z-index: 0; }
.lp-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  max-width: 640px;
}
.lp-hero-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--lp-gold), var(--lp-gold-light));
  color: var(--lp-green-deep);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  padding: .4rem 1rem; border-radius: 4px; margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--lp-gold-glow);
}
.lp-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem); font-weight: 700; color: var(--lp-white);
  line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.lp-hero-desc {
  color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.75;
  margin-bottom: .85rem; max-width: 580px;
}

/* Buttons */
.lp-btn {
  display: inline-block; padding: .9rem 2.25rem; border-radius: 6px;
  font-weight: 600; font-size: .95rem; text-decoration: none; border: none;
  cursor: pointer; transition: all .25s; margin-top: 1.25rem;
  letter-spacing: 0.02em;
}
.lp-btn-gold {
  background: linear-gradient(135deg, var(--lp-gold-light), var(--lp-gold));
  color: var(--lp-green-deep);
  box-shadow: 0 4px 24px var(--lp-gold-glow);
}
.lp-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(183,139,30,.4);
}
.lp-btn-full { width: 100%; text-align: center; }

/* Sections */
.lp-section {
  padding: 5.5rem 0; position: relative;
  background: var(--lp-cream);
}
.lp-section-alt {
  background: linear-gradient(180deg,
    var(--lp-cream) 0%,
    var(--lp-cream-dark) 50%,
    var(--lp-cream) 100%);
}
.lp-section-alt::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,84,65,.15), transparent);
}

/* Operación — panel claro con leve atmósfera verde */
#operacion.lp-section {
  background:
    radial-gradient(ellipse 80% 60% at 100% 20%, rgba(107, 158, 130, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(183, 139, 30, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #f4f7f4 0%, var(--lp-cream) 100%);
}
#operacion .lp-section-text h2 { color: var(--lp-green); }
#operacion .lp-section-text p { color: var(--lp-gray-industrial); }
#operacion .lp-check-list li { color: var(--lp-text); }

/* Prioridades — fondo luminoso y tarjetas suaves */
#prioridades.lp-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(74, 124, 98, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--lp-white) 0%, #f0f5f1 55%, var(--lp-cream) 100%);
}
#prioridades .lp-section-title { color: var(--lp-green); }
.lp-section-dark {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg,
    var(--lp-green-deep) 0%,
    var(--lp-green-dark) 50%,
    var(--lp-earth) 100%);
  color: var(--lp-white);
}
.lp-section-dark .lp-blur-bg .blob-1 {
  background: radial-gradient(circle, var(--lp-green-mist) 0%, transparent 70%);
  opacity: 0.3;
}
.lp-section-dark .lp-blur-bg .blob-3 { opacity: 0.25; }
.lp-section-dark > .lp-container { position: relative; z-index: 1; }

.lp-section-title {
  font-size: 1.85rem; font-weight: 700; text-align: center;
  margin-bottom: 2.75rem; color: var(--lp-green-dark);
  letter-spacing: -0.02em;
}
.lp-title-light { color: var(--lp-white); }
.lp-section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.lp-section-text h2 {
  font-size: 1.85rem; color: var(--lp-green-dark); margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.lp-section-text h3 { font-size: 1.05rem; color: var(--lp-bronze); margin: 1.5rem 0 .75rem; font-weight: 600; }
.lp-section-text p { color: var(--lp-gray); line-height: 1.75; }
.lp-section-img {
  display: block;
  width: 100%;
  min-height: 360px;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26,60,42,.12);
}

.lp-check-list { list-style: none; padding: 0; }
.lp-check-list li {
  padding: .55rem 0 .55rem 1.75rem; position: relative; color: var(--lp-gray-industrial);
}
.lp-check-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--lp-gold);
  font-weight: 700;
}

/* Cards — glass sutil */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.lp-card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-radius: 12px; padding: 1.75rem;
  border: 1px solid rgba(37,84,65,.08);
  border-top: 3px solid var(--lp-gold);
  box-shadow: 0 4px 20px rgba(26,60,42,.06);
  transition: transform .25s, box-shadow .25s;
}
.lp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,60,42,.1);
}
.lp-card-icon { font-size: 2rem; margin-bottom: .75rem; }
.lp-card h3 { font-size: 1rem; color: var(--lp-green-dark); margin-bottom: .5rem; }
.lp-card p { font-size: .875rem; color: var(--lp-gray); line-height: 1.65; }

/* Priorities */
.lp-priorities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; }
.lp-priority {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 84, 65, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.15rem 1.5rem;
  box-shadow: 0 4px 20px rgba(26, 60, 42, 0.05);
  transition: transform .25s, box-shadow .25s;
}
.lp-priority:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 60, 42, 0.09);
}
.lp-priority-icon {
  height: 150px;
  border-radius: 10px;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8f0ec 0%, #A3B7AD 40%, #E1CDA7 100%);
  border: 1px solid rgba(37, 84, 65, 0.12);
  color: var(--lp-green-dark);
}
.lp-priority-icon svg {
  width: 72px;
  height: 72px;
}
.lp-priority:hover .lp-priority-icon {
  color: var(--lp-green-dark);
  box-shadow: inset 0 0 0 1px rgba(183, 139, 30, 0.3);
}
.lp-priority h3 { font-size: 1.05rem; color: var(--lp-green); margin-bottom: .5rem; }
.lp-priority p { font-size: .875rem; color: var(--lp-gray-industrial); line-height: 1.65; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.lp-step { text-align: center; }
.lp-step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--lp-gold-light), var(--lp-gold));
  color: var(--lp-green-deep);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px var(--lp-gold-glow);
}
.lp-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.lp-step p { font-size: .875rem; opacity: .85; line-height: 1.65; }

/* Form */
.lp-form-container { max-width: 720px; margin: 0 auto; }
.lp-form-intro { text-align: center; color: var(--lp-gray); margin-bottom: 2rem; }
.lp-form fieldset { border: none; padding: 0; margin-bottom: 2rem; }
.lp-form legend {
  font-size: 1.1rem; font-weight: 700; color: var(--lp-green-dark);
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--lp-gold); width: 100%;
}
.lp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lp-field { display: flex; flex-direction: column; }
.lp-field-full { grid-column: 1 / -1; }
.lp-field label { font-size: .85rem; font-weight: 600; color: var(--lp-gray-industrial); margin-bottom: .35rem; }
.lp-field input, .lp-field select, .lp-field textarea {
  border: 1px solid rgba(37,84,65,.2); border-radius: 8px; padding: .65rem .85rem;
  font-size: .9rem; font-family: inherit; background: var(--lp-white);
  transition: border-color .2s, box-shadow .2s;
}
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus {
  outline: none; border-color: var(--lp-green-sage);
  box-shadow: 0 0 0 3px rgba(74,124,98,.18);
}
.lp-form-message { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.lp-form-message.success { background: #dcfce7; color: #166534; }
.lp-form-message.error { background: #fee2e2; color: #991b1b; }

/* Requisitos */
.lp-requisitos { max-width: 640px; margin: 0 auto; text-align: center; }
.lp-requisitos p { color: var(--lp-gray); margin-bottom: 1.5rem; line-height: 1.7; }
.lp-requisitos .lp-check-list { text-align: left; display: inline-block; }

/* FAQ */
.lp-faq { max-width: 720px; margin: 0 auto; }
.lp-faq-item {
  background: rgba(255,255,255,.9); border-radius: 10px; margin-bottom: .75rem;
  border: 1px solid rgba(37,84,65,.1); overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,60,42,.04);
}
.lp-faq-item summary {
  padding: 1.1rem 1.25rem; font-weight: 600; color: var(--lp-green-dark);
  cursor: pointer; list-style: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: '+'; float: right; color: var(--lp-gold); font-size: 1.25rem; }
.lp-faq-item[open] summary::after { content: '−'; }
.lp-faq-item p { padding: 0 1.25rem 1.1rem; color: var(--lp-gray); font-size: .9rem; line-height: 1.65; }

/* Footer — gradiente profundo */
.lp-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg,
    var(--lp-green-dark) 0%,
    var(--lp-green-deep) 60%,
    #0a1410 100%);
  color: rgba(255,255,255,.82); padding: 3.5rem 0 2rem;
}
.lp-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183,139,30,.3), transparent);
}
.lp-footer > .lp-container { position: relative; z-index: 1; }
.lp-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.lp-footer h3 { color: var(--lp-gold-light); margin-bottom: .5rem; }
.lp-footer-contact p { margin-bottom: .35rem; font-size: .9rem; }
.lp-footer-quote {
  border-left: 3px solid var(--lp-gold);
  padding: 1rem 1.5rem; font-style: italic; font-size: .95rem;
  opacity: .88; margin-bottom: 1.5rem; line-height: 1.7;
}
.lp-footer-copy { text-align: center; font-size: .8rem; opacity: .45; }

/* FAB */
.lp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  background: linear-gradient(135deg, var(--lp-gold-light), var(--lp-gold));
  color: var(--lp-green-deep);
  padding: .9rem 1.75rem; border-radius: 50px; font-weight: 700;
  font-size: .85rem; text-decoration: none;
  box-shadow: 0 6px 28px rgba(0,0,0,.3), 0 0 0 1px rgba(183,139,30,.2);
  transition: transform .25s, box-shadow .25s;
  letter-spacing: 0.02em;
}
.lp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(183,139,30,.45);
}

/* Responsive */
@media (max-width: 768px) {
  .lp-logo-img { height: 40px; max-width: 140px; }
  .lp-nav { display: none; }
  .lp-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(15,31,24,.95);
    backdrop-filter: blur(16px);
    padding: 1rem 1.25rem 1.5rem; gap: .75rem;
    border-bottom: 1px solid rgba(183,139,30,.15);
  }
  .lp-menu-btn { display: block; }
  .lp-section-grid { grid-template-columns: 1fr; }
  .lp-section-img { min-height: 220px; }
  .lp-form-grid { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-fab { left: 1rem; right: 1rem; text-align: center; border-radius: 10px; }
  .lp-hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 36vh) auto;
    min-height: auto;
  }
  .lp-hero-media {
    min-height: 220px;
    max-height: 36vh;
    padding: 0.5rem;
  }
  .lp-hero-logo {
    object-fit: contain;
    object-position: center;
    transform: scale(1.08);
  }
  .lp-hero-max-bg {
    width: min(85%, 420px);
    opacity: 0.32;
    right: -6%;
    bottom: 4%;
  }
  .lp-hero-content { max-width: none; padding: 2.75rem 1.25rem 3.25rem; }
  .lp-blur-bg span { filter: blur(60px); }
}

/* Hide landing when in app mode */
body.app-mode #landingView { display: none; }
body.app-mode .lp-fab { display: none; }
