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

:root {
    --bg-primary: #0a0a0c;
    --card-bg: rgba(170, 34, 34, 0.85); /* #aa2222 with opacity for glassmorphism */
    --card-border: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --text-muted: #636366;
    
    /* Primary Accent: White (matching the logo) */
    --accent-primary: #ffffff;
    --accent-hover: #e5e5ea;
    --accent-glow: rgba(255, 255, 255, 0.2);
    
    /* Secondary Accent: Glass/White */
    --secondary-bg: rgba(255, 255, 255, 0.06);
    --secondary-border: rgba(255, 255, 255, 0.15);
    --secondary-hover-bg: #ffffff;
    --secondary-hover-text: #0a0a0c;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-primary);
    /* Subtle blueprint / technical drawing grid background overlaying a dark radial gradient */
    background-image: 
        radial-gradient(circle at center, rgba(24, 24, 29, 0.8) 0%, var(--bg-primary) 100%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center center;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Sophisticated ambient light behind the card */
body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    z-index: 1;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    animation: cardAppear 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 85px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    mix-blend-mode: screen; /* Makes the logo's black background transparent */
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent);
    margin: 1.5rem 0;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    padding: 1.1rem 2rem;
    border-radius: 14px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

/* Focus outline for accessibility */
.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* Button 1: Web Oficial (Secondary style, sleek glass dark) */
.btn-secondary {
    background: var(--secondary-bg);
    border: 1px solid var(--secondary-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--secondary-hover-bg);
    border-color: var(--secondary-hover-bg);
    color: var(--secondary-hover-text);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

/* Button 2: Despacho Remoto (Primary style, gold/bronze) */
.btn-primary {
    background: var(--accent-primary);
    border: 1px solid transparent;
    color: #0a0a0c;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 
        0 10px 25px var(--accent-glow),
        0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Subtle arrow animation in buttons */
.btn::after {
    content: '→';
    position: relative;
    left: 8px;
    opacity: 0.7;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover::after {
    transform: translateX(4px);
}

/* Footer layout */
footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .card {
        padding: 2.5rem 1.75rem;
        border-radius: 24px;
    }
    
    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}
