:root {
    --primary-color: #00c853;
    --bg-app: #f8f9fa;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.15);
    position: relative;
    overflow-x: hidden;
}

.app-header {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.main-banner {
    background-color: var(--primary-color);
    padding: 40px 20px 80px 20px;
    color: white;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.banner-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.prize-text h1 { font-weight: 900; font-size: 2.5rem; line-height: 1; margin-bottom: 10px; }

.participation-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 380px;
    width: 100%;
}

.btn-participar {
    background: var(--primary-color);
    color: white;
    width: 100%;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 15px;
    padding: 30px;
}

.num-item {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    transition: 0.2s;
}

.num-item:hover { border-color: var(--primary-color); transform: translateY(-3px); }

/* Estilos de Mensajes Especiales */
.msg-reemplazo-banner {
    background: rgba(255,255,255,0.1);
    border: 2px dashed #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
}

.msg-reemplazo-grid {
    background: #fff;
    margin: 20px 20px;
    padding: 20px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee;
}

.modal-content { border-radius: 25px; overflow: hidden; border: none; }
.modal-header-custom { color: white; padding: 25px; text-align: center; }



/* Sección de Grupos Rediseñada */
.footer-wa-section {
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    margin: 15px;
}

.wa-card-link {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px; /* Reducido para ahorrar espacio */
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.85rem; /* Texto un poco más pequeño */
    border: 1px solid #eee;
    transition: all 0.2s ease;
    height: 100%; /* Para que las de la misma fila midan igual */
}

.wa-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.wa-icon-box {
    width: 35px; /* Tamaño reducido */
    height: 35px; /* Tamaño reducido */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Combinaciones de Colores Solicitadas */
.bg-wa-blue   { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3); }
.bg-wa-red    { background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%); box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3); }
.bg-wa-yellow { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3); }

.wa-card-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta el texto si es muy largo en móviles */
}

/* Animación de pulso para la principal */
.pulse-blue { animation: pulse-blue-anim 2s infinite; }
@keyframes pulse-blue-anim {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}


/* Redes Sociales Footer */
.social-footer {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 10px 0;
}

.social-icon-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.social-icon-link:hover {
    transform: translateY(-5px) scale(1.1);
    opacity: 0.8;
}