:root {
    --dark: #021526;
    --navy: #03346E;
    --blue: #ffffff;
    --cream: #ffffff;
    --black: #000000;
    --white: #fff;
}

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

/* Body */
body {
    background-color: var(--dark);
    color: var(--cream);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Background */
body::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(var(--navy) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: 0;
}

body.loading { overflow: hidden; }

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.pen-container {
    position: relative;
    width: 100px;
    height: 50px;
    margin-bottom: 20px;
}

.nib {
    width: 25px;
    height: 25px;
    background-color: var(--blue);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    position: absolute;
    animation: draw-motion 1.5s infinite ease-in-out;
}

.line {
    position: absolute;
    height: 3px;
    background-color: var(--cream);
    bottom: 0;
    animation: line-grow 1.5s infinite ease-in-out;
}

/* Animaciones */
@keyframes draw-motion {
    0%, 100% { transform: translate(0, 0) rotate(-15deg); }
    50% { transform: translate(50px, 0) rotate(20deg); }
}

@keyframes line-grow {
    0%, 100% { width: 0; opacity: 0; }
    50% { width: 60px; opacity: 1; }
}

/* Contenedor Principal */
.main-container {
    position: relative;
    z-index: 1;
    text-align: center;
    border: 5px solid var(--black);
    padding: 3rem;
    background-color: var(--dark);
    box-shadow: 15px 15px 0px var(--navy);
    max-width: 90%;
}

/* Logo */
.logo-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-image {
    max-width: clamp(200px, 40vw, 400px);
    height: auto;
    display: block;
}

.status-tag {
    background: var(--blue);
    color: var(--dark);
    padding: 5px 15px;
    font-weight: bold;
    transform: skewX(-15deg);
    margin-bottom: 20px;
    display: inline-block;
}

h2 {
    color: var(--cream);
    font-size: 1.2rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    height: 4px;
    background: var(--cream);
    width: 80px;
    margin: 20px auto;
}

/* Footer Copyright */
.copyright {
    position: absolute;
    bottom: 20px;
    font-size: 0.7rem;
    color: var(--blue);
    opacity: 0.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}
