/* reglas.css - Estilo profesional para las reglas del juego */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #39B54A 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Efecto de fondo animado */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: backgroundMove 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3),
                0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Título principal */
.container h1 {
    background: linear-gradient(135deg, #39B54A 0%, #00A14B 100%);
    color: white;
    padding: 35px 40px;
    margin: 0;
    font-size: 2.8em;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 5px solid #FFD700;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.container h1::before {
    content: '📜';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5em;
    opacity: 0.3;
}

.container h1::after {
    content: '📜';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5em;
    opacity: 0.3;
}

/* Secciones */
section {
    padding: 35px 45px;
    margin: 0;
    border-bottom: 2px solid #e8f5e8;
    animation: fadeInUp 0.6s ease-out backwards;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
    border-bottom: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Títulos de sección */
section h2 {
    color: #39B54A;
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 50px;
}

section h2::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
}

section:nth-child(1) h2::before {
    content: '🎯';
}

section:nth-child(2) h2::before {
    content: '⚙️';
}

section:nth-child(3) h2::before {
    content: '🎁';
}

/* Párrafos */
section p {
    color: #333;
    font-size: 1.15em;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(57, 181, 74, 0.05), rgba(255, 215, 0, 0.05));
    border-left: 4px solid #39B54A;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

/* Listas */
section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

section ul li {
    color: #333;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 18px;
    padding: 18px 20px;
    padding-left: 60px;
    background: white;
    border-left: 4px solid #00A14B;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

section ul li:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(57, 181, 74, 0.2);
    background: #f8fff8;
}

section ul li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #39B54A, #00A14B);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 3px 10px rgba(57, 181, 74, 0.3);
}

/* Strong dentro de listas */
section ul li strong {
    color: #00A14B;
    font-weight: 700;
    font-size: 1.05em;
}

/* Lista de comodines especial */
.lifeline-list li {
    border-left-color: #FFD700;
}

.lifeline-list li::before {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    content: '🎁';
}

.lifeline-list li:nth-child(1)::before {
    content: '50/50';
    font-size: 0.7em;
}

.lifeline-list li:nth-child(2)::before {
    content: '📞';
}

.lifeline-list li:nth-child(3)::before {
    content: '🔄';
}

.lifeline-list li:nth-child(4)::before {
    content: '👥';
}

/* Botón de volver */
.btn-secondary {
    display: block;
    width: calc(100% - 90px);
    max-width: 400px;
    margin: 35px auto;
    padding: 18px 40px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: ' ';
    font-size: 1.3em;
    margin-right: 10px;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.btn-secondary:hover::after {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4349 100%);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
}

.btn-secondary:active {
    transform: translateY(-2px);
}

/* Decoración adicional */
.container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(57, 181, 74, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .container {
        border-radius: 25px;
    }

    .container h1 {
        font-size: 2.2em;
        padding: 30px 25px;
        letter-spacing: 2px;
    }

    .container h1::before,
    .container h1::after {
        font-size: 2em;
    }

    section {
        padding: 30px 25px;
    }

    section h2 {
        font-size: 1.7em;
        padding-left: 45px;
    }

    section h2::before {
        font-size: 1.2em;
    }

    section p {
        font-size: 1.05em;
        padding: 18px;
    }

    section ul li {
        font-size: 1.05em;
        padding: 16px 18px;
        padding-left: 55px;
    }

    .btn-secondary {
        width: calc(100% - 50px);
        font-size: 1.1em;
        padding: 16px 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }

    .container {
        border-radius: 20px;
    }

    .container h1 {
        font-size: 1.8em;
        padding: 25px 20px;
        letter-spacing: 1.5px;
    }

    .container h1::before,
    .container h1::after {
        display: none;
    }

    section {
        padding: 25px 20px;
    }

    section h2 {
        font-size: 1.5em;
        letter-spacing: 1px;
        padding-left: 40px;
    }

    section h2::before {
        font-size: 1em;
    }

    section p {
        font-size: 1em;
        padding: 15px;
    }

    section ul li {
        font-size: 1em;
        padding: 14px 16px;
        padding-left: 50px;
        margin-bottom: 15px;
    }

    section ul li::before {
        width: 26px;
        height: 26px;
        font-size: 0.9em;
        left: 15px;
    }

    .lifeline-list li:nth-child(1)::before {
        font-size: 0.6em;
    }

    .btn-secondary {
        width: calc(100% - 40px);
        font-size: 1em;
        padding: 15px 30px;
        letter-spacing: 1.5px;
    }
}