/* ============================================================
   Avi-Smart Pro — Main Stylesheet
   Mobile-first, CSS Custom Properties, Animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* SEO/A11y: Skip-to-content link (WCAG 2.1 AA)
   Invisible hasta que el usuario tabula sobre él */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: #c8a550;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-to-content:focus {
  left: 0;
  outline: 3px solid #0f172a;
  outline-offset: 2px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #c8a550;
  --primary-dark:  #b08d3a;
  --primary-soft:  rgba(200, 165, 80, 0.12);
  --primary-glow:  rgba(200, 165, 80, 0.25);
  --dark:          #1e293b;
  --darker:        #0f172a;
  --text:          #334155;
  --text-muted:    #64748b;
  --bg:            #f8fafc;
  --bg-white:      #ffffff;
  --border:        #e2e8f0;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    all 0.25s ease-in-out;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:        0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
  --shadow-gold:   0 8px 32px rgba(200, 165, 80, 0.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }

/* ── @keyframes ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--primary-glow); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes heroEntrance {
  0%   { opacity: 0; transform: translateY(40px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Animations ────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--darker); }

h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(200,165,80,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #e8c06a 50%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--darker);
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--darker);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--darker);
  color: #fff;
  border-color: var(--darker);
}
.btn-dark:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--darker);
}
.nav-logo:hover { color: var(--primary); }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--darker); background: var(--bg); }

.nav-cta { display: none; align-items: center; gap: 0.75rem; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--darker);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  animation: slideDown 0.25s ease;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-mobile a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta   { display: flex; }
  .nav-toggle { display: none; }
}

/* ── Hero — Premium Dark + Layout Left (foto granja + mesh dorado) ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;     /* Antes: var(--darker). Transparente para que la foto fija debajo se vea */
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

/* Foto de granja FIJA al documento (no scrollea con la página).
   Está fuera del .hero (es un sibling de <main>) y position:fixed con z-index:-1.
   Las secciones siguientes (.beneficios, .ciclo, etc.) tienen fondo opaco
   que la cubre naturalmente al hacer scroll hacia abajo. */
.hero-photo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;                  /* Detrás de TODO el contenido */
  background-image: url('assets/hero/chickens.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(.32) saturate(1.5) sepia(.45) hue-rotate(-10deg) contrast(1.1);
}
/* Body con fondo dorado oscuro como fallback si la foto no carga */
body { background: var(--darker); }

/* ─── Glassmorphism: secciones semi-transparentes para que la foto del fondo
   se vea claramente a través del contenido. La foto sigue siendo position:fixed
   detrás de todo. ─── */
.modulos,
.ciclo,
.tour,
.telegram-section,
.roles,
.stats-section,
.testimonios,
.faq,
.planes {
  background: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  position: relative;
}

/* La foto MÁS visible y brillante para que se note bien debajo de las secciones */
.hero-photo {
  filter: brightness(.85) saturate(1.3) sepia(.2) hue-rotate(-5deg) contrast(1.05);
}

/* Para mantener el contraste oscuro del HERO sobre la foto brillante,
   reforzamos el overlay del hero */
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.78) 35%, rgba(15,23,42,.45) 65%, rgba(15,23,42,.2) 100%),
    linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.2) 30%, rgba(15,23,42,.7) 100%) !important;
}

/* Las cards/cajas dentro de las secciones quedan opacas (mejor legibilidad) */
.ciclo-step,
.module-card,
.faq-item,
.testimonio-card,
.role-card,
.plan-card,
.stat-card {
  background: var(--bg-white) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Section dividers transparentes para no romper el efecto */
.section-divider { background: transparent; }
/* Mobile: position:fixed funciona ok pero añadimos ken-burns sutil */
@media (max-width: 768px) {
  .hero-photo {
    transform: scale(1.05);
    animation: heroSlowZoom 30s ease-in-out infinite alternate;
  }
}
@keyframes heroSlowZoom {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

/* Overlay con gradiente fuerte a la izquierda para legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.7) 35%, rgba(15,23,42,.3) 65%, transparent 100%),
    linear-gradient(180deg, rgba(15,23,42,.4) 0%, transparent 30%, rgba(15,23,42,.6) 100%);
}

/* Mesh dorado animado */
.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: heroFloatMesh 20s ease-in-out infinite;
}
.hero-mesh span:nth-child(1) {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -10%; right: -10%;
}
.hero-mesh span:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--primary-dark);
  top: 50%; right: 20%;
  animation-delay: -7s;
}
.hero-mesh span:nth-child(3) {
  width: 450px; height: 450px;
  background: #fde68a;
  bottom: -15%; right: 5%;
  animation-delay: -14s;
  opacity: .3;
}
@keyframes heroFloatMesh {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-40px, 60px) scale(.9); }
}

/* Grid pattern sutil */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}

/* Grain texture */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Bottom fade gradient */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8rem;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* Contenido alineado izquierda, centrado vertical */
.hero .container {
  position: relative;
  z-index: 10;
  width: 100%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2.5rem;
  max-width: 100%;
}
.hero-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 42rem;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fde68a;
  background: rgba(200,165,80,.1);
  border: 1px solid rgba(200,165,80,.3);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  animation: fadeUpHero .8s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: heroPulseDot 2s infinite;
}
@keyframes heroPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.85); }
}

/* H1 sobre fondo oscuro */
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
  max-width: 900px;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpHero .7s ease forwards;
}
.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #fde68a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
@keyframes fadeUpHero {
  to { opacity: 1; transform: translateY(0); }
}

/* Subtítulo */
.hero p.hero-sub {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0;
  opacity: 0;
  animation: fadeUpHero .8s ease .8s forwards;
}

/* CTAs */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  opacity: 0;
  animation: fadeUpHero .8s ease 1s forwards;
}
.hero .btn-outline {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(200,165,80,.5);
  color: #fff;
}

/* Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  padding: 1.1rem 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 0;
  box-shadow: none;
  opacity: 0;
  animation: fadeUpHero .8s ease 1.2s forwards;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 80px;
}
.hero-stat .stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat .stat-num .accent { color: var(--primary); }
.hero-stat .stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Browser frame (legacy — ya no se usa en el hero pero lo mantengo por si lo usas en otra sección) */
.browser-frame {
  width: 100%;
  max-width: 900px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #fc5f5a; }
.browser-dots span:nth-child(2) { background: #fdbc2c; }
.browser-dots span:nth-child(3) { background: #34c74b; }
.browser-url {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
.browser-frame img { width: 100%; display: block; object-fit: cover; }

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 4rem; min-height: 100vh; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(15,23,42,.85) 0%, rgba(15,23,42,.7) 100%);
  }
  .hero-stats { gap: .8rem 1.5rem; }
  .hero-stat { min-width: 70px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-mesh span, .hero h1 .word,
  .hero-badge, .hero p.hero-sub, .hero-actions, .hero-stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── El Ciclo ─────────────────────────────────────────────── */
.ciclo { background: var(--bg-white); }

.ciclo-grid {
  display: grid;
  gap: 1.5rem;
}

.ciclo-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
}
.ciclo-step:hover {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.ciclo-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--primary);
  color: var(--darker);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: var(--radius);
}

.ciclo-body h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.ciclo-body p  { font-size: 0.875rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .ciclo-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Módulos ──────────────────────────────────────────────── */
.modulos { background: var(--bg); }

.module-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.module-filter-tabs button {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.module-filter-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.module-filter-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--darker);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.module-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.module-card:hover::before { opacity: 1; }
.module-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.module-card.hidden { display: none; }

.module-icon {
  width: 48px; height: 48px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  position: relative; z-index: 1;
  transition: background 0.25s;
}
.module-card:hover .module-icon { background: var(--primary); }

.module-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.module-card h3 { margin-bottom: 0.3rem; font-size: 1rem; position: relative; z-index: 1; }
.module-card p  { font-size: 0.83rem; color: var(--text-muted); position: relative; z-index: 1; }

/* ── Product Tour ─────────────────────────────────────────── */
.tour { background: var(--darker); color: #fff; }
.tour .section-label { color: var(--primary); }
.tour .section-header h2 { color: #fff; }
.tour .section-header p  { color: #94a3b8; }

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tour-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition);
}
.tour-tab:hover { border-color: var(--primary); color: var(--primary); }
.tour-tab.active { background: var(--primary); border-color: var(--primary); color: var(--darker); }

.tour-window {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.tour-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1a2535;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tour-dots { display: flex; gap: 5px; }
.tour-dots span { width: 11px; height: 11px; border-radius: 50%; }
.tour-dots span:nth-child(1) { background: #fc5f5a; }
.tour-dots span:nth-child(2) { background: #fdbc2c; }
.tour-dots span:nth-child(3) { background: #34c74b; }
.tour-url { flex: 1; text-align: center; font-size: 0.75rem; color: #64748b; }

.tour-img-container {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 300px;
}
.tour-img-container img {
  width: 100%;
  display: block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tour-img-container img.fade-out {
  opacity: 0;
  transform: translateX(18px);
}

/* ── Roles ────────────────────────────────────────────────── */
.roles { background: var(--bg-white); }

.roles-grid {
  display: grid;
  gap: 1.5rem;
}

.role-card {
  padding: 1.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
}
.role-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  background: var(--bg-white);
}

.role-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--primary-soft);
}

.role-card h3 { margin-bottom: 0.25rem; }
.role-card .role-subtitle {
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.role-perms { display: flex; flex-direction: column; gap: 0.4rem; }
.role-perm {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.role-perm::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (min-width: 768px) { .roles-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Stats Section ────────────────────────────────────────── */
.stats-section { background: var(--darker); padding: 4rem 0; }

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

.stat-block { text-align: center; padding: 1.5rem; }
.stat-block .big-num {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-block .big-num .accent { color: var(--primary); }
.stat-block p { font-size: 0.9rem; color: #94a3b8; }

.brands-strip { margin-top: 3rem; text-align: center; }
.brands-strip p { font-size: 0.78rem; color: #64748b; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.brands-logos { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.brand-badge {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: #cbd5e1;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all .2s ease;
  display: inline-block;
}
a.brand-badge:hover {
  border-color: var(--primary, #c8a550);
  color: var(--primary, #c8a550);
  transform: translateY(-2px);
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Testimonios ──────────────────────────────────────────── */
.testimonios { background: var(--bg); }

.test-grid { display: grid; gap: 1.5rem; }

.test-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.test-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.test-stars { color: var(--primary); font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 2px; }

.test-card blockquote {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  flex: 1;
}
.test-author { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.test-author strong { display: block; font-size: 0.9rem; color: var(--darker); }
.test-author span   { font-size: 0.78rem; color: var(--text-muted); }

@media (min-width: 768px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { background: var(--bg-white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: var(--primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  background: var(--bg-white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--darker);
  gap: 1rem;
  user-select: none;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg); }

.faq-chevron {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s, border-color 0.2s;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 900;
}
.faq-item.open .faq-chevron {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(180deg);
  color: var(--darker);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Pricing ──────────────────────────────────────────────── */
.planes { background: var(--bg); }

.billing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.billing-tabs button {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.billing-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.billing-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--darker);
}

.plans-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.plan-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  border-color: rgba(200,165,80,0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.plan-card.highlighted {
  border-color: var(--primary);
  box-shadow: var(--shadow-gold);
}
.plan-card.highlighted::before {
  content: 'Más Popular';
  position: absolute;
  top: 0; right: 1.25rem;
  background: var(--primary);
  color: var(--darker);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.plan-name { font-size: 1.05rem; font-weight: 700; color: var(--darker); margin-bottom: 0.4rem; }
.plan-tagline { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.plan-price-wrap { margin-bottom: 1.5rem; }
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--darker);
  line-height: 1;
  transition: opacity 0.2s ease;
}
.plan-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; line-height: 0; }
.plan-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 0.25rem;
  transition: opacity 0.2s ease;
}

.plan-limits {
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 0.9rem 0;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.plan-limit { font-size: 0.79rem; color: var(--text-muted); }
.plan-limit strong { display: block; font-size: 0.95rem; color: var(--darker); font-weight: 700; }

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.plan-feature .chk {
  width: 18px; height: 18px;
  background: var(--primary-soft);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--primary-dark);
  font-weight: 900;
  margin-top: 1px;
}

.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; justify-content: center; }

/* Addons */
.addons-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.addons-box h3 { margin-bottom: 1.25rem; font-size: 1.05rem; }
.addons-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.addon-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: var(--transition);
}
.addon-item:hover { border-color: var(--primary); background: var(--bg-white); }
.addon-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.addon-name  { font-size: 0.85rem; font-weight: 600; color: var(--darker); }
.addon-desc  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

.plans-cta { text-align: center; margin-top: 2.5rem; }
.plans-cta p { color: var(--text-muted); font-size: 0.95rem; }
.plans-cta a { color: var(--primary); font-weight: 600; }
.plans-compare-cta { text-align: center; margin-top: 2rem; }
.plans-compare-cta .btn { font-size: 0.9rem; padding: 0.7rem 1.5rem; }

/* Capacidad total estimada (Granjas × Galpones × Aves) */
.plan-capacity {
  margin: 0.5rem 0 1rem;
  padding: 0.6rem 0.75rem;
  background: rgba(200, 165, 80, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
.plan-capacity strong { color: var(--primary); font-weight: 800; }

/* ── Tabla comparativa de planes ──────────────────────────── */
.plans-compare-wrap {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.plans-compare-header { text-align: center; margin-bottom: 2rem; }
.plans-compare-header h3 {
  font-size: 1.6rem;
  color: var(--darker);
  margin-bottom: 0.5rem;
}
.plans-compare-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
}
.plans-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.5rem;
}
.plans-compare-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.plans-compare-table th,
.plans-compare-table td {
  padding: 0.7rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.plans-compare-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--darker);
  font-size: 0.88rem;
  border-bottom: 2px solid var(--border);
}
.plans-compare-table .feat-col {
  text-align: left;
  font-weight: 500;
  color: var(--darker);
  min-width: 240px;
  padding-left: 1rem;
}
.plans-compare-table thead .feat-col {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.plans-compare-table .highlighted-col {
  background: rgba(200, 165, 80, 0.08);
  color: var(--primary);
  font-weight: 700;
}
.plans-compare-table thead .highlighted-col {
  background: var(--primary);
  color: #1a1400;
  font-weight: 800;
}
.plans-compare-table .price-row th,
.plans-compare-table .price-row td {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--darker);
  padding: 0.8rem 0.85rem;
  border-bottom: 2px solid var(--border);
}
.plans-compare-table .price-row .highlighted-col {
  color: var(--primary);
}
/* Fix: cuando la fila de precio está dentro del thead (fondo dorado),
   el texto dorado quedaba invisible. Lo forzamos a oscuro para contraste. */
.plans-compare-table thead .price-row .highlighted-col,
.plans-compare-table thead .price-row .highlighted-col strong {
  color: #1a1400;
  background: var(--primary);
}
.plans-compare-table .group-row td {
  background: var(--bg);
  color: var(--darker);
  font-weight: 700;
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--border);
}
.plans-compare-table tbody tr:hover {
  background: rgba(200, 165, 80, 0.03);
}
.plans-compare-table tbody tr.group-row:hover {
  background: var(--bg);
}
.plans-compare-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 760px) {
  .plans-compare-wrap { padding: 1.5rem 1rem; }
  .plans-compare-table { font-size: 0.8rem; }
  .plans-compare-table .feat-col { min-width: 200px; padding-left: 0.5rem; }
  .plans-compare-table th, .plans-compare-table td { padding: 0.55rem 0.5rem; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--darker);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 240px; margin-top: 0.75rem; }
.footer-email {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--primary);
}
.footer-email:hover { color: var(--primary-dark); }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.88rem; color: #64748b; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #475569;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: var(--primary); }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Floating Buttons ─────────────────────────────────────── */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

#backToTop {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  color: #fff;
  font-size: 1rem;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--primary); transform: translateY(-3px); color: var(--darker); }

.demo-float {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: var(--darker);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  white-space: nowrap;
}
.demo-float:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--primary-glow);
  color: var(--darker);
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-hero {
  padding: 4rem 0;
  background: linear-gradient(160deg, #fff 0%, #fffdf5 100%);
  text-align: center;
}
.contact-hero p { color: var(--text-muted); max-width: 520px; margin: 0.75rem auto 0; }

.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--darker);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--bg-white);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; }
.form-group .field-error { font-size: 0.8rem; color: #ef4444; margin-top: 0.3rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.section-divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }

/* ── Telegram Section ─────────────────────────────────────── */
.telegram-section {
  background: linear-gradient(135deg, var(--darker) 0%, #0f2137 50%, var(--darker) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.telegram-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,136,204,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.telegram-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .telegram-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

.telegram-content .section-label { color: #38bdf8; }
.telegram-content h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; line-height: 1.25; }
.telegram-lead { color: #94a3b8; font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }

.telegram-features { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.tg-feature { display: flex; gap: 1rem; align-items: flex-start; }
.tg-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,136,204,0.15);
  border: 1.5px solid rgba(0,136,204,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #38bdf8;
}
.tg-feature h4 { color: #e2e8f0; font-size: 1rem; margin-bottom: 0.3rem; }
.tg-feature p { color: #94a3b8; font-size: 0.88rem; line-height: 1.6; }
.telegram-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Phone Mockup ──────────────────────────────────────────── */
.telegram-mockup { display: flex; flex-direction: column; gap: 1.5rem; }
.tg-phone {
  background: #17212b;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}
.tg-phone-header {
  background: #242f3d;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tg-avatar {
  width: 40px; height: 40px;
  background: #2b5278;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.tg-name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.tg-status { color: #6ab3f3; font-size: 0.78rem; }
.tg-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 300px;
  max-height: 360px;
  overflow-y: auto;
}
.tg-msg {
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  position: relative;
}
.tg-msg time {
  display: block;
  font-size: 0.68rem;
  opacity: 0.55;
  text-align: right;
  margin-top: 0.25rem;
}
.tg-recv {
  background: #182533;
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.tg-sent {
  background: #2b5278;
  color: #e2e8f0;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.tg-input-bar {
  background: #242f3d;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.tg-input-fake {
  background: #17212b;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: #4a5568;
  font-size: 0.82rem;
}

/* screenshot below phone */
.tg-screenshot-caption {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tg-screenshot-caption img { width: 100%; height: auto; display: block; }
.tg-screenshot-caption figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: #64748b;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ── All modules screenshots strip ───────────────────────── */
.modules-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .modules-screenshots { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .modules-screenshots { grid-template-columns: repeat(4, 1fr); } }

.module-screenshot-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.module-screenshot-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
.module-screenshot-card img { width: 100%; height: 130px; object-fit: cover; object-position: top; display: block; }
.module-screenshot-label {
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Cookie Consent Banner ───────────────────────────────── */
#avs-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: calc(100% - 2rem);
  max-width: 760px;
  background: var(--darker);
  border: 1px solid rgba(200,165,80,0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
#avs-cookie-banner.avs-cookie-visible  { transform: translateX(-50%) translateY(0); }
#avs-cookie-banner.avs-cookie-hide     { transform: translateX(-50%) translateY(140%); transition: transform 0.35s ease-in; }

.avs-cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.4rem;
}
.avs-cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex: 1 1 300px;
}
.avs-cookie-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.4; }
.avs-cookie-text strong { display: block; color: #e2e8f0; font-size: 0.95rem; margin-bottom: 0.2rem; }
.avs-cookie-text p  { color: #94a3b8; font-size: 0.82rem; line-height: 1.5; margin: 0; }
.avs-cookie-text a  { color: var(--primary); text-decoration: underline; }

.avs-cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.avs-btn-ghost {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.avs-btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: #e2e8f0; }
.avs-btn-accept {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #0f172a;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.avs-btn-accept:hover { background: var(--primary-dark); }

/* ── Bot error message ────────────────────────────────────── */
.avs-bot-error {
  color: #ef4444;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: rgba(239,68,68,0.08);
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  display: none;
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .navbar, .float-cta, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
