/* ============================================
   STAISA - Página en Construcción
   Servicios Técnicos y Automatización Industrial
   ============================================ */

/* Fuente corporativa */
@font-face {
    font-family: 'GE Inspira';
    src: url('font/GE Inspira Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #FE0000;
    --navy: #1A3765;
    --navy-dark: #0f2347;
    --white: #FFFFFF;
    --black: #111111;
    --glass-bg: rgba(26, 55, 101, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
}

html, body {
    height: 100%;
    font-family: 'GE Inspira', 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

/* ======== Background ======== */
.page-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: brightness(0.6) contrast(1.1);
    z-index: 0;
}

/* Dark overlay gradient for readability */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 35, 71, 0.70) 0%,
        rgba(15, 35, 71, 0.40) 40%,
        rgba(15, 35, 71, 0.75) 100%
    );
    z-index: 1;
}

/* ======== Main Card (Glassmorphism) ======== */
.card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 3.5rem;
    max-width: 620px;
    width: 90%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: fadeInUp 1s ease-out forwards;
}

/* ======== Logo ======== */
.logo {
    width: 280px;
    max-width: 85%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    animation: fadeInUp 1s 0.2s ease-out both;
}

/* ======== Divider ======== */
.divider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), #ff4444);
    margin-bottom: 1.8rem;
    animation: expandWidth 0.8s 0.5s ease-out both;
}

/* ======== Typography ======== */
.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s 0.4s ease-out both;
}

.subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 2.2rem;
    max-width: 440px;
    animation: fadeInUp 1s 0.6s ease-out both;
}

/* ======== Progress bar ======== */
.progress-wrapper {
    width: 100%;
    max-width: 360px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.8s ease-out both;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ff5555);
    border-radius: 3px;
    animation: progressGrow 2s 1.2s ease-out forwards;
    box-shadow: 0 0 12px rgba(254, 0, 0, 0.4);
}

/* ======== Contact info ======== */
.contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    animation: fadeInUp 1s 1s ease-out both;
}

.contact svg {
    width: 18px;
    height: 18px;
    fill: var(--red);
    flex-shrink: 0;
}

.contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--white);
}

/* ======== Corner accents ======== */
.corner-accent {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 2;
    opacity: 0.35;
}

.corner-accent--tl {
    top: 16px;
    left: 16px;
    border-top: 3px solid var(--red);
    border-left: 3px solid var(--red);
    border-radius: 4px 0 0 0;
}

.corner-accent--br {
    bottom: 16px;
    right: 16px;
    border-bottom: 3px solid var(--red);
    border-right: 3px solid var(--red);
    border-radius: 0 0 4px 0;
}

/* ======== Floating particles ======== */
.particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; animation-duration: 11s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; animation-duration: 13s; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; animation-duration: 16s; animation-delay: 6s; }
.particle:nth-child(8) { left: 60%; animation-duration: 9s;  animation-delay: 2.5s; }

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

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes progressGrow {
    to {
        width: 15%;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* ======== Responsive ======== */
@media (max-width: 600px) {
    .card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .logo {
        width: 220px;
        margin-bottom: 1.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .corner-accent {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 1.5rem 1rem;
    }

    .logo {
        width: 180px;
    }

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