/* ======================= FONDO GENERAL ======================= */
body {
    background: #f7f6f6 !important;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ======================= CONTENEDOR PRINCIPAL ======================= */
.mejora-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ======================= TARJETA SUPERIOR (TEXTO) ======================= */
.mejora-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.mejora-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.mejora-card p {
    font-size: 17px;
    color: #555;
    line-height: 1.7;
}

/* ======================= GRID DE MÓDULOS ======================= */
.contenedor-principal {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ======================= ESTILO GENERAL DEL MÓDULO (FLIP 180°) ======================= */
.modulo {
    position: relative;
    width: 100%;
    height: 170px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* EFECTO DE GIRO COMPLETO */
.modulo:hover {
    transform: rotateY(180deg);
}

/* CARA FRONTAL */
.modulo .front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* CARA TRASERA */
.modulo .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #E67E22;
    color: #333;
    transform: rotateY(180deg);
    text-align: center;
}

/* ======================= ICONO ======================= */
.icono {
    font-size: 45px;
    margin-bottom: 12px;
}

/* ======================= TEXTO DEL MÓDULO ======================= */
.texto-modulo {
    font-size: 17px;
    font-weight: bold;
}

/* ======================= COLORES ======================= */
.naranja        { background: #E67E22; }
.rojo           { background: #C0392B; }
.marron-oscuro  { background: #6E2C00; }
.amarillo       { background: #F1C40F; color:#333; }
.azul-claro     { background: #85C1E9; }
.azul-medio     { background: #2E86C1; }
.rojo-oscuro    { background: #922B21; }
.rojo-brillante { background: #E74C3C; }
/* ======================= BOTÓN SABER MÁS (Opción Borde) ======================= */
.btn-saber-mas {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: transparent;
    color: #2c3e50; /* Gris oscuro elegante */
    border: 2px solid #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-saber-mas:hover {
    background-color: #2c6baa;
    color: #ffffff;
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 900px) {
    .contenedor-principal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contenedor-principal {
        grid-template-columns: 1fr;
    }
}
