/* ===========================================
   LANDING HOMEPAGE CSS - MAURICIO POS
   Hero section, brand showcase & CTA banner
   =========================================== */

/* Import sub-modules for full backward-compatibility */
@import url('hero_mockup.css');
@import url('bento_grid.css');

/* --- Keyframe Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes statusDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ===========================================
   HERO SECTION & HEADER
   =========================================== */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 5rem;
  background: radial-gradient(circle at 50% 20%, rgba(0, 82, 255, 0.06) 0%, transparent 70%);
}

.hero__glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 8s infinite ease-in-out;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 82, 255, 0.08);
  border: 1px solid rgba(0, 82, 255, 0.2);
  color: var(--brand-accent);
  padding: 0.45rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-success);
  border-radius: 50%;
  display: inline-block;
  animation: statusDot 2s infinite ease-in-out;
}

.hero__title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-main);
  letter-spacing: -1.8px;
  margin-bottom: 1.5rem;
}

body.dark-theme .hero__title {
  color: var(--text-main-dark);
}

.hero__title span {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__cta .btn {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
  transition: var(--transition-smooth);
}

.hero__cta .btn--secondary {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

body.dark-theme .hero__cta .btn--secondary {
  background: rgba(17, 24, 39, 0.8);
  border-color: var(--border-color-dark);
  color: var(--text-main-dark);
}

.hero__cta .btn--secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-2px);
}

/* ===========================================
   BRAND SHOWCASE & CTA BANNER
   =========================================== */
.brand-section {
  padding: 5rem 4rem 6rem;
  background: var(--surface-white);
  border-top: 1px solid var(--border-color);
}

body.dark-theme .brand-section {
  background: #0F172A;
  border-top-color: var(--border-color-dark);
}

.brand-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.brand-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
  background: var(--bg-light);
}

body.dark-theme .brand-card {
  background: var(--surface-card-dark);
  border-color: var(--border-color-dark);
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-md);
}

.brand-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

body.dark-theme .brand-card__title {
  color: var(--text-main-dark);
}

.brand-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.brand-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

body.dark-theme .brand-card__logo {
  background: var(--surface-card-dark);
  border-color: var(--border-color-dark);
}

.brand-card__btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-decoration: none;
}

.cta-section {
  padding: 6rem 4rem;
  background-color: var(--bg-light);
}

body.dark-theme .cta-section {
  background-color: var(--bg-dark);
}

.cta-card {
  max-width: 1040px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 246, 255, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.5px solid rgba(0, 82, 255, 0.15);
  border-radius: 28px;
  padding: 4.5rem 3rem;
  text-align: center;
  color: #0F172A;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 82, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

body.dark-theme .cta-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-color: var(--border-color-dark);
  color: var(--text-main-dark);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.cta-card__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.cta-card__title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  color: #0F172A;
}

body.dark-theme .cta-card__title {
  color: var(--text-main-dark);
}

.cta-card__subtitle {
  font-size: 1.125rem;
  color: #475569;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

body.dark-theme .cta-card__subtitle {
  color: var(--text-muted-dark);
}

.cta-card__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Mobile Brand Logo */
.hero__mobile-brand {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  /* En la landing page (http://localhost:5000/) se oculta el logo superior en tablet/celular porque el logo grande ya está abajo en la hero section */
  body.page-landing .navbar__brand {
    display: none !important;
  }

  .hero__mobile-brand {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 0.85rem;
  }

  body.dark-theme .hero__mobile-brand {
    color: var(--text-main-dark);
  }

  .hero__mobile-brand-accent {
    color: var(--brand-accent);
  }

  .hero__title {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
  }

  .bento-card--8, .bento-card--4, .bento-card--6, .bento-card--large, .bento-card--tall {
    grid-column: span 12;
  }

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

  .brand-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 5.5rem 1.25rem 3.5rem;
  }

  .hero__mobile-brand {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .hero__title {
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin-bottom: 0.75rem;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .bento-section, .brand-section, .cta-section {
    padding: 3.5rem 1.25rem;
  }

  .cta-card {
    padding: 2.5rem 1.25rem;
  }

  .cta-card__title {
    font-size: 1.75rem;
  }

  .hero-mockup__body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-mockup__sidebar, .hero-mockup__order-panel {
    display: none;
  }

  .bento-header {
    margin-bottom: 2.25rem;
  }

  .bento-header__title {
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: -0.4px;
    margin-bottom: 0.6rem;
  }

  .bento-header__subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}
