/* ==========================================================================
   HW Sorteos & Rifeo System - Estilos Frontend y Admin
   ========================================================================== */

.hw-sorteos-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hw-banner-header {
    background-color: #ff6600;
    color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
}

.hw-banner-header h2 {
    color: #ffffff !important;
    margin: 0;
    font-weight: 700;
}

/* Contenedor del Panda Pixar acostado sobre el letrero */
.hw-cute-panda-container {
    position: absolute;
    top: -35px;
    left: 40px;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

@keyframes pandaBlink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

.hw-panda-blink {
    transform-origin: center;
    animation: pandaBlink 2s infinite;
}

.hw-svg-banner-wrap {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

/* ==========================================================================
   Cuadro de Saldos Animado (Efecto Billetes y Monedas Cayendo estilo Pixar)
   ========================================================================== */
.hw-wealth-box {
    position: relative;
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #388e3c);
    color: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(27, 94, 32, 0.3);
    overflow: hidden;
    border: 2px solid #a5d6a7;
}

.hw-wealth-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.hw-wealth-content h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hw-balances-grid {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hw-balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 18px;
    border-radius: 8px;
    flex: 1;
    min-width: 130px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hw-b-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c8e6c9;
    margin-bottom: 4px;
}

.hw-b-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #ffeb3b;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hw-rates-note {
    font-size: 11px;
    color: #e8f5e9;
    opacity: 0.9;
    margin-top: 8px;
}

/* Animación de caída de billetes y monedas estilo Pixar */
.hw-falling-coins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hw-falling-item {
    position: absolute;
    top: -30px;
    animation: hwFall linear infinite;
    opacity: 0.8;
}

@keyframes hwFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(180px) rotate(360deg);
        opacity: 0;
    }
}

.hw-item-1 { left: 10%; animation-duration: 3.2s; animation-delay: 0s; }
.hw-item-2 { left: 30%; animation-duration: 2.5s; animation-delay: 1.2s; }
.hw-item-3 { left: 55%; animation-duration: 4.0s; animation-delay: 0.5s; }
.hw-item-4 { left: 75%; animation-duration: 2.8s; animation-delay: 1.8s; }
.hw-item-5 { left: 90%; animation-duration: 3.5s; animation-delay: 0.9s; }

/* Formularios y otros elementos */
.hw-form-row {
    margin-bottom: 15px;
}

.hw-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.hw-form-row input,
.hw-form-row select,
.hw-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Panel interactivo de observaciones e instrucciones (Naranja y Blanco) */
#hw-event-details-panel {
    background-color: #ffffff;
    border: 2px solid #ff6600;
    color: #333333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.1);
}

#hw-event-details-panel h4 {
    color: #ff6600;
    margin-top: 0;
    border-bottom: 1px solid #ff6600;
    padding-bottom: 5px;
}

#hw-event-prizes-list {
    margin: 10px 0;
    padding-left: 20px;
    line-height: 1.5;
    color: #333333;
}

#hw-event-details-panel > div:last-child {
    background-color: #ff6600;
    color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.hw-btn-primary {
    background-color: #ff6600 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.hw-btn-primary:hover {
    background-color: #e55c00 !important;
}

.hw-notice-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ffeeba;
}

.hw-digital-ticket {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
    animation: hwFadeIn 0.5s ease-in-out;
}

.hw-digital-ticket h3 {
    margin-top: 0;
    color: #fff;
}

.hw-badge {
    background: #fff;
    color: #ff6600;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.hw-warning-box {
    background: rgba(0,0,0,0.15);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 13px;
}

.hw-red-cross {
    color: red;
    font-weight: bold;
    font-size: 16px;
}

/* Estilos Admin Panel */
.hw-admin-header {
    background-color: #ff6600;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hw-admin-header h1 {
    color: #ffffff !important;
    margin: 0;
}

.hw-admin-card {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

@keyframes hwFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}