/* Landing Apps - Mismo diseño que /Apps/ pero con contenido de landing */
:root {
  --primary: #3b82f6;
  --secondary: #22c55e;
  --accent: #a855f7;
  --danger: #ff3b30;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-primary: #0f1116;
  --bg-secondary: #1a1d29;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Background dinámico y moderno - igual que apps.css */
.lp {
  background: 
    /* Grid pattern sutil */
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    /* Gradientes animados modernos */
    radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 70%),
    /* Fondo base */
    radial-gradient(1200px 800px at 70% 10%, #0f1116, #0a0b0e);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  animation: backgroundShift 25s ease-in-out infinite;
}

/* Efectos de partículas flotantes */
.lp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 30px 40px, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(2px 2px at 60px 90px, rgba(34, 197, 94, 0.25), transparent),
    radial-gradient(1px 1px at 120px 50px, rgba(168, 85, 247, 0.4), transparent),
    radial-gradient(1px 1px at 180px 100px, rgba(255, 59, 48, 0.3), transparent),
    radial-gradient(2px 2px at 240px 30px, rgba(59, 130, 246, 0.2), transparent);
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: floatParticles 30s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Elementos geométricos flotantes */
.lp::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(168, 85, 247, 0.05) 40%, rgba(168, 85, 247, 0.05) 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255, 59, 48, 0.04) 40%, rgba(255, 59, 48, 0.04) 60%, transparent 60%);
  background-size: 500px 500px, 400px 400px, 250px 250px, 200px 200px;
  animation: geometricFloat 35s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Animaciones de fondo */
@keyframes backgroundShift {
  0%, 100% { background-position: 0% 50%, 0% 50%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 100% 50%, 100% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%; }
}

@keyframes floatParticles {
  0% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-25px) translateX(15px); }
  50% { transform: translateY(-15px) translateX(-10px); }
  75% { transform: translateY(-35px) translateX(20px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes geometricFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    opacity: 0.5;
  }
  33% { 
    transform: translateY(-20px) rotate(1deg);
    opacity: 0.7;
  }
  66% { 
    transform: translateY(-10px) rotate(-1deg);
    opacity: 0.6;
  }
}

/* Hero section - igual que apps.css */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px clamp(16px, 4vw, 48px) 64px;
  position: relative;
  z-index: 2;
  min-height: 80vh;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite;
}

.hero-copy .price {
  background: linear-gradient(135deg, var(--secondary), #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  position: relative;
}

.hero-copy .price::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--secondary), #16a34a);
  border-radius: 12px;
  opacity: 0.1;
  z-index: -1;
}

.hero-copy .lede {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 90%;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-wa {
  background: linear-gradient(135deg, var(--secondary), #16a34a);
  color: #ffffff;
  box-shadow: 
    0 20px 40px rgba(34,197,94,.4),
    0 0 0 1px rgba(255,255,255,.1) inset;
}

.cta-wa::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.cta-wa:hover::before {
  left: 100%;
}

.cta-wa:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 32px 60px rgba(34,197,94,.5),
    0 0 0 1px rgba(255,255,255,.2) inset;
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.cta-email {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  backdrop-filter: blur(10px);
}

.cta-email:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 197, 94, 0.15));
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.trust {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.trust li {
  padding: 12px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust li:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 197, 94, 0.15));
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  color: var(--text-primary);
}

/* Dispositivos flotantes - igual que apps.css */
.phones {
  position: relative;
  height: 340px;
  animation: devicesFloat 8s ease-in-out infinite;
}

.phone {
  position: absolute;
  width: 180px;
  height: 340px;
  border-radius: 30px;
  background: linear-gradient(180deg, #0b0d12, #111522);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 8px rgba(255,255,255,.06) inset;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.phone:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 26px 60px rgba(0,0,0,.65);
  filter: brightness(1.04) saturate(1.05);
}

.phone img {
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  border-radius: 22px;
  transition: transform 0.3s ease;
}

.phone:hover img {
  transform: scale(1.02);
}

.phone.p1 {
  left: 14%;
  transform: rotate(-10deg);
  animation: phoneFloat1 6s ease-in-out infinite;
}

.phone.p2 {
  left: 36%;
  top: 18px;
  transform: rotate(12deg);
  animation: phoneFloat2 7s ease-in-out infinite;
}

.phone.p3 {
  left: 58%;
  top: -10px;
  transform: rotate(-4deg);
  animation: phoneFloat3 8s ease-in-out infinite;
}

/* Animaciones de dispositivos */
@keyframes devicesFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes phoneFloat1 {
  0%, 100% { transform: rotate(-10deg) translateY(0px); }
  50% { transform: rotate(-6deg) translateY(-15px); }
}

@keyframes phoneFloat2 {
  0%, 100% { transform: rotate(12deg) translateY(0px); }
  50% { transform: rotate(16deg) translateY(-12px); }
}

@keyframes phoneFloat3 {
  0%, 100% { transform: rotate(-4deg) translateY(0px); }
  50% { transform: rotate(-8deg) translateY(-18px); }
}

/* Secciones mejoradas - igual que apps.css */
.section {
  position: relative;
  z-index: 2;
  margin: 80px 0;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin: 0 0 48px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

/* Galerías de pantallas - igual que apps.css */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.screens figure {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1d29, #0f1116);
  box-shadow: 
    0 24px 60px rgba(0,0,0,.5), 
    0 0 0 1px rgba(255,255,255,.08) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp 1s ease-out;
}

.screens figure:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 40px 80px rgba(0,0,0,.6), 
    0 0 0 1px rgba(255,255,255,.12) inset;
}

.screens img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

.screens figure:hover img {
  transform: scale(1.05);
}

.screens figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 24px 20px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: capitalize;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.screens figure:hover figcaption {
  transform: translateY(0);
}

/* Plan de precios mejorado */
.plan-wrap {
  display: grid;
  place-items: center;
  margin: 80px 0;
  position: relative;
  z-index: 2;
}

.plan {
  width: min(600px, 92vw);
  background: linear-gradient(145deg, #1a1d29, #0f1116);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 32px 80px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.08) inset;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.plan header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.plan h3 {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan .price {
  background: linear-gradient(135deg, var(--secondary), #16a34a);
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 24px;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(34,197,94,.3);
}

.plan ul {
  list-style: none;
  margin: 0 0 32px;
  text-align: left;
}

.plan li {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  position: relative;
  padding-left: 32px;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 900;
  font-size: 1.2rem;
}

/* Animaciones de texto */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textGlow {
  0%, 100% { 
    filter: brightness(1);
  }
  50% { 
    filter: brightness(1.1);
  }
}

/* Responsividad - igual que apps.css */
@media (max-width: 920px) {
  .phones {
    height: 300px;
  }
  
  .phone {
    width: 160px;
    height: 300px;
  }
  
  .phone.p1 {
    left: 10%;
  }
  
  .phone.p2 {
    left: 44%;
  }
  
  .phone.p3 {
    left: 78%;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .phones {
    height: 300px;
    margin: 0 auto;
  }
  
  .phone.p1 {
    left: 10%;
  }
  
  .phone.p2 {
    left: 44%;
  }
  
  .phone.p3 {
    display: none;
  }
}

@media (max-width: 640px) {
  .phones {
    height: 250px;
  }
  
  .phone {
    width: 140px;
    height: 250px;
  }
  
  .phone.p1 {
    left: 8%;
  }
  
  .phone.p2 {
    left: 46%;
  }
  
  .screens {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }
  
  .screens img {
    height: 150px;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .lp,
  .lp::before,
  .lp::after,
  .phones,
  .phone,
  .hero-copy,
  .hero-copy h1,
  .hero-copy .lede,
  .cta-row,
  .cta,
  .trust,
  .section h2,
  .screens figure,
  .plan {
    animation: none;
  }
  
  .phone:hover,
  .screens figure:hover,
  .trust li:hover,
  .cta:hover {
    transform: none;
  }
}