:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-orange: #FF6600;
}
[x-cloak] { display: none !important; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

#neural-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

.main-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(5,5,5,0.9) 0%, transparent 100%);
  backdrop-filter: blur(6px);
}
.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; }
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-color); text-shadow: 0 0 12px rgba(255,255,255,0.4); }

.btn-colmena {
  border: 1px solid var(--border-color); padding: 0.5rem 1.2rem; border-radius: 50px;
  font-size: 0.7rem; letter-spacing: 1px; transition: all 0.3s;
  background: transparent; color: var(--text-color); cursor: pointer;
}
.btn-colmena:hover { background: white; color: black; border-color: white; }

.mobile-toggle { display: none; background: transparent; border: none; color: white; cursor: pointer; padding: 0.5rem; z-index: 101; }

.mobile-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(8, 8, 8, 0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.mobile-dropdown a, .mobile-dropdown button {
  width: 100%; text-align: left; padding: 1rem;
  background: transparent; border: none; color: var(--text-color);
  font-size: 1rem; font-weight: 500; cursor: pointer; border-radius: 8px; transition: background 0.3s;
}
.mobile-dropdown a:hover, .mobile-dropdown button:hover { background: rgba(255,255,255,0.05); }
.btn-colmena-mobile {
  border: 1px solid var(--border-color); border-radius: 50px; text-align: center; margin-top: 0.5rem;
}

.hero {
  height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 0 2rem; overflow: hidden;
}
.animated-title-container { margin-bottom: 1.5rem; overflow: hidden; }

.title-line {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9; font-weight: 800; letter-spacing: -2px; display: block;
  animation: titleSlideIn 2s cubic-bezier(0.25, 1, 0.5, 1) forwards,
             titleFloat 8s ease-in-out infinite;
  animation-delay: 0s, 2s;
}
.title-right {
  -webkit-text-stroke: 1px rgba(255,255,255,0.2); color: transparent;
  animation-name: titleSlideIn, titleFloatRight;
  animation-delay: 0s, 2s; animation-duration: 2s, 8s;
  animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite;
}
.title-left {
  -webkit-text-stroke: 1px rgba(255,255,255,0.2); color: transparent;
  animation-name: titleSlideIn, titleFloatLeft;
  animation-delay: 0.3s, 2s; animation-duration: 2s, 8s;
  animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite;
}
.title-right.filled {
  color: white; -webkit-text-stroke: 0;
  animation-name: titleSlideIn, titleFloatRight;
  animation-delay: 0.6s, 2s; animation-duration: 2s, 8s;
  animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite;
}

@keyframes titleSlideIn { 0% { transform: translateY(30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes titleFloatRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(30px); } }
@keyframes titleFloatLeft { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-30px); } }

.hero p { max-width: 650px; color: var(--text-muted); font-size: 1.1rem; margin-top: 1rem; }

.infinite-text-container {
  width: 100%; padding: 3rem 0; overflow: hidden;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
  border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.infinite-text {
  font-size: 4rem; font-weight: 800; letter-spacing: 8px;
  color: rgba(255,255,255,0.03); white-space: nowrap;
  animation: infiniteScroll 20s linear infinite; display: inline-block;
}
.infinite-text.reverse { animation-direction: reverse; }
@keyframes infiniteScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.section {
  min-height: 90vh; padding: 6rem 4rem;
  display: flex; align-items: center; justify-content: center;
}
.content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  max-width: 1200px; width: 100%; align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.img-container {
  position: relative; width: 100%; aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.img-container img {
  width: 100%; height: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 95%);
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 95%);
  transition: transform 0.8s ease, filter 0.8s ease;
}
.img-container:hover img { transform: scale(1.03); filter: brightness(1.1); }
.img-container.portrait { aspect-ratio: 3/4; max-width: 340px; margin: 0 auto; }

.scroll-reveal { opacity: 0; transition: all 1s cubic-bezier(0.22, 1, 0.36, 1); }
.scroll-reveal.visible { opacity: 1; }
.from-left { transform: translateX(-100px); }
.from-left.visible { transform: translateX(0); }
.from-right { transform: translateX(100px); }
.from-right.visible { transform: translateX(0); }
.from-bottom-left { transform: translate(-80px, 80px); }
.from-bottom-left.visible { transform: translate(0, 0); }
.from-bottom-right { transform: translate(80px, 80px); }
.from-bottom-right.visible { transform: translate(0, 0); }
.fade-up { transform: translateY(40px); }
.fade-up.visible { transform: translateY(0); }
.fade-in { animation: fadeIn 1.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-label {
  display: inline-block; font-size: 0.7rem; letter-spacing: 3px;
  color: #555; margin-bottom: 1rem; border-bottom: 1px solid #222; padding-bottom: 5px;
}
.text-block h2 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 500; }
.text-block p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }

.aliados { padding: 4rem; text-align: center; }
.aliados-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.aliado {
  width: 140px; height: 60px; border: 1px solid #222; border-radius: 8px;
  display: flex; justify-content: center; align-items: center;
  font-size: 0.7rem; letter-spacing: 2px; color: #444; transition: all 0.3s;
}
.aliado:hover { color: white; border-color: #555; box-shadow: 0 0 15px rgba(255,255,255,0.1); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1000px; margin: 4rem auto; padding: 0 2rem;
}
.price-card {
  background: #080808; border: 1px solid #151515; border-radius: 20px;
  padding: 3rem 2rem; text-align: center; transition: all 0.3s;
}
.price-card:hover { transform: translateY(-10px); border-color: #333; }
.price-card.featured { border-color: white; box-shadow: 0 0 30px rgba(255,255,255,0.05); }
.price-card h3 { font-size: 0.8rem; letter-spacing: 2px; color: #888; margin-bottom: 1.5rem; text-transform: uppercase; }
.price-card.featured h3 { color: white; }
.price-circle {
  width: 120px; height: 120px; border: 2px solid #222; border-radius: 50%;
  margin: 0 auto 2rem; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.price-card.featured .price-circle { border-color: white; }
.price-circle span { font-size: 2rem; font-weight: bold; color: white; }
.price-circle small { font-size: 0.7rem; color: #666; letter-spacing: 1px; text-transform: uppercase; }
.price-card p { color: #aaa; font-size: 0.9rem; line-height: 1.6; margin-bottom: 2rem; min-height: 60px; }
.btn-buy {
  background: white; color: black; border: none; padding: 10px 25px; border-radius: 50px;
  font-weight: bold; font-size: 0.8rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.btn-buy:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
.btn-buy.outline { background: transparent; color: white; border: 1px solid white; }
.btn-buy.outline:hover { background: white; color: black; }

footer {
  padding: 2rem 4rem; text-align: center; font-size: 0.8rem; color: #333;
  border-top: 1px solid #111; position: relative;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto; flex-wrap: wrap; gap: 1rem;
}
.designer-signature {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin: 0;
  text-align: right;
  text-transform: uppercase;
}
.signature-ram { 
  color: #ffffff; 
  display: inline-block;
}
.signature-design { 
  color: #FF6600;
  display: inline-block;
}

.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: #050505; z-index: 9999;
  justify-content: center; align-items: center;
  padding: 2rem; animation: fadeIn 0.3s ease;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 370px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.4s ease;
}
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.animated-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.5rem; }
.logo-n { width: 60px; height: 60px; stroke: white; stroke-width: 4; fill: none; stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawN 1.5s ease forwards; }
@keyframes drawN { to { stroke-dashoffset: 0; } }
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: 3px; opacity: 0; animation: fadeInText 0.8s ease 1.2s forwards; }
@keyframes fadeInText { to { opacity: 1; } }

.login-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-input {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; padding: 0.9rem; color: white; font-size: 0.95rem;
  transition: all 0.3s; width: 100%;
}
.form-input:focus { outline: none; border-color: #FF6600; background: rgba(255,255,255,0.07); }
.extra-fields { display: none; gap: 0.8rem; flex-wrap: wrap; }
.extra-fields .form-group { flex: 1 1 45%; }

.auth-message { font-size: 0.85rem; min-height: 1.2rem; text-align: center; margin: 0.5rem 0; }
.auth-message.error { color: #ff4d4d; }
.auth-message.success { color: #4dff88; }

.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.remember-me { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); cursor: pointer; }
.forgot-password { color: #FF6600; text-decoration: none; transition: color 0.3s; }
.forgot-password:hover { color: white; }
.btn-login {
  background: white; color: black; border: none; padding: 1rem; border-radius: 50px;
  font-weight: bold; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3); }

.divider { text-align: center; position: relative; margin: 1rem 0; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.1); }
.divider span { background: rgba(15, 15, 15, 0.95); padding: 0 1rem; color: var(--text-muted); font-size: 0.85rem; position: relative; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
  color: var(--text-muted); font-size: 2rem; cursor: pointer; transition: color 0.3s;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.modal-close:hover { color: white; background: rgba(255,255,255,0.1); }

.social-login { display: flex; gap: 0.8rem; justify-content: center; margin-top: 0.5rem; }
.btn-social {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 0.7rem; color: #ccc; font-size: 0.8rem;
  cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-social:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-social svg { width: 18px; height: 18px; fill: currentColor; }

.register-link { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }
.register-link a { color: #FF6600; text-decoration: none; font-weight: 600; }
.register-link a:hover { color: white; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .main-nav { padding: 1rem 1.5rem; }
  .hero h1 { font-size: 3.5rem; }
  .section { padding: 4rem 1.5rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid.reverse { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .infinite-text { font-size: 2.5rem; }
  footer { flex-direction: column; text-align: center; }
  .designer-signature { text-align: center; }
}