:root {
    --bg-dark: #1a1c20;
    --primary: #d4a373;
    /* Earthy Gold/Tan */
    --accent: #ccd5ae;
    /* Soft Green */
    --text: #fefae0;
    --text-muted: #e9edc9;
    --glass: rgba(26, 28, 32, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Backgrounds */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #2c3e50 0%, #000000 100%);
    z-index: -2;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('nilo.jpg') no-repeat center center/cover;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Header */
/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: #1a1c20 !important;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #e9edc9;
}

/* Mobile Header */
@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* Home Page */
.home-main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-content {
    z-index: 1;
}

.badge {
    background: rgba(212, 163, 115, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid var(--primary);
}

h1 {
    font-size: 5rem;
    line-height: 1;
    margin: 2rem 0;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background: var(--primary);
    color: #1a1c20;
}

.btn.primary:hover {
    background: #fff;
    transform: scale(1.05);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Info Page */
.info-main {
    padding: 8rem 10% 4rem;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

/* Passport Style */
.passport-container {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: rgba(255, 248, 220, 0.95);
    /* Creamy paper look */
    color: #2c3e50;
    /* Dark ink color */
    border: 2px solid #d4a373;
    position: relative;
    overflow: hidden;
}

.passport-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.ancce.es/img/logo-ancce.png') no-repeat center center;
    background-size: 300px;
    opacity: 0.05;
    pointer-events: none;
}

.passport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #d4a373;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.ancce-logo {
    height: 80px;
    opacity: 1;
}

.passport-title {
    text-align: center;
}

.passport-title h3 {
    color: #8b4513;
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.passport-title p {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.flag {
    font-size: 2.5rem;
}

.passport-details {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 0.5rem;
}

.detail-row .label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 700;
}

.detail-row .value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-row .value.highlight {
    color: #8b4513;
    font-size: 1.3rem;
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Chat Page */
.chat-main {
    height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: rgba(26, 28, 32, 0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    max-width: 75%;
    font-size: 1rem;
    line-height: 1.5;
}

.message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--primary);
    color: #1a1c20;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary);
}

button#send-btn {
    background: var(--primary);
    border: none;
    width: 60px;
    border-radius: 15px;
    color: #1a1c20;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

button#send-btn:hover {
    transform: scale(1.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.busbeeck-card {
    border-color: var(--accent);
    background: rgba(204, 213, 174, 0.1);
}

.button-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 15px;
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn.outline:hover {
    background: var(--primary);
    color: #1a1c20;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}