/* ========================================
   KAJHON STUDIO - Premium 3D Design
   ======================================== */

:root {
    --aguamarine: #2dd4bf;
    --aguamarine-dark: #0f766e;
    --pink: #f472b6;
    --pink-dark: #db2777;
    --violet: #a78bfa;
    --violet-dark: #7c3aed;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --gradient-main: linear-gradient(135deg, var(--aguamarine) 0%, var(--pink) 50%, var(--violet) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(45, 212, 191, 0.4) 0%, rgba(244, 114, 182, 0.4) 50%, rgba(167, 139, 250, 0.4) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Figuritas flotantes */
.floating-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.shape { position: absolute; font-size: 30px; opacity: 0.15; animation: floatShape 15s infinite ease-in-out; }
.shape-1 { top: 10%; left: 5%; } .shape-2 { top: 20%; right: 10%; font-size: 40px; animation-delay: 2s; }
.shape-3 { top: 50%; left: 15%; animation-delay: 4s; } .shape-4 { top: 70%; right: 20%; font-size: 35px; animation-delay: 6s; }
.shape-5 { top: 85%; left: 30%; animation-delay: 8s; } .shape-6 { top: 30%; left: 70%; font-size: 25px; animation-delay: 3s; }
.shape-7 { top: 60%; right: 5%; animation-delay: 5s; } .shape-8 { top: 40%; left: 50%; font-size: 28px; animation-delay: 7s; }
@keyframes floatShape { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-20px, -50px) rotate(180deg); } }

.gradient-text { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; }

/* Botones */
.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 16px; }
.btn-primary { background: var(--gradient-main); color: white; box-shadow: 0 10px 30px rgba(244, 114, 182, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(244, 114, 182, 0.5); }
.btn-secondary { background: transparent; border: 2px solid var(--aguamarine); color: var(--aguamarine); }
.btn-secondary:hover { background: var(--aguamarine); color: var(--dark-bg); }
.btn-outline { background: transparent; border: 2px solid var(--violet); color: var(--violet); }
.btn-outline:hover { background: var(--violet); color: white; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px); padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: white; text-decoration: none; }
.logo-accent { color: var(--aguamarine); }
.nav-menu { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-menu a { color: var(--text-gray); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--pink); }
.btn-nav { background: var(--gradient-main); color: white !important; padding: 10px 24px; border-radius: 50px; }
.hamburger { display: none; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; z-index: 1; }
.hero-bg-glow { position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; background: var(--gradient-glow); border-radius: 50%; filter: blur(100px); opacity: 0.3; z-index: -1; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge { display: inline-block; background: rgba(244, 114, 182, 0.1); color: var(--pink); padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(244, 114, 182, 0.3); }
.hero-title { font-size: 56px; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero-subtitle { font-size: 18px; color: var(--text-gray); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--aguamarine); }
.stat-label { font-size: 14px; color: var(--text-gray); }

/* Cubo 3D */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.hero-3d-element { perspective: 1000px; }
.cube { width: 200px; height: 200px; position: relative; transform-style: preserve-3d; animation: rotateCube 10s infinite linear; }
.cube-face { position: absolute; width: 200px; height: 200px; background: rgba(30, 41, 59, 0.8); backdrop-filter: blur(10px); border: 2px solid var(--aguamarine); display: flex; align-items: center; justify-content: center; font-size: 60px; border-radius: 20px; }
.cube-face.front  { transform: translateZ(100px); } .cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); } .cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); } .cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }
@keyframes rotateCube { 0% { transform: rotateX(0) rotateY(0); } 100% { transform: rotateX(360deg) rotateY(360deg); } }

.floating-badge { position: absolute; background: rgba(30, 41, 59, 0.9); backdrop-filter: blur(10px); padding: 12px 20px; border-radius: 15px; font-weight: 600; font-size: 14px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 2; }
.badge-1 { top: 20px; left: 20px; color: var(--aguamarine); animation: float 3s ease-in-out infinite; }
.badge-2 { bottom: 40px; right: 20px; color: var(--pink); animation: float 3s ease-in-out infinite 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Secciones */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 42px; margin-bottom: 15px; }
.section-subtitle { color: var(--text-gray); font-size: 18px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: var(--dark-card); padding: 40px 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--aguamarine); box-shadow: 0 20px 40px rgba(45, 212, 191, 0.1); }
.feature-icon { font-size: 40px; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 10px; font-size: 20px; }
.feature-card p { color: var(--text-gray); }

/* Pricing Flip */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; padding-bottom: 40px; }
.flip-card { background: transparent; height: 520px; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 25px; overflow: hidden; background-size: cover; background-position: center; }
.flip-card-front { display: flex; align-items: flex-end; }
.flip-card-front::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); }
.card-overlay { position: relative; z-index: 2; padding: 30px; color: white; }
.card-overlay h3 { font-size: 32px; margin-bottom: 5px; }
.card-overlay p { font-size: 18px; opacity: 0.9; }
.flip-hint { display: inline-block; margin-top: 15px; padding: 8px 16px; background: rgba(255,255,255,0.2); border-radius: 50px; font-size: 13px; backdrop-filter: blur(10px); }
.flip-card-back { transform: rotateY(180deg); background: var(--dark-card); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid var(--violet); }
.back-classic { border-color: var(--aguamarine); } .back-pro { border-color: var(--pink); } .back-premium { border-color: var(--violet); }
.flip-card-back h3 { font-size: 26px; margin-bottom: 10px; text-align: center; }
.plan-price { font-size: 36px; font-weight: 800; margin-bottom: 15px; text-align: center; }
.old-price { font-size: 16px; color: var(--text-gray); text-decoration: line-through; margin-right: 10px; font-weight: 400; }
.plan-features { list-style: none; margin-bottom: 20px; flex-grow: 1; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.plan-features li.disabled { color: var(--text-gray); opacity: 0.5; }
.flip-card-back .btn { text-align: center; width: 100%; margin-top: auto; padding: 12px 24px; font-size: 15px; }

.pink-circle { position: absolute; top: 20px; right: 20px; width: 70px; height: 70px; background: radial-gradient(circle, var(--pink) 0%, var(--pink-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px var(--pink), 0 0 40px rgba(244, 114, 182, 0.5); z-index: 3; animation: pulseCircle 2s infinite; }
@keyframes pulseCircle { 0%, 100% { box-shadow: 0 0 20px var(--pink), 0 0 40px rgba(244, 114, 182, 0.5); } 50% { box-shadow: 0 0 30px var(--pink), 0 0 60px rgba(244, 114, 182, 0.8); } }
.rotating-pets { position: relative; width: 100%; height: 100%; animation: rotatePets 8s linear infinite; }
.pet { position: absolute; font-size: 18px; transform-origin: 35px 35px; }
.pet:nth-child(1) { top: 5px; left: 25px; } .pet:nth-child(2) { top: 20px; right: 5px; } .pet:nth-child(3) { bottom: 5px; right: 20px; }
.pet:nth-child(4) { bottom: 20px; left: 5px; } .pet:nth-child(5) { top: 20px; left: 5px; } .pet:nth-child(6) { bottom: 5px; left: 25px; }
@keyframes rotatePets { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.pricing-card.featured { transform: scale(1.05); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gradient-main); color: white; padding: 5px 20px; border-radius: 50px; font-size: 12px; font-weight: 700; z-index: 10; }
.guarantee { text-align: center; margin-top: 50px; color: var(--aguamarine); font-size: 18px; }

/* Testimonios */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--dark-card); border-radius: 20px; padding: 30px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
.testimonial-card:hover { transform: translateY(-10px); border-color: var(--pink); }
.testimonial-image { width: 80px; height: 80px; border-radius: 50%; background-size: cover; background-position: center; margin-bottom: 20px; border: 3px solid var(--gradient-main); }
.testimonial-content .stars { color: #fbbf24; font-size: 20px; margin-bottom: 15px; }
.testimonial-content p { color: var(--text-gray); font-style: italic; margin-bottom: 20px; }
.testimonial-author strong { display: block; color: white; font-size: 16px; }
.testimonial-author span { color: var(--aguamarine); font-size: 13px; }

/* Process */
.process-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.process-step { background: var(--dark-card); padding: 30px; border-radius: 20px; border-left: 4px solid var(--violet); position: relative; }
.step-number { position: absolute; top: -20px; left: 20px; width: 40px; height: 40px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.step-content { margin-top: 20px; }
.step-content h3 { margin-bottom: 10px; }
.step-content p { color: var(--text-gray); margin-bottom: 15px; }
.step-time { font-size: 14px; color: var(--pink); font-weight: 600; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--dark-card); border-radius: 15px; margin-bottom: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.faq-question { width: 100%; padding: 20px 25px; background: none; border: none; color: white; text-align: left; font-size: 18px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 24px; color: var(--aguamarine); transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 25px; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { color: var(--text-gray); }

/* CEO */
.ceo-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ceo-image img { width: 100%; border-radius: 30px; box-shadow: 0 30px 60px rgba(124, 58, 237, 0.3); object-fit: cover; object-position: center top; height: 500px; }
.ceo-content h3 { font-size: 36px; margin-bottom: 5px; }
.ceo-role { color: var(--pink); font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.ceo-content p { color: var(--text-gray); margin-bottom: 20px; font-size: 16px; }

/* Footer */
.footer { background: #020617; padding: 40px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer p { color: var(--text-gray); margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; color: white; }
.social-icon svg { width: 24px; height: 24px; }
.social-icon.facebook { background: #1877F2; } .social-icon.tiktok { background: #000000; border: 2px solid #fff; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.linkedin { background: #0A66C2; }
.social-icon:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* Chatbot Luky */
.luky-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; font-family: 'Outfit', sans-serif; }
.luky-toggle { width: 70px; height: 70px; border-radius: 50%; background: var(--gradient-main); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(244, 114, 182, 0.4); position: relative; transition: transform 0.3s; padding: 0; overflow: hidden; }
.luky-toggle:hover { transform: scale(1.1); }
.luky-toggle-img { width: 100%; height: 100%; object-fit: cover; }
.luky-pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: var(--pink); animation: pulse 2s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }

.luky-chat { position: absolute; bottom: 90px; right: 0; width: 380px; background: var(--dark-card); border-radius: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); display: none; flex-direction: column; max-height: 600px; }
.luky-chat.active { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.luky-header { background: var(--gradient-main); padding: 15px 20px; display: flex; align-items: center; gap: 15px; border-radius: 25px 25px 0 0; }
.luky-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: white; }
.luky-avatar img { width: 100%; height: 100%; object-fit: cover; }
.luky-info { flex: 1; }
.luky-info h4 { color: white; font-size: 16px; margin: 0; }
.luky-status { color: rgba(255,255,255,0.9); font-size: 12px; }
.luky-close { background: rgba(255,255,255,0.2); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.luky-close:hover { background: rgba(255,255,255,0.4); }

.luky-response-box { background: rgba(45, 212, 191, 0.15); border: 2px solid var(--aguamarine); border-radius: 15px; padding: 15px; margin: 10px 15px; display: none; position: relative; animation: slideDown 0.3s ease; }
.luky-response-box.active { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.response-content { color: white; font-size: 15px; line-height: 1.5; padding-right: 30px; }
.close-response { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.2); border: none; color: white; width: 25px; height: 25px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.close-response:hover { background: rgba(255,255,255,0.4); }

.luky-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; max-height: 200px; }
.message { padding: 12px 16px; border-radius: 15px; max-width: 85%; font-size: 15px; line-height: 1.5; color: white; }
.message.bot { background: rgba(255,255,255,0.1); align-self: flex-start; border-bottom-left-radius: 5px; }
.message.user { background: var(--gradient-main); align-self: flex-end; border-bottom-right-radius: 5px; }

.luky-options { padding: 15px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,0.05); max-height: 250px; overflow-y: auto; }
.luky-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px; border-radius: 10px; cursor: pointer; text-align: left; font-size: 14px; transition: all 0.3s; }
.luky-btn:hover { background: rgba(45, 212, 191, 0.2); border-color: var(--aguamarine); }

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .ceo-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .pricing-card.featured { transform: none; }
    .flip-card { height: 480px; }
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--dark-bg); flex-direction: column; justify-content: center; transition: right 0.3s; padding: 40px; }
    .nav-menu.active { right: 0; }
    .hero-title { font-size: 36px; }
    .section-title { font-size: 32px; }
    .luky-chat { width: 320px; right: -10px; bottom: 85px; }
    .luky-response-box { margin: 10px; }
    .cube { width: 150px; height: 150px; }
    .cube-face { width: 150px; height: 150px; font-size: 40px; }
    .cube-face.front  { transform: translateZ(75px); } .cube-face.back   { transform: rotateY(180deg) translateZ(75px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(75px); } .cube-face.left   { transform: rotateY(-90deg) translateZ(75px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(75px); } .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
    .flip-card { height: 450px; }
}