/* Estilos para Landing Page de Legado */
:root {
    --bg-color: #06060a;
    --glass-bg: rgba(20, 20, 28, 0.45);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-primary: #e2e2e8;
    --text-secondary: #9090a0;
    --accent-gold: #cfaa66;
    --accent-gold-glow: rgba(207, 170, 102, 0.25);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Fondos y Efectos Etéreos */
.ethereal-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, #13131e 0%, var(--bg-color) 100%);
    z-index: -2;
}
.ethereal-orbs {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
    animation: float 20s infinite ease-in-out alternate;
}
.orb-1 { width: 40vw; height: 40vw; background: rgba(207, 170, 102, 0.12); top: -10%; left: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: rgba(80, 80, 150, 0.08); bottom: -20%; right: -10%; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.05); }
}

/* Glassmorphism General */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; position: fixed; width: 100%; top: 0; z-index: 100;
    background: rgba(6, 6, 10, 0.7); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--accent-gold); font-style: italic; }
.nav-links a { color: var(--text-primary); text-decoration: none; margin-left: 2.5rem; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-gold); }

/* Botones */
.btn-primary {
    display: inline-block; padding: 1rem 2.2rem;
    background: linear-gradient(135deg, #cfaa66, #9b7e47);
    color: #0a0a0a; border-radius: 12px; font-weight: 600;
    text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 25px var(--accent-gold-glow); background: linear-gradient(135deg, #dfbc78, #a98a4e); }

.btn-outline {
    display: inline-block; padding: 0.8rem 1.8rem;
    border: 1.5px solid var(--accent-gold); color: var(--accent-gold);
    border-radius: 12px; text-decoration: none; transition: all 0.3s; background: transparent; cursor: pointer; font-weight: 600;
}
.btn-outline:hover { background: rgba(207, 170, 102, 0.1); transform: translateY(-2px); box-shadow: 0 5px 15px var(--accent-gold-glow); }

/* Secciones */
section { padding: 9rem 5% 5rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: 3rem; text-align: center; margin-bottom: 1rem; color: #fff; }
.section-desc { text-align: center; color: var(--text-secondary); margin-bottom: 4rem; font-size: 1.1rem; max-width: 600px; }

/* 1. Hero Presentation */
.hero-content { max-width: 850px; padding: 5rem 3rem; text-align: center; animation: fadeInUp 1s ease-out; }
.title { font-family: 'Playfair Display', serif; font-size: 5.5rem; margin-bottom: 1.5rem; color: var(--accent-gold); line-height: 1.1; font-weight: 400; text-shadow: 0 0 20px var(--accent-gold-glow); }
.title em { font-style: italic; }
.subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 3rem; line-height: 1.7; }

/* 2. Features / Bondades */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; max-width: 1200px; width: 100%; }
.feature-card { padding: 3rem 2.5rem; text-align: center; transition: transform 0.4s ease, border-color 0.4s ease; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--accent-gold); }
.feature-icon { font-size: 3.5rem; margin-bottom: 1.5rem; filter: sepia(1) hue-rotate(5deg) saturate(2); }
.feature-card h3 { font-size: 1.6rem; margin-bottom: 1rem; color: #fff; font-family: 'Playfair Display', serif; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }

/* 3. Demo Avatar */
.chat-container { width: 100%; max-width: 700px; padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; }
.chat-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; gap: 1.2rem; background: rgba(0,0,0,0.3); }
.avatar-img { font-size: 2.5rem; background: rgba(255,255,255,0.05); border-radius: 50%; width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--accent-gold); box-shadow: 0 0 15px var(--accent-gold-glow); }
.chat-header h4 { font-size: 1.3rem; color: #fff; margin-bottom: 0.2rem; font-family: 'Playfair Display', serif; }
.status { font-size: 0.85rem; color: var(--accent-gold); display: flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 8px; height: 8px; background-color: var(--accent-gold); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--accent-gold); }

.chat-body { padding: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; background: rgba(0,0,0,0.15); }
.message { max-width: 85%; padding: 1.2rem 1.5rem; border-radius: 18px; position: relative; font-size: 1rem; line-height: 1.6; }
.msg-user { align-self: flex-end; background: rgba(207, 170, 102, 0.1); border: 1px solid rgba(207, 170, 102, 0.3); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border); border-bottom-left-radius: 4px; }
.time { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.6rem; text-align: right; }

.chat-input { padding: 1.5rem 2rem; display: flex; gap: 1rem; border-top: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); }
.chat-input input { flex: 1; padding: 1rem 1.5rem; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.4); color: #fff; font-family: 'Outfit'; font-size: 1rem; }
.chat-input button { padding: 0 1.5rem; border-radius: 12px; background: rgba(255,255,255,0.1); color: var(--text-secondary); border: 1px solid var(--glass-border); cursor: not-allowed; font-weight: 600; text-transform: uppercase; }

/* 4. Auth Section */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 950px; width: 100%; }
.auth-card { padding: 3.5rem 3rem; display: flex; flex-direction: column; }
.admin-card { background: rgba(10, 10, 20, 0.6); }
.auth-card h3 { font-size: 1.6rem; margin-bottom: 1rem; color: #fff; font-family: 'Playfair Display', serif; }
.auth-card p { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }

.auth-form { display: flex; flex-direction: column; gap: 1.2rem; }
.auth-form input { padding: 1.1rem 1.5rem; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); color: #fff; font-family: 'Outfit'; font-size: 1rem; transition: border-color 0.3s; }
.auth-form input:focus { border-color: var(--accent-gold); outline: none; box-shadow: 0 0 10px rgba(207, 170, 102, 0.1); }
.auth-form button { margin-top: 0.5rem; }

.footer { text-align: center; padding: 2rem; color: var(--text-secondary); border-top: 1px solid var(--glass-border); font-size: 0.9rem; background: rgba(0,0,0,0.5); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .auth-grid { grid-template-columns: 1fr; }
    .title { font-size: 3.5rem; }
    .nav-links { display: none; }
    section { padding-top: 7rem; min-height: auto; margin-bottom: 4rem; }
    .hero-content { padding: 3rem 1.5rem; }
    .chat-container, .auth-card { padding: 2rem 1.5rem; }
}
