/* EquipoYa Landing - Estética de la app */
:root {
  --primary: #1a5221;
  --primary-light: #2e7d32;
  --primary-dark: #0d3012;
  --accent: #dfcb58;
  --accent-dark: #c4b04a;
  --surface: #d4e6d5;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #4a5568;
  --gradient-hero: linear-gradient(135deg, #1a5221 0%, #2e7d32 50%, #0d3012 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(212,230,213,0.3) 100%);
  --shadow: 0 10px 40px rgba(26, 82, 33, 0.15);
  --shadow-lg: 0 20px 60px rgba(26, 82, 33, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 82, 33, 0.1);
  transition: box-shadow 0.3s;
}

.header.scrolled { box-shadow: var(--shadow); }

body.menu-open .header { z-index: 200; }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-header {
  height: 56px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  color: var(--primary);
  transition: background 0.2s;
}

.menu-toggle:hover { background: rgba(26, 82, 33, 0.08); }

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.menu-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.menu-open .menu-toggle-bar:nth-child(2) { opacity: 0; }

body.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(13, 48, 18, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  padding: 5.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(13, 48, 18, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

body.menu-open .site-nav { transform: translateX(0); }

.site-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s, opacity 0.2s;
}

.site-nav a:hover {
  background: rgba(26, 82, 33, 0.08);
  opacity: 1;
}

body.menu-open { overflow: hidden; }

/* Navegación horizontal en escritorio; hamburguesa + panel solo en móvil */
@media (min-width: 769px) {
  body.menu-open { overflow: unset; }

  body.menu-open .header { z-index: 100; }

  .menu-toggle { display: none; }

  .nav-backdrop {
    display: none !important;
    pointer-events: none !important;
  }

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0 1.5rem;
    background: transparent;
    box-shadow: none;
    transform: none !important;
    overflow: visible;
  }

  .site-nav a {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.35rem 0;
    border-radius: 0;
    white-space: nowrap;
  }

  .site-nav a:hover {
    background: transparent;
    opacity: 0.8;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

/* Papelitos de cancha cayendo, desenfocados */
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(3px);
  opacity: 0.5;
}

.hero-confetti span {
  position: absolute;
  display: block;
  width: 12px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  animation: confetti-fall 14s linear infinite;
  top: -5%;
}

.hero-confetti span:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 12s; width: 10px; height: 14px; background: rgba(255, 255, 255, 0.4); }
.hero-confetti span:nth-child(2) { left: 12%; animation-delay: 1.5s; animation-duration: 16s; width: 14px; height: 8px; background: rgba(223, 203, 88, 0.35); transform: rotate(-15deg); }
.hero-confetti span:nth-child(3) { left: 22%; animation-delay: 0.3s; animation-duration: 13s; width: 8px; height: 16px; background: rgba(212, 230, 213, 0.4); }
.hero-confetti span:nth-child(4) { left: 35%; animation-delay: 2s; animation-duration: 15s; width: 16px; height: 10px; background: rgba(255, 255, 255, 0.3); transform: rotate(10deg); }
.hero-confetti span:nth-child(5) { left: 48%; animation-delay: 0.8s; animation-duration: 14s; width: 11px; height: 20px; background: rgba(223, 203, 88, 0.25); }
.hero-confetti span:nth-child(6) { left: 55%; animation-delay: 2.5s; animation-duration: 11s; width: 9px; height: 12px; background: rgba(255, 255, 255, 0.4); transform: rotate(-8deg); }
.hero-confetti span:nth-child(7) { left: 65%; animation-delay: 0.5s; animation-duration: 17s; width: 13px; height: 9px; background: rgba(212, 230, 213, 0.35); }
.hero-confetti span:nth-child(8) { left: 72%; animation-delay: 1.2s; animation-duration: 12s; width: 15px; height: 18px; background: rgba(255, 255, 255, 0.35); transform: rotate(5deg); }
.hero-confetti span:nth-child(9) { left: 82%; animation-delay: 2.2s; animation-duration: 15s; width: 10px; height: 14px; background: rgba(223, 203, 88, 0.3); }
.hero-confetti span:nth-child(10) { left: 90%; animation-delay: 0.2s; animation-duration: 13s; width: 12px; height: 16px; background: rgba(212, 230, 213, 0.4); transform: rotate(-12deg); }
.hero-confetti span:nth-child(11) { left: 8%; animation-delay: 3s; animation-duration: 14s; width: 14px; height: 10px; background: rgba(255, 255, 255, 0.25); }
.hero-confetti span:nth-child(12) { left: 28%; animation-delay: 1.8s; animation-duration: 16s; width: 9px; height: 15px; background: rgba(223, 203, 88, 0.35); transform: rotate(15deg); }
.hero-confetti span:nth-child(13) { left: 42%; animation-delay: 2.8s; animation-duration: 11s; width: 11px; height: 12px; background: rgba(212, 230, 213, 0.3); }
.hero-confetti span:nth-child(14) { left: 58%; animation-delay: 0.6s; animation-duration: 18s; width: 16px; height: 11px; background: rgba(255, 255, 255, 0.4); transform: rotate(-5deg); }
.hero-confetti span:nth-child(15) { left: 75%; animation-delay: 1.5s; animation-duration: 13s; width: 10px; height: 18px; background: rgba(223, 203, 88, 0.3); }
.hero-confetti span:nth-child(16) { left: 18%; animation-delay: 2.1s; animation-duration: 15s; width: 12px; height: 9px; background: rgba(255, 255, 255, 0.35); }
.hero-confetti span:nth-child(17) { left: 52%; animation-delay: 0.9s; animation-duration: 12s; width: 8px; height: 14px; background: rgba(212, 230, 213, 0.4); transform: rotate(8deg); }
.hero-confetti span:nth-child(18) { left: 68%; animation-delay: 2.7s; animation-duration: 16s; width: 15px; height: 12px; background: rgba(255, 255, 255, 0.3); }
.hero-confetti span:nth-child(19) { left: 38%; animation-delay: 1.1s; animation-duration: 14s; width: 11px; height: 11px; background: rgba(223, 203, 88, 0.35); transform: rotate(-10deg); }
.hero-confetti span:nth-child(20) { left: 95%; animation-delay: 0.4s; animation-duration: 13s; width: 13px; height: 17px; background: rgba(212, 230, 213, 0.35); }

@keyframes confetti-fall {
  0% { transform: translateY(-10%) rotate(0deg); }
  100% { transform: translateY(105vh) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  width: 320px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-slogan {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

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

.stores a {
  display: block;
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  height: 55px;
  min-height: 55px;
  max-height: 55px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.stores a:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

.stores img {
  width: 170px;
  height: 55px;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Google trae más padding interno, lo subimos apenas para igualar tamaño óptico */
.stores a.store-google img {
  transform: scale(1.21);
  transform-origin: center;
}

/* Features */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 82, 33, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Screenshots */
.screenshots {
  background: var(--surface);
  padding: 5rem 1.5rem;
}

.screenshots .section-title { color: var(--primary-dark); }

.screenshots-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px;
  margin: 0 auto;
}

.screenshot-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 82, 33, 0.08);
}

.screenshot-media {
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 45%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.screenshot-card figcaption {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  background: var(--gradient-hero);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta .stores { margin-top: 1rem; }

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding-top: 5rem; }
  .section, .screenshots { padding: 3rem 1rem; }
}
