:root {
    --bg: #0b0f19;
    --accent: #00d2ff;
    --text: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 2px; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000; padding: 15px 0;
    border-bottom: 1px solid rgba(0, 210, 255, 0.3);
}

.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
}

.logo img { height: 50px; filter: drop-shadow(0 0 5px var(--accent)); }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; transition: var(--transition); font-size: 0.9rem; }
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

/* MENU DESPLEGABLE */
.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background: #0f1420;
    width: 600px; left: 50%; transform: translateX(-50%);
    top: 100%; padding: 25px; border-radius: 12px;
    border: 1px solid var(--accent); box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease forwards; }

.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.drop-column h4 { color: var(--accent); font-size: 0.75rem; margin-bottom: 15px; border-bottom: 1px solid rgba(0,210,255,0.2); padding-bottom: 5px; }
.drop-column a { display: block; font-size: 0.8rem; color: #ccc; text-decoration: none; padding: 5px 0; transition: 0.2s; }
.drop-column a:hover { color: white; padding-left: 5px; }

/* HERO CON PARALLAX */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(11,15,25,0.7), rgba(11,15,25,0.9)), url('img/fondo-hero.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

.glow-tag { background: rgba(0,210,255,0.1); color: var(--accent); padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; border: 1px solid var(--accent); }
.hero h1 { font-size: 3.5rem; margin: 20px 0; line-height: 1.2; }
.hero h1 span { color: var(--accent); text-shadow: 0 0 30px rgba(0,210,255,0.6); }

.btn-primary { background: var(--accent); color: #000; padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; margin-right: 15px; display: inline-block; transition: var(--transition); }
.btn-glass { border: 1px solid var(--accent); color: var(--accent); padding: 12px 30px; border-radius: 5px; text-decoration: none; display: inline-block; transition: var(--transition); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,210,255,0.4); }

/* CARDS SERVICIOS */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; padding: 20px; max-width: 1200px; margin: 0 auto;
}

.card {
    position: relative; height: 400px; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}

.card-img-bg { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); opacity: 0.3; filter: grayscale(50%); }

.card-overlay {
    position: absolute; inset: 0; padding: 40px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(transparent, rgba(11,15,25,1));
}

.card:hover { border-color: var(--accent); transform: translateY(-10px); }
.card:hover .card-img-bg { opacity: 0.6; transform: scale(1.1); filter: grayscale(0%); }

/* CHATBOT */
.chat-trigger {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
    background: var(--accent); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; z-index: 2000;
    box-shadow: 0 0 25px rgba(0,210,255,0.5); font-size: 1.8rem; color: #000;
    transition: var(--transition);
}
.chat-trigger:hover { transform: scale(1.1) rotate(15deg); }

.chat-container {
    position: fixed; bottom: 110px; right: 30px; width: 350px; height: 500px;
    background: #0f1420; border: 1px solid var(--accent); border-radius: 15px;
    display: none; flex-direction: column; z-index: 2000; box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    overflow: hidden;
}

.chat-header { background: rgba(0,210,255,0.2); padding: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--accent); }

.chat-box { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: rgba(0,0,0,0.2); }

.typing { display: flex; gap: 5px; padding: 12px; background: rgba(255,255,255,0.05); border-radius: 12px; width: fit-content; }
.typing span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1s infinite; }

.chat-msg { max-width: 85%; padding: 12px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; animation: slideIn 0.3s ease; }
.chat-msg.bot { background: rgba(255,255,255,0.08); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-msg.user { background: var(--accent); color: #000; align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 500; }

.chat-input-area { padding: 15px; display: flex; gap: 10px; background: #070a11; border-top: 1px solid rgba(0,210,255,0.2); }
.chat-input-area input { flex: 1; background: #1a1f2b; border: 1px solid #333; color: white; padding: 10px; border-radius: 5px; outline: none; }
.chat-input-area button { background: var(--accent); border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; color: #000; }

.option-btn { background: rgba(0,210,255,0.1); border: 1px solid var(--accent); color: var(--accent); padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.3s; width: 100%; margin-top: 5px; font-weight: bold; }
.option-btn:hover { background: var(--accent); color: #000; }

/* FOOTER */
footer { padding: 60px 20px 20px; background: #05070a; border-top: 1px solid rgba(0,210,255,0.1); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.socials a { color: white; font-size: 1.8rem; margin-right: 25px; transition: var(--transition); }
.socials a:hover { color: var(--accent); transform: translateY(-5px); display: inline-block; }

@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 15px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }