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

:root {
    --bg-dark: #1A1D24; 
    --bg-panel: rgba(36, 40, 48, 0.7); 
    --primary-green: #3BE13B; /* Original Lime Green */
    --primary-slate: #3F516B; /* Original Slate Blue */
    --primary-cyan: #3dc9b3; /* Teal for accents */
    --text-main: #F8FAFC; 
    --text-muted: #a1a9b0; 
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

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

body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; line-height: 1.7; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 800; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatSmooth { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

.animate-fade-in-up { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.section-padding { padding: 100px 5%; }

nav { position: fixed; top: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(36, 40, 48, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); z-index: 1000; transition: background 0.3s ease; }
.logo { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; letter-spacing: 0px; text-decoration: none; }
.logo-o { color: var(--primary-green); -webkit-text-stroke: 1.5px #FFFFFF; }
.logo-nus { color: var(--primary-slate); text-shadow: none; -webkit-text-stroke: 1.5px #FFFFFF; } /* Borde blanco para resaltar en fondo oscuro */

.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: color 0.3s ease; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-green); }

.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: rgba(36, 40, 48, 0.95); min-width: 250px; box-shadow: 0px 15px 25px 0px rgba(0,0,0,0.5); z-index: 100; border-radius: 8px; border: 1px solid var(--glass-border); backdrop-filter: blur(15px); top: 150%; left: 50%; transform: translateX(-50%); padding: 8px 0; opacity: 0; transition: opacity 0.3s ease, top 0.3s ease; }
.dropdown:hover .dropdown-content { display: block; opacity: 1; top: 100%; }
.dropdown-content a { color: var(--text-main) !important; padding: 12px 20px; text-decoration: none; display: block; font-size: 0.85rem; transition: background 0.2s, color 0.2s; }
.dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--primary-green) !important; }

.btn-primary { background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green)); color: #000; padding: 12px 28px; border: none; border-radius: 30px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(59, 225, 59, 0.3); }

.btn-secondary { background: transparent; color: var(--text-main); padding: 12px 28px; border: 1px solid var(--glass-border); border-radius: 30px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.3s ease, border-color 0.3s ease; display: inline-block; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--primary-cyan); }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; padding: 100px 5% 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 10%; left: -10%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(59, 225, 59, 0.15) 0%, transparent 60%); z-index: -1; }
.hero-content { max-width: 600px; z-index: 2; }
.hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 24px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 20px; }
.hero-visual { width: 50%; display: flex; justify-content: center; align-items: center; z-index: 2; perspective: 1000px;}

.highlight-text { color: var(--primary-green); }

.services-header { text-align: center; margin-bottom: 60px; }
.services-header h2 { font-size: 2.8rem; margin-bottom: 15px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.service-card { background: var(--bg-panel); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px 30px; backdrop-filter: blur(10px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease; display: flex; flex-direction: column; align-items: flex-start; box-shadow: var(--glass-shadow); }
.service-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(59, 225, 59, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 225, 59, 0.1); }
.card-icon-wrapper { width: 60px; height: 60px; background: rgba(59, 225, 59, 0.1); border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; border: 1px solid rgba(59, 225, 59, 0.2); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-main); }
.service-card p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; flex-grow: 1; }

.about-section { display: flex; align-items: center; gap: 60px; background: linear-gradient(90deg, rgba(26,29,36,0) 0%, rgba(36,40,48,0.5) 100%); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.about-img { width: 100%; border-radius: 20px; filter: drop-shadow(0 20px 50px rgba(59, 225, 59, 0.15)); animation: floatSmooth 10s ease-in-out infinite alternate; }

.contact-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(36, 40, 48, 0.8) 100%); text-align: center; }
.contact-box { max-width: 800px; margin: 0 auto; background: var(--bg-panel); padding: 60px; border-radius: 20px; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.contact-box h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-box p { color: var(--text-muted); margin-bottom: 40px; }

footer { padding: 40px 5%; text-align: center; color: var(--text-muted); border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 968px) { .hero { flex-direction: column; justify-content: center; text-align: center; padding-top: 120px; } .hero-content { margin-bottom: 50px; } .hero-actions { justify-content: center; } .hero-visual { width: 100%; } .about-section { flex-direction: column-reverse; text-align: center; } footer { flex-direction: column; gap: 20px; } }

/* Chatbot Placeholder */
.chatbot-btn { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green)); border: none; cursor: pointer; box-shadow: 0 10px 25px rgba(59, 225, 59, 0.4); z-index: 1000; display: flex; justify-content: center; align-items: center; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chatbot-btn:hover { transform: scale(1.1); box-shadow: 0 15px 35px rgba(59, 225, 59, 0.6); }

.chatbot-window { position: fixed; bottom: 110px; right: 30px; width: 360px; background: rgba(26, 29, 36, 0.95); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); backdrop-filter: blur(20px); z-index: 1000; overflow: hidden; transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; }
.chatbot-window.active { transform: translateY(0); opacity: 1; pointer-events: all; }

.chatbot-header { background: rgba(36, 40, 48, 0.8); padding: 20px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.chatbot-header h3 { margin: 0; font-size: 1.1rem; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.chatbot-header .close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.8rem; line-height: 1; transition: color 0.2s; }
.chatbot-header .close-btn:hover { color: var(--primary-green); }

.chatbot-body { padding: 25px 20px; max-height: 350px; overflow-y: auto; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.03)"/></svg>'); }
.chat-msg { margin-bottom: 15px; display: flex; flex-direction: column; }
.chat-msg.bot { align-items: flex-start; }
.chat-msg .bubble { background: rgba(59, 225, 59, 0.08); border: 1px solid rgba(59, 225, 59, 0.2); border-left: 3px solid var(--primary-green); padding: 15px; border-radius: 4px 15px 15px 15px; color: var(--text-main); font-size: 0.95rem; max-width: 90%; line-height: 1.6; }
.chat-msg .time { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; margin-left: 5px; }

.chatbot-input { padding: 15px; border-top: 1px solid var(--glass-border); display: flex; gap: 10px; background: rgba(36, 40, 48, 0.9); }
.chatbot-input input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); padding: 12px 15px; border-radius: 20px; color: var(--text-main); outline: none; font-family: inherit; }
.chatbot-input button { background: var(--primary-green); border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: opacity 0.2s; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(26, 29, 36, 0.98); border-top: 1px solid var(--glass-border); padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 2000; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-content { flex: 1; margin-right: 40px; }
.cookie-content p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.cookie-content a { color: var(--primary-green); text-decoration: underline; }
.cookie-actions { display: flex; gap: 15px; }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--text-muted); padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-family: inherit; font-weight: 500;}
.btn-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }
.btn-accept { background: var(--primary-green); color: #000; border: none; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: 600; transition: 0.3s; font-family: inherit; }
.btn-accept:hover { box-shadow: 0 0 15px rgba(59, 225, 59, 0.4); transform: translateY(-1px); }

@media (max-width: 768px) { .cookie-banner { flex-direction: column; text-align: center; gap: 20px; padding: 25px 20px; } .cookie-content { margin-right: 0; } .cookie-actions { width: 100%; justify-content: center; } }
