/* Landing page styles — acadelia-demo */

:root {
  --home-primary: #582f0e;
  --home-secondary: #7f4f24;
  --home-sage: #a4ac86;
  --home-sage-dark: #656d4a;
  --home-bg: #f0efe7;
  --home-text: #160e0e;
  --home-white: #ffffff;
  --home-radius: 12px;
  --home-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --home-transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--home-text);
  background: var(--home-white);
  line-height: 1.6;
}

/* ── Scroll-triggered fade-up animation ────────────────────────────────── */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.anim.anim-visible {
  opacity: 1;
  transform: none;
}
.anim-delay-1 {
  transition-delay: 0.1s;
}
.anim-delay-2 {
  transition-delay: 0.22s;
}
.anim-delay-3 {
  transition-delay: 0.34s;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  transition:
    background var(--home-transition),
    box-shadow var(--home-transition);
}
.home-header.scrolled {
  background: rgba(240, 239, 231, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(88, 47, 14, 0.12);
}
.home-header.scrolled .home-lang-toggle {
  color: rgba(22, 14, 14, 0.6);
}
.home-header.scrolled .home-lang-toggle span {
  color: rgba(22, 14, 14, 0.25);
}
.home-header.scrolled .home-lang-btn {
  color: rgba(22, 14, 14, 0.55);
}
.home-header.scrolled .home-lang-btn:hover,
.home-header.scrolled .home-lang-btn.active {
  color: var(--home-primary);
}
.home-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.home-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.home-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.home-lang-toggle span {
  color: rgba(255, 255, 255, 0.35);
}
.home-lang-btn {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--home-transition);
}
.home-lang-btn:hover,
.home-lang-btn.active {
  color: #fff;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.home-cta-btn,
.home-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--home-primary);
  color: #fff;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background var(--home-transition),
    transform var(--home-transition),
    box-shadow var(--home-transition);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.25),
    0 6px 14px rgba(88, 47, 14, 0.35);
}
.home-cta-btn:hover,
.home-btn-primary:hover {
  background: var(--home-secondary);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(88, 47, 14, 0.4);
}
.home-btn-light {
  background: #fff;
  color: var(--home-primary);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.18);
}
.home-btn-light:hover {
  background: var(--home-bg);
  color: var(--home-secondary);
}
.home-btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 9px 20px;
  background: transparent;
  color: var(--home-primary);
  border: 2px solid var(--home-primary);
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    background var(--home-transition),
    color var(--home-transition),
    transform var(--home-transition);
}
.home-btn-card:hover {
  background: var(--home-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/imagen.gif') center/cover no-repeat fixed;
  overflow: hidden;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
  display: flex;
  justify-content: flex-start;
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero card — warm cream, matches the rest of the page */
.home-hero-card {
  max-width: 620px;
  width: 100%;
  background: rgba(240, 239, 231, 0.92);
  border-left: 4px solid var(--home-primary);
  border-radius: 0 18px 18px 0;
  padding: 44px 48px;
  box-shadow:
    0 8px 40px rgba(88, 47, 14, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--home-text);
  animation: heroCardIn 0.7s ease both;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(88, 47, 14, 0.1);
  border: 1px solid rgba(88, 47, 14, 0.2);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--home-primary);
}
.home-badge svg {
  flex-shrink: 0;
}
.home-hero-card h1 {
  font-family: 'Parkinsans', 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--home-text);
}
.home-highlight {
  color: var(--home-sage-dark);
}
.home-hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.78;
  color: rgba(22, 14, 14, 0.72);
  margin-bottom: 30px;
}

/* ── SHARED SECTION ─────────────────────────────────────────────────────── */
.home-section {
  padding: 80px 32px;
}
.home-section-cream {
  background: var(--home-bg);
}
.home-section-white {
  background: var(--home-white);
}
.home-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.home-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.home-section-header h2 {
  font-family: 'Parkinsans', 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin: 8px 0 12px;
}
.home-section-sub {
  color: #555;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.home-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(164, 172, 134, 0.18);
  color: var(--home-sage-dark);
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── ABOUT SPLIT ────────────────────────────────────────────────────────── */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.home-split-text h2 {
  font-family: 'Parkinsans', 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 10px 0 16px;
}
.home-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 28px;
}
.home-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.home-features-list i {
  font-size: 1.5rem;
  color: var(--home-sage-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.home-features-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.home-features-list span {
  color: #555;
  font-size: 0.88rem;
}
.home-split-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-mascot-img {
  max-width: 280px;
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.14));
}

/* ── DEMO CARDS ─────────────────────────────────────────────────────────── */
.home-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.home-demo-card {
  position: relative;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
  transition:
    transform var(--home-transition),
    border-color var(--home-transition),
    box-shadow var(--home-transition);
}
.home-demo-card:hover {
  transform: translateY(-8px);
  border-color: var(--home-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.home-demo-card-highlighted {
  border-color: var(--home-sage);
}
.home-demo-card-highlighted:hover {
  border-color: var(--home-sage-dark);
}
.home-card-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 3px 14px;
  background: var(--home-sage-dark);
  color: #fff;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.home-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.home-card-icon-brown {
  background: rgba(88, 47, 14, 0.1);
  color: var(--home-primary);
}
.home-card-icon-sage {
  background: rgba(101, 109, 74, 0.1);
  color: var(--home-sage-dark);
}
.home-demo-card h3 {
  font-family: 'Parkinsans', 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.home-demo-card p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.72;
  margin-bottom: 18px;
}
.home-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--home-bg);
  color: var(--home-text);
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 500;
}
.home-chip i {
  font-size: 0.82rem;
  color: var(--home-sage-dark);
}

/* ── STEPS ──────────────────────────────────────────────────────────────── */
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.home-step {
  text-align: center;
  padding: 36px 24px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}
.home-step-num {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--home-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.home-step-icon {
  font-size: 2.2rem;
  color: var(--home-sage-dark);
  margin: 8px 0 14px;
}
.home-step h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.home-step p {
  color: #555;
  font-size: 0.875rem;
  line-height: 1.62;
}

/* ── QUOTA BANNER ───────────────────────────────────────────────────────── */
.home-quota-banner {
  background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-sage-dark) 100%);
  padding: 64px 32px;
  overflow: hidden;
}
.home-quota-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
/* ── TV FRAME ───────────────────────────────────────────────────────────── */
.home-tv {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Antennas */
.home-tv-antenna {
  display: flex;
  gap: 28px;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}
.home-tv-ant-l,
.home-tv-ant-r {
  display: block;
  width: 3px;
  height: 36px;
  background: linear-gradient(to top, #7f4f24, #c8956b);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(200, 149, 107, 0.4);
}
.home-tv-ant-l {
  transform: rotate(-22deg);
  transform-origin: bottom center;
}
.home-tv-ant-r {
  transform: rotate(22deg);
  transform-origin: bottom center;
}

/* TV body */
.home-tv-body {
  background: linear-gradient(160deg, #4a2810 0%, #2e1608 60%, #1e0e04 100%);
  border-radius: 16px 16px 14px 14px;
  padding: 12px 14px 14px;
  box-shadow:
    0 0 0 2px #110802,
    0 0 0 4px rgba(200, 149, 107, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Screen */
.home-tv-screen {
  position: relative;
  width: 180px;
  height: 145px;
  background: #f2ece0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.5),
    inset 0 0 18px rgba(0, 0, 0, 0.25),
    0 0 12px rgba(164, 172, 134, 0.25);
}
.home-tv-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Scanlines */
.home-tv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Corner glare */
.home-tv-glare {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 40%;
  height: 35%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
}

/* Control bar below screen */
.home-tv-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0 4px;
}
.home-tv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.home-tv-dot-red {
  background: #c0392b;
  box-shadow: 0 0 4px rgba(192, 57, 43, 0.7);
}
.home-tv-dot-green {
  background: var(--home-sage);
  box-shadow: 0 0 4px rgba(164, 172, 134, 0.7);
}
.home-tv-knob {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7f4f24, #2e1608);
  border: 2px solid #1a0c04;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Stand */
.home-tv-stand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-tv-stand-neck {
  width: 24px;
  height: 12px;
  background: linear-gradient(to bottom, #2e1608, #1a0c04);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.home-tv-stand-base {
  width: 90px;
  height: 8px;
  background: linear-gradient(to bottom, #3a2010, #1a0c04);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.home-quota-text {
  text-align: center;
  color: #fff;
}
.home-quota-text h3 {
  font-family: 'Parkinsans', 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.home-quota-text p {
  opacity: 0.88;
  margin-bottom: 26px;
  font-size: 1rem;
}

/* ── TECH GRID ──────────────────────────────────────────────────────────── */
.home-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.home-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--home-bg);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--home-text);
  transition:
    background var(--home-transition),
    transform var(--home-transition),
    box-shadow var(--home-transition);
}
.home-tech-pill:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.home-tech-pill i {
  font-size: 1.1rem;
  color: var(--home-sage-dark);
}

.home-github-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--home-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 4px 12px;
  border: 1.5px solid var(--home-primary);
  border-radius: 14px;
  transition:
    background var(--home-transition),
    color var(--home-transition);
}
.home-github-link:hover {
  background: var(--home-primary);
  color: #fff;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.home-footer {
  background: var(--home-primary);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 32px;
}
.home-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.home-footer-logo {
  height: 30px;
  width: auto;
  opacity: 0.9;
}
.home-footer-by {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.78);
}
.home-footer-by strong {
  color: #fff;
}
.home-footer-by-name-short {
  display: none;
}
.home-footer-links {
  display: flex;
  gap: 24px;
}
.home-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--home-transition);
}
.home-footer-links a:hover {
  color: #fff;
}
.home-footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.home-footer-legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--home-transition);
}
.home-footer-legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.home-footer-legal span {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
}
.home-footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-split-media {
    order: -1;
  }
  .home-mascot-img {
    max-width: 180px;
  }
  .home-cards-grid {
    grid-template-columns: 1fr;
  }
  .home-steps-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-card {
    padding: 36px 28px;
  }
}
@media (max-width: 640px) {
  .home-header {
    padding: 12px 20px;
  }
  .home-hero-content {
    padding: 100px 20px 60px;
  }
  .home-section {
    padding: 60px 20px;
  }
  .home-nav {
    gap: 10px;
  }
  .home-quota-inner {
    gap: 20px;
  }
  .home-tv {
    display: none;
  }
  .home-cta-btn {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  /* Tech pills — compact auto-wrap chips */
  .home-tech-grid {
    gap: 6px;
  }
  .home-tech-pill {
    padding: 5px 11px;
    font-size: 0.74rem;
    gap: 5px;
    border-radius: 20px;
  }
  .home-tech-pill i {
    font-size: 0.88rem;
  }

  /* Footer — keep prefix, shorten name on mobile */
  .home-footer-by-name-full {
    display: none;
  }
  .home-footer-by-name-short {
    display: inline;
  }
}
