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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    position: relative;
}

/* Patrón de fondo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        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: 40px 40px;
    pointer-events: none;
}

.container {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* ===== GUARDIA DE SEGURIDAD ===== */
.guard-container {
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.guard {
    position: relative;
    width: 200px;
    height: 350px;
    animation: guardIdle 4s ease-in-out infinite;
}

@keyframes guardIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Gorra */
.hat {
    position: absolute;
    width: 110px;
    height: 40px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-radius: 12px 12px 0 0;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hat::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 14px;
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    border-radius: 6px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hat-badge {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 50%;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow:
        0 0 15px rgba(251, 191, 36, 0.6),
        inset 0 2px 4px rgba(255,255,255,0.3);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.6), inset 0 2px 4px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.9), inset 0 2px 4px rgba(255,255,255,0.5); }
}

/* Cabeza */
.head {
    position: absolute;
    width: 100px;
    height: 110px;
    background: linear-gradient(180deg, #fcd9b6 0%, #e8b796 100%);
    border-radius: 48% 48% 42% 42%;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow:
        inset -5px -5px 15px rgba(0,0,0,0.1),
        inset 5px 5px 15px rgba(255,255,255,0.2);
}

.face {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cejas - más expresivas */
.eyebrow {
    position: absolute;
    width: 26px;
    height: 5px;
    background: linear-gradient(90deg, #4a4a4a, #3d3d3d);
    border-radius: 3px;
    top: 30px;
}

.eyebrow-left {
    left: 15px;
    transform: rotate(-8deg);
    transform-origin: right center;
    animation: eyebrowLeft 4s ease-in-out infinite;
}

.eyebrow-right {
    right: 15px;
    transform: rotate(8deg);
    transform-origin: left center;
    animation: eyebrowRight 4s ease-in-out infinite;
}

@keyframes eyebrowLeft {
    0%, 40%, 100% { transform: rotate(-8deg) translateY(0); }
    20% { transform: rotate(-15deg) translateY(-2px); }
    60% { transform: rotate(-5deg) translateY(1px); }
}

@keyframes eyebrowRight {
    0%, 40%, 100% { transform: rotate(8deg) translateY(0); }
    20% { transform: rotate(15deg) translateY(-2px); }
    60% { transform: rotate(5deg) translateY(1px); }
}

/* Ojos mejorados */
.eye {
    position: absolute;
    width: 22px;
    height: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    top: 42px;
    box-shadow:
        inset 0 3px 6px rgba(0,0,0,0.15),
        0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.eye-left { left: 18px; }
.eye-right { right: 18px; }

.pupil {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #4a5568 0%, #1a202c 60%, #000 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

.pupil::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 2px;
    right: 2px;
}

/* Parpadeo natural */
.eye::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #fcd9b6 0%, #e8b796 100%);
    top: -100%;
    left: 0;
    z-index: 10;
    animation: blink 4s ease-in-out infinite;
}

@keyframes blink {
    0%, 45%, 55%, 100% { top: -100%; }
    48%, 52% { top: 0; }
}

/* Bigote más detallado */
.mustache {
    position: absolute;
    width: 50px;
    height: 10px;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
}

.mustache::before,
.mustache::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 10px;
    background: linear-gradient(180deg, #4a4a4a 0%, #2d2d2d 100%);
    top: 0;
    border-radius: 0 0 50% 50%;
}

.mustache::before {
    left: -3px;
    transform: rotate(-5deg);
}

.mustache::after {
    right: -3px;
    transform: rotate(5deg);
}

/* Boca con expresiones */
.mouth {
    position: absolute;
    width: 24px;
    height: 10px;
    border: 3px solid #a0616a;
    border-top: none;
    border-radius: 0 0 50% 50%;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouthMove 8s ease-in-out infinite;
}

@keyframes mouthMove {
    0%, 30%, 70%, 100% { width: 24px; height: 10px; }
    35%, 65% { width: 20px; height: 8px; }
    50% { width: 26px; height: 12px; }
}

/* Cuerpo más detallado */
.body {
    position: absolute;
    width: 130px;
    height: 170px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-radius: 25px 25px 35px 35px;
    top: 138px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow:
        inset 5px 0 20px rgba(255,255,255,0.05),
        0 10px 30px rgba(0,0,0,0.3);
}

/* Solapa del uniforme */
.body::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 40px solid #374151;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.body::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.badge {
    position: absolute;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    color: #1a1a1a;
    top: 50px;
    left: 12px;
    letter-spacing: 1px;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.3);
    z-index: 2;
}

/* Brazos con movimiento natural */
.arm {
    position: absolute;
    width: 38px;
    height: 110px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-radius: 18px;
    top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.arm-left {
    left: -28px;
    transform-origin: top center;
    animation: armWave 3s ease-in-out infinite;
}

.arm-right {
    right: -28px;
    animation: armIdle 4s ease-in-out infinite;
}

@keyframes armWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-25deg); }
    50% { transform: rotate(-20deg); }
    75% { transform: rotate(-30deg); }
}

@keyframes armIdle {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(8deg); }
}

/* Mano con señal de STOP mejorada */
.hand-stop {
    position: absolute;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    border-radius: 8px;
    bottom: -35px;
    left: -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
    box-shadow:
        0 8px 25px rgba(239, 68, 68, 0.5),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    animation: stopSign 2s ease-in-out infinite;
    border: 3px solid rgba(255,255,255,0.2);
}

.hand-stop span {
    color: white;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes stopSign {
    0%, 100% {
        transform: rotate(-10deg) scale(1);
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5), inset 0 2px 4px rgba(255,255,255,0.2);
    }
    50% {
        transform: rotate(-10deg) scale(1.05);
        box-shadow: 0 12px 35px rgba(239, 68, 68, 0.7), inset 0 2px 4px rgba(255,255,255,0.3);
    }
}

/* ===== PANEL DE INFORMACIÓN ===== */
.info-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 45px;
    max-width: 420px;
    animation: panelSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 25px 50px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

@keyframes panelSlide {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.status-bar span {
    color: #ef4444;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 3px;
}

.info-panel h1 {
    color: #f1f5f9;
    font-size: 1.9rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.message-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.message-box:hover {
    background: rgba(0, 0, 0, 0.3);
    border-left-color: #60a5fa;
}

.main-message {
    color: #60a5fa;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.sub-message {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
}

.info-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.clock {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 2.2rem;
    color: #f1f5f9;
    margin-bottom: 12px;
    letter-spacing: 4px;
    font-weight: 500;
}

.info-footer p {
    color: #64748b;
    font-size: 0.9rem;
}

.company-brand {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.company-brand span {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ===== SEÑAL FLOTANTE ===== */
.floating-sign {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    opacity: 0.2;
    animation: floatSign 5s ease-in-out infinite;
}

@keyframes floatSign {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(3deg); }
    75% { transform: translateY(-5px) rotate(-3deg); }
}

.prohibition-sign circle {
    stroke: #ef4444;
}

.prohibition-sign line {
    stroke: #ef4444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 50px;
    }

    .guard {
        transform: scale(0.85);
    }

    .info-panel {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .guard {
        transform: scale(0.7);
    }

    .info-panel {
        padding: 30px;
    }

    .info-panel h1 {
        font-size: 1.5rem;
    }

    .clock {
        font-size: 1.6rem;
    }

    .floating-sign {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}
