:root {
    --primary: #d63384;
    /* Rosa fuerte */
    --primary-hover: #b02a6b;
    --bg-gradient: linear-gradient(135deg, #fdfbfd 0%, #f3e5f5 100%);
    --text: #2c3e50;
    --card-bg: #ffffff;
    --border: #e9ecef;
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.container {
    width: 90%;
    max-width: 500px;
    margin-top: 30px;
    padding-bottom: 50px;
}

/* Vistas y Transiciones */
.view {
    animation: fadeIn 0.5s ease-in-out;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tipografía y Elementos */
h1 {
    font-size: 1.8rem;
    text-align: center;
}

h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

/* Inputs y Formularios */
input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary);
    outline: none;
}

.input-group {
    display: flex;
    gap: 10px;
}

.row {
    display: flex;
    gap: 10px;
}

/* Botones */
button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #666;
    padding: 12px 24px;
}

.btn-secondary:hover {
    color: var(--text);
    background: #f0f0f0;
}

.btn-icon {
    width: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
}

.actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* Lista de Participantes */
.participants-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
}

.participants-list li {
    background: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Tarjetas de Link y Resumen */
.success-card,
.reveal-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.copy-box {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
    margin: 20px 0;
}

.copy-box input {
    border: none;
    background: transparent;
    margin: 0;
}

.copy-box button {
    background: var(--text);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Grid de Invitados */
.grid-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.name-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.name-card:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.name-card.disabled {
    opacity: 0.6;
    background: #f9f9f9;
    cursor: default;
}

/* Ruleta */
.roulette-box {
    margin: 30px 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    min-height: 50px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

/* Confeti */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}