/* ===========================
   ESTILO GENERAL DE PROYECTOS
   =========================== */

.proyecto {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    color: #d9e7ff;
}

/* Título del proyecto */
.titulo-proyecto {
    font-size: 2.2rem;
    font-weight: 800;
    color: #8be9ff;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
    margin-bottom: 0.5rem;
}

/* Descripción */
.descripcion-proyecto {
    font-size: 1.1rem;
    color: #c7d7e8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===========================
   MATERIALES
   =========================== */

.materiales {
    background: rgba(0, 80, 120, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.25);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.12);
}

.materiales h2 {
    color: #8be9ff;
    margin-bottom: 0.8rem;
}

.materiales ul {
    list-style: none;
    padding: 0;
}

.materiales li {
    padding: 0.3rem 0;
    border-left: 3px solid #00c8ff;
    padding-left: 0.6rem;
    margin-bottom: 0.3rem;
}

/* ===========================
   ESQUEMA
   =========================== */

.esquema {
    margin-bottom: 2rem;
}

.esquema h2 {
    color: #8be9ff;
    margin-bottom: 1rem;
}

.img-principal {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.18);
    margin-bottom: 1rem;
}

/* ===========================
   RECUADRO DE CÓDIGO + BOTÓN
   =========================== */

/* Recuadro exterior */
.code-box {
    position: relative;
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(0, 60, 90, 0.15);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.12);
    margin-bottom: 2rem;
}

/* Botón copiar */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 200, 255, 0.2);
    border: 1px solid #00c8ff;
    color: #8be9ff;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    backdrop-filter: blur(4px);
}

.copy-btn:hover {
    background: rgba(0, 200, 255, 0.35);
    box-shadow: 0 0 10px #00c8ff;
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Recuadro interior del código */
.code-box pre {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(0, 200, 255, 0.35);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.15);
    overflow-x: auto;
    margin: 0;
}

code {
    color: #9be7ff;
    font-family: "Consolas", monospace;
    font-size: 0.95rem;
}

/* ===========================
   NOTAS
   =========================== */

.nota {
    background: rgba(0, 120, 255, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.35);
    padding: 1rem;
    border-radius: 10px;
    color: #aee8ff;
    margin: 1rem 0;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.25);
}

/* ===========================
   PASOS
   =========================== */

.pasos h2 {
    color: #8be9ff;
    margin-bottom: 1rem;
}

.paso {
    background: rgba(0, 60, 90, 0.2);
    border: 1px solid rgba(0, 200, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paso:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.25);
}

.paso h3 {
    color: #8be9ff;
    margin-bottom: 0.5rem;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
    .titulo-proyecto {
        font-size: 1.8rem;
    }

    pre {
        font-size: 0.85rem;
    }
}
