/* --- Estilos Generales LOTOMAX --- */
.lotomax-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
}

.lotomax-container h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.lotomax-container h4 {
    color: #34495e;
}

/* --- Mensajes --- */
.lotomax-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid;
}
.lotomax-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.lotomax-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* --- Formularios --- */
.lotomax-field { margin-bottom: 15px; }
.lotomax-field label { display: block; margin-bottom: 5px; font-weight: bold; }
.lotomax-field input[type="email"], .lotomax-field input[type="text"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.lotomax-field-checkbox { display: flex; align-items: center; }
.lotomax-field-checkbox input { margin-right: 10px; }
.lotomax-field-checkbox label { margin-bottom: 0; font-weight: normal; }

/* --- Botones --- */
.lotomax-button {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.lotomax-button:hover { background-color: #2980b9; color: white; }
.lotomax-button.secondary { background-color: #95a5a6; }
.lotomax-button.secondary:hover { background-color: #7f8c8d; }
.lotomax-actions { display: flex; justify-content: space-between; margin-top: 20px; }

/* --- Selector de Números --- */
.lotomax-number-selector h4 { margin-bottom: 10px; }
.lotomax-grid { display: grid; gap: 5px; }
.lotomax-grid.main-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.lotomax-grid.ball-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }

.lotomax-number-label { position: relative; display: inline-block; }
.lotomax-number-label input { opacity: 0; position: absolute; width: 100%; height: 100%; cursor: pointer; }
.lotomax-number-label span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid #bdc3c7;
    border-radius: 50%; background: #fff; transition: all 0.2s; user-select: none;
}
.lotomax-number-label input:checked + span { background-color: #3498db; color: white; border-color: #2980b9; font-weight: bold; }
.ball-grid .lotomax-number-label input:checked + span { background-color: #e74c3c; border-color: #c0392b; }
.lotomax-number-label input:disabled + span { background-color: #ecf0f1; color: #bdc3c7; cursor: not-allowed; }
.lotomax-number-label input:checked:disabled + span { background-color: #3498db; color: white; opacity: 0.7; }

/* --- Resultados --- */
.lotomax-draw-results { text-align: center; }
.lotomax-numbers-display { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.number-bubble { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2em; font-weight: bold; color: white; }
.number-bubble.main { background-color: #3498db; }
.number-bubble.ball { background-color: #e74c3c; }

.lotomax-winners-list h5 { font-size: 1.1em; color: #2c3e50; margin-top: 15px; margin-bottom: 5px; }
.lotomax-winners-list ul { list-style-type: disc; padding-left: 20px; }

/* --- Mis Cartillas --- */
.lotomax-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.lotomax-table th, .lotomax-table td { border: 1px solid #ddd; padding: 10px; text-align: left; }
.lotomax-table th { background-color: #f2f2f2; }

/* --- NUEVO: Estilos Zona de Anuncios --- */
.lotomax-ads-wrapper {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Caja del mensaje de éxito (con líneas separadoras) */
.lotomax-success-box {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    margin: 20px 0;
    font-size: 1.1em;
    color: #333;
    line-height: 1.5;
}

.lotomax-msg-part1 {
    font-weight: bold;
    color: #27ae60; /* Verde éxito */
}

.lotomax-sponsor-text {
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 500;
    color: #444;
}

#lotomax-ad-click-area {
    margin: 10px 0 20px 0;
    padding: 10px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s;
}
#lotomax-ad-click-area:hover { transform: scale(1.02); border-color: #3498db; }
#lotomax-ad-click-area img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* Botón Deshabilitado/Habilitado */
.lotomax-button.disabled { background-color: #bdc3c7; color: #7f8c8d; cursor: not-allowed; pointer-events: none; text-decoration: none; }
.lotomax-button.unlocked { background-color: #27ae60 !important; color: white !important; cursor: pointer !important; pointer-events: auto !important; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transform: scale(1.05); font-weight: bold; }