﻿@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=JetBrains+Mono:wght@600;700&display=swap');

- {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px;
}

body {
    font-family: 'Fredoka', system-ui, sans-serif;
    color: #1e293b;
    line-height: 1.55;
    font-size: 17px; /* Tamaño de fuente 17px en contenido general */
    background-color: #6b4423;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.08) 50%, transparent 50%), linear-gradient(rgba(0,0,0,0.08) 50%, transparent 50%);
    background-size: 48px 48px;
    min-height: 100vh;
}

/* Tamaño de fuente 20px en títulos y subtítulos */
h1, h2, h3, h4 {
    font-size: 20px;
    line-height: 1.3;
}

/* Barra superior estilo bloque de césped Minecraft */
.grass-top {
    background: #4caf50;
    border-bottom: 8px solid #388e3c;
    box-shadow: 0 6px 0 #4e342e;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-in {
    width: 95%;
    max-width: 95%; /* Ancho al 95% */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

    .links a {
        text-decoration: none;
        color: #fff;
        background: rgba(0,0,0,0.24);
        padding: 0.45rem 0.8rem;
        border-radius: 8px;
        font-size: 17px;
        font-weight: 700;
        border-bottom: 3px solid rgba(0,0,0,0.38);
    }

        .links a.active {
            background: #facc15;
            color: #1e293b;
            border-bottom-color: #ca8a04;
        }

.nee-btn {
    background: #e2e8f0;
    border: 2px solid #334155;
    color: #0f172a;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
}

.salir {
    background: #dc2626;
    color: #fff;
    border: 2px solid #7f1d1d;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
}

.wrap {
    width: 95%;
    max-width: 95%; /* Ancho de todo el contenido al 95% en todas las páginas */
    margin: 1.75rem auto;
    padding: 0 0 4rem;
    position: relative;
    z-index: 10;
}

/* Tarjetas estilo bloque Minecraft */
.card, .mision-card, .ej-card, .tema-card, .ej-box, .rec-box, .tema-prog {
    background: #ffffff;
    border: 5px solid #1e293b;
    border-radius: 18px;
    padding: 1.4rem;
    margin-bottom: 1.35rem;
    box-shadow: 0 7px 0 #1e293b;
}

.hero {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #fff;
    border: 5px solid #14532d;
    border-radius: 18px;
    padding: 1.75rem;
    margin-bottom: 1.35rem;
    box-shadow: 0 7px 0 #14532d;
}

    .hero p {
        color: #dcfce7;
        margin-top: 0.4rem;
    }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.15rem;
    margin-top: 1rem;
}

/* Estilos para DUA, Bloom, ABP, ABR, NEE y SEL */
.metodo-item {
    background: #f8fafc;
    border: 3px solid #94a3b8;
    border-bottom-width: 5px;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}

    .metodo-item[open] {
        background: #f0fdf4;
        border-color: #16a34a;
    }

    .metodo-item summary {
        font-weight: 700;
        font-size: 20px; /* Subtítulo de cada metodología a 20px */
        color: #14532d;
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .metodo-item summary::-webkit-details-marker {
            display: none;
        }

        .metodo-item summary::before {
            content: "▶";
            display: inline-block;
            background: #facc15;
            color: #1e293b;
            border: 2px solid #ca8a04;
            border-radius: 6px;
            padding: 0.1rem 0.45rem;
            font-size: 15px;
        }

    .metodo-item[open] summary::before {
        content: "▼";
        background: #16a34a;
        color: #fff;
        border-color: #14532d;
    }

.metodo-detalle {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 17px;
}

/* Botones 3D estilo Minecraft */
.btn, .btn-mc, button.primary {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    border: 3px solid #14532d;
    border-bottom-width: 6px;
    padding: 0.6rem 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 17px;
    font-family: inherit;
    margin-right: 0.4rem;
    margin-top: 0.35rem;
}

    .btn:active, .btn-mc:active {
        transform: translateY(2px);
        border-bottom-width: 3px;
    }

.btn-sec, .btn-reveal, .btn-add, .btn-clear {
    background: #334155;
    color: #fff;
    border: 3px solid #0f172a;
    border-bottom-width: 5px;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    font-size: 17px;
}

.btn-pista, .btn-rec {
    background: #fef08a;
    color: #854d0e;
    border: 2px solid #ca8a04;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 17px;
}

input, select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 3px solid #64748b;
    border-radius: 10px;
    font-size: 17px;
    font-family: inherit;
    font-weight: 600;
    background: #fff;
}

    input:focus, select:focus {
        outline: none;
        border-color: #16a34a;
    }

.analogia, .comentario, .guia {
    background: #fef9c3;
    border: 2px solid #eab308;
    color: #713f12;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    margin: 0.65rem 0;
    font-weight: 600;
    font-size: 17px;
}

.pasos {
    font-family: 'JetBrains Mono', monospace;
    background: #f1f5f9;
    border: 3px solid #94a3b8;
    padding: 0.85rem;
    border-radius: 10px;
    margin: 0.65rem 0;
    font-size: 17px;
}

.pills, .modos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0;
}

    .pills button, .modo-btn {
        background: #e2e8f0;
        color: #1e293b;
        border: 3px solid #475569;
        border-bottom-width: 5px;
        padding: 0.55rem 1rem;
        border-radius: 10px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        font-size: 17px;
    }

        .pills button.active, .modo-btn.active {
            background: #16a34a;
            color: #fff;
            border-color: #14532d;
        }

/* Bloques de pasos y opciones */
.paso-row {
    border: 3px solid #94a3b8;
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: #f8fafc;
}

.paso-pill, .tag, .mision-badge {
    display: inline-block;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    border: 2px solid #1e3a8a;
    font-size: 17px;
    margin-right: 0.4rem;
}

.tema-tag {
    display: inline-block;
    background: #fef08a;
    color: #854d0e;
    border: 2px solid #eab308;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
}

.enunciado-box {
    background: #f3e8ff;
    border: 3px solid #9333ea;
    border-radius: 12px;
    padding: 0.95rem;
    font-size: 17px;
    font-weight: 700;
    margin: 0.65rem 0;
}

.opciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.opt-btn {
    background: #fff;
    border: 3px solid #94a3b8;
    border-bottom-width: 5px;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
}

    .opt-btn.selected {
        background: #dcfce7;
        border-color: #16a34a;
        color: #14532d;
    }

.badge-ok {
    background: #22c55e;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid #14532d;
}

/* Simuladores y Cajero */
.cajas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.75rem;
}

.caja-c {
    background: #3b82f6;
    border: 3px solid #1d4ed8;
    color: #fff;
    font-weight: 700;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

.caja-d {
    background: #facc15;
    border: 3px solid #ca8a04;
    color: #1e293b;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
}

.caja-u {
    background: #4ade80;
    border: 3px solid #16a34a;
    color: #14532d;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.matriz-grid {
    display: inline-grid;
    gap: 5px;
    margin-top: 0.75rem;
    background: #cbd5e1;
    padding: 8px;
    border-radius: 8px;
    border: 3px solid #475569;
}

.celda-m {
    width: 28px;
    height: 28px;
    background: #16a34a;
    border: 2px solid #14532d;
    border-radius: 4px;
}

.regla-bar {
    background: #fde047;
    border: 3px solid #ca8a04;
    border-radius: 8px;
    padding: 0.6rem;
    margin-top: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    overflow-x: auto;
}

.prod-btn {
    background: #f8fafc;
    border: 3px solid #94a3b8;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.45rem;
    font-family: inherit;
    font-size: 17px;
}

.billetes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.billete {
    border: 3px solid #1e293b;
    border-bottom-width: 5px;
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
}

.q100 {
    background: #92400e;
}

.q50 {
    background: #c2410c;
}

.q20 {
    background: #1d4ed8;
}

.q10 {
    background: #b91c1c;
}

.q5 {
    background: #6d28d9;
}

.q1 {
    background: #ca8a04;
    border-radius: 999px;
}

.pantalla-caja {
    background: #0f172a;
    color: #4ade80;
    border: 4px solid #334155;
    font-family: 'JetBrains Mono', monospace;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 17px;
}

.barra-bg {
    background: #cbd5e1;
    border: 2px solid #475569;
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.barra-fill {
    background: #16a34a;
    height: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 17px;
}

th, td {
    padding: 0.6rem;
    border-bottom: 2px solid #cbd5e1;
    text-align: left;
}

th {
    background: #e2e8f0;
}

/* Decoraciones aleatorias de tus imágenes en wwwroot/img/ */
.mc-deco-float {
    position: fixed;
    width: 68px;
    height: 68px;
    object-fit: contain;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 5px 0 rgba(0,0,0,0.45));
    animation: flotarMC 3.2s ease-in-out infinite;
}

@keyframes flotarMC {
    0%, 100% {
        transform: translateY(0px) rotate(-4deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }
}

/* Lluvia de diamantes en Cofre de Avance */
.lluvia-contenedor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 40;
}

.diamante-cayendo {
    position: absolute;
    top: -60px;
    object-fit: contain;
    image-rendering: pixelated;
    animation: caerDiamante linear infinite;
}

@keyframes caerDiamante {
    0% {
        transform: translateY(-60px) rotate(0deg);
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* =========================================================
   ESTILOS DE AUTOR (ALEXIS CALDERÓN) Y BOTÓN ACERCA DE
   ========================================================= */

.autor-banner {
    background: #14532d;
    border: 4px solid #facc15;
    border-bottom-width: 7px;
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    margin-top: 1rem;
    display: inline-block;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}

.autor-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fde047;
    letter-spacing: 1px;
}

.autor-nombre {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 3px 3px 0 #0f172a;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.btn-acerca-mc {
    background: #facc15;
    color: #1e293b;
    border: 4px solid #854d0e;
    border-bottom-width: 8px;
    border-radius: 14px;
    padding: 0.9rem 1.8rem;
    font-size: 20px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

    .btn-acerca-mc:hover {
        background: #fde047;
    }

    .btn-acerca-mc:active {
        transform: translateY(3px);
        border-bottom-width: 4px;
    }

.modal-mc-fondo {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-mc-caja {
    background: #ffffff;
    border: 5px solid #1e293b;
    border-bottom-width: 9px;
    border-radius: 18px;
    max-width: 620px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.modal-mc-header {
    background: #4caf50;
    border-bottom: 5px solid #388e3c;
    color: #ffffff;
    padding: 1rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-cerrar-mc {
    background: #dc2626;
    color: #ffffff;
    border: 3px solid #7f1d1d;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.modal-mc-body {
    padding: 1.4rem;
    color: #1e293b;
    font-size: 17px;
}

.autor-ficha {
    background: #fef9c3;
    border: 3px solid #eab308;
    color: #713f12;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 18px;
}

.lista-creacion {
    margin-top: 0.85rem;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
