/* Tema 5 - Datos y expresiones (Lógica de Programación)
   Página: eduPL4.php
   Estilo coherente con temas anteriores: fondo oscuro, texto claro y títulos en verde. */

:root {
    --de-green: #00c853;
    --de-black: #000000;
    --de-black-soft: #101010;
    --de-black-alt: #080808;
    --de-black-mid: #0b0b0b;
    --de-white: #ffffff;
}

/* Reset básico para esta página */
body {
    background-color: var(--de-black);
    color: var(--de-white);
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 400;
}

h1,
 h2,
 h3,
 h4,
 h5 {
    color: var(--de-white);
    font-weight: 700;
}

/* =============================
   Hero compacto / Introducción
   ============================= */
.de-hero {
    position: relative;
    background: url('../images/edu/eduPL/bg-algoritmos.png') center center no-repeat;
    background-size: cover;
    padding-top: 80px;
    padding-bottom: 90px; /* compacto, sin ocupar 100vh */
    text-align: center;
    color: var(--de-white);
}

.de-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    z-index: 1;
}

.de-hero .container,
.de-hero .row,
.de-hero-content {
    position: relative;
    z-index: 2;
}

.de-hero-title {
    display: inline-block;
    border: 2px solid var(--de-white);
    padding: 22px 36px;
    margin: 28px 0 14px 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 22px;
}

.de-hero-subtitle {
    color: var(--de-green);
    font-size: 24px;
    margin-bottom: 16px;
}

.de-hero-text {
    max-width: 780px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.de-hero-btn {
    margin-top: 32px;
    background: transparent;
    border: 2px solid var(--de-white);
    color: var(--de-white);
    font-size: 16px;
    font-weight: 600;
    width: 200px;
    height: 52px;
    padding-top: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.de-hero-btn:hover,
.de-hero-btn:focus {
    background: var(--de-green);
    border-color: var(--de-green);
    color: var(--de-black);
}

/* =============================
   Secciones base
   ============================= */
.de-section {
    padding: 64px 20px; /* moderado, sin espacios enormes */
    text-align: center;
    color: var(--de-white);
}

.de-section-title {
    color: var(--de-green);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.de-section-text {
    max-width: 880px;
    margin: 0 auto 16px auto;
    font-size: 16px;
    line-height: 1.8;
}

/* Sección 2 - Datos primitivos */
.de-section-primitives {
    background-color: #050505;
}

/* Sección 3 - Datos compuestos */
.de-section-composed {
    background-color: var(--de-black-soft);
}

/* Sección 4 - ¿Qué es una expresión? */
.de-section-expression {
    background-color: var(--de-black-mid);
}

/* Sección 5 - Tipos de expresiones (cards) */
.de-section-types {
    background-color: var(--de-black-alt);
}

/* Sección 6 - Cierre */
.de-section-closing {
    background-color: #050505;
}

/* Listas y ejemplos en secciones de datos */
.de-list-block {
    max-width: 720px;
    margin: 26px auto 0 auto;
    text-align: left;
}

.de-bullet-list {
    list-style: disc;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.9;
}

.de-bullet-list li {
    margin-bottom: 8px;
}

.de-example-text {
    margin-top: 20px;
    font-size: 15px;
}

/* Mini frase en la sección de expresión */
.de-mini-phrase {
    margin-top: 20px;
    font-size: 16px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* =============================
   Tipos de expresiones (tarjetas)
   ============================= */
.de-expression-cards {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.de-expression-card {
    background-color: #151515;
    border-radius: 12px;
    padding: 24px 22px 26px 22px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.de-card-title {
    color: var(--de-green);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.de-card-text {
    color: var(--de-white);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.de-card-example {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.de-example-label {
    font-weight: 600;
    color: var(--de-green);
}

/* Nota importante sobre mutabilidad */
.de-note-heading {
    color: var(--de-green);
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
}

.de-note-text {
    font-size: 15px;
}

/* Botón de continuidad (reutiliza criterio visual de otros temas) */
.eduPL-next-wrapper {
    margin-top: 32px;
    text-align: center;
}

.eduPL-next-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    border: 2px solid var(--de-green);
    color: var(--de-green) !important;
    background-color: transparent;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.eduPL-next-btn:hover,
.eduPL-next-btn:focus {
    background-color: var(--de-green);
    color: var(--de-black) !important;
    border-color: var(--de-green);
}

/* =============================
   Responsivo
   ============================= */
@media (max-width: 992px) {
    .de-expression-cards {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .de-hero {
        padding-top: 70px;
        padding-bottom: 78px;
    }

    .de-hero-title {
        font-size: 20px;
        padding: 18px 22px;
        letter-spacing: 3px;
    }

    .de-hero-subtitle {
        font-size: 20px;
    }

    .de-hero-text {
        font-size: 16px;
    }

    .de-section {
        padding: 52px 18px;
    }

    .de-section-title {
        font-size: 28px;
    }

    .de-expression-cards {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }

    .de-expression-card {
        padding: 22px 20px 24px 20px;
    }
}